/* ============================================================
   ÍNDICE — brand.css
   Tokens de marca, paleta oficial y micro-componentes
   ============================================================ */

/* ── Paleta de colores Índice ──────────────────────────────── */
:root {
    /* Sistema tipográfico Índice */
    --indice-font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --indice-font-weight-regular: 400;
    --indice-font-weight-medium: 500;
    --indice-font-weight-semibold: 600;

    /* Jerarquía cromática Índice 2026 */
    --indice-brand-aqua: #59c3a5;
    --indice-brand-aqua-hover: #3aae90;
    --indice-brand-action: #177d66;
    --indice-brand-action-hover: #126553;
    --indice-brand-action-rgb: 23, 125, 102;
    --indice-brand-soft: #e7f3f2;
    --indice-brand-border: #b9e5d9;
    --indice-structural-blue: #2563eb;
    --indice-structural-blue-hover: #1d4ed8;
    --indice-institutional-blue: #143675;

    /* Azules corporativos: estructura, análisis y autoridad */
    --indice-navy: #0f172a;
    /* fondo oscuro principal     */
    --indice-sidebar: #1e293b;
    /* sidebar del panel          */
    --indice-blue: var(--indice-institutional-blue);
    /* azul primario de marca     */
    --indice-blue-mid: var(--indice-structural-blue);
    /* azul acciones interactivas */
    --indice-blue-light: #dbeafe;
    /* fondo azul suave           */

    /* Amarillo/dorado */
    --indice-yellow: #f4c84a;
    /* acento principal, logo     */
    --indice-yellow-light: #fef3c7;
    --indice-coral: #ff6b5e;
    /* humanidad, energía         */
    --indice-aqua: var(--indice-brand-aqua);
    /* crecimiento, balance       */
    --indice-graphite: #222831;
    /* estabilidad premium        */

    /* Funcionales */
    --indice-green: #22c55e;
    /* éxito, módulos básicos     */
    --indice-green-light: #d1fae5;
    --indice-purple: #2563eb;
    /* complementarios / escala   */
    --indice-purple-light: #eff6ff;
    --indice-red: #ef4444;
    /* error, negado              */
    --indice-red-light: #fee2e2;

    /* Tipografía */
    --indice-text: #1e293b;
    --indice-text-soft: #64748b;
    --indice-text-xsoft: #94a3b8;

    /* Superficies */
    --indice-white: #ffffff;
    --indice-surface: #f8fafc;
    --indice-border: #e2e8f0;
    --indice-radius-control: 12px;
    --indice-radius-card: 18px;
    --indice-shadow-soft: 0 14px 36px rgba(15, 23, 42, 0.08);
    --indice-shadow-hover: 0 22px 48px rgba(15, 23, 42, 0.12);

    /* Semantica comercial home 2026 */
    --indice-diagnosis: #7c3aed;
    --indice-people: #2563eb;
    --indice-process: #f4c84a;
    --indice-products: #ff6b5e;
    --indice-finance: #59c3a5;
    --indice-ai: #a88417;
}

/* ── Tipografía de marca ───────────────────────────────────── */
body {
    font-family: var(--indice-font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.brand-heading {
    font-weight: 500;
    letter-spacing: normal;
    color: var(--indice-blue);
}

/* ── Botones de marca ──────────────────────────────────────── */
.btn-brand-primary {
    background: var(--indice-brand-action);
    color: #fff;
    border: none;
    border-radius: var(--indice-radius-control);
    font-weight: 500;
    padding: 0.7rem 1.75rem;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-brand-primary:hover {
    background: var(--indice-brand-action-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(var(--indice-brand-action-rgb), 0.28);
}

.btn-brand-outline {
    border: 2px solid var(--indice-structural-blue);
    color: var(--indice-structural-blue);
    background: transparent;
    border-radius: 10px;
    font-weight: 500;
    padding: 0.65rem 1.75rem;
    transition: all 0.2s;
}

.btn-brand-outline:hover {
    background: var(--indice-blue-light);
    border-color: var(--indice-structural-blue);
    color: var(--indice-structural-blue);
    transform: translateY(-2px);
}

.btn-brand-yellow {
    background: var(--indice-yellow);
    color: var(--indice-navy);
    border: none;
    border-radius: 10px;
    font-weight: 500;
    padding: 0.7rem 1.75rem;
    transition: filter 0.2s, transform 0.15s;
}

.btn-brand-yellow:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    color: var(--indice-navy);
}

/* ── Insignias de categoría ────────────────────────────────── */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    line-height: 1;
}

.pill-blue {
    background: var(--indice-blue-light);
    color: var(--indice-blue-mid);
}

.pill-yellow {
    background: var(--indice-yellow-light);
    color: #92400e;
}

.pill-green {
    background: var(--indice-green-light);
    color: #065f46;
}

.pill-purple {
    background: var(--indice-purple-light);
    color: #4338ca;
}

.pill-red {
    background: var(--indice-red-light);
    color: #b91c1c;
}

/* ── Divisores de sección ──────────────────────────────────── */
.section-divider {
    width: 56px;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--indice-brand-aqua) 0 25%,
        var(--indice-yellow) 25% 50%,
        var(--indice-coral) 50% 75%,
        var(--indice-structural-blue) 75% 100%
    );
    border-radius: 4px;
    margin: 0 auto 1.5rem;
}

.section-divider.left {
    margin-left: 0;
}

/* ── Cards de pilares ──────────────────────────────────────── */
.pilar-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.pilar-icon.yellow {
    background: var(--indice-yellow-light);
    color: #92400e;
}

.pilar-icon.green {
    background: var(--indice-green-light);
    color: #065f46;
}

.pilar-icon.purple {
    background: var(--indice-purple-light);
    color: #4338ca;
}

.pilar-icon.blue {
    background: var(--indice-blue-light);
    color: var(--indice-blue);
}

/* ── App-preview badge ─────────────────────────────────────── */
.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 0.35rem 1rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
}

.app-badge .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--indice-green);
    box-shadow: 0 0 6px var(--indice-green);
}

/* ── Highlight de texto ────────────────────────────────────── */
.highlight-yellow {
    background: linear-gradient(180deg, transparent 55%, rgba(245, 158, 11, 0.3) 55%);
    padding-bottom: 2px;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .pilar-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
}
