/* ============================================================
   AFER Greens / Valle de Gigantes — shared stylesheet
   Palette per DESIGN.md. Typography per SPEC.md §03 (Cormorant Garamond + Outfit).
   ============================================================ */
@import url("fonts.css");

:root {
    --amber:       #F7931E;
    --amber-light: #FBBD6E;
    --amber-glow:  #FFF3E0;
    --amber-text:  #9A5A0A;   /* amber for small text on light surfaces (5.0:1 on Snow) */
    --amber-pale:  #FDD9A6;   /* amber for small text on Cantera Teal (5.2:1) */

    --teal-dark:   #042E28;   /* Cantera Deep */
    --teal-deep:   #07433A;   /* Cantera Mid  */
    --teal:        #0D6558;   /* Cantera Teal */
    --teal-light:  #1A8A78;

    --sage:        #688F6A;
    --sage-mist:   #A8C4A9;   /* Agave Pale */
    --sage-pale:   #E8F0E8;   /* Agave Soft */

    --scs-green:      #78A22F;
    --scs-green-text: #567A1A;

    --white:    #FDFCFA;
    --snow:     #F7F5F0;
    --pearl:    #EDEAE3;
    --fog:      #D5D0C6;
    --stone:    #9B9585;
    --slate:    #6B6560;
    --charcoal: #3D3A35;
    --ink:      #1D1B18;

    --ff-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --ff-body:    'Outfit', -apple-system, 'Segoe UI', sans-serif;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out:   cubic-bezier(0.4, 0, 0.2, 1);

    --header-h: 72px;
    --gutter: clamp(24px, 6vw, 100px);
    --section-v: clamp(80px, 12vh, 140px);
    --wrap: 1400px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--ff-body);
    font-weight: 300;
    background-color: var(--teal-dark);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img, picture { display: block; max-width: 100%; }
img { height: auto; }
strong { font-weight: 600; }
button { font: inherit; }

/* Focus */
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 2px; }
.btn-primary:focus-visible, .btn-ghost:focus-visible, .nav-cta:focus-visible, .btn-submit:focus-visible { outline-offset: 4px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Skip link */
.skip-link {
    position: absolute; left: 16px; top: -100px; z-index: 2000;
    background: var(--amber); color: var(--ink);
    font-weight: 600; font-size: 0.9rem; padding: 12px 20px; border-radius: 100px;
    transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* Grain: static, low opacity, no blend mode */
body::after {
    content: '';
    position: fixed; inset: 0;
    background-image: url("grain.png"); background-repeat: repeat; background-size: 128px 128px;
    pointer-events: none; z-index: 9999; opacity: 0.035;
}

/* Custom cursor — only when JS confirms a fine pointer */
#cursor, #cursor-ring { display: none; }
@media (hover: hover) and (pointer: fine) {
    html.js-cursor body, html.js-cursor a, html.js-cursor button, html.js-cursor select, html.js-cursor summary { cursor: none; }
    html.js-cursor #cursor, html.js-cursor #cursor-ring { display: block; }
    #cursor {
        position: fixed; left: 0; top: 0; width: 12px; height: 12px;
        background: var(--amber); border-radius: 50%;
        pointer-events: none; z-index: 10000; mix-blend-mode: difference;
        transition: width 0.3s, height 0.3s;
    }
    #cursor-ring {
        position: fixed; left: 0; top: 0; width: 40px; height: 40px;
        border: 1px solid rgba(247,147,30,0.5); border-radius: 50%;
        pointer-events: none; z-index: 9998;
        transition: width 0.3s, height 0.3s, opacity 0.3s;
    }
    html.js-cursor.is-hovering #cursor { width: 20px; height: 20px; }
    html.js-cursor.is-hovering #cursor-ring { width: 60px; height: 60px; opacity: 0.6; }
}

/* Inline icons */
.ic { width: 1em; height: 1em; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ============================================================
   HEADER — single compact row on every viewport
   ============================================================ */
#site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 900;
    height: var(--header-h);
    background: rgba(4,46,40,0.85);
    border-bottom: 1px solid rgba(247,147,30,0);
    transition: background 0.4s var(--ease-in-out), border-color 0.4s;
}
#site-header.scrolled {
    background: rgba(4,46,40,0.94);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-bottom-color: rgba(247,147,30,0.12);
}
.nav-container {
    height: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 5vw, 60px);
    display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.logo a { display: block; }
