/*
 * AXIS site-v2 base.css — estilos compartidos entre las 5 plantillas.
 * Define layout, tipografía base, header, footer, formularios y accesibilidad.
 * Los tokens de color/fuente específicos de cada plantilla se sobreescriben
 * en su archivo `{template}.css`.
 */

:root {
    --v2s-navy: #081D29;
    --v2s-green: #3ED338;
    --v2s-green-hover: #30A02A;
    --v2s-bg: #F7F7F7;
    --v2s-paper: #FFFFFF;
    --v2s-muted: #6B7280;
    --v2s-border: #E5E7EB;
    --v2s-radius: 12px;
    --v2s-radius-lg: 20px;
    --v2s-shadow: 0 8px 24px rgba(8, 29, 41, 0.06);
    --v2s-sans: 'Mulish', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --v2s-serif: 'Instrument Serif', Georgia, serif;
    --v2s-content-max: 1140px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--v2s-sans);
    background: var(--v2s-bg);
    color: var(--v2s-navy);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

/* Skip link (accesibilidad) */
.v2s__skip {
    position: absolute;
    top: -100px;
    left: 12px;
    padding: 10px 16px;
    background: var(--v2s-navy);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    z-index: 1000;
    transition: top .2s ease;
}
.v2s__skip:focus { top: 12px; outline: 2px solid var(--v2s-green); }

.v2s__container {
    width: 100%;
    max-width: var(--v2s-content-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Header ─────────────────────────────────────────────────────── */
.v2s__header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--v2s-border);
}
.v2s__header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 68px;
}
.v2s__brand {
    text-decoration: none;
    color: var(--v2s-navy);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.01em;
}
.v2s__nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.v2s__nav-link {
    color: var(--v2s-navy);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: background .15s ease;
}
.v2s__nav-link:hover { background: var(--v2s-bg); }
.v2s__cta-header {
    padding: 10px 22px;
    background: var(--v2s-green);
    color: var(--v2s-navy);
    border-radius: 999px;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    transition: background .15s ease;
    flex: none;
}
.v2s__cta-header:hover { background: var(--v2s-green-hover); color: #fff; }

@media (max-width: 800px) {
    .v2s__header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; }
    .v2s__nav { order: 3; width: 100%; justify-content: center; padding: 6px 0; }
    .v2s__nav-link { font-size: 13px; padding: 6px 10px; }
}

/* ─── Main + sections ────────────────────────────────────────────── */
.v2s__main { padding: 40px 0 80px; }
.v2s__section { padding: 60px 0; }
.v2s__section-alt { background: var(--v2s-paper); }

.v2s__eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--v2s-green-hover);
    margin: 0 0 12px;
}
.v2s__h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 20px; color: var(--v2s-navy); }
.v2s__h2 { font-size: clamp(24px, 3.5vw, 34px); font-weight: 800; letter-spacing: -0.015em; margin: 0 0 16px; color: var(--v2s-navy); }
.v2s__h3 { font-size: 20px; font-weight: 700; margin: 0 0 8px; color: var(--v2s-navy); }
.v2s__lead { font-size: clamp(16px, 2vw, 18px); color: var(--v2s-muted); line-height: 1.6; margin: 0 0 24px; max-width: 640px; }

