/* ===========================================================
   v3/shared.css — Sistema de diseño basado en Figma "chomi"
   =========================================================== */

/* ===== TOKENS ===== */
:root {
    /* Colores */
    --primary:       #1A3C28;
    --primary-h:     #264F36;
    --accent:        #279d57;
    --accent-light:  #F6EDD8;
    --bg:            #FFFFFF;
    --bg-soft:       #f7f7f7;
    --bg-green:      #EEF5EE;
    --bg-dark:       #0F1E15;
    --border:        #E2DFD5;
    --text:          #111827;
    --text-muted:    #6B7280;
    --verde-oscuro:    #1B3A1A;
    --verde-principal: #2D6A1E;
    --verde-boton:     #29781E;
    --verde-organico:  #044F0E;
    --verde-navbar:    #407933;
    --dorado:          #C8A455;

    /* Ancho de sección: cambia estos 3 valores para ajustar el
       tamaño de TODAS las secciones que usan un *-wrap (proj-wrap,
       acomp-wrap, etc.) */
    --sec-max-w:     1320px;
    --sec-pad-x:     40px;
    --sec-pad-y:     100px;

    /* Radios y sombras */
    --r-xm:          4px;
    --r-sm:          8px;
    --r-md:          16px;
    --r-lg:          24px;
    --sh-sm:         0 1px 4px rgba(0,0,0,.06);
    --sh-md:         0 4px 20px rgba(0,0,0,.08);
    --sh-lg:         0 8px 40px rgba(0,0,0,.12);

    /* ── Tipografía ──
       --font-titulo : títulos h1–h3, headings de sección
       --font-texto  : párrafos, botones, nav, etiquetas, UI en general */
    --font-titulo: var(--font-texto);
    --font-texto:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-texto); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== NAVBAR ===== */
.v3-nav {
    position: fixed; top: 0; left: 0; right: 0;
    height: 70px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 52px;
    z-index: 1000;
    background: var(--bg-dark);
    transition: background .3s, box-shadow .3s;
}
.v3-nav.scrolled { background: #fff; box-shadow: 0 1px 0 var(--border); }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { 
    height: 55px; 
    width: auto; 
}
.nav-logo img.nav-logo-text {
    height: 43px;   /* ajusta este número hasta que se vea proporcional al ícono */
    width: auto;
}

.nav-links { 
    display: flex; 
    align-items: center; 
    gap: 36px; }
.nav-links a {
    font-family: var(--font-texto); 
    font-size: 14px; 
    font-weight: 500;
    letter-spacing: .01em;
    color: #fff;
    transition: color .25s;
}
.nav-links a:hover,
.nav-links a.active { 
    color: var(--accent); 
}
.v3-nav.scrolled .nav-links a { 
    color: var(--text); 
}
.v3-nav.scrolled .nav-links a:hover,
.v3-nav.scrolled .nav-links a.active { 
    color: var(--primary); 
}
.nav-cta-btn {
    background: #2d7943 !important;
    color: #fff !important;
    padding: 7px 17px;
    border-radius: var(--r-sm);
    font-family: var(--font-texto);
    font-size: 14px; 
    font-weight: 500;
    transition: background .25s, transform .2s;
}
.nav-cta-btn:hover { background: var(--primary-h) !important; transform: translateY(-1px); }
.nav-cta-btn.disabled { display: none !important; }

/* Hamburger (móvil) */
.nav-toggle {
    display: none; background: none; border: none; cursor: pointer;
    width: 40px; height: 40px; flex-direction: column; justify-content: center;
    align-items: center; gap: 5px;
}
.nav-toggle span {
    display: block; width: 26px; height: 2px;
    background: #fff; border-radius: 2px; transition: all .3s;
}
.v3-nav.scrolled .nav-toggle span { background: var(--text); }