.logo img {
    height: 48px; width: auto;
    filter: brightness(0) invert(1);
    transform-origin: left center;
    transition: transform 0.4s var(--ease-out-expo);
}
#site-header.scrolled .logo img { transform: scale(0.88); }
.nav-main { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 40px); }
.nav-main ul { list-style: none; display: flex; gap: clamp(16px, 2.5vw, 40px); }
.nav-main a:not(.nav-cta) {
    font-size: 0.88rem; font-weight: 500; letter-spacing: 0.08em;
    color: var(--sage-mist); position: relative; padding: 10px 0;
    transition: color 0.3s;
}
.nav-main a:not(.nav-cta)::after {
    content: ''; position: absolute; bottom: 4px; left: 0; width: 100%; height: 2px;
    background: var(--amber); border-radius: 1px;
    transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease-out-expo);
}
.nav-main a:not(.nav-cta):hover { color: var(--white); }
.nav-main a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta {
    font-size: 0.84rem; font-weight: 600; letter-spacing: 0.04em;
    background: var(--amber); color: var(--ink);
    padding: 10px 22px; border-radius: 100px;
    box-shadow: 0 2px 16px rgba(247,147,30,0.25);
    transition: background 0.3s, transform 0.25s var(--ease-out-expo);
    white-space: nowrap;
}
.nav-cta:hover { background: var(--amber-light); transform: translateY(-1px); }
.nav-toggle {
    display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
    background: transparent; border: 1px solid rgba(168,196,169,0.3); border-radius: 100px;
    color: var(--sage-mist); cursor: pointer;
}
.nav-toggle .ic { width: 22px; height: 22px; }
.nav-toggle .ic-x { display: none; }
.nav-toggle[aria-expanded="true"] .ic-menu { display: none; }
.nav-toggle[aria-expanded="true"] .ic-x { display: block; }

@media (max-width: 768px) {
    .nav-toggle { display: inline-flex; }
    .nav-main {
        position: fixed; inset: var(--header-h) 0 0 0;
        background: rgba(4,46,40,0.98);
        flex-direction: column; align-items: flex-start; justify-content: flex-start;
        padding: 32px 24px; gap: 8px;
        opacity: 0; visibility: hidden; transform: translateY(-8px);
        transition: opacity 0.3s, transform 0.3s var(--ease-out-expo), visibility 0.3s;
    }
    .nav-main.open { opacity: 1; visibility: visible; transform: none; }
    .nav-main ul { flex-direction: column; gap: 4px; width: 100%; }
    .nav-main ul a:not(.nav-cta) { display: block; font-family: var(--ff-display); font-size: 2rem; font-weight: 400; letter-spacing: 0; padding: 12px 0; border-bottom: 1px solid rgba(168,196,169,0.12); }
    .nav-main ul a:not(.nav-cta)::after { display: none; }
    .nav-main .nav-cta { margin-top: 24px; padding: 14px 32px; font-size: 0.95rem; }
    .nav-main .nav-cta.in-bar { display: none; }
}
@media (min-width: 769px) {
    .nav-main .nav-cta.in-menu { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative; min-height: 100dvh; min-height: 100vh;
    display: flex; align-items: flex-end; overflow: hidden;
    padding: calc(var(--header-h) + 32px) var(--gutter) clamp(48px, 8vh, 96px);
}
@supports (min-height: 100dvh) { .hero { min-height: 100dvh; } }
.hero-bg { position: absolute; inset: 0; }
.hero-bg picture, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; object-position: center; transform: scale(1.06); transform-origin: center; filter: saturate(0.85); }
.hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background:
        linear-gradient(to bottom, rgba(4,46,40,0.78) 0%, rgba(4,46,40,0) 180px),
        linear-gradient(to top, rgba(4,46,40,0.96) 0%, rgba(4,46,40,0.55) 40%, rgba(4,46,40,0.12) 100%),
        linear-gradient(to right, rgba(4,46,40,0.55) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 2; max-width: 900px; }
.hero-eyebrow {
    display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase;
    color: var(--amber); margin-bottom: 22px;
}
.hero-eyebrow::before { content: ''; display: inline-block; width: 28px; height: 1px; background: var(--amber); vertical-align: middle; margin-right: 12px; }
.hero h1 {
    font-family: var(--ff-display); font-weight: 300;
    font-size: clamp(3.4rem, 8.5vw, 8rem); line-height: 0.98; letter-spacing: -0.01em;
    color: var(--white); max-width: 14ch; text-wrap: balance; margin-bottom: 24px;
}
.hero h1 em { font-style: italic; font-weight: 400; color: var(--amber); }
.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.15rem); font-weight: 300; line-height: 1.7;
    color: var(--sage-mist); max-width: 520px; margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.hero-wa { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 500; color: var(--sage-mist); padding: 12px 6px; transition: color 0.3s; }
