/* ==========================================================================
   Pizzas Watson — Ubicación de las sedes
   ========================================================================== */

.pw-locations-map {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #faf7ed;
}

/* ==========================================================================
   Encabezado
   ========================================================================== */

.pw-locations-map__heading {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 54px 20px 25px;
    background:
        linear-gradient(
            180deg,
            #faf7ed 0%,
            #faf7ed 76%,
            rgba(250, 247, 237, 0.93) 100%
        );
    text-align: center;
}

.pw-locations-map__heading h2 {
    max-width: 900px;
    margin: 0 auto;
    color: #ce328d;
    font-family: var(
        --pw-font-heading,
        "Poppins",
        sans-serif
    );
    font-size: clamp(
        2.2rem,
        4.3vw,
        2.75rem
    );
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.pw-locations-map__heading h2 span {
    display: block;
}

.pw-locations-map__heading h2 span + span {
    margin-top: 2px;
}

/* ==========================================================================
   Contenedor del mapa
   ========================================================================== */

.pw-locations-map__canvas {
    position: relative;
    width: 100%;
    height: 650px;
    overflow: hidden;
    isolation: isolate;
    background: #e7e6df;
}

.pw-locations-map__iframe {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    display: block;
    margin: 0;
    border: 0;
    filter:
        saturate(0.7)
        brightness(1.06)
        contrast(0.91);
}

/* ==========================================================================
   Capa visual del mapa
   ========================================================================== */

.pw-locations-map__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(250, 247, 237, 0.5) 0%,
            rgba(250, 247, 237, 0.14) 15%,
            rgba(250, 247, 237, 0.04) 52%,
            rgba(250, 247, 237, 0.08) 100%
        );
}

/* ==========================================================================
   Capa de marcadores
   ========================================================================== */

