/*
 * Afín — shared base styles
 * Used by: index.html (ES), en/index.html (EN)
 * Contains: variables, reset, nav, typography, container, footer
 */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Verde de marca */
    --primary:       #16a34a;
    --primary-dark:  #15803d;
    --primary-light: #eef7f0;

    /* Acento cálido (wave section, highlights específicos) */
    --accent:        #f59e0b;

    /* Tipografía */
    --display:       'Playfair Display', Georgia, serif;
    --font-body:     'DM Sans', system-ui, sans-serif;

    /* Texto */
    --dark:          #0e1f11;
    --gray-700:      #2d4535;
    --gray-600:      #3a5240;
    --gray-400:      #6b8a72;

    /* Superficies (verde tintado, no blanco puro) */
    --gray-50:       #f7fbf8;
    --gray-100:      #eef7f0;
    --gray-200:      #d5ead9;
    --gray-300:      #b8dfc1;

    /* Misc */
    --radius:        14px;
    --shadow:        0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md:     0 4px 16px rgba(0,0,0,.07);
    --shadow-lg:     0 12px 40px rgba(0,0,0,.1);
}

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    color: var(--dark);
    background: var(--gray-50);
    line-height: 1.6;
}

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

/* ── Nav ─────────────────────────────────────────────────────────────────── */
nav {
    position: sticky; top: 0; z-index: 100;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    padding: 1.15rem 2rem;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    display: flex; align-items: center; gap: .55rem;
    font-family: var(--display);
    font-size: 1.5rem; font-weight: 700; color: var(--primary);
    text-decoration: none; letter-spacing: -.02em;
}
.nav-logo-icon {
    width: 30px; height: 30px; flex-shrink: 0;
    background: var(--primary); border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
}
.nav-logo-icon svg { width: 18px; height: 18px; color: white; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a:not(.btn-nav) {
    font-size: .9rem; font-weight: 500; color: var(--gray-600);
    text-decoration: none; transition: color .15s;
}
.nav-links a:not(.btn-nav):hover { color: var(--dark); }
.nav-links a.nav-active { color: var(--primary); font-weight: 600; }
.btn-nav {
    background: var(--primary); color: white;
    padding: .5rem 1.2rem; border-radius: 8px;
    font-size: .9rem; font-weight: 600; text-decoration: none;
    transition: background .15s; white-space: nowrap;
}
.btn-nav:hover { background: var(--primary-dark); color: white; }
.nav-lang {
    font-size: .82rem; font-weight: 600; opacity: .55;
    color: var(--gray-600); text-decoration: none;
    letter-spacing: .03em; transition: opacity .15s;
}
.nav-lang:hover { opacity: 1; }

/* ── Layout ──────────────────────────────────────────────────────────────── */
section { padding: 5rem 2rem; }
.container { max-width: 1080px; margin: 0 auto; }

/* ── Typography commons ──────────────────────────────────────────────────── */
.section-label {
    font-size: 11px; font-weight: 700; letter-spacing: 3.5px;
    text-transform: uppercase; color: var(--primary);
    margin-bottom: 12px;
}
.section-title {
    font-family: var(--display);
    font-size: clamp(1.75rem, 3.2vw, 2.6rem);
    font-weight: 700; letter-spacing: -.01em;
    line-height: 1.15; margin-bottom: 1rem;
    font-optical-sizing: auto;
}
.section-sub {
    font-size: 1.05rem; color: var(--gray-600);
    max-width: 540px;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer {
    background: var(--dark); color: #9ca3af;
    text-align: center; padding: 2rem;
    font-size: .85rem;
}
footer a { color: #9ca3af; }
footer a:hover { color: white; }

/* ── Editorial steps (How it works) ─────────────────────────────────────── */
.how-bg { background: var(--gray-50); }
.steps-editorial {
    display: flex; flex-direction: column;
    margin-top: 3rem; max-width: 680px;
}
.step-editorial {
    display: grid; grid-template-columns: 4rem 1fr; gap: 2rem;
    align-items: start; padding: 2.25rem 0;
    border-bottom: 1px solid var(--gray-200);
}
.step-editorial:first-child { padding-top: 0; }
.step-editorial:last-child { border-bottom: none; padding-bottom: 0; }
.step-num-large {
    font-family: var(--display); font-size: 3.5rem; font-weight: 700;
    color: var(--gray-200); line-height: 1; text-align: right;
    margin-top: -.4rem; user-select: none; font-optical-sizing: auto;
}
.step-editorial h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: .4rem; line-height: 1.35; }
.step-editorial p  { font-size: .92rem; color: var(--gray-600); line-height: 1.6; }

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media(max-width:700px) {
    nav { padding: .75rem 1.25rem; }
    .nav-link-hide { display: none; }
    .nav-links { gap: .75rem; }
    .step-editorial { grid-template-columns: 2.5rem 1fr; gap: 1.25rem; }
    .step-num-large { font-size: 2.5rem; }
}