.hero-wa .ic { width: 18px; height: 18px; }
.hero-wa:hover { color: var(--white); }
.cert-strip {
    margin-top: 36px; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: rgba(168,196,169,0.9); line-height: 2;
}
.cert-strip a { color: var(--white); font-weight: 500; border-bottom: 1px solid rgba(247,147,30,0.5); transition: border-color 0.3s; }
.cert-strip a:hover { border-bottom-color: var(--amber); }
.cert-strip .sep { color: rgba(168,196,169,0.5); padding: 0 6px; }

/* Buttons */
.btn-primary, .btn-ghost {
    display: inline-block; font-size: 0.92rem; letter-spacing: 0.02em; border-radius: 100px; text-align: center;
}
.btn-primary {
    font-weight: 600; background: var(--amber); color: var(--ink); padding: 16px 38px;
    box-shadow: 0 4px 28px rgba(247,147,30,0.35);
    transition: transform 0.25s var(--ease-out-expo), box-shadow 0.3s, background 0.3s;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 40px rgba(247,147,30,0.5); background: var(--amber-light); }
.btn-ghost {
    font-weight: 500; color: var(--sage-mist); border: 1.5px solid rgba(168,196,169,0.4); padding: 15px 34px;
    transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.btn-ghost:hover { color: var(--white); border-color: var(--white); background: rgba(255,255,255,0.08); }

/* ============================================================
   SECTION CHROME
   ============================================================ */
main > section, .section-full { scroll-margin-top: var(--header-h); }
.section-full { padding: var(--section-v) 0; }
.inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.inner-narrow { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.section-label {
    display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase;
    color: var(--amber); margin-bottom: 16px;
}
.section-label::before { content: ''; display: inline-block; width: 28px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 12px; }
.section-title {
    font-family: var(--ff-display); font-weight: 400;
    font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: 1.02; letter-spacing: -0.005em;
    color: var(--white); text-wrap: balance;
}
.section-title em { font-style: italic; color: var(--amber); }
.section-intro { font-size: clamp(1rem, 1.3vw, 1.1rem); line-height: 1.7; color: var(--sage-mist); max-width: 520px; }
.light .section-title { color: var(--teal-dark); }
.light .section-title em { color: var(--amber-text); }
.light .section-label { color: var(--amber-text); }
.light .section-intro { color: var(--slate); }

/* Scroll reveal — only hidden when JS is present */
html.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo); }
html.js .reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ============================================================
   PRODUCTOS — featured melon + three rows
   ============================================================ */
#productos { background: var(--teal); }
#productos .section-intro { color: var(--sage-pale); }
#productos .section-label, .others .section-label { color: var(--amber-pale); }
.light .pending { color: var(--amber-text); }
.products-header {
    display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap;
    margin-bottom: clamp(40px, 6vh, 72px);
}
.products-header .section-intro { max-width: 380px; }
.products-layout {
    display: grid; grid-template-columns: 5fr 6fr; gap: clamp(24px, 3vw, 48px); align-items: start;
}
.product-featured {
    position: relative; display: block; overflow: hidden; border-radius: 6px;
    aspect-ratio: 4 / 5; max-height: 560px; background: var(--teal-dark);
}
.product-featured img {
    width: 100%; height: 100%; object-fit: cover;
    filter: saturate(0.8) brightness(0.8);
    transition: transform 0.8s var(--ease-out-expo), filter 0.6s;
}
.product-featured:hover img { transform: scale(1.05); filter: saturate(1) brightness(0.88); }
.product-featured .overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(4,46,40,0.95) 0%, rgba(4,46,40,0.3) 55%, transparent 100%);
    transition: background 0.5s;
}
.product-featured:hover .overlay { background: linear-gradient(to top, rgba(4,46,40,0.98) 0%, rgba(4,46,40,0.5) 60%, rgba(247,147,30,0.08) 100%); }
.product-featured .content { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(24px, 3vw, 40px); }
.product-num {
    font-family: var(--ff-display); font-weight: 300; font-size: 4rem; line-height: 1;
    color: rgba(247,147,30,0.35); margin-bottom: 6px;
    transition: color 0.4s, transform 0.5s var(--ease-out-expo);
}
.product-featured:hover .product-num { color: rgba(247,147,30,0.6); transform: translateY(-4px); }
.product-featured h3 {
    font-family: var(--ff-display); font-weight: 500; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.05;
    color: var(--white); margin-bottom: 10px;
}
.product-featured .spec { font-size: 0.92rem; color: var(--sage-mist); margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.product-tag {
    display: inline-block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--amber-light); border: 1px solid rgba(247,147,30,0.45); padding: 5px 14px; border-radius: 100px;
}
.product-rows { display: flex; flex-direction: column; }
.product-row {
    display: grid; grid-template-columns: 112px 1fr auto; gap: 20px; align-items: center;
    padding: 20px 0; border-top: 1px solid rgba(168,196,169,0.14);
    transition: background 0.3s;
}
.product-row:last-child { border-bottom: 1px solid rgba(168,196,169,0.14); }
.product-row .thumb {
    width: 112px; height: 112px; border-radius: 4px; overflow: hidden; background: var(--teal-dark);
}
.product-row .thumb img {
    width: 100%; height: 100%; object-fit: cover; filter: saturate(0.75) brightness(0.9);
    transition: transform 0.6s var(--ease-out-expo), filter 0.4s;
}
.product-row:hover .thumb img { transform: scale(1.06); filter: saturate(1) brightness(1); }
.product-row h3 {
    font-family: var(--ff-display); font-weight: 500; font-size: clamp(1.4rem, 2vw, 1.7rem); line-height: 1.1;
    color: var(--white); margin-bottom: 6px;
}
.product-row .spec { font-size: 0.88rem; color: var(--sage-pale); line-height: 1.5; font-variant-numeric: tabular-nums; }
.product-row .arrow {
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(168,196,169,0.3);
    display: flex; align-items: center; justify-content: center; color: var(--sage-mist);
    transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out-expo);
}
.product-row .arrow .ic { width: 18px; height: 18px; }
.product-row:hover .arrow { background: var(--amber); color: var(--ink); border-color: var(--amber); transform: translateX(4px); }