.pw-locations-map__markers {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

/* ==========================================================================
   Marcador
   ========================================================================== */

.pw-location-marker {
    position: absolute;
    top: 45%;
    left: 50%;
    z-index: 3;
    width: 46px;
    height: 58px;
    margin: 0;
    pointer-events: auto;
    transform: translate(-50%, -100%);
}

.pw-location-marker:nth-child(1) {
    top: 37%;
    left: 43%;
}

.pw-location-marker:nth-child(2) {
    top: 38%;
    left: 51%;
}

.pw-location-marker:hover,
.pw-location-marker:focus-within,
.pw-location-marker.is-active {
    z-index: 10;
}

/* ==========================================================================
   Botón del marcador
   ========================================================================== */

.pw-location-marker__button {
    position: relative;
    width: 46px;
    height: 58px;
    display: grid;
    place-items: start center;
    margin: 0;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    cursor: pointer;
}

.pw-location-marker__button:focus-visible
    .pw-location-marker__pin {
    box-shadow:
        0 0 0 4px
        rgba(255, 255, 255, 0.94),
        0 0 0 7px
        rgba(189, 31, 108, 0.46);
}

/* ==========================================================================
   Forma del marcador
   ========================================================================== */

.pw-location-marker__pin {
    position: relative;
    z-index: 2;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        linear-gradient(
            145deg,
            #b71772,
            #8e1458
        );
    box-shadow:
        0 8px 20px
        rgba(104, 9, 58, 0.24);
    transition:
        background-color 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.22s ease;
}

.pw-location-marker__pin::after {
    position: absolute;
    bottom: -9px;
    left: 50%;
    width: 18px;
    height: 18px;
    border-radius: 2px;
    content: "";
    background: #97155f;
    transform:
        translateX(-50%)
        rotate(45deg);
}

.pw-location-marker__pin img {
    position: relative;
    z-index: 2;
    width: 23px;
    height: 23px;
    object-fit: contain;
}

.pw-location-marker:hover
    .pw-location-marker__pin,
.pw-location-marker.is-active
    .pw-location-marker__pin {
    box-shadow:
        0 11px 24px
        rgba(104, 9, 58, 0.32);
    transform: translateY(-3px);
}

/* ==========================================================================
   Onda animada
   ========================================================================== */

.pw-location-marker__pulse {
    position: absolute;
    top: 0;
    left: 2px;
    z-index: 1;
    width: 42px;
    height: 42px;
    border: 2px solid rgba(178, 25, 106, 0.62);
    border-radius: 50%;
    pointer-events: none;
    animation:
        pw-location-marker-pulse
        2.2s
        cubic-bezier(0.2, 0.65, 0.3, 1)
        infinite;
}

.pw-location-marker:nth-child(2)
    .pw-location-marker__pulse {
    animation-delay: 0.8s;
}

@keyframes pw-location-marker-pulse {
    0% {
        opacity: 0.8;
        transform: scale(0.86);
    }

    58% {
        opacity: 0.3;
    }

    100% {
        opacity: 0;
        transform: scale(1.85);
    }
}

/* ==========================================================================
   Tarjeta emergente
   ========================================================================== */

.pw-location-marker__card {
    position: absolute;
    top: 40px;
    left: 21px;
    z-index: 5;
    width: 495px;
    min-height: 174px;
    display: grid;
    grid-template-columns:
        minmax(190px, 0.94fr)
        minmax(235px, 1.06fr);
    overflow: hidden;
    border: 1px solid rgba(131, 104, 64, 0.11);
    border-radius: 13px;
    background: #f7f0d4;
    box-shadow:
        0 19px 42px
        rgba(61, 42, 35, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform:
        translateY(8px)
        scale(0.985);
    transform-origin: top left;
    transition:
        opacity 0.22s ease,
        visibility 0.22s ease,
        transform 0.22s ease;
}

.pw-location-marker:hover
    .pw-location-marker__card,
.pw-location-marker:focus-within
    .pw-location-marker__card,
.pw-location-marker.is-active
    .pw-location-marker__card {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform:
        translateY(0)
        scale(1);
}

/* ==========================================================================
   Imagen de la sede
   ========================================================================== */

.pw-location-marker__image {
    position: relative;
    min-width: 0;
    min-height: 174px;
    overflow: hidden;
    margin: 0;
    background: #e4ded1;
}

.pw-location-marker__image img {
    width: 100%;
    height: 100%;
    min-height: 174px;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.32s ease;
}

.pw-location-marker__card:hover
    .pw-location-marker__image img {
    transform: scale(1.045);
}

/* ==========================================================================
   Información
   ========================================================================== */

.pw-location-marker__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px 15px 13px;
}

.pw-location-marker__content h3 {
    margin: 0 0 4px;
    color: #cb318b;
    font-family: var(
        --pw-font-heading,
        "Poppins",
        sans-serif
    );
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.pw-location-marker__content address {
    display: grid;
    gap: 1px;
    margin: 0;
    color: #cd388d;
    font-family: var(
        --pw-font-body,
        "Manrope",
        sans-serif
    );
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 650;
    line-height: 1.2;
}

.pw-location-marker__content address span {
    display: block;
}

.pw-location-marker__schedule {
    margin: 7px 0 0;
    color: #ca3188;
    font-family: var(
        --pw-font-body,
        "Manrope",
        sans-serif
    );
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.3;
}

/* ==========================================================================
   Botón de ubicación
   ========================================================================== */

.pw-location-marker__link {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    justify-content: center;
    margin-top: 8px;
    padding: 4px 13px;
    border: 1px solid #cc328a;
    border-radius: 999px;
    color: #c62d84;
    background: transparent;
    font-family: var(
        --pw-font-heading,
        "Poppins",
        sans-serif
    );
    font-size: 0.79rem;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.pw-location-marker__link:hover {
    color: #ffffff;
    background: #c62d84;
    transform: translateY(-1px);
}

/* ==========================================================================
   Tarjeta invertida para marcadores cerca del borde derecho
   ========================================================================== */

.pw-location-marker.is-card-left
    .pw-location-marker__card {
    right: 21px;
    left: auto;
    transform-origin: top right;
}

/* ==========================================================================
   Pantallas medianas
   ========================================================================== */

@media (max-width: 1100px) {
    .pw-locations-map__heading {
        padding:
            48px
            18px
            22px;
    }

    .pw-locations-map__canvas {
        height: 590px;
    }

    .pw-location-marker__card {
        width: 445px;
        grid-template-columns:
            minmax(170px, 0.92fr)
            minmax(210px, 1.08fr);
    }

    .pw-location-marker__content h3 {
        font-size: 1.45rem;
    }
}

/* ==========================================================================
   Tabletas
   ========================================================================== */

@media (max-width: 820px) {
    .pw-locations-map__heading {
        padding:
            43px
            17px
            20px;
    }

    .pw-locations-map__heading h2 {
        font-size: clamp(
            2rem,
            6vw,
            3.3rem
        );
    }

    .pw-locations-map__canvas {
        height: 560px;
    }

    .pw-location-marker__card {
        width: 395px;
        grid-template-columns:
            minmax(150px, 0.9fr)
            minmax(195px, 1.1fr);
    }

    .pw-location-marker__image,
    .pw-location-marker__image img {
        min-height: 164px;
    }

    .pw-location-marker__content {
        padding-inline: 12px;
    }

    .pw-location-marker__content h3 {
        font-size: 1.32rem;
    }

    .pw-location-marker__content address {
        font-size: 0.76rem;
    }

    .pw-location-marker__schedule {
        font-size: 0.72rem;
    }
}

/* ==========================================================================
   Móviles
   ========================================================================== */

@media (max-width: 600px) {
    .pw-locations-map__heading {
        padding:
            38px
            12px
            18px;
    }

    .pw-locations-map__heading h2 {
        font-size: clamp(
            1.8rem,
            8vw,
            2.6rem
        );
        line-height: 1.1;
        letter-spacing: -0.03em;
    }

    .pw-locations-map__canvas {
        height: 530px;
    }

    .pw-location-marker {
        width: 42px;
        height: 54px;
    }

    .pw-location-marker__button {
        width: 42px;
        height: 54px;
    }

    .pw-location-marker__pin {
        width: 38px;
        height: 38px;
    }

    .pw-location-marker__pin::after {
        bottom: -8px;
        width: 16px;
        height: 16px;
    }

    .pw-location-marker__pin img {
        width: 21px;
        height: 21px;
    }

    .pw-location-marker__pulse {
        width: 38px;
        height: 38px;
    }

    .pw-location-marker__card {
        top: 39px;
        left: 50%;
        width: min(320px, calc(100vw - 30px));
        min-height: 0;
        grid-template-columns:
            minmax(112px, 0.82fr)
            minmax(155px, 1.18fr);
        border-radius: 11px;
        transform:
            translate(-50%, 8px)
            scale(0.985);
        transform-origin: top center;
    }

    .pw-location-marker:hover
        .pw-location-marker__card,
    .pw-location-marker:focus-within
        .pw-location-marker__card,
    .pw-location-marker.is-active
        .pw-location-marker__card {
        transform:
            translate(-50%, 0)
            scale(1);
    }

    .pw-location-marker.is-card-left
        .pw-location-marker__card {
        right: auto;
        left: 50%;
        transform-origin: top center;
    }

    .pw-location-marker__image,
    .pw-location-marker__image img {
        min-height: 155px;
    }

    .pw-location-marker__content {
        padding:
            11px
            10px
            12px;
    }

    .pw-location-marker__content h3 {
        font-size: 1.12rem;
    }

    .pw-location-marker__content address {
        font-size: 0.69rem;
    }

    .pw-location-marker__schedule {
        margin-top: 6px;
        font-size: 0.66rem;
        line-height: 1.3;
    }

    .pw-location-marker__link {
        min-height: 27px;
        margin-top: 7px;
        padding-inline: 9px;
        font-size: 0.67rem;
    }
}

/* ==========================================================================
   Teléfonos pequeños
   ========================================================================== */

@media (max-width: 390px) {
    .pw-locations-map__heading {
        padding:
            34px
            9px
            16px;
    }

    .pw-locations-map__heading h2 {
        font-size: 1.7rem;
    }

    .pw-locations-map__canvas {
        height: 485px;
    }

    .pw-location-marker__card {
        width: min(
            295px,
            calc(100vw - 22px)
        );
        grid-template-columns:
            minmax(103px, 0.78fr)
            minmax(150px, 1.22fr);
    }

    .pw-location-marker__content h3 {
        font-size: 1.03rem;
    }

    .pw-location-marker__content address {
        font-size: 0.65rem;
    }

    .pw-location-marker__schedule {
        font-size: 0.62rem;
    }
}

/* ==========================================================================
   Accesibilidad
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .pw-location-marker__pulse {
        animation: none;
    }

    .pw-location-marker__pin,
    .pw-location-marker__card,
    .pw-location-marker__image img,
    .pw-location-marker__link {
        transition: none;
    }

    .pw-location-marker:hover
        .pw-location-marker__pin,
    .pw-location-marker.is-active
        .pw-location-marker__pin,
    .pw-location-marker__link:hover {
        transform: none;
    }

    .pw-location-marker:hover
        .pw-location-marker__card,
    .pw-location-marker:focus-within
        .pw-location-marker__card,
    .pw-location-marker.is-active
        .pw-location-marker__card {
        opacity: 1;
        visibility: visible;
    }
}