/* ─── Botones ────────────────────────────────────────────────────── */
.v2s__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: var(--v2s-sans);
    transition: background .15s ease, transform .15s ease;
}
.v2s__btn--primary {
    background: var(--v2s-green);
    color: var(--v2s-navy);
}
.v2s__btn--primary:hover { background: var(--v2s-green-hover); color: #fff; }
.v2s__btn--outline {
    background: transparent;
    color: var(--v2s-navy);
    border: 1.5px solid var(--v2s-navy);
}
.v2s__btn--outline:hover { background: var(--v2s-navy); color: #fff; }
.v2s__btn:disabled { opacity: 0.5; cursor: not-allowed; }

.v2s__cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* ─── Hero ───────────────────────────────────────────────────────── */
.v2s__hero {
    padding: 80px 0 60px;
    background: linear-gradient(180deg, var(--v2s-paper) 0%, var(--v2s-bg) 100%);
}

/* ─── Cards genéricas ────────────────────────────────────────────── */
.v2s__card {
    background: var(--v2s-paper);
    border: 1px solid var(--v2s-border);
    border-radius: var(--v2s-radius);
    padding: 24px;
    box-shadow: var(--v2s-shadow);
}

/* ─── KPIs ──────────────────────────────────────────────────────── */
.v2s__kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 32px 0;
}
.v2s__kpi {
    text-align: center;
    padding: 24px 12px;
    background: var(--v2s-paper);
    border: 1px solid var(--v2s-border);
    border-radius: var(--v2s-radius);
}
.v2s__kpi-num {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    color: var(--v2s-green-hover);
    letter-spacing: -0.02em;
    line-height: 1;
}
.v2s__kpi-label {
    font-size: 13px;
    color: var(--v2s-muted);
    font-weight: 600;
    margin-top: 8px;
}

/* ─── Grid genérico ──────────────────────────────────────────────── */
.v2s__grid {
    display: grid;
    gap: 24px;
}
.v2s__grid--2 { grid-template-columns: 1fr; }
.v2s__grid--3 { grid-template-columns: 1fr; }
.v2s__grid--4 { grid-template-columns: 1fr; }
@media (min-width: 700px) {
    .v2s__grid--2 { grid-template-columns: repeat(2, 1fr); }
    .v2s__grid--3 { grid-template-columns: repeat(2, 1fr); }
    .v2s__grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
    .v2s__grid--3 { grid-template-columns: repeat(3, 1fr); }
    .v2s__grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ─── Cards de item (evento, programa, historia, aliado, convocatoria) */
.v2s__item-card {
    display: flex;
    flex-direction: column;
    background: var(--v2s-paper);
    border: 1px solid var(--v2s-border);
    border-radius: var(--v2s-radius);
    overflow: hidden;
    box-shadow: var(--v2s-shadow);
    text-decoration: none;
    color: var(--v2s-navy);
    transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.v2s__item-card:hover {
    box-shadow: 0 12px 32px rgba(8, 29, 41, 0.10);
    transform: translateY(-2px);
    border-color: var(--v2s-green);
}
.v2s__item-card-cover {
    aspect-ratio: 4/3;
    background: var(--v2s-bg);
    overflow: hidden;
}
.v2s__item-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.v2s__item-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.v2s__item-card-eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--v2s-green-hover);
}
.v2s__item-card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}
.v2s__item-card-summary {
    font-size: 14px;
    color: var(--v2s-muted);
    margin: 0;
    line-height: 1.5;
}
.v2s__item-card-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    color: var(--v2s-muted);
    margin-top: auto;
}

/* Sección con título centrado */
.v2s__section-title {
    text-align: center;
    margin-bottom: 40px;
}
.v2s__section-title .v2s__eyebrow { display: inline-block; }

/* ─── Prose (contenido largo) ───────────────────────────────────── */
.v2s__prose {
    max-width: 720px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.7;
    color: var(--v2s-navy);
}
.v2s__prose p { margin: 0 0 16px; }
.v2s__prose h2 { font-size: 24px; font-weight: 800; margin: 32px 0 12px; }
.v2s__prose h3 { font-size: 19px; font-weight: 700; margin: 24px 0 8px; }
.v2s__prose ul, .v2s__prose ol { padding-left: 22px; margin: 0 0 16px; }
.v2s__prose li { margin: 4px 0; }
.v2s__prose a { color: var(--v2s-green-hover); }