/* ============================================================
   CALENDARIO DE DISPONIBILIDAD
   ============================================================ */
#calendario { background: var(--teal-deep); }
.cal-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: 40px; }
.cal-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.cal-table th, .cal-table td { padding: 12px 6px; text-align: center; border-bottom: 1px solid rgba(168,196,169,0.12); }
.cal-table th { font-weight: 600; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage-mist); }
.cal-table th:first-child, .cal-table td:first-child { text-align: left; padding-left: 0; }
.cal-table td:first-child { font-family: var(--ff-display); font-weight: 500; font-size: 1.25rem; color: var(--white); white-space: nowrap; }
.cal-table td .cell { display: block; height: 22px; border-radius: 3px; background: rgba(168,196,169,0.08); }
.cal-table td .cell.on { background: var(--amber-light); }
.cal-table td .cell.dry { background: rgba(251,189,110,0.45); }
.cal-note { margin-top: 20px; font-size: 0.82rem; color: var(--sage-mist); display: flex; gap: 24px; flex-wrap: wrap; }
.cal-note span::before { content: ''; display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 8px; }
.cal-note .k-on::before { background: var(--amber-light); }
.cal-note .k-dry::before { background: rgba(251,189,110,0.45); }
.cal-scroll { overflow-x: auto; }
.pending { color: var(--amber-light); font-weight: 500; }

/* ============================================================
   NOSOTROS
   ============================================================ */
#nosotros { background: var(--white); color: var(--charcoal); }
.about-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.about-visual { position: sticky; top: calc(var(--header-h) + 32px); }
.about-img-wrap { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; }
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out-expo); }
.about-img-wrap:hover img { transform: scale(1.04); }
.about-img-wrap::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,67,58,0.45), transparent 50%); z-index: 1; }
.about-content .section-title { margin-bottom: 24px; }
.about-content p { font-size: clamp(1rem, 1.4vw, 1.1rem); line-height: 1.8; color: var(--charcoal); max-width: 520px; margin-bottom: 20px; }
.about-content p strong { color: var(--teal-dark); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; margin-top: 36px; border-top: 1px solid var(--pearl); padding-top: 28px; }
.fact dt { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--slate); margin-bottom: 6px; }
.fact dd { font-family: var(--ff-display); font-weight: 500; font-size: 1.5rem; line-height: 1.15; color: var(--teal-dark); }
.fact dd small { display: block; font-family: var(--ff-body); font-size: 0.85rem; font-weight: 300; color: var(--slate); margin-top: 4px; }

/* ============================================================
   CERTIFICACIONES
   ============================================================ */
