/* =================================================
   HEADER GENERAL
   ================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-soft);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: visible;
}

.nav-wrap {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
}

/* =================================================
   MARCA
   ================================================= */

.brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-weight: 700;
    font-size: var(--text-md);
    color: var(--text-main);
    flex-shrink: 0;
}

    .brand img {
        width: 42px;
        height: 42px;
        object-fit: contain;
        border-radius: 12px;
        flex-shrink: 0;
    }

    .brand span {
        letter-spacing: -0.02em;
    }

/* =================================================
   NAVEGACIÓN
   ================================================= */

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-4);
    flex-wrap: wrap;
}

    .nav-links a,
    .nav-links button {
        font-size: var(--text-sm);
    }

    .nav-links a {
        color: var(--text-soft);
        font-weight: 500;
        position: relative;
        transition: color var(--transition-fast);
    }

        .nav-links a:hover,
        .nav-links a.active {
            color: var(--text-main);
        }

            .nav-links a.active::after,
            .nav-links a:hover::after {
                content: "";
                position: absolute;
                left: 0;
                bottom: -0.35rem;
                width: 100%;
                height: 2px;
                background: var(--accent);
                border-radius: 999px;
            }

/* slot auth */
#authSlot {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
}

/* =================================================
   HERO
   ================================================= */

.hero {
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top right, rgba(200, 164, 123, 0.12), transparent 28%), radial-gradient(circle at bottom left, rgba(200, 164, 123, 0.08), transparent 30%);
        pointer-events: none;
    }

    .hero .container {
        position: relative;
        z-index: 1;
    }

.hero-grid > div:first-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero .cluster {
    margin-top: var(--space-2);
}

.hero-card img {
    width: 100%;
    max-width: 340px;
}

.hero-card p {
    text-align: center;
}

/* =================================================
   KPI GRID
   ================================================= */

.kpis .card {
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* =================================================
   SECCIONES DESTACADAS
   ================================================= */

.service-card,
.resource-card,
.photo-card,
.pet-card,
.request-card {
    height: 100%;
}

    .service-card h3,
    .resource-card h3,
    .photo-card h3,
    .pet-card h3,
    .request-card h3 {
        margin-top: var(--space-1);
        margin-bottom: var(--space-2);
    }

    .service-card p,
    .resource-card p,
    .photo-card p,
    .pet-card p,
    .request-card p {
        color: var(--text-soft);
    }

/* =================================================
   FOTOS DE ESPACIO
   ================================================= */

.photo-card {
    display: flex;
    flex-direction: column;
}

    .photo-card img {
        width: 100%;
        height: 240px;
        object-fit: cover;
        margin-bottom: var(--space-4);
    }

/* =================================================
   RECURSOS
   ================================================= */

.resource-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

    .resource-card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-radius: var(--radius-md);
    }

    .resource-card .notice {
        margin-top: auto;
    }

/* =================================================
   DASHBOARD INTERNO
   ================================================= */

.dashboard-grid {
    align-items: start;
}

    .dashboard-grid > section,
    .dashboard-grid > aside {
        min-width: 0;
    }

/* =================================================
   FORMULARIOS / AUTH
   ================================================= */

.auth-wrap {
    padding-block: var(--space-8);
}

    .auth-wrap .two-col {
        align-items: stretch;
    }

    .auth-wrap .card,
    .dashboard-grid .card {
        height: 100%;
    }

/* =================================================
   LISTAS DE MASCOTAS Y SOLICITUDES
   ================================================= */

.pet-card,
.request-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

    .pet-card .cluster {
        align-items: center;
    }

.mascot-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--accent-soft);
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border-soft);
}

    .mascot-icon img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* =================================================
   STATUS BADGES
   ================================================= */

.status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: capitalize;
    border: 1px solid transparent;
}

    .status.pending {
        color: var(--warning);
        background: rgba(217, 181, 111, 0.12);
        border-color: rgba(217, 181, 111, 0.22);
    }

    .status.contacted,
    .status.confirmed {
        color: var(--success);
        background: rgba(143, 187, 145, 0.12);
        border-color: rgba(143, 187, 145, 0.22);
    }

    .status.cancelled {
        color: var(--danger);
        background: rgba(204, 127, 127, 0.12);
        border-color: rgba(204, 127, 127, 0.22);
    }

/* =================================================
   FOOTER
   ================================================= */

.site-footer {
    margin-top: var(--space-10);
}

    .site-footer .container {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .site-footer p {
        text-align: center;
    }

/* =================================================
   RESPONSIVE
   ================================================= */

@media (max-width: 980px) {
    .nav-wrap {
        min-height: auto;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: var(--space-3);
        padding-block: var(--space-3);
    }

    .nav-links {
        width: 100%;
        justify-content: flex-start;
        gap: var(--space-3);
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 0.25rem;
        scrollbar-width: thin;
    }

        .nav-links a,
        .nav-links button,
        #authSlot {
            flex: 0 0 auto;
        }

    .hero-card {
        max-width: 100%;
    }
}

@media (max-width: 760px) {
    .site-header {
        position: sticky;
        align-items: flex-start;
    }

    .nav-wrap {
        gap: var(--space-3);
        padding-top: 0.75rem;
        padding-bottom: 0.55rem;
    }

    .brand {
        font-size: var(--text-base);
        min-height: 42px;
    }

        .brand img {
            width: 40px;
            height: 40px;
        }

    .nav-links {
        gap: var(--space-2);
        margin-inline: -0.2rem;
        padding-inline: 0.2rem;
    }

        .nav-links a,
        .nav-links button {
            font-size: 0.82rem;
        }

    .photo-card img {
        height: 210px;
    }

    .resource-card img {
        height: 170px;
    }

    .hero-card p {
        text-align: left;
    }

    #authSlot {
        width: auto;
        justify-content: flex-start;
    }

        #authSlot .btn {
            min-height: 38px;
            padding: 0.68rem 0.85rem;
        }
}
