/* =========================================================
   HERITAGE COMÚN
   Hoja de estilos principal (Secciones y Contenido)
   (Header y Menú controlados por site.css)
   ========================================================= */

/* 1. VARIABLES Y AJUSTES GENERALES
   --------------------------------------------------------- */

:root {
    --wine: #5b1427;
    --wine-dark: #310c18;
    --wine-mid: #76263b;
    --gold: #c9a45b;
    --gold-light: #e8d5a3;
    --ink: #21191b;
    --muted: #766d6d;
    --paper: #faf8f5;
    --white: #fff;

    --serif: Georgia, "Times New Roman", serif;
    --sans: "DM Sans", sans-serif;

    /* Ancho máximo recomendado para el contenido */
    --content-width: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.75;
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}


/* 3. PORTADA CON VIDEO
   --------------------------------------------------------- */

.hero {
    height: min(900px, 100svh);
    min-height: 680px;
    position: relative;
    display: flex;
    align-items: center;
    background: #271b20;
    color: white;
    overflow: hidden;
}

.hero-video,
.hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video {
    filter: saturate(0.72);
}

.hero-shade {
    background:
        linear-gradient(
            90deg,
            rgba(32, 9, 17, 0.83) 0%,
            rgba(44, 13, 23, 0.59) 47%,
            rgba(24, 16, 18, 0.12) 100%
        ),
        linear-gradient(
            0deg,
            rgba(22, 9, 13, 0.42),
            transparent 35%
        );
}

.hero-content {
    position: relative;
    z-index: 2;
    margin: 100px 0 30px 10%;
    max-width: 680px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--wine);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.2px;
    margin: 0 0 24px;
}

.eyebrow > span {
    width: 28px;
    height: 1px;
    background: var(--gold);
    display: inline-block;
}

.eyebrow.light {
    color: #f6eee8;
}

.hero h1,
.intro h2,
.section-heading h2,
.process h2,
.underwater h2,
.contact h2 {
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -1.9px;
    line-height: 1.06;
}

.hero h1 {
    font-size: clamp(54px, 6.3vw, 92px);
    max-width: 680px;
    margin: 0 0 26px;
}

.hero h1 em,
.intro h2 em,
.section-heading h2 em,
.process h2 em,
.underwater h2 em,
.contact h2 em {
    font-weight: 400;
    color: var(--gold-light);
}

.hero-copy {
    font-size: 16px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.83);
    max-width: 510px;
    margin: 0 0 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 32px;
    padding: 16px 22px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: transform 0.25s, background 0.25s;
}

.button:hover {
    transform: translateY(-3px);
}

.button span {
    font-size: 18px;
}

.button-gold {
    background: var(--gold);
    color: var(--wine-dark);
}

.button-gold:hover {
    background: var(--gold-light);
}

.hero-bottom {
    position: absolute;
    bottom: 32px;
    left: 6.3%;
    right: 6.3%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.68);
    font-size: 9px;
    letter-spacing: 1.8px;
}

.hero-bottom a {
    color: white;
}

.hero-bottom a span {
    color: var(--gold);
    margin-left: 12px;
    font-size: 17px;
}

.hero-index {
    position: absolute;
    right: 6.3%;
    top: 50%;
    font-size: 12px;
    letter-spacing: 2px;
    color: white;
    writing-mode: vertical-rl;
}

.hero-index p{
    margin: 2px;
    line-height: 16px;
    font-size: 10px;
}

.hero-index i {
    color: var(--gold);
    font-style: normal;
    margin: 10px 0;
}


/* 4. ESPACIADO GENERAL DE LAS SECCIONES
   --------------------------------------------------------- */

.section-pad {
    padding: 110px max(6%, calc((100% - var(--content-width)) / 2));
}


/* 5. INTRODUCCIÓN Y GALERÍA
   --------------------------------------------------------- */

.intro {
    background: var(--paper);
}

.intro-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-number {
    font-size: 9px;
    letter-spacing: 1.7px;
    color: #9a8d8d;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 7%;
    align-items: start;
    margin: 30px 0 80px;
}