#certificaciones { background: var(--snow); color: var(--charcoal); }
#certificaciones .section-label { color: var(--scs-green-text); }
#certificaciones .section-title em { color: var(--scs-green-text); }
.certs-inner { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); text-align: center; }
.certs-inner .section-label::before { display: none; }
.certs-intro { max-width: 640px; margin: 24px auto 56px; font-size: clamp(1rem, 1.3vw, 1.1rem); line-height: 1.7; color: var(--slate); }
.certs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-bottom: 48px; }
.cert-card {
    background: var(--white); padding: 40px 32px 32px; border-radius: 6px; border: 1px solid var(--pearl);
    box-shadow: 0 2px 20px rgba(4,46,40,0.04); text-align: center;
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}
.cert-card:hover { transform: translateY(-4px); box-shadow: 0 10px 40px rgba(4,46,40,0.08); }
.cert-mark {
    height: 64px; margin: 0 auto 24px; display: flex; align-items: center; justify-content: center;
    font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--scs-green-text);
    border: 1px dashed rgba(86,122,26,0.4); border-radius: 4px; padding: 0 16px;
}
.cert-mark img { height: 64px; width: auto; }
.cert-card h3 { font-family: var(--ff-display); font-weight: 500; font-size: 1.7rem; color: var(--teal-dark); margin-bottom: 8px; }
.cert-num { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); margin-bottom: 6px; }
.cert-num strong { color: var(--scs-green-text); font-weight: 600; letter-spacing: 0.06em; }
.cert-scope { font-size: 0.95rem; color: var(--slate); margin-bottom: 18px; }
.cert-verify {
    display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--scs-green-text); border-bottom: 1px solid transparent; padding: 10px 4px; min-height: 44px;
    transition: border-color 0.3s, color 0.3s;
}
.cert-verify:hover { color: var(--teal-dark); border-bottom-color: var(--scs-green-text); }
.cert-verify .ic { width: 14px; height: 14px; }
.certs-footer { font-size: 0.88rem; color: var(--slate); border-top: 1px solid var(--pearl); padding-top: 28px; max-width: 620px; margin: 0 auto; }
.certs-footer strong { color: var(--scs-green-text); }

/* ============================================================
   FAQ
   ============================================================ */
#faq { background: var(--snow); color: var(--charcoal); border-top: 1px solid var(--pearl); }
.faq-inner { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq-list { border-top: 1px solid var(--pearl); }
.faq-list details { border-bottom: 1px solid var(--pearl); }
.faq-list summary {
    list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
    padding: 22px 0; font-family: var(--ff-display); font-weight: 500; font-size: 1.35rem; line-height: 1.2; color: var(--teal-dark);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .ic { width: 20px; height: 20px; color: var(--amber-text); transition: transform 0.3s var(--ease-out-expo); }
.faq-list details[open] summary .ic { transform: rotate(45deg); }
.faq-list .answer { padding: 0 0 24px; max-width: 60ch; font-size: 1rem; line-height: 1.7; color: var(--charcoal); }
.faq-list .answer a { color: var(--amber-text); border-bottom: 1px solid rgba(176,106,16,0.4); }
.faq-list .answer p + p { margin-top: 12px; }

/* ============================================================
   CONTACTO
   ============================================================ */
#contacto { background: var(--teal-deep); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.contact-left .section-title { margin-bottom: 24px; }
.contact-tagline { font-size: 1.05rem; line-height: 1.7; color: var(--sage-mist); max-width: 520px; margin-bottom: 40px; }
.contact-details { display: flex; flex-direction: column; }
.contact-item { display: flex; align-items: flex-start; gap: 18px; padding: 20px 0; border-bottom: 1px solid rgba(168,196,169,0.12); }
.contact-item:last-child { border-bottom: none; }
.contact-icon {
    width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px;
    background: rgba(247,147,30,0.1); border: 1px solid rgba(247,147,30,0.25);
    display: flex; align-items: center; justify-content: center; color: var(--amber);
}
.contact-icon .ic { width: 20px; height: 20px; }
.contact-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sage-mist); margin-bottom: 4px; }
.contact-item-text p, .contact-item-text a { display: inline-block; font-size: 1.05rem; font-weight: 500; color: var(--white); line-height: 1.5; min-height: 24px; padding: 2px 0; transition: color 0.3s; }
.contact-item-text a:hover { color: var(--amber); }

.contact-form-wrap { background: rgba(255,255,255,0.04); border: 1px solid rgba(168,196,169,0.12); border-radius: 12px; padding: clamp(28px, 4vw, 56px); }
.form-title { font-family: var(--ff-display); font-weight: 500; font-size: 1.9rem; color: var(--white); margin-bottom: 28px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage-mist); margin-bottom: 8px; }
.form-group label .opt { color: var(--sage-mist); letter-spacing: 0.06em; text-transform: none; font-weight: 400; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; background: rgba(255,255,255,0.05); border: 1.5px solid rgba(168,196,169,0.22); border-radius: 8px;
    color: var(--white); font-family: var(--ff-body); font-size: 1rem; font-weight: 300; padding: 14px 18px; outline: none;
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
    appearance: none; -webkit-appearance: none;
}
.form-group select {
    padding-right: 46px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A8C4A9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 18px center;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--amber); background-color: rgba(247,147,30,0.06); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(168,196,169,0.75); }
