/* ==========================================================================
   LA DOÑA HACIENDA — ESTILOS EXCLUSIVOS DE NOSOTROS (pages/nosotros.html)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO DE NOSOTROS
   -------------------------------------------------------------------------- */

/* Título h1 accesible: el hero solo muestra un logotipo en imagen (sin texto),
   así que el h1 real queda oculto visualmente sin alterar el diseño. */
.nosotros-hero-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.nosotros-hero {
    position: relative;
    display: grid;
    min-height: clamp(340px, 42svh, 420px);
    place-items: center;
    background: url("../img/hero/hero.jpg") center / cover;
    color: var(--blanco);
    isolation: isolate;
    text-align: center;
}

.nosotros-hero .hero-overlay {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: var(--superposicion-hero);
}

.nosotros-hero-content {
    width: min(calc(100% - 48px), var(--ancho-contenedor));
    padding: calc(var(--space-2xl) + var(--space-md)) 0 var(--space-lg);
}

.nosotros-hero .section-label {
    margin-bottom: var(--space-xs);
    color: var(--naranja-claro);
}

.nosotros-hero-brand-img {
    max-width: 340px;
    width: 100%;
    height: auto;
    margin: 0 auto var(--space-xs);
    filter: drop-shadow(0 4px 12px rgb(0 0 0 / 25%));
}

.story-illustration-img {
    max-width: 130px;
    height: auto;
    margin-bottom: 14px;
}

.nosotros-hero h1 {
    font-family: var(--font-titular);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--blanco);
}

.nosotros-hero p {
    max-width: 620px;
    margin: var(--space-sm) auto 0;
    font-size: clamp(0.98rem, 1.35vw, 1.12rem);
    color: rgb(255 255 255 / 92%);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   2. BLOQUES EDITORIALES (HISTORIA / EXPERIENCIA)
   Composición grande: imagen protagonista + texto amplio.
   -------------------------------------------------------------------------- */
.historia-section {
    background: #f8f5ee url("../img/marca/textura-papel.png") center / cover;
}

.galeria-section {
    background: var(--crema);
}

.esencia-section,
.experiencia-section,
.nosotros-branches-section {
    background: var(--blanco);
}

.story-block {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.story-block--reverse {
    grid-template-columns: 1fr 1.05fr;
}

.story-block--reverse .story-media {
    order: 2;
}

.story-block--reverse .story-text {
    order: 1;
}

.story-media {
    overflow: hidden;
    border-radius: var(--radio-grande);
    box-shadow: var(--sombra-media);
}

.story-media img {
    display: block;
    width: 100%;
    height: clamp(360px, 46vw, 540px);
    object-fit: cover;
    object-position: center;
    transition: transform .6s ease;
}

.story-block:hover .story-media img {
    transform: scale(1.035);
}

.story-text {
    max-width: 540px;
}

.story-text .section-label {
    margin-bottom: 14px;
}

.story-text h2 {
    margin-bottom: 22px;
    color: var(--verde-principal);
    font-family: var(--font-titular);
    font-weight: 400;
    line-height: 1.15;
    font-size: clamp(2.1rem, 3.4vw, 2.9rem);
}

.story-text p {
    color: var(--texto-secundario);
    font-size: 1.02rem;
    line-height: 1.75;
}

.story-text p + p {
    margin-top: 16px;
}

.story-text .btn,
.story-text .text-link {
    margin-top: 28px;
}

.story-text .btn {
    display: inline-flex;
}

.story-text .text-link {
    display: inline-block;
}

/* --------------------------------------------------------------------------
   3. NUESTRA ESENCIA
   Reutiliza la tarjeta global .experience-highlight (foto + número + texto,
   ya usada en index.html) dentro de un contenedor propio de 4 columnas.
   -------------------------------------------------------------------------- */
.identidad-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

.identidad-grid .highlight-image {
    height: 240px;
}

/* --------------------------------------------------------------------------
   4. GALERÍA — una imagen grande + varias pequeñas
   -------------------------------------------------------------------------- */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 20px;
}

.galeria-item {
    overflow: hidden;
    border-radius: var(--radio);
    box-shadow: var(--sombra-suave);
}

.galeria-item--big {
    grid-column: span 2;
    grid-row: span 2;
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.galeria-item:hover img {
    transform: scale(1.06);
}

/* --------------------------------------------------------------------------
   5. SUCURSALES — tarjetas fotográficas
   -------------------------------------------------------------------------- */
.nosotros-branches-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.branch-card-link {
    display: block;
}

.branch-card-link:focus-visible {
    outline: 3px solid var(--naranja-principal);
    outline-offset: 4px;
    border-radius: var(--radio);
}

.nosotros-branches-grid .branch-image {
    height: 340px;
}

.nosotros-branches-grid .branch-content {
    padding: 30px 32px 32px;
}

.nosotros-branches-grid .branch-content h3 {
    margin-bottom: 8px;
}

.nosotros-branches-grid .branch-content > p {
    margin-bottom: 16px;
    color: var(--texto-secundario);
    font-size: .88rem;
}

.nosotros-branches-grid .text-link {
    display: inline-block;
}

/* --------------------------------------------------------------------------
   6. CTA DE RESERVA — versión compacta e independiente del footer
   Reutiliza el componente global .reservation (definido en style.css, mismo
   que usa index.html), pero sobre fondo --crema en lugar de --verde-oscuro
   para que quede claramente separado del footer (que conserva su fondo
   verde oscuro global, sin cambios). Los colores de kicker, título,
   descripción, etiquetas de sucursal y botón se reajustan aquí para
   mantener buen contraste sobre fondo claro, reutilizando únicamente los
   tokens ya definidos en :root — sin colores hexadecimales nuevos.
   -------------------------------------------------------------------------- */
#cta-reserva {
    padding: 56px 0;
    background: var(--crema);
    color: var(--texto-principal);
}

#cta-reserva .section-label {
    color: var(--naranja-principal);
}

