/* =====================================================
   VERTI-GO — Hoja de estilos principal
   ===================================================== */

/* --- Variables ---------------------------------------- */
:root {
    --ink:          #1c2b39;
    --muted:        #5a6b7e;
    --line:         #e3e7ec;
    --accent:       #e1251b;   /* rojo de marca VERTI-GO */
    --accent-dark:  #b51a12;
    --blue:         #1b7fc4;
    --soft:         #f5f6f8;
    --white:        #fff;

    --font:         'Inter', system-ui, 'Segoe UI', Arial, sans-serif;
    --font-head:    'Archivo', 'Inter', system-ui, sans-serif;
    --radius:       8px;
    --shadow:       0 2px 12px rgba(15,39,66,.10);
    --transition:   .2s ease;
}

/* --- Reset básico ------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink);
    background: var(--white);
}

h1, h2, h3, h4 {
    margin: 0 0 .5em;
    line-height: 1.2;
    color: var(--ink);
    font-family: var(--font-head);
    letter-spacing: -.01em;
}

p { margin: 0 0 1em; }

a { color: var(--blue); }
a:hover { color: var(--accent); }

ul, ol { padding-left: 1.4em; }

img { max-width: 100%; height: auto; display: block; }

/* --- Contenedor --------------------------------------- */
.wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* --- Cabecera fija ------------------------------------ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 6px rgba(15,39,66,.06);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 1rem;
}

/* Wordmark */
.brand {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-name {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: .01em;
    color: var(--accent);
}

.brand-name span { color: var(--accent); }

.brand-sub {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 3px;
}

/* Nav */
.nav {
    display: flex;
    gap: .15rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav a {
    display: block;
    padding: .35rem .65rem;
    color: var(--ink);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition);
}

.nav a:hover,
.nav a:focus {
    background: var(--soft);
    color: var(--accent);
}

/* --- Hero --------------------------------------------- */
.hero {
    background: linear-gradient(120deg, #e9f2fa 0%, #f4f9fd 55%, #ffffff 100%);
    color: var(--ink);
    padding: 6rem 0 5rem;
    border-bottom: 1px solid var(--line);
}

.hero .eyebrow {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .9rem;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    letter-spacing: .01em;
    color: var(--accent);
    line-height: 1;
    margin-bottom: .35em;
}

.hero h1 span { color: var(--accent); }

.hero-solution {
    font-family: var(--font-head);
    font-size: clamp(1.05rem, 2.4vw, 1.45rem);
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink);
    margin: 0 0 .5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}
.hero-solution::before {
    content: "";
    width: 30px;
    height: 3px;
    background: var(--accent);
    flex-shrink: 0;
}

.hero .hero-sub {
    font-size: clamp(1.05rem, 2.5vw, 1.35rem);
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 1.1rem;
}

.hero .lead-p {
    max-width: 700px;
    font-size: 1.05rem;
    color: var(--muted);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

/* --- Botones ------------------------------------------ */
.btn {
    display: inline-block;
    padding: .65rem 1.5rem;
    border-radius: var(--radius);
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    line-height: 1.3;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--ink);
    border-color: rgba(28,43,57,.35);
}

.btn-outline:hover,
.btn-outline:focus {
    background: var(--soft);
    border-color: var(--ink);
    color: var(--ink);
}

.btn-accent {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    font-size: 1.05rem;
    padding: .8rem 2rem;
}

.btn-accent:hover,
.btn-accent:focus {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--white);
}

/* --- Secciones genéricas ------------------------------ */
section {
    padding: 5rem 0;
}

section.alt {
    background: var(--soft);
}

/* Eyebrows y títulos de sección */
.eyebrow-2 {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .6rem;
}

.s-title {
    font-size: clamp(1.6rem, 3.5vw, 2.25rem);
    font-weight: 800;
    color: var(--ink);
    margin-bottom: .45em;
}

.s-sub {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 680px;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.lead-p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--muted);
    max-width: 820px;
}

.lead-p + .lead-p {
    margin-top: .5rem;
}

/* --- Grids -------------------------------------------- */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }

/* --- Cards -------------------------------------------- */
.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem 1.35rem;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.card:hover {
    box-shadow: 0 6px 24px rgba(15,39,66,.14);
    transform: translateY(-2px);
    border-color: var(--accent);
}

.card .icon {
    font-size: 2rem;
    margin-bottom: .6rem;
    line-height: 1;
}

.card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .4em;
    color: var(--ink);
}

.card p {
    font-size: .9rem;
    color: var(--muted);
    margin: 0;
}

/* Card pequeña (resultados) */
.card.small {
    padding: 1rem 1.1rem;
    text-align: center;
    border-top: 3px solid var(--accent);
}

.card.small h4 {
    font-size: .9rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
    font-family: var(--font-head);
}

/* --- Stats -------------------------------------------- */
.stat {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stat .v {
    display: block;
    font-family: var(--font-head);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 900;
    color: var(--accent);
    line-height: 1.1;
    margin-bottom: .3rem;
}

.stat .l {
    display: block;
    font-size: .85rem;
    color: var(--muted);
    line-height: 1.4;
}

/* --- Beneficios: banda roja de impacto ---------------- */
#beneficios { background: var(--accent); }
#beneficios .eyebrow-2 { color: rgba(255,255,255,.85); }
#beneficios .s-title  { color: var(--white); }
#beneficios .lead-p   { color: rgba(255,255,255,.92); }
#beneficios .stat {
    background: rgba(255,255,255,.10);
    border-color: rgba(255,255,255,.28);
    box-shadow: none;
}
#beneficios .stat .v { color: var(--white); }
#beneficios .stat .l { color: rgba(255,255,255,.9); }

/* --- Socios ------------------------------------------- */
.partners {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.5rem;
}

.partner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: .45rem 1.1rem;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition), border-color var(--transition);
}

.partner:hover {
    box-shadow: 0 4px 14px rgba(15,39,66,.13);
    border-color: var(--accent);
}

.partner .p-name {
    font-size: .9rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
}

.partner .p-role {
    font-size: .75rem;
    color: var(--muted);
    line-height: 1.2;
}

.partner-note {
    margin-top: 2rem;
    padding: 1rem 1.25rem;
    background: var(--white);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: .9rem;
    color: var(--muted);
    max-width: 820px;
}

/* --- Lista de objetivos ------------------------------- */
.obj-list {
    list-style: none;
    padding: 0;
    counter-reset: obj;
    margin: 0 0 2.5rem;
}

.obj-list li {
    counter-increment: obj;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    font-size: .97rem;
    color: var(--muted);
}

.obj-list li:last-child { border-bottom: none; }

.obj-list li::before {
    content: counter(obj);
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 800;
    font-family: var(--font-head);
    margin-top: .1rem;
}

.resultados-titulo {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 1rem;
}

/* --- Sección contacto --------------------------------- */
.contact-box {
    max-width: 640px;
}

/* --- Footer ------------------------------------------- */
.site-footer {
    background: var(--ink);
    color: rgba(255,255,255,.7);
    padding: 3rem 0 2rem;
    font-size: .875rem;
}

.footer-brand {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: .02em;
    margin-bottom: 1rem;
}

.footer-brand span { color: var(--accent); }

.footer-eu {
    max-width: 780px;
    line-height: 1.65;
    margin-bottom: 1.5rem;
    color: rgba(255,255,255,.6);
}

.footer-copy {
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: 1.25rem;
    color: rgba(255,255,255,.4);
    font-size: .8rem;
}

/* --- Responsive --------------------------------------- */
@media (max-width: 900px) {
    .grid.c3 { grid-template-columns: repeat(2, 1fr); }
    .grid.c4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .site-header .wrap { height: auto; padding-top: .75rem; padding-bottom: .75rem; flex-direction: column; align-items: flex-start; }
    .nav { gap: .1rem; }
    .nav a { padding: .3rem .5rem; font-size: .8rem; }
    .hero { padding: 4rem 0 3.5rem; }
    .grid.c2,
    .grid.c3,
    .grid.c4 { grid-template-columns: 1fr; }
    .partners { flex-direction: column; }
    .partner { border-radius: var(--radius); }
    section { padding: 3.5rem 0; }
}