.form-group select option { background: var(--teal-deep); color: var(--white); }
.form-privacy { font-size: 0.8rem; color: var(--sage-mist); line-height: 1.6; margin: 4px 0 20px; }
.form-privacy a { color: var(--white); border-bottom: 1px solid rgba(247,147,30,0.5); }
.btn-submit {
    width: 100%; font-weight: 600; font-size: 0.95rem; background: var(--amber); color: var(--ink); border: none;
    padding: 18px 40px; border-radius: 100px; cursor: pointer; box-shadow: 0 4px 28px rgba(247,147,30,0.3);
    transition: transform 0.25s var(--ease-out-expo), box-shadow 0.3s, background 0.3s;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(247,147,30,0.45); background: var(--amber-light); }
.btn-submit:disabled { opacity: 0.7; transform: none; cursor: progress; }
.form-msg { display: none; margin-top: 16px; font-size: 0.9rem; line-height: 1.6; color: var(--sage-pale); text-align: center; }
.form-msg.show { display: block; }
.form-msg a { color: var(--amber-light); border-bottom: 1px solid currentColor; }
#form-success { padding: 32px 16px; text-align: center; }
#form-success .check { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; background: var(--sage); display: flex; align-items: center; justify-content: center; color: var(--white); }
#form-success .check .ic { width: 30px; height: 30px; }
#form-success h3 { font-family: var(--ff-display); font-weight: 500; font-size: 1.9rem; color: var(--white); margin-bottom: 10px; }
#form-success p { color: var(--sage-pale); line-height: 1.6; max-width: 40ch; margin: 0 auto; }
#form-success h3:focus { outline: none; }

/* WhatsApp floating button */
.wa-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 950;
    width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 24px rgba(0,0,0,0.3);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity 0.3s, transform 0.3s var(--ease-out-expo), visibility 0.3s;
}
.wa-float.show { opacity: 1; visibility: visible; transform: none; }
.wa-float .ic { width: 28px; height: 28px; stroke-width: 1.8; }
.wa-float:hover { transform: translateY(-2px) scale(1.04); }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--teal-dark); border-top: 1px solid rgba(168,196,169,0.12); padding: clamp(48px, 7vh, 80px) var(--gutter) 32px; }
.footer-inner { max-width: var(--wrap); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(168,196,169,0.12); }
.footer-logo img { height: 56px; width: auto; filter: brightness(0) invert(1); opacity: 0.85; }
.footer-brand p { margin-top: 16px; font-size: 0.9rem; color: rgba(168,196,169,0.85); max-width: 32ch; line-height: 1.6; }
.footer-col h2 { font-family: var(--ff-body); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--amber-light); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.footer-col a, .footer-col address { display: inline-block; font-size: 0.92rem; color: rgba(168,196,169,0.9); padding: 6px 0; line-height: 1.5; font-style: normal; transition: color 0.3s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-top: 24px; font-size: 0.8rem; color: rgba(168,196,169,0.8); }
.footer-bottom strong { color: rgba(168,196,169,0.95); }

/* ============================================================
   PRODUCT PAGES
   ============================================================ */
.breadcrumb { padding: calc(var(--header-h) + 28px) var(--gutter) 0; max-width: var(--wrap); margin: 0 auto; }
.bc-inner { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage-mist); display: flex; flex-wrap: wrap; align-items: center; }
.bc-inner a { color: var(--sage-mist); padding: 6px 0; transition: color 0.3s; }
.bc-inner a:hover { color: var(--white); }
.bc-inner .sep { margin: 0 10px; color: var(--amber); }
.bc-inner [aria-current="page"] { color: var(--amber-light); }