/* ===== TIPOGRAFÍA DE SECCIÓN =====
   .eyebrow    → etiqueta pequeña sobre el título (Inter, mayúsculas, dorado)
   .sec-heading → título principal de sección h2 (Georgia)
   .sec-body    → párrafo descriptivo bajo el título (Inter, gris)
   ========================================================= */
.eyebrow {
    display: block; 
    font-family: var(--font-texto);
    font-size: 12px; 
    font-weight: 700; 
    letter-spacing: 3px;
    text-transform: uppercase; 
    color: var(--bg-soft); 
    margin-bottom: 14px;
}
.eyebrow--white { color: #fff; }
.sec-heading {
    font-family: var(--font-titulo); 
    font-size: 38px; 
    font-weight: 700;
    color: var(--text); 
    line-height: 1.2; 
    margin-bottom: 20px;
}
.sec-heading--white { color: #fff; }
.sec-body { font-family: var(--font-texto); font-size: 16px; color: var(--text-muted); line-height: 1.75; max-width: 620px; }
.sec-body--white { color: rgba(255,255,255,.75); }

/* ===== PAGE HERO BANNER (páginas internas) ===== */
.page-hero {
    height: 480px; 
    position: relative;
    display: flex; 
    align-items: center; 
    justify-content: flex-start; 
    text-align: left;
    overflow: hidden;
}
.page-hero-bg { position: absolute; 
    inset: 0; 
    background-size: cover; 
    background-position: center; 
}
.page-hero-ov {
    position: absolute; inset: 0;
    background: linear-gradient(to left, rgba(8,20,12,.01) 0%, rgba(8,20,12,.58) 100%);
}
.page-hero-cnt { 
    position: relative; 
    z-index: 2; 
    padding: 0 24px; 
}
.page-hero h1 {
    font-family: var(--font-titulo); 
    font-size: 56px; 
    font-weight: 600;
    color: #fff; 
    line-height: 1.1; 
    margin: 12px 0;
}
.page-hero p { font-family: var(--font-texto); 
    font-size: 17px; 
    color: rgba(255,255,255,.8); 
    max-width: 540px; 
    margin: 12px 0 0; 
    line-height: 1.6; }

/* ===== BOTONES ===== */
.btn-prim {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--primary); color: #fff;
    font-family: var(--font-texto); font-size: 14px; font-weight: 600;
    padding: 13px 28px; border-radius: var(--r-sm); border: none; cursor: pointer;
    transition: background .25s, transform .2s, box-shadow .2s; text-decoration: none;
}
.btn-prim:hover { background: var(--primary-h); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,60,40,.28); color: #fff; }
.btn-out {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: #fff;
    font-family: var(--font-texto); font-size: 14px; font-weight: 600;
    padding: 12px 27px; border-radius: var(--r-sm); border: 1.5px solid rgba(255,255,255,.7);
    cursor: pointer; transition: all .25s; text-decoration: none;
}
.btn-out:hover { background: rgba(255,255,255,.15); border-color: #fff; color: #fff; }
.btn-out-dark {
    color: var(--primary); border-color: var(--primary); background: transparent;
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-texto); font-size: 14px; font-weight: 600;
    padding: 12px 27px; border-radius: var(--r-sm); border-width: 1.5px; border-style: solid;
    cursor: pointer; transition: all .25s; text-decoration: none;
}
.btn-out-dark:hover { background: var(--primary); color: #fff; }
.btn-wa {
    display: inline-flex; align-items: center; gap: 12px;
    background: #25D366; color: #fff;
    font-family: var(--font-texto); font-size: 15px; font-weight: 700;
    padding: 15px 32px; border-radius: var(--r-sm); border: none; cursor: pointer;
    transition: background .25s, transform .2s, box-shadow .2s; text-decoration: none;
}
.btn-wa:hover { background: #1eb659; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,.35); color: #fff; }
.btn-wa i { font-size: 20px; }

/* ===== CONTENEDOR ===== */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== FOOTER ===== */
footer.v3-footer { 
    background: var(--bg-dark); 
    color: rgba(255,255,255,.75); 
    padding: 60px 52px 0; }
.footer-wrap { 
    max-width: 1200px; 
    margin: 0 auto; 
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.3fr 1fr;
    gap: 48px;
    padding-bottom: 35px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-grid.footer-grid-2 { grid-template-columns: 2fr 1fr; }
.footer-brand img { 
    height: 80px; 
    width: auto; 
    margin-bottom: 10px; 
}
.footer-brand p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.55); max-width: 300px; margin-bottom: 24px; }
.social-row { display: flex; gap: 10px; }
.social-row a {
    width: 38px; height: 38px;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.65); font-size: 15px; transition: all .25s;
}
.social-row a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer-col h4 {
    font-family: var(--font-texto); font-size: 12px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase; color: #fff; margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,.55); transition: color .25s; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-col ul li:has(span.disabled) { display: none; }
.footer-col p { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.65; margin-bottom: 16px; }
.news-form { display: flex; gap: 8px; flex-wrap: wrap; }
.news-form input {
    flex: 1; min-width: 140px;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--r-sm); padding: 10px 14px; color: #fff; font-size: 14px;
    font-family: 'Inter', sans-serif; outline: none; transition: border-color .25s;
}
.news-form input::placeholder { color: rgba(255,255,255,.35); }
.news-form input:focus { border-color: var(--accent); }
.news-form button {
    background: var(--accent); 
    color: #fff; 
    border: none;
    padding: 10px 16px; 
    border-radius: var(--r-sm);
    font-family: var(--font-texto); 
    font-size: 13px; 
    font-weight: 700;
    cursor: pointer; 
    white-space: nowrap; 
    transition: background .25s;
}
.news-form button:hover { 
    background: #f7f7f7; 
    color: #2D6A1E;
    
}
.footer-bar {
    padding: 22px 0; display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; color: rgba(255,255,255,.38); flex-wrap: wrap; gap: 8px;
}
.footer-certs { display: flex; gap: 10px; }
.footer-certs span { padding: 3px 12px; background: rgba(255,255,255,.07); border-radius: 20px; font-size: 11px; }

/* ===== WHATSAPP FLOTANTE ===== */
.wa-float {
    position: fixed; bottom: 28px; right: 28px;
    width: 58px; height: 58px; background: #25D366;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: #fff;
    box-shadow: 0 4px 20px rgba(37,211,102,.42); z-index: 998;
    transition: transform .3s, box-shadow .3s;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.52); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .v3-nav { padding: 0 28px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    footer.v3-footer { padding: 60px 28px 0; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .v3-nav { padding: 0 20px; }
    .page-hero { height: 380px; }
    .page-hero h1 { font-size: 38px; }
    .sec-heading { font-size: 28px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bar { flex-direction: column; text-align: center; }
}
/* ===== CLASES DE TEXTO REUTILIZABLES =====
   .sec-label   → etiqueta dorada pequeña sobre el título (Inter)
   .sec-title   → título h2/h3 de sección (Georgia)
   .sec-sub     → párrafo descriptivo bajo el título (Inter, gris)
   ============================================================ */
.sec-label {
    display: block;
    color: var(--dorado);
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-family: var(--font-texto);
    margin-bottom: 8px;
}
.sec-title {
    font-family: var(--font-titulo);
    font-size: 28px;
    font-weight: 700x;
    color: var(--verde-oscuro);
    line-height: 1.2;
    margin: 4px 0 8px;
}
.sec-title--white  { color: #fff; }
.sec-sub {
    color: var(--texto-gris);
    font-family: var(--font-texto);
    font-size: 15px;
    line-height: 1.75;
    margin-top: 4px;
}
.sec-sub--white { color: rgba(255,255,255,0.70); }
.text-center { text-align: center; }
.text-coop-green { color: var(--verde-principal); font-weight: 600; }
