

/* ============================= */
/* ANIMACIONES DE ENTRADA        */
/* ============================= */

.cn-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.5s cubic-bezier(.16,1,.3,1),
                transform 1.5s cubic-bezier(.16,1,.3,1);
}

.cn-reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1.5s cubic-bezier(.16,1,.3,1),
                transform 1.5s cubic-bezier(.16,1,.3,1);
}

.cn-reveal.visible,
.cn-reveal-right.visible {
    opacity: 1;
    transform: translate(0);
}

html { overflow-anchor: none; }

@media (max-width: 768px) {
    html { overflow-anchor: none; }
}

.cn-reveal-delay1 { transition-delay: 0.12s; }
.cn-reveal-delay2 { transition-delay: 0.24s; }
.cn-reveal-delay3 { transition-delay: 0.36s; }

/* ============================= */
/* UTILIDADES                    */
/* ============================= */

.cn-tag {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--verde);
    margin: 0 0 18px;
    display: block;
}

.cn-tag-light { color: rgba(242,242,242,0.55); }

.cn-num {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(80px, 11vw, 150px);
    font-weight: 300;
    color: rgba(70,114,53,0.12);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    flex-shrink: 0;
}

.cn-num-sm {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 40px;
    font-weight: 300;
    color: var(--verde);
    opacity: 0.4;
    line-height: 1;
    display: block;
    margin-bottom: 8px;
}

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

.cn-hero {
    min-height: 92vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;
    padding: 80px 7%;
    background: var(--bg);
    overflow: hidden;
}

.cn-hero-texto h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(56px, 7.5vw, 120px);
    font-weight: 300;
    line-height: 0.9;
    letter-spacing: -0.02em;
    color: var(--negro);
    margin: 0 0 28px;
}

.cn-hero-texto h1 em {
    font-style: italic;
    color: var(--verde);
}

.cn-bajada {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(15px, 1.5vw, 17px);
    line-height: 1.8;
    color: var(--gris-osc);
    max-width: 480px;
    margin: 0;
}

.cn-btn {
    display: inline-block;
    margin-top: 32px;
    padding: 13px 30px;
    background: var(--verde);
    color: var(--blanco);
    text-decoration: none;
    border-radius: 999px;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 20px rgba(70,114,53,0.28);
}

.cn-btn:hover {
    background: var(--negro);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(13,13,13,0.2);
}

.cn-btn-dark {
    background: var(--negro);
    box-shadow: 0 6px 20px rgba(13,13,13,0.22);
}

.cn-btn-dark:hover {
    background: var(--verde);
    box-shadow: 0 12px 30px rgba(70,114,53,0.3);
}

.cn-btn-outline {
    background: transparent;
    border: 1.5px solid rgba(242,242,242,0.38);
    color: var(--blanco);
    box-shadow: none;
}

.cn-btn-outline:hover {
    background: rgba(242,242,242,0.1);
    border-color: rgba(242,242,242,0.6);
    transform: translateY(-3px);
    box-shadow: none;
}

/* Imagen hero */
.cn-hero-img {
    position: relative;
    align-self: stretch;
}

.cn-hero-img img {
    width: 100%;
    height: 100%;
    min-height: 560px;
    object-fit: cover;
    border-radius: 160px 160px 32px 32px;
    display: block;
    box-shadow: 0 30px 70px rgba(13,13,13,0.18);
}

.cn-hero-badge {
    position: absolute;
    bottom: 36px;
    left: -28px;
    background: var(--negro);
    color: var(--blanco);
    border-radius: 22px;
    padding: 18px 26px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    box-shadow: 0 16px 40px rgba(13,13,13,0.24);
    animation: badgePop 0.6s 0.9s cubic-bezier(.22,.68,0,1.2) both;
}

