/* Índice Brand Tokens (Marketing 2025)
   Este archivo redefine tokens y componentes base para alinear la landing al ERP.
*/
:root {
    /* Paleta requerida */
    --primary: #1f4d9f;
    --logo-yellow: #ffd650;
    --logo-green: #2bb673;
    --logo-red: #e74c3c;
    --violet: #6f42c1;
    /* para Fintech */

    /* Superficies */
    --bg-surface: #f9fafb;
    --bg-card: #ffffff;

    /* Geometría y elevación */
    --radius: 16px;
    --shadow: 0 2px 10px rgba(15, 23, 42, 0.06);

    /* Mapear a variables existentes en el sitio */
    --brand: var(--primary);
    --seasalt: var(--bg-surface);
    --card: var(--bg-card);

    /* Indice semantic system */
    --indice-ink: #111827;
    --indice-violet: #5b2d90;
    --indice-blue: #1f6feb;
    --indice-amber: #f2b736;
    --indice-emerald: #1f9d79;
    --indice-green: #2bb673;
    --indice-silver: #b9c0cc;
    --indice-gold: #d4a93b;
    --indice-cream: #f6f4ef;

    --font-body: "Manrope", "Segoe UI", sans-serif;
    --font-display: "Fraunces", "Times New Roman", serif;
}

/* Fuente global (ya se carga Inter desde header) */
body {
    font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--indice-ink);
    letter-spacing: -0.01em;
}

/* Componentes reutilizables */
.card-min {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.btn-brand {
    background: var(--brand);
    border-color: var(--brand);
}

.btn-ghost {
    border-color: var(--brand);
    color: var(--brand);
}

.lead-soft {
    color: var(--muted, #6b7280);
}

/* Píldora de pilar */
.pilar-icon {
    border-radius: 14px;
}

/* Hero y superficies */
.bg-surface {
    background: var(--bg-surface) !important;
}

.bg-card {
    background: var(--bg-card) !important;
}

/* Accesibilidad: foco visible coherente */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* Hero illustration styling */
.hero-illustration {
    max-height: 420px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    object-fit: contain;
}

/* Homepage: Indice web architecture */
.page-index .indice-hero {
    background: radial-gradient(circle at top left, rgba(91,45,144,0.12), transparent 45%),
                radial-gradient(circle at top right, rgba(31,111,235,0.12), transparent 50%),
                linear-gradient(180deg, #fff 0%, var(--indice-cream) 100%);
    padding: 96px 0 72px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.page-index .hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: rgba(17, 24, 39, 0.6);
    font-weight: 600;
}

.page-index .hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: rgba(17, 24, 39, 0.7);
    font-weight: 600;
}

.page-index .hero-proof span {
    background: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    animation: fade-up 0.8s ease both;
}

.page-index .hero-proof span:nth-child(1) { animation-delay: 0.1s; }
.page-index .hero-proof span:nth-child(2) { animation-delay: 0.2s; }
.page-index .hero-proof span:nth-child(3) { animation-delay: 0.3s; }

.page-index .hero-panel {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
    animation: rise-in 0.9s ease both;
}

.page-index .hero-panel-head {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    margin-bottom: 16px;
}

.page-index .hero-panel-body h3 {
    color: #f8fafc;
    margin-bottom: 12px;
}

.page-index .hero-panel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.page-index .mini-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 12px;
    text-align: center;
    font-weight: 600;
}

.page-index .indice-section {
    padding: 80px 0;
}

.page-index .system-card,
.page-index .panel-card,
.page-index .learn-card,
.page-index .module-block,
.page-index .kpi-card,
.page-index .growth-steps {
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.page-index .system-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-index .system-list li {
    padding: 8px 0;
    border-bottom: 1px dashed rgba(15, 23, 42, 0.1);
}

.page-index .system-list li:last-child {
    border-bottom: 0;
}

.page-index .feature-stack {
    display: grid;
    gap: 16px;
}

.page-index .feature-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.page-index .pillar-card {
    border-radius: 18px;
    padding: 22px;
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    animation: rise-in 0.9s ease both;
}

.page-index .panel-card-header {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    margin-bottom: 18px;
    padding-bottom: 12px;
}

.page-index .panel-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.page-index .panel-metric {
    flex: 1 1 0;
    background: var(--indice-cream);
    border-radius: 12px;
    padding: 12px;
}

.page-index .learn-card {
    display: grid;
    gap: 14px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.page-index .learn-step {
    display: flex;
    gap: 14px;
    align-items: center;
    background: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    animation: fade-up 0.8s ease both;
}

.page-index .learn-step span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--indice-blue);
    color: #fff;
    font-weight: 700;
}

.page-index .learn-step:nth-child(1) { animation-delay: 0.1s; }
.page-index .learn-step:nth-child(2) { animation-delay: 0.2s; }
.page-index .learn-step:nth-child(3) { animation-delay: 0.3s; }

.page-index .module-block ul {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: grid;
    gap: 8px;
}

.page-index .module-block li {
    padding: 8px 10px;
    background: rgba(15, 23, 42, 0.03);
    border-radius: 10px;
}

.page-index .kpi-card {
    display: grid;
    gap: 12px;
}

.page-index .kpi-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--indice-cream);
    border-radius: 14px;
    padding: 14px 16px;
    animation: fade-up 0.8s ease both;
}