.product-hero { padding: clamp(32px, 5vh, 64px) var(--gutter) clamp(60px, 8vh, 100px); max-width: var(--wrap); margin: 0 auto; }
.ph-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.ph-content h1 {
    font-family: var(--ff-display); font-weight: 300; font-size: clamp(3rem, 6.5vw, 5.8rem); line-height: 0.98; letter-spacing: -0.01em;
    color: var(--white); margin-bottom: 24px; text-wrap: balance;
}
.ph-content h1 em { font-style: italic; font-weight: 400; color: var(--amber); }
.ph-sub { font-size: clamp(1rem, 1.4vw, 1.12rem); line-height: 1.7; color: var(--sage-mist); margin-bottom: 32px; max-width: 520px; }
.ph-sub strong { color: var(--white); }
.ph-meta { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 44px); margin-bottom: 36px; }
.ph-meta > div, .ph-meta > a { display: flex; flex-direction: column; gap: 4px; }
.ph-meta strong { font-family: var(--ff-display); font-weight: 500; font-size: 1.6rem; color: var(--white); line-height: 1; font-variant-numeric: tabular-nums; }
.ph-meta span { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage-mist); }
.ph-meta a strong { border-bottom: 1px solid rgba(247,147,30,0.5); padding-bottom: 2px; transition: border-color 0.3s; }
.ph-meta a:hover strong { border-bottom-color: var(--amber); }
.ph-actions { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.ph-visual { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 8px; box-shadow: 0 20px 60px rgba(4,46,40,0.5); }
.ph-visual picture, .ph-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-visual img { filter: saturate(0.9); }

.section-pad { padding: var(--section-v) var(--gutter); scroll-margin-top: var(--header-h); }

/* Ficha técnica + logística: definition lists */
.specs { background: var(--teal-deep); }
.specs-inner { max-width: 1200px; margin: 0 auto; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 5vw, 80px); margin-top: 40px; }
.spec-list { border-top: 1px solid rgba(168,196,169,0.16); }
.spec-list h3 { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--amber-light); padding: 18px 0 6px; }
.spec-grid > * { min-width: 0; }
.spec-list .row { display: grid; grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1.6fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(168,196,169,0.12); }
.spec-list dd { min-width: 0; overflow-wrap: anywhere; }
.spec-list dt { font-size: 0.85rem; font-weight: 500; color: var(--sage-mist); line-height: 1.5; }
.spec-list dd { font-size: 0.95rem; line-height: 1.55; color: var(--white); }
.spec-list dd a { color: var(--amber-light); border-bottom: 1px solid rgba(251,189,110,0.4); }
.spec-note { margin-top: 24px; font-size: 0.85rem; color: var(--sage-mist); max-width: 60ch; }

/* Availability strip */
.season { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.season-months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; }
.season-months span { display: block; height: 18px; border-radius: 2px; background: rgba(168,196,169,0.1); }
.season-months span.on { background: var(--amber-light); }
.season-labels { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; font-size: 0.6rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--sage-mist); text-align: center; }
.season-labels span { min-width: 0; overflow: hidden; }
@media (max-width: 480px) { .season-labels span:nth-child(even) { visibility: hidden; } }

/* Presentaciones */
.presentations { background: var(--snow); color: var(--charcoal); }
.pres-inner { max-width: 1200px; margin: 0 auto; }
.pres-inner .section-intro { margin: 20px 0 40px; }
.pres-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-bottom: 40px; }
.pres-card {
    background: var(--white); border-radius: 6px; border: 1px solid var(--pearl); box-shadow: 0 2px 20px rgba(4,46,40,0.04);
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}
.pres-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(4,46,40,0.1); }
.pres-img { aspect-ratio: 16 / 10; background: var(--pearl); overflow: hidden; }
.pres-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out-expo); }
.pres-card:hover .pres-img img { transform: scale(1.04); }
.pres-body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pres-tag { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber-text); }
.pres-size { font-family: var(--ff-display); font-weight: 500; font-size: clamp(2rem, 3.4vw, 2.6rem); line-height: 1; color: var(--teal-dark); }
.pres-card p { font-size: 0.92rem; line-height: 1.6; color: var(--slate); }
.pres-states { display: flex; gap: 16px 40px; flex-wrap: wrap; border-top: 1px solid var(--pearl); padding-top: 24px; }
.ps-item { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; line-height: 1.5; color: var(--slate); }
.ps-item .ic { width: 18px; height: 18px; color: var(--amber-text); margin-top: 3px; }
.ps-item strong { color: var(--teal-dark); }

/* Usos */
.uses { background: var(--teal-dark); }
.uses-inner { max-width: 900px; margin: 0 auto; }
.uses-inner .section-intro { margin: 20px 0 32px; }
.uses-tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.uses-tags li { padding: 11px 20px; border: 1px solid rgba(168,196,169,0.25); border-radius: 100px; font-size: 0.88rem; font-weight: 400; color: var(--sage-pale); }

/* Otros productos */
.others { background: var(--teal); }
.others-inner { max-width: 1200px; margin: 0 auto; }
.others-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.other-card { display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: center; padding: 16px; border: 1px solid rgba(168,196,169,0.18); border-radius: 6px; transition: background 0.3s, border-color 0.3s; }
.other-card:hover { background: rgba(4,46,40,0.4); border-color: rgba(247,147,30,0.4); }
.other-card .thumb { width: 88px; height: 88px; border-radius: 4px; overflow: hidden; }
.other-card .thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8); }
.other-card h3 { font-family: var(--ff-display); font-weight: 500; font-size: 1.35rem; line-height: 1.1; color: var(--white); margin-bottom: 4px; }
.other-card p { font-size: 0.82rem; color: var(--sage-pale); }

/* CTA band */
.cta-band { background: var(--teal-deep); border-top: 1px solid rgba(168,196,169,0.12); }
.cta-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.cta-inner .section-title { margin-bottom: 16px; }
.cta-inner p { font-size: clamp(1rem, 1.3vw, 1.1rem); line-height: 1.7; color: var(--sage-mist); margin: 0 auto 32px; max-width: 52ch; }
.cta-inner .actions { display: flex; flex-wrap: wrap; gap: 14px 18px; justify-content: center; align-items: center; }