@keyframes badgePop {
    from { opacity: 0; transform: scale(0.8) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.cn-hero-badge span {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.55;
}

.cn-hero-badge strong {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 38px;
    font-weight: 300;
    line-height: 1;
}

/* ============================= */
/* MARQUEE                       */
/* ============================= */

.cn-marquee {
    overflow: hidden;
    background: var(--negro);
    padding: 15px 0;
}

.cn-marquee-inner {
    display: flex;
    gap: 36px;
    white-space: nowrap;
    animation: marqueeScroll 24s linear infinite;
    width: max-content;
}

.cn-marquee-inner span {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(208,209,205,0.5);
}

.cn-marquee-inner .dot {
    color: var(--verde);
    font-size: 16px;
    letter-spacing: 0;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ============================= */
/* HISTORIA                      */
/* ============================= */

.cn-historia {
    padding: 100px 7%;
    background: var(--gris-cla);
    position: relative;
    overflow: hidden;
}

.cn-historia::before {
    content: "Chai Lai";
    position: absolute;
    bottom: -30px;
    right: -10px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(110px, 18vw, 240px);
    font-weight: 300;
    color: rgba(13,13,13,0.045);
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    line-height: 1;
}

.cn-historia-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 52px;
}

.cn-historia-body {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 44px;
    align-items: start;
}

.cn-historia-grande h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(32px, 4vw, 58px);
    font-weight: 300;
    line-height: 1.18;
    color: var(--negro);
    margin: 0 0 24px;
    letter-spacing: -0.01em;
}

.cn-historia-grande h2 em {
    font-style: italic;
    color: var(--verde);
}

.cn-historia-grande p {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--gris-osc);
    margin: 0;
}

.cn-historia-cards {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cn-hcard {
    background: rgba(242,242,242,0.85);
    border: 1px solid rgba(70,114,53,0.1);
    border-radius: 26px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.cn-hcard:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(13,13,13,0.1);
}

.cn-hcard h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 30px;
    font-weight: 300;
    color: var(--verde);
    margin: 0 0 12px;
}

.cn-hcard p {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    line-height: 1.75;
    color: var(--gris-osc);
    margin: 0;
}

.cn-hcard p em {
    font-style: italic;
    color: var(--verde);
    font-size: inherit;
}

/* ============================= */
/* ESENCIA                       */
/* ============================= */

.cn-esencia {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 580px;
    background: var(--verde);
    overflow: hidden;
}

.cn-esencia-left {
    padding: 90px 7%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cn-esencia-left h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(46px, 6vw, 88px);
    font-weight: 300;
    line-height: 0.95;
    color: var(--blanco);
    margin: 0 0 28px;
    letter-spacing: -0.01em;
}

.cn-esencia-left h2 em {
    font-style: italic;
    opacity: 0.72;
}

.cn-esencia-texto {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(14px, 1.3vw, 16px);
    line-height: 1.8;
    color: rgba(242,242,242,0.78);
    max-width: 500px;
    margin: 0;
}

.cn-esencia-texto em {
    font-style: italic;
    color: rgba(242,242,242,0.95);
}

.cn-esencia-right {
    background: rgba(13,13,13,0.2);
    padding: 90px 7%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
}

.cn-frase {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(242,242,242,0.12);
    border-radius: 28px;
    padding: 42px 36px;
    text-align: center;
}

.cn-frase h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(46px, 6vw, 82px);
    font-weight: 300;
    color: var(--blanco);
    margin: 0;
    letter-spacing: -0.01em;
}

.cn-frase p {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(242,242,242,0.45);
    margin: 10px 0 0;
}

.cn-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cn-pills span {
    padding: 9px 16px;
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(242,242,242,0.14);
    border-radius: 999px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: rgba(242,242,242,0.8);
    transition: background 0.25s ease, transform 0.25s ease;
    cursor: default;
}

.cn-pills span:hover {
    background: rgba(255,255,255,0.17);
    transform: translateY(-2px);
}

/* ============================= */
/* STATS + PILARES               */
/* ============================= */

.cn-stats {
    padding: 100px 7% 90px;
    background: var(--bg);
}

.cn-stats-header {
    margin-bottom: 64px;
}

.cn-stats-header h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(38px, 5vw, 72px);
    font-weight: 300;
    line-height: 1;
    color: var(--negro);
    margin: 0;
    letter-spacing: -0.01em;
}

.cn-stats-header h2 em {
    font-style: italic;
    color: var(--verde);
}

/* Números grandes */
.cn-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-bottom: 80px;
    border: 1px solid var(--gris-cla);
    border-radius: 28px;
    overflow: hidden;
}

