/*
 * Nota sobre la tipografía: Gotham es una fuente de pago (no disponible en
 * CDNs gratuitos). Antes de subir esto a producción, declara tu @font-face
 * con los archivos con licencia, por ejemplo:
 *
 * @font-face {
 *   font-family: 'Gotham';
 *   src: url('../fonts/Gotham-Book.woff2') format('woff2');
 *   font-weight: 400;
 * }
 * @font-face {
 *   font-family: 'Gotham';
 *   src: url('../fonts/Gotham-Bold.woff2') format('woff2');
 *   font-weight: 700;
 * }
 *
 * Mientras tanto, el stack cae a Montserrat/Arial como aproximación visual.
 */

.mapa-talleres-contenedor {
    font-family: 'Gotham', 'Montserrat', Arial, sans-serif;

    /* Escala modular major third (1.25), base 16px */
    --step--2: 10px;
    --step--1: 13px;
    --step-0: 16px;
    --step-1: 20px;
    --step-2: 25px;
    --step-3: 31px;
    --step-4: 39px;
}

.buscador-cercano {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;

    --radio-buscador: 8px;
}

.buscador-cercano input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: 1px solid rgba(11, 11, 11, .15);
    border-radius: var(--radio-buscador);
    font-family: inherit;
    font-size: var(--step-0);
    color: #0B0B0B;
    box-sizing: border-box;
}

.buscador-cercano input:focus {
    outline: none;
    border-color: #CB1222;
}

.buscador-cercano button {
    padding: 12px 22px;
    background: #CB1222;
    color: #ffffff;
    border: none;
    border-radius: var(--radio-buscador);
    font-family: inherit;
    font-size: var(--step--1);
    font-weight: 700;
    letter-spacing: .3px;
    cursor: pointer;
    white-space: nowrap;
}

.buscador-cercano button:hover {
    background: #a30f1c;
}

.buscador-cercano button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.cp-mensaje {
    flex-basis: 100%;
    margin: 0;
    font-size: var(--step--1);
    color: #0B0B0B;
}

.cp-mensaje.cp-mensaje-error {
    color: #CB1222;
}

.mapa-talleres-wrap {
    display: flex;
    width: 100%;
    aspect-ratio: 21 / 9;
    min-height: 380px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    font-family: 'Gotham', 'Montserrat', Arial, sans-serif;

    /* Escala modular major third (1.25), base 16px */
    --step--2: 10px;
    --step--1: 13px;
    --step-0: 16px;
    --step-1: 20px;
    --step-2: 25px;
    --step-3: 31px;
    --step-4: 39px;
}

@media (max-width: 600px) {
    .buscador-cercano {
        flex-direction: column;
        align-items: stretch;
    }

    .buscador-cercano input,
    .buscador-cercano button {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .mapa-talleres-wrap {
        flex-direction: column;
        aspect-ratio: unset;
        min-height: 0;
        height: auto;
    }
}

#mapa-talleres {
    flex: 1;
    min-width: 0;
}

.pin-taller {
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .25));
}

.pin-taller-seleccionado {
    z-index: 1000 !important; /* siempre por encima del resto de pines */
}

.pin-halo {
    transform-box: fill-box;
    transform-origin: center;
    animation: bmtm-pulso-pin 1.6s ease-out infinite;
}

@keyframes bmtm-pulso-pin {
    0% {
        transform: scale(1);
        opacity: .45;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    #mapa-talleres {
        height: 300px;
        flex: none;
    }
}

.panel-taller {
    width: 0;
    overflow: hidden;
    background: #ffffff;
    transition: width .25s ease;
    flex-shrink: 0;
}

.panel-taller.open {
    width: 380px;
}

.panel-taller-inner {
    padding: 1.75rem 1.5rem;
    width: 380px;
    box-sizing: border-box;
    height: 100%;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .panel-taller {
        width: 100%;
        max-height: 0;
        transition: max-height .3s ease;
        border-top: 1px solid #eee;
    }

    .panel-taller.open {
        width: 100%;
        max-height: 70vh;
    }

    .panel-taller-inner {
        width: 100%;
        height: auto;
        max-height: 70vh;
    }
}

.panel-taller h3 {
    margin: 0 0 20px;
    font-size: var(--step-3); /* 31px */
    font-weight: 700;
    color: #0B0B0B;
    letter-spacing: .2px;
    line-height: 1.2;
}

.panel-taller .cerrar-panel {
    float: right;
    cursor: pointer;
    color: #0B0B0B;
    opacity: .35;
    font-size: 20px;
    line-height: 1;
    background: none;
    border: none;
}

.panel-taller .info-block {
    margin-bottom: 18px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.panel-taller .info-block:last-of-type {
    margin-bottom: 24px;
}

.panel-taller .info-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    background: #F2F2F2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0B0B0B;
}

.panel-taller .info-text {
    min-width: 0;
    flex: 1;
}

.panel-taller .info-caption {
    font-size: var(--step--1); /* 13px — antes 12px, no existía en la escala */
    font-weight: 400;
    color: #8A8A8A;
    margin: 0 0 4px;
    letter-spacing: .2px;
}

.panel-taller .info-value {
    font-size: var(--step-0); /* 16px */
    font-weight: 700;
    color: #0B0B0B;
    margin: 0 0 2px;
    line-height: 1.4;
    word-break: break-word;
}

.panel-taller .info-value:last-child {
    margin-bottom: 0;
}

.panel-taller .btn-maps {
    display: block;
    text-align: center;
    text-decoration: none;
    padding: 12px;
    background: #CB1222;
    color: #ffffff;
    border-radius: 999px;
    font-family: inherit;
    font-size: var(--step--1); /* 13px — antes 14px, no existía en la escala */
    font-weight: 700;
    letter-spacing: .3px;
}

.panel-taller .btn-maps:hover {
    background: #a30f1c;
}