.intro h2,
.section-heading h2,
.process h2,
.contact h2 {
    font-size: clamp(43px, 5vw, 67px);
    color: var(--wine);
    margin: 0;
}

.intro h2 em,
.section-heading h2 em,
.process h2 em,
.contact h2 em {
    color: var(--gold);
}

.intro-copy {
    padding-top: 8px;
    color: #64595b;
    font-size: 14px;
}

.intro-copy p {
    margin: 0 0 18px;
}

.intro-copy .lead {
    font-size: 17px;
    color: #3c3033;
    line-height: 1.8;
}

.text-link {
    display: inline-flex;
    gap: 24px;
    align-items: center;
    color: var(--wine);
    font-size: 11px;
    font-weight: 700;
    margin-top: 12px;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 9px;
}

.text-link span {
    color: var(--gold);
    font-size: 17px;
}

.story-gallery {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-rows: 300px 250px;
    gap: 18px;
}

.story-gallery figure {
    margin: 0;
    position: relative;
    overflow: hidden;
    background: #ddd;
}

.story-gallery img,
.cap-image img,
.process-image img,
.contact-image img {
    transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.story-gallery figure:hover img,
.capability:hover .cap-image img {
    transform: scale(1.04);
}

.gallery-large {
    grid-row: span 2;
}

.gallery-small {
    height: 300px;
}

.gallery-wide {
    grid-column: 2;
    height: 250px;
}

.story-gallery figure::after {
    content: "";
    position: absolute;
    inset: 35% 0 0;
    background: linear-gradient(transparent, rgba(30, 10, 17, 0.7));
}

.story-gallery figcaption {
    position: absolute;
    z-index: 1;
    bottom: 19px;
    left: 22px;
    color: white;
    font-size: 12px;
    letter-spacing: 0.2px;
}

.story-gallery figcaption span {
    color: var(--gold-light);
    font-size: 10px;
    margin-right: 12px;
}


/* 6. CAPACIDADES Y SERVICIOS
   --------------------------------------------------------- */

.capabilities {
    background: #f0ece7;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 50px;
    margin-bottom: 58px;
}

.section-heading h2 {
    max-width: 650px;
}

.heading-aside {
    max-width: 270px;
    color: #76696a;
    font-size: 13px;
    margin: 0 0 5px;
}

.capability-list {
    border-top: 1px solid #d7cfc9;
}

.capability {
    display: grid;
    grid-template-columns: 42px minmax(200px, 0.9fr) 1.1fr;
    gap: 30px;
    padding: 30px 0;
    border-bottom: 1px solid #d7cfc9;
    align-items: center;
}

.cap-number {
    align-self: start;
    padding-top: 5px;
    font-size: 11px;
    color: var(--gold);
    letter-spacing: 1px;
}

.cap-image {
    height: 260px;
    overflow: hidden;
}

.cap-content {
    padding: 10px 0 10px 16px;
    position: relative;
}

.cap-content .eyebrow {
    font-size: 9px;
    margin-bottom: 11px;
}

.cap-content h3 {
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 400;
    line-height: 1.15;
    color: var(--wine);
    margin: 0 0 14px;
}

.cap-content > p:not(.eyebrow) {
    color: #706466;
    font-size: 12px;
    line-height: 1.9;
    max-width: 520px;
    margin: 0;
    padding-right: 40px;
}

.circle-link {
    position: absolute;
    right: 0;
    bottom: 8px;
    width: 39px;
    height: 39px;
    border: 1px solid var(--gold);
    color: var(--wine);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 17px;
    transition: background 0.2s, color 0.2s;
}

.circle-link:hover {
    background: var(--wine);
    color: white;
}


/* 7. PROCESO DE ACOMPAÑAMIENTO
   --------------------------------------------------------- */

.process {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7%;
    align-items: center;
    background: var(--paper);
}

.process-image {
    height: 640px;
    position: relative;
    overflow: hidden;
}

.process-image img {
    object-position: center;
}

.image-note {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: var(--paper);
    padding: 13px 17px;
    color: var(--wine);
    font-family: var(--serif);
    font-size: 17px;
}

.process-content .eyebrow {
    margin-bottom: 25px;
}

.process h2 {
    font-size: clamp(44px, 4.5vw, 62px);
    margin-bottom: 20px;
}

.process-intro {
    font-size: 14px;
    color: #76696a;
    max-width: 420px;
    margin: 0 0 32px;
}

.steps {
    border-top: 1px solid #ded5d0;
}

.step {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 16px;
    padding: 19px 0;
    border-bottom: 1px solid #ded5d0;
}

.step > span {
    font-size: 10px;
    color: var(--gold);
    padding-top: 3px;
}

.step h3 {
    font-size: 14px;
    color: var(--wine);
    margin: 0 0 3px;
}

.step p {
    font-size: 12px;
    line-height: 1.75;
    color: #76696a;
    margin: 0;
    max-width: 420px;
}


/* 8. SECCIÓN SUBACUÁTICA
   --------------------------------------------------------- */

.underwater {
    position: relative;
    color: white;
    min-height: 900px;
    overflow: hidden;
    background: #071f2b;
}

.underwater-bg,
.underwater-overlay {
    position: absolute;
    inset: 0;
}

.underwater-bg img {
    object-position: center 55%;
    filter: saturate(0.8);
}

.underwater-overlay {
    background:
        linear-gradient(
            90deg,
            rgba(9, 27, 38, 0.91),
            rgba(9, 30, 43, 0.73) 58%,
            rgba(6, 27, 39, 0.38)
        ),
        linear-gradient(
            0deg,
            rgba(7, 21, 30, 0.6),
            transparent 60%
        );
}

.underwater-content {
    position: relative;
    z-index: 1;
    padding-top: 125px;
    padding-bottom: 100px;
}

.underwater .eyebrow {
    color: #f5eee9;
}

.underwater-kicker {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold-light);
    margin: 55px 0 14px;
}