.cn-stat {
    padding: 44px 36px;
    text-align: center;
    border-right: 1px solid var(--gris-cla);
    transition: background 0.3s ease;
    position: relative;
}

.cn-stat:last-child { border-right: none; }

.cn-stat:hover {
    background: rgba(70,114,53,0.05);
}

.cn-stat strong {
    display: block;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(52px, 6vw, 88px);
    font-weight: 300;
    color: var(--verde);
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    transition: transform 0.3s ease;
}

.cn-stat:hover strong {
    transform: scale(1.06);
}

.cn-stat span {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gris-osc);
}

/* Pilares */
.cn-pilares {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cn-pilar {
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(70,114,53,0.1);
    border-radius: 24px;
    padding: 34px 28px;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.cn-pilar:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 48px rgba(70,114,53,0.12);
    border-color: rgba(70,114,53,0.25);
}

.cn-pilar-icon {
    font-size: 32px;
    margin-bottom: 16px;
    line-height: 1;
}

.cn-pilar h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 22px;
    font-weight: 400;
    color: var(--negro);
    margin: 0 0 10px;
    letter-spacing: 0.01em;
}

.cn-pilar p {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    line-height: 1.7;
    color: var(--gris-osc);
    margin: 0;
}

/* ============================= */
/* CTA FINAL                     */
/* ============================= */

.cn-cta {
    background: var(--negro);
    padding: 120px 7%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cn-cta::before {
    content: "";
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(70,114,53,0.16) 0%, transparent 50%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.cn-cta-inner { position: relative; z-index: 1; }

.cn-cta h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(46px, 7.5vw, 110px);
    font-weight: 300;
    line-height: 0.95;
    color: var(--blanco);
    margin: 0 0 48px;
    letter-spacing: -0.02em;
}

.cn-cta h2 em {
    font-style: italic;
    color: rgba(197,217,187,0.82);
}

.cn-cta-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================ */
/* RESPONSIVE — TABLET                                          */
/* ============================================================ */

@media (max-width: 1000px) {
    .cn-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 80px 7% 60px;
        gap: 48px;
    }

    .cn-hero-img img { min-height: 420px; border-radius: 120px 120px 28px 28px; }
    .cn-hero-badge { left: 16px; }

    .cn-historia-body { grid-template-columns: 1fr; gap: 32px; }

    .cn-esencia { grid-template-columns: 1fr; }
    .cn-esencia-left, .cn-esencia-right { padding: 70px 7%; }

    .cn-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .cn-stat:nth-child(2) { border-right: none; }
    .cn-stat:nth-child(1),
    .cn-stat:nth-child(2) { border-bottom: 1px solid var(--gris-cla); }

    .cn-pilares { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================ */
/* RESPONSIVE — MÓVIL                                           */
/* ============================================================ */

@media (max-width: 650px) {
    .cn-hero { padding: 48px 5% 48px; gap: 36px; }
    .cn-hero-texto h1 { font-size: 48px; }
    .cn-hero-img img { min-height: 320px; border-radius: 90px 90px 22px 22px; }
    .cn-hero-badge { left: 0; bottom: 22px; padding: 14px 20px; border-radius: 16px; }
    .cn-hero-badge strong { font-size: 28px; }

    .cn-historia { padding: 72px 5%; }
    .cn-historia-header { gap: 12px; }
    .cn-hcard { padding: 24px; }
    .cn-hcard h3 { font-size: 24px; }

    .cn-esencia-left, .cn-esencia-right { padding: 56px 5%; }
    .cn-frase { padding: 32px 22px; }

    .cn-stats { padding: 72px 5% 60px; }
    .cn-stats-grid { grid-template-columns: repeat(2, 1fr); border-radius: 22px; }
    .cn-stat { padding: 32px 20px; }
    .cn-stat:nth-child(2) { border-right: none; }
    .cn-stat:nth-child(1),
    .cn-stat:nth-child(2) { border-bottom: 1px solid var(--gris-cla); }

    .cn-pilares { grid-template-columns: 1fr; gap: 14px; }

    .cn-cta { padding: 90px 5%; }
    .cn-cta h2 { font-size: clamp(40px, 11vw, 60px); }
    .cn-cta-btns { flex-direction: column; align-items: center; }
    .cn-btn { margin-top: 0; }
}