/* Responsive finishing layer: desktop, tablet and mobile. */
html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    min-width: 320px;
    overflow-x: hidden;
}

body.admin-bar .site-header {
    top: 32px;
}

iframe,
video,
embed,
object {
    max-width: 100%;
}

.dropdown-toggle {
    appearance: none;
    padding: 32px 0;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

@media (min-width: 801px) {
    .main-nav .dropdown {
        padding: 0;
    }
}

.dropdown:hover > .dropdown-toggle,
.dropdown:focus-within > .dropdown-toggle {
    border-color: var(--pink);
    color: var(--pink);
}

.infantil-button,
.button,
.link-arrow,
.main-nav a,
.dropdown-toggle,
.menu-toggle {
    min-height: 44px;
}

@media (max-width: 1050px) {
    .wrap {
        width: min(100% - 48px, 960px);
    }

    .header-inner {
        gap: 16px;
    }

    .main-nav {
        gap: 16px;
    }

    .brand {
        min-width: 205px;
    }

    .welcome-grid {
        gap: 44px;
    }

    .infantil-area-grid {
        column-gap: 42px;
    }
}

@media (max-width: 800px) {
    .wrap {
        width: min(100% - 36px, 680px);
    }

    .site-header {
        position: sticky;
    }

    .header-inner {
        min-height: 72px;
    }

    .brand {
        min-width: 0;
        gap: 8px;
    }

    .brand img {
        width: 49px;
        height: 47px;
    }

    .brand-name {
        font-size: 15px;
    }

    .brand-name strong {
        font-size: 18px;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        padding: 8px 2px 8px 14px;
        color: #4c434a;
        font-weight: 800;
    }

    .site-header.open .main-nav {
        top: 72px;
        max-height: calc(100vh - 72px);
        max-height: calc(100dvh - 72px);
        padding: 10px 18px 22px;
        overflow-y: auto;
        border-top: 1px solid var(--line);
    }

    .main-nav > a,
    .main-nav .dropdown,
    .dropdown-toggle {
        width: 100%;
    }

    .main-nav > a,
    .dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 8px;
        border-bottom: 1px solid var(--line);
        text-align: left;
    }

    .dropdown-menu,
    .dropdown:hover .dropdown-menu,
    .dropdown:focus-within .dropdown-menu {
        display: none;
        position: static;
        width: 100%;
        padding: 5px 0 8px 13px;
        border: 0;
        box-shadow: none;
    }

    .dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown.open .dropdown-toggle span {
        transform: rotate(180deg);
    }

    .dropdown-menu a {
        min-height: 42px;
        padding: 9px 12px;
    }

    .hero,
    .infantil-hero,
    .pcm-detail-hero {
        min-height: 0;
        padding: 52px 18px;
    }

    .hero blockquote,
    .infantil-hero h1,
    .pcm-detail-hero h1 {
        overflow-wrap: anywhere;
        font-size: clamp(34px, 10vw, 48px);
    }

    .welcome,
    .help,
    .identity,
    .pcm-section,
    .infantil-areas,
    .infantil-tarifas,
    .infantil-donde,
    .infantil-reserva,
    .instagram-videos-section,
    .google-reviews-section {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .welcome h1,
    .section-title,
    .pcm-section h2,
    .infantil-areas h2,
    .infantil-donde h2,
    .infantil-reserva h2,
    .infantil-tarifas h2 {
        font-size: clamp(31px, 9vw, 42px);
        overflow-wrap: anywhere;
    }

    .welcome-copy > p:not(.eyebrow) {
        text-align: left;
    }

    .credential-welcome {
        margin-top: 18px;
    }

    .service-card,
    .pcm-card-body,
    .pcm-activity-body,
    .pcm-contact-card {
        padding-right: 22px;
        padding-left: 22px;
    }

    .infantil-area-item {
        min-height: 76px;
        padding-right: 4px;
        padding-left: 4px;
    }

    .infantil-tarifa-grid {
        gap: 0;
        padding-top: 0;
        border-top: 0;
    }

    .infantil-tarifa {
        padding: 25px 10px;
        border-top: 1px solid rgba(65,48,58,.22);
    }

    .infantil-tarifa + .infantil-tarifa {
        border-left: 0;
    }

    .infantil-location-grid {
        gap: 28px;
        padding: 18px;
    }

    .infantil-location-card > div {
        width: calc(100% - 18px);
        margin-top: -20px;
    }

    .infantil-booking-frame iframe {
        height: min(690px, 82vh);
        height: min(690px, 82dvh);
    }

    .pcm-feature-image {
        height: auto;
        max-height: 360px;
        aspect-ratio: 4 / 3;
    }

    .pcm-card img,
    .pcm-activity img {
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .pcm-center-card {
        width: 100%;
    }

    .pcm-button-row {
        align-items: stretch;
        flex-direction: column;
    }

    .pcm-button-row .infantil-button {
        width: 100%;
        margin-top: 0;
    }

    .footer-grid {
        gap: 30px;
    }

    .footer-bottom {
        margin-top: 32px;
        text-align: center;
    }
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

@media (max-width: 520px) {
    body {
        font-size: 15px;
    }

    .wrap {
        width: calc(100% - 28px);
    }

    .brand-name {
        display: none;
    }

    .menu-toggle {
        padding-left: 8px;
    }

    .hero,
    .infantil-hero,
    .pcm-detail-hero {
        padding: 42px 14px;
    }

    .hero blockquote,
    .infantil-hero h1,
    .pcm-detail-hero h1 {
        font-size: clamp(31px, 10.5vw, 40px);
    }

    .welcome,
    .help,
    .identity,
    .pcm-section,
    .infantil-areas,
    .infantil-tarifas,
    .infantil-donde,
    .infantil-reserva,
    .instagram-videos-section,
    .google-reviews-section,
    .cta,
    .social-strip {
        padding-top: 46px;
        padding-bottom: 46px;
    }

    .welcome p,
    .pcm-feature-copy > p,
    .pcm-resource-intro,
    .pcm-center-card p,
    .infantil-lead,
    .infantil-reserva > div > p {
        font-size: 16px;
    }

    .help > .wrap > .eyebrow {
        font-size: 20px;
    }

    .service-card h2,
    .pcm-card h2,
    .pcm-card h3,
    .pcm-activity h3 {
        font-size: 25px;
    }

    .infantil-button,
    .button {
        width: 100%;
        max-width: 100%;
        padding: 13px 18px;
        white-space: normal;
        text-align: center;
    }

    .infantil-area-item {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 13px;
    }

    .infantil-area-item img {
        width: 46px;
        height: 46px;
    }

    .infantil-area-item p {
        font-size: 17px;
    }

    .infantil-location-grid {
        margin-right: -2px;
        margin-left: -2px;
        padding: 12px;
    }

    .infantil-location-card > img {
        height: auto;
        min-height: 205px;
        aspect-ratio: 4 / 3;
    }

    .infantil-location-card > div {
        width: 100%;
        min-height: 0;
        margin-top: 0;
    }

    .pcm-center-card {
        padding: 27px 18px;
    }

    .pcm-check-list li {
        padding: 14px 14px 14px 45px;
    }

    .pcm-check-list li::before {
        left: 16px;
    }

    .instagram-videos-feed #sbi_images {
        grid-template-columns: 1fr !important;
    }

    .instagram-videos-fallback {
        grid-template-columns: 1fr;
    }

    .instagram-videos-feed .sbi_item:nth-child(n+4),
    .instagram-videos-fallback .instagram-video-card:nth-child(n+4) {
        display: none;
    }

    .google-reviews-track {
        grid-auto-columns: 94%;
    }

    .google-reviews-arrow {
        display: none;
    }

    .quote {
        padding: 16px;
    }

    .site-footer {
        padding-top: 46px;
    }

    .footer-brand {
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