/* Simple pages (404, gracias, aviso) */
.page-simple { min-height: 70vh; padding: calc(var(--header-h) + 64px) var(--gutter) 96px; max-width: 760px; margin: 0 auto; }
.page-simple h1 { font-family: var(--ff-display); font-weight: 300; font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1; color: var(--white); margin-bottom: 24px; }
.page-simple h1 em { font-style: italic; font-weight: 400; color: var(--amber); }
.page-simple h2 { font-family: var(--ff-display); font-weight: 500; font-size: 1.7rem; color: var(--white); margin: 36px 0 12px; }
.page-simple p, .page-simple li { font-size: 1.05rem; line-height: 1.75; color: var(--sage-mist); margin-bottom: 16px; max-width: 65ch; }
.page-simple ul { padding-left: 20px; }
.page-simple a:not(.btn-primary):not(.btn-ghost) { color: var(--white); border-bottom: 1px solid rgba(247,147,30,0.5); }
.page-simple .actions { display: flex; flex-wrap: wrap; gap: 14px 18px; margin-top: 32px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .about-inner, .contact-inner, .faq-inner { grid-template-columns: 1fr; }
    .about-visual { max-width: 520px; }
    .ph-inner { grid-template-columns: 1fr; }
    .ph-visual { max-width: 520px; }
    .spec-grid { grid-template-columns: 1fr; }
    .others-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    :root { --header-h: 64px; }
    .logo img { height: 40px; }
    .hero { align-items: flex-start; padding-top: calc(var(--header-h) + 40px); }
    .hero h1 { font-size: clamp(3rem, 13vw, 4.4rem); }
    .products-layout { grid-template-columns: 1fr; }
    .product-featured { max-height: none; aspect-ratio: 4 / 5; }
    .product-row { grid-template-columns: 88px 1fr auto; gap: 14px; }
    .product-row .thumb { width: 88px; height: 88px; }
    .cal-table { min-width: 640px; }
    .contact-inner { display: flex; flex-direction: column-reverse; }
    .facts { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .hero-actions > .btn-primary, .hero-actions > .btn-ghost { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; }
    .product-row .arrow { display: none; }
    .product-row { grid-template-columns: 80px 1fr; }
    .product-row .thumb { width: 80px; height: 80px; }
    .ph-meta { gap: 20px 28px; }
}
@media (max-height: 700px) {
    .hero { align-items: flex-start; padding-top: calc(var(--header-h) + 32px); }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
    html.js .reveal { opacity: 1; transform: none; }
    .hero-bg img { transform: none; }
    html.js-cursor body, html.js-cursor a, html.js-cursor button, html.js-cursor select, html.js-cursor summary { cursor: auto; }
    html.js-cursor #cursor, html.js-cursor #cursor-ring { display: none; }
}

/* ============================================================
   PRINT — product pages are the printable deliverable
   ============================================================ */
@media print {
    body { background: #fff; color: var(--ink); }
    body::after, #site-header, #cursor, #cursor-ring, .wa-float, .skip-link, .nav-toggle, .others, .cta-band, .uses, footer .footer-grid, .ph-actions, .breadcrumb { display: none !important; }
    html.js .reveal { opacity: 1 !important; transform: none !important; }
    .product-hero, .section-pad { padding: 16px 0; }
    .ph-inner { grid-template-columns: 1fr; gap: 16px; }
    .ph-visual { aspect-ratio: auto; height: 220px; box-shadow: none; border-radius: 0; }
    .ph-visual img { position: static; height: 220px; width: auto; }
    .ph-content h1, .ph-sub, .ph-sub strong, .ph-meta strong, .ph-meta span, .section-title, .section-label, .spec-list dt, .spec-list dd, .spec-list h3, .spec-note, .pres-size, .pres-card p, .ps-item, .section-intro { color: #000 !important; }
    .specs, .presentations, .uses { background: #fff !important; }
    .spec-list, .spec-list .row { border-color: #bbb; }
    .spec-list dd a::after, .cert-verify::after { content: " (" attr(href) ")"; font-size: 0.75em; color: #444; }
    .season-months span { border: 1px solid #999; }
    .season-months span.on { background: #999; }
    .pres-card { box-shadow: none; border-color: #bbb; break-inside: avoid; }
    footer { border: none; padding: 16px 0; background: #fff !important; }
    .footer-bottom, .footer-bottom strong { color: #000; }
    .pending, .spec-list dd a, .pres-tag, .section-label { color: #000 !important; }
}