.underwater h2 {
    font-size: clamp(58px, 8vw, 105px);
    margin: 0 0 28px;
}

.underwater h2 em {
    color: var(--gold-light);
}

.underwater-lead {
    font-size: 19px;
    line-height: 1.7;
    max-width: 680px;
    color: #fff;
}

.underwater-content > p:not(.eyebrow):not(.underwater-kicker):not(.underwater-lead) {
    max-width: 630px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.underwater small {
    display: block;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 11px;
    line-height: 1.8;
    margin-top: 22px;
}

.expertise-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 40px;
    margin-top: 58px;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    max-width: 790px;
}

.expertise-grid div {
    padding: 17px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
    font-size: 12px;
    color: #fff;
}

.expertise-grid span {
    display: inline-block;
    color: var(--gold-light);
    font-size: 10px;
    width: 42px;
}

.underwater-vertical {
    position: absolute;
    right: 5%;
    top: 50%;
    writing-mode: vertical-rl;
    letter-spacing: 2px;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.5);
}


/* 9. CONTACTO
   --------------------------------------------------------- */

.contact {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 8%;
    align-items: center;
    background: #f0ece7;
}

.contact-image {
    height: 520px;
    overflow: hidden;
}

.contact-image:hover img {
    transform: scale(1.03);
}

.contact-content {
    padding: 20px 0;
}

.contact-overline {
    font-family: var(--serif);
    font-size: 20px;
    color: var(--gold);
    margin: 52px 0 15px;
}

.contact h2 {
    font-size: clamp(42px, 4.8vw, 64px);
    margin-bottom: 23px;
}

.contact-content > p:not(.eyebrow):not(.contact-overline) {
    font-size: 13px;
    color: #76696a;
    max-width: 410px;
    margin: 0 0 30px;
}

.button-burgundy {
    background: var(--wine);
    color: white;
}

.button-burgundy span {
    color: var(--gold-light);
}

.button-burgundy:hover {
    background: var(--wine-mid);
}


/* 12. PANTALLAS MEDIANAS Y PORTÁTILES
   --------------------------------------------------------- */