/* ─── Formularios ────────────────────────────────────────────────── */
.v2s__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 560px;
    margin: 0 auto;
}
.v2s__form-field label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--v2s-navy);
}
.v2s__form-field .v2s__form-hint {
    display: block;
    font-size: 12.5px;
    color: var(--v2s-muted);
    margin-bottom: 6px;
}
.v2s__form-field input[type="text"],
.v2s__form-field input[type="email"],
.v2s__form-field input[type="tel"],
.v2s__form-field input[type="number"],
.v2s__form-field select,
.v2s__form-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #D1D5DB;
    border-radius: 10px;
    font-size: 15px;
    color: var(--v2s-navy);
    font-family: var(--v2s-sans);
    background: #fff;
}
.v2s__form-field textarea {
    min-height: 120px;
    line-height: 1.5;
    resize: vertical;
}
.v2s__form-field input:focus,
.v2s__form-field textarea:focus,
.v2s__form-field select:focus {
    outline: none;
    border-color: var(--v2s-green);
    box-shadow: 0 0 0 3px rgba(62, 211, 56, 0.15);
}
.v2s__form-consent {
    display: flex;
    gap: 10px;
    padding: 16px;
    background: var(--v2s-bg);
    border: 1px solid var(--v2s-border);
    border-radius: 10px;
    font-size: 13px;
    color: var(--v2s-muted);
    line-height: 1.5;
}
.v2s__form-consent input { margin-top: 2px; accent-color: var(--v2s-green); }
.v2s__form-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    pointer-events: none;
}
.v2s__form-error {
    color: #E5484D;
    font-size: 13px;
    font-weight: 600;
    margin-top: 6px;
}
.v2s__form-success {
    padding: 16px;
    background: #EDFCEC;
    border: 1px solid var(--v2s-green);
    color: var(--v2s-green-hover);
    border-radius: 10px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* ─── Footer ─────────────────────────────────────────────────────── */
.v2s__footer {
    background: var(--v2s-navy);
    color: #fff;
    padding: 60px 0 0;
    margin-top: 80px;
}
.v2s__footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 40px;
}
@media (min-width: 700px) {
    .v2s__footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.v2s__footer-name { margin: 0 0 8px; font-weight: 800; font-size: 20px; }
.v2s__footer-tagline { margin: 0; font-size: 14px; color: rgba(255, 255, 255, 0.7); line-height: 1.5; }
.v2s__footer-heading { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 12px; color: rgba(255, 255, 255, 0.55); }
.v2s__footer-nav ul { list-style: none; margin: 0; padding: 0; }
.v2s__footer-nav li { margin-bottom: 6px; }
.v2s__footer-nav a { color: #fff; text-decoration: none; font-size: 14px; opacity: 0.85; }
.v2s__footer-nav a:hover { opacity: 1; text-decoration: underline; }
.v2s__footer-contact p { margin: 0 0 6px; font-size: 14px; opacity: 0.85; }
.v2s__footer-contact a { color: #fff; }
.v2s__footer-social-links { display: flex; flex-direction: column; gap: 6px; }
.v2s__footer-social-links a { color: #fff; text-decoration: none; font-size: 14px; opacity: 0.85; }
.v2s__footer-social-links a:hover { opacity: 1; text-decoration: underline; }
.v2s__footer-credit {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}
.v2s__footer-credit a { color: rgba(255, 255, 255, 0.85); text-decoration: none; font-weight: 700; }
.v2s__footer-credit a:hover { color: #fff; text-decoration: underline; }

/* ─── Badge de fecha (evento, convocatoria) ─────────────────────── */
.v2s__date-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--v2s-green);
    color: var(--v2s-navy);
    border-radius: 10px;
    padding: 6px 10px;
    min-width: 56px;
    font-family: var(--v2s-sans);
}
.v2s__date-badge-day { font-size: 22px; font-weight: 800; line-height: 1; }
.v2s__date-badge-month { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 2px; }

/* Utilidades */
.v2s__center { text-align: center; }
.v2s__mt-lg { margin-top: 40px; }
.v2s__mb-lg { margin-bottom: 40px; }