#cta-reserva h2 {
    margin-top: 4px;
    color: var(--verde-principal);
    font-size: clamp(1.7rem, 3.2vw, 2.35rem);
}

#cta-reserva .reservation-content > p {
    margin-top: 10px;
    max-width: 480px;
    color: var(--texto-secundario);
}

#cta-reserva .reservation-branches {
    margin: 16px 0 20px;
    color: var(--verde-principal);
}

#cta-reserva .btn-light {
    background: var(--naranja-principal);
    color: var(--blanco);
}

#cta-reserva .btn-light:hover {
    background: var(--naranja-secundario);
}

/* --------------------------------------------------------------------------
   7. RESPONSIVE — BREAKPOINTS (900px, 650px, 400px)
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {

    .nosotros-hero {
        min-height: 380px;
    }

    .nosotros-hero-content {
        padding: calc(var(--space-2xl) + 8px) 0 var(--space-md);
    }

    .story-block,
    .story-block--reverse {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .story-block--reverse .story-media,
    .story-block--reverse .story-text {
        order: initial;
    }

    .story-media img {
        height: clamp(280px, 60vw, 400px);
    }

    .story-text {
        max-width: 100%;
    }

    .identidad-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .galeria-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }

    .nosotros-branches-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .nosotros-branches-grid .branch-image {
        height: 280px;
    }

    #cta-reserva {
        padding: 48px 0;
    }
}

@media (max-width: 650px) {

    .nosotros-hero {
        min-height: clamp(340px, 40svh, 380px);
        background-position: center center;
    }

    .nosotros-hero-content {
        width: calc(100% - 32px);
        padding: calc(var(--space-xl) + 16px) 0 var(--space-md);
    }

    .nosotros-hero .section-label {
        font-size: 0.65rem;
        letter-spacing: 0.16em;
        margin-bottom: 6px;
    }

    .nosotros-hero h1 {
        font-size: clamp(2rem, 7.2vw, 2.5rem);
        line-height: 1.15;
    }

    .nosotros-hero p {
        max-width: 380px;
        margin: 10px auto 0;
        font-size: 0.92rem;
        line-height: 1.5;
    }

    .story-text h2 {
        font-size: 1.75rem;
    }

    .story-text p {
        font-size: .94rem;
    }

    .identidad-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .galeria-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
        gap: 14px;
    }

    .galeria-item--big {
        grid-column: span 1;
        grid-row: span 1;
    }

    #cta-reserva {
        padding: 40px 0;
    }

    #cta-reserva .reservation-content > p {
        max-width: 340px;
    }
}

@media (max-width: 400px) {

    .nosotros-hero {
        min-height: 330px;
    }

    .nosotros-hero-content {
        width: calc(100% - 24px);
        padding: calc(var(--space-xl) + 8px) 0 var(--space-sm);
    }

    .nosotros-hero .section-label {
        font-size: 0.62rem;
        letter-spacing: 0.14em;
    }

    .nosotros-hero h1 {
        font-size: clamp(1.8rem, 8vw, 2.2rem);
        line-height: 1.15;
    }

    .nosotros-hero p {
        max-width: 300px;
        margin-top: 8px;
        font-size: 0.86rem;
    }

    .story-media img {
        height: 240px;
    }

    .identidad-grid .highlight-image {
        height: 200px;
    }

    .galeria-grid {
        grid-auto-rows: 200px;
    }

    .nosotros-branches-grid .branch-image {
        height: 220px;
    }

    #cta-reserva {
        padding: 32px 0;
    }
}