.page-index .kpi-row:nth-child(1) { animation-delay: 0.1s; }
.page-index .kpi-row:nth-child(2) { animation-delay: 0.2s; }
.page-index .kpi-row:nth-child(3) { animation-delay: 0.3s; }

.page-index .kpi-label {
    font-size: 0.85rem;
    color: rgba(17, 24, 39, 0.6);
}

.page-index .growth-steps {
    display: grid;
    gap: 14px;
    background: #0f172a;
    color: #e2e8f0;
}

.page-index .growth-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    animation: fade-up 0.8s ease both;
}

.page-index .growth-step span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--indice-gold);
    color: #0f172a;
    font-weight: 700;
}

.page-index .growth-step:nth-child(1) { animation-delay: 0.1s; }
.page-index .growth-step:nth-child(2) { animation-delay: 0.2s; }
.page-index .growth-step:nth-child(3) { animation-delay: 0.3s; }

.page-index .indice-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(31,111,235,0.12), rgba(91,45,144,0.12));
}

/* Chips and semantic colors */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid transparent;
}

.chip-violet { background: rgba(91,45,144,0.12); color: var(--indice-violet); border-color: rgba(91,45,144,0.25); }
.chip-blue { background: rgba(31,111,235,0.12); color: var(--indice-blue); border-color: rgba(31,111,235,0.25); }
.chip-amber { background: rgba(242,183,54,0.2); color: #8a5b00; border-color: rgba(242,183,54,0.35); }
.chip-emerald { background: rgba(31,157,121,0.16); color: var(--indice-emerald); border-color: rgba(31,157,121,0.3); }
.chip-green { background: rgba(43,182,115,0.16); color: var(--indice-green); border-color: rgba(43,182,115,0.3); }
.chip-silver { background: rgba(185,192,204,0.2); color: #4b5563; border-color: rgba(185,192,204,0.45); }
.chip-gold { background: rgba(212,169,59,0.2); color: var(--indice-gold); border-color: rgba(212,169,59,0.35); }

.kpi-chip {
    font-size: 0.75rem;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes rise-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991px) {
    .page-index .hero-panel { margin-top: 32px; }
    .page-index .hero-panel-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .page-index .hero-panel,
    .page-index .hero-proof span,
    .page-index .pillar-card,
    .page-index .learn-step,
    .page-index .kpi-row,
    .page-index .growth-step { animation: none; }
}

/* Utilitarios de color adicionales */
.bg-violet {
    background-color: var(--violet) !important;
}

.text-violet {
    color: var(--violet) !important;
}

/* ---- Módulos 2025: cartas modernas y niveles ---- */
/* Espaciado utilitario */
.py-6 { padding-top: 4rem; padding-bottom: 4rem; }

/* Card moderna de módulo */
.module-card-modern {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e5e7eb;
}
.module-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.module-card-modern .module-icon {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Tarjeta de nivel (Controla / Escala / Corporativiza) */
.card-level {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.05);
    transition: 0.3s;
    border: 1px solid #e5e7eb;
}
.card-level:hover { transform: translateY(-4px); }