@media (max-width: 1000px) {
    .section-pad {
        padding: 90px 6%;
    }

    .hero-content {
        margin-left: 8%;
        max-width: 680px;
    }

    .intro-grid {
        gap: 6%;
    }

    .capability {
        grid-template-columns: 30px minmax(170px, 0.8fr) 1.2fr;
        gap: 20px;
    }

    .cap-image {
        height: 230px;
    }

    .process {
        gap: 6%;
    }

    .process-image {
        height: 580px;
    }

    .contact {
        gap: 6%;
    }

    .underwater-vertical {
        display: none;
    }
}


/* 13. TABLETAS Y CELULARES
   --------------------------------------------------------- */

@media (max-width: 720px) {
    body {
        font-size: 14px;
    }

    .hero {
        min-height: 720px;
        height: 92svh;
    }

    .hero-content {
        margin: 80px 7% 30px;
    }

    .hero h1 {
        font-size: clamp(49px, 12vw, 73px);
        letter-spacing: -1.6px;
    }

    .hero-copy {
        font-size: 14px;
        max-width: 440px;
    }

    .hero-bottom {
        left: 7%;
        right: 7%;
        font-size: 7px;
        letter-spacing: 1px;
    }

    .hero-index {
        right: 6%;
        top: 43%;
    }


    .section-pad {
        padding: 75px 7%;
    }

    .intro-top {
        align-items: flex-start;
    }

    .section-number {
        font-size: 8px;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin: 20px 0 42px;
    }

    .intro h2,
    .section-heading h2,
    .process h2,
    .contact h2 {
        font-size: clamp(41px, 10vw, 58px);
    }

    .intro-copy {
        max-width: 560px;
    }

    .story-gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 250px 190px;
        gap: 10px;
    }

    .gallery-large {
        grid-row: span 2;
    }

    .gallery-small {
        height: 250px;
    }

    .gallery-wide {
        height: 190px;
    }

    .story-gallery figcaption {
        left: 12px;
        bottom: 12px;
        font-size: 10px;
    }

    .story-gallery figcaption span {
        margin-right: 5px;
    }

    .section-heading {
        display: block;
        margin-bottom: 35px;
    }

    .heading-aside {
        margin-top: 22px;
        max-width: 440px;
    }

    .capability {
        grid-template-columns: 30px 1fr;
        gap: 12px;
        padding: 23px 0;
    }

    .cap-number {
        grid-row: 1;
        grid-column: 1;
    }

    .cap-image {
        grid-column: 2;
        height: 230px;
    }

    .cap-content {
        grid-column: 2;
        padding: 8px 0;
    }

    .cap-content h3 {
        font-size: 27px;
    }

    .cap-content > p:not(.eyebrow) {
        padding-right: 0;
    }

    .circle-link {
        position: static;
        margin-top: 18px;
    }

    .process {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .process-image {
        height: 440px;
    }

    .process-content {
        max-width: 620px;
    }

    .underwater {
        min-height: auto;
    }

    .underwater-content {
        padding-top: 85px;
        padding-bottom: 80px;
    }

    .underwater-kicker {
        margin-top: 40px;
    }

    .underwater h2 {
        font-size: clamp(55px, 13vw, 83px);
    }

    .underwater-lead {
        font-size: 17px;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
        margin-top: 40px;
    }

    .expertise-grid div {
        padding: 14px 0;
    }

    .contact {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .contact-image {
        height: 340px;
    }

    .contact-overline {
        margin-top: 12px;
    }
}


/* 14. ACCESIBILIDAD: REDUCIR MOVIMIENTO
   --------------------------------------------------------- */

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (min-width: 1500px) {
    .hero-content {
        margin: 100px 0 30px 15%;
    }
    .hero-bottom {
        left: 15%;
    }
}


/* EXTRAS */
.contact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    gap: 20px;
    font-size: 15px;
}

.whatsapp-float {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float:hover {
    background: #1ebe5d;
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.whatsapp-float svg {
    display: block;
    width: 31px;
    height: 31px;
}

@media (max-width: 720px) {
    .whatsapp-float {
        right: 18px;
        bottom: 18px;
        width: 54px;
        height: 54px;
    }
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
    
}

@media (max-width: 1000px) {
    .hero-index{
        display:none;
    }
}
