/* Ajustes globales por dispositivo. Los de cada página viven en su propia hoja. */

/* Laptop pequeña y tablet: menú de panel */
@media (max-width: 1100px) {
    :root { --header-h: 68px; }

    .nav-toggle { display: inline-flex; }

    .nav {
        position: fixed;
        inset: var(--header-h) 0 0 0;
        z-index: 1;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: space-between;
        gap: var(--space-4);
        padding: 40px var(--gutter) 32px;
        background: var(--color-primary-deep);
        color: var(--color-white);
        overflow-y: auto;
        visibility: hidden;
        transform: translateX(100%);
        transition: transform .35s var(--ease), visibility 0s linear .35s;
    }
    .nav.is-open { visibility: visible; transform: none; transition: transform .35s var(--ease); }
    .nav__list { flex-direction: column; align-items: stretch; height: auto; gap: 0; }
    .nav__item { height: auto; border-bottom: 1px solid rgba(255,255,255,.16); }
    .nav__link {
        gap: 14px;
        padding: 12px 0;
        font-family: var(--font-heading);
        font-size: clamp(1.7rem, 6vw, 2.4rem);
        font-stretch: 72%;
        font-weight: 700;
        line-height: 1.1;
        text-transform: uppercase;
    }
    .nav__link:hover, .nav__link.is-active { color: var(--color-white); }
    .nav__link::after { display: none; }
    .nav__num { display: inline; font-family: var(--font-body); font-size: .75rem; font-stretch: 88%; font-weight: 500; opacity: .75; }
    .nav__link.is-active .nav__num { opacity: 1; }
    .nav__panel-foot { display: grid; gap: 12px; justify-items: start; }
    .nav__corner { font-weight: 600; font-stretch: 88%; }
    .nav__call { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }

    body.nav-open { overflow: hidden; }
    .site-header:has(.nav.is-open) .brand { height: var(--header-h); }
}

@media (max-width: 1023px) {
    .locate__grid { grid-template-columns: 1fr; }
    .locate__map, .locate__map iframe { min-height: 360px; }
    .pets__body { grid-template-columns: 1fr; }
    .pets__photo, .pets__photo img { max-height: 70vh; }
    .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Móvil */
@media (max-width: 767px) {
    body { font-size: 1rem; }
    .brand { padding: 9px 10px 0 12px; height: calc(var(--header-h) + 14px); }
    .brand__word { font-size: 1.14rem; }
    .brand__mark { width: 32px; height: 32px; margin-top: 7px; }
    .header-phone span { display: none; }
    .header-phone { padding-inline: 12px; }
    .nav-toggle { padding-inline: 10px; }

    .btn { width: 100%; justify-content: space-between; }
    .btn-row { flex-direction: column; }
    .pets__photo img { aspect-ratio: 4 / 3.4; object-position: 52% 70%; }
    .pets__trail { bottom: 0; height: 22%; }
    .pets__cta .btn { width: 100%; }
    .locate__map { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 32px), calc(100% - 32px) 100%, 0 100%); }

    .site-footer__grid { grid-template-columns: 1fr; gap: var(--space-4); }
    .site-footer__head { padding-bottom: var(--space-4); }
    .site-footer__legal { padding-bottom: 80px; }
    .site-footer__wordmark svg { width: 1em; height: 1em; }
}

/* Pantallas muy pequeñas: 320 px */
@media (max-width: 360px) {
    .nav-toggle__text { display: none; }
    .btn__label { padding-inline: 14px; }
}

@media (min-width: 1440px) {
    :root { --header-h: 84px; }
    .brand__word { font-size: 1.44rem; }
    .brand__mark { width: 44px; height: 44px; }
    .nav__link { font-size: 1rem; }
}
