/* ================================================================
   ESCUELA VIRTUAL DE CONCILIACIÓN — Estilos principales
   Paleta: azul oscuro #1a3a5c | azul institucional #2980b9
           dorado #c9a227 | blanco #ffffff | gris #6c757d
   ================================================================ */

/* ── Variables de diseño (editables desde el panel) ─────────────── */
:root {
    /* Sobrescribe el azul genérico de Bootstrap (--bs-primary) por el
       institucional, así .text-primary/.bg-primary/.btn-outline-primary
       quedan consistentes con la marca en todo el sitio sin tocar cada vista */
    --bs-primary:       #2980b9;
    --bs-primary-rgb:   41, 128, 185;
    --bs-primary-text-emphasis: #1a3a5c;
    --bs-link-color:    #2980b9;
    --bs-link-color-rgb: 41, 128, 185;
    --bs-link-hover-color: #1a3a5c;
    --bs-link-hover-color-rgb: 26, 58, 92;

    --evc-primary:       #1a3a5c;
    --evc-secondary:     #2980b9;
    --evc-accent:        #c9a227;
    --evc-success:       #27ae60;
    --evc-danger:        #c0392b;
    --evc-warning:       #f39c12;
    --evc-info:          #17a2b8;
    --evc-light:         #f8f9fa;
    --evc-dark:          #1a1a2e;
    --evc-text:          #2c3e50;
    --evc-text-muted:    #6c757d;
    --evc-border:        #dee2e6;
    --evc-font-base:     'Segoe UI', Arial, sans-serif;
    --evc-font-heading:  'Segoe UI', Arial, sans-serif;
    --evc-border-radius: 8px;
    --evc-shadow:        0 2px 12px rgba(0,0,0,0.08);
    --evc-shadow-lg:     0 8px 32px rgba(0,0,0,0.12);
    --evc-transition:    0.25s ease;
}

/* ── Reset y base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--evc-font-base);
    color: var(--evc-text);
    background: #f4f6f9;
    line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--evc-font-heading);
    color: var(--evc-primary);
    font-weight: 700;
}

a {
    color: var(--evc-secondary);
    transition: color var(--evc-transition);
}
a:hover { color: var(--evc-primary); text-decoration: none; }

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

/* ── Barra de navegación ──────────────────────────────────────── */
.evc-navbar {
    background: var(--evc-primary);
    padding: 0.75rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1030;
}
.evc-navbar .navbar-brand img { height: 58px; }
.evc-navbar .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--evc-border-radius);
    transition: background var(--evc-transition);
}
.evc-navbar .nav-link:hover,
.evc-navbar .nav-link.active {
    background: rgba(255,255,255,0.12);
    color: #fff !important;
}
.evc-navbar .btn-accent {
    background: var(--evc-accent);
    color: #fff;
    border: none;
    font-weight: 600;
    border-radius: var(--evc-border-radius);
    padding: 0.45rem 1.2rem;
}
.evc-navbar .btn-accent:hover {
    background: #b8911f;
    color: #fff;
}

/* ── Hero / Banner principal ──────────────────────────────────── */
.evc-hero {
    background: linear-gradient(135deg, var(--evc-primary) 0%, var(--evc-secondary) 100%);
    color: #fff;
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.evc-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    clip-path: ellipse(55% 100% at 50% 100%);
}
.evc-hero h1 {
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.2;
}
.evc-hero p.lead { color: rgba(255,255,255,0.88); }

/* ── Sección de cursos ────────────────────────────────────────── */
.section-title {
    font-size: 1.75rem;
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 2rem;
}
.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--evc-accent);
    border-radius: 2px;
    margin-top: 0.5rem;
}

/* Tarjeta de curso */
.course-card {
    border: 1px solid var(--evc-border);
    border-radius: var(--evc-border-radius);
    overflow: hidden;
    transition: box-shadow var(--evc-transition), transform var(--evc-transition);
    height: 100%;
}
.course-card:hover {
    box-shadow: var(--evc-shadow-lg);
    transform: translateY(-4px);
}
.course-card .course-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.course-card .card-body { padding: 1.25rem; }
.course-card .badge-level {
    font-size: 0.72rem;
    padding: 0.25em 0.6em;
    border-radius: 999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.course-card .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--evc-primary);
}
.course-card .price-original {
    font-size: 0.9rem;
    color: var(--evc-text-muted);
    text-decoration: line-through;
}
.course-card .btn-enroll {
    background: var(--evc-secondary);
    color: #fff;
    border: none;
    width: 100%;
    font-weight: 600;
    border-radius: var(--evc-border-radius);
    padding: 0.55rem;
    transition: background var(--evc-transition);
}
.course-card .btn-enroll:hover { background: var(--evc-primary); }

.course-review-stars {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: .25rem;
}
.course-review-stars input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.course-review-stars label {
    color: #cbd5e1;
    cursor: pointer;
    font-size: 1.65rem;
    line-height: 1;
    transition: color var(--evc-transition), transform var(--evc-transition);
}
.course-review-stars label:hover,
.course-review-stars label:hover ~ label,
.course-review-stars input:checked ~ label {
    color: #f59e0b;
}
.course-review-stars label:hover {
    transform: translateY(-1px);
}

/* ── Botones globales ─────────────────────────────────────────── */
.btn-primary {
    background: var(--evc-secondary);
    border-color: var(--evc-secondary);
    font-weight: 600;
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--evc-primary);
    border-color: var(--evc-primary);
}
.btn-evc-accent {
    background: var(--evc-accent);
    border-color: var(--evc-accent);
    color: #fff;
    font-weight: 600;
}
.btn-evc-accent:hover { background: #b8911f; color: #fff; }

/* ── Formularios ──────────────────────────────────────────────── */
.form-control:focus, .form-select:focus {
    border-color: var(--evc-secondary);
    box-shadow: 0 0 0 0.2rem rgba(41,128,185,0.25);
}
.form-label { font-weight: 500; margin-bottom: 0.35rem; }

/* Indicador de foco para accesibilidad */
:focus-visible {
    outline: 3px solid var(--evc-accent);
    outline-offset: 2px;
}

/* ── Tarjeta genérica ─────────────────────────────────────────── */
.evc-card {
    border: 1px solid var(--evc-border);
    border-radius: var(--evc-border-radius);
    box-shadow: var(--evc-shadow);
    background: #fff;
    padding: 1.5rem;
}

/* ── Progreso ─────────────────────────────────────────────────── */
.progress { height: 8px; border-radius: 999px; }
.progress-bar { background: var(--evc-secondary); border-radius: 999px; }

/* ── Insignias de estado ──────────────────────────────────────── */
.badge-draft     { background: #6c757d; }
.badge-review    { background: #f39c12; }
.badge-published { background: var(--evc-success); }
.badge-suspended { background: var(--evc-danger); }

/* ── Pie de página ────────────────────────────────────────────── */
.evc-footer {
    background: var(--evc-primary);
    color: rgba(255,255,255,0.8);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}
.evc-footer h6 { color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; }
.evc-footer a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.evc-footer a:hover { color: #fff; }
.evc-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    margin-top: 2rem;
    padding-top: 1.25rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
}

/* ── Bot de IA ────────────────────────────────────────────────── */
#evc-bot-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    background: var(--evc-secondary);
    color: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    cursor: pointer;
    z-index: 1050;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s;
}
#evc-bot-btn:hover { transform: scale(1.1); background: var(--evc-primary); }

#evc-bot-window {
    position: fixed;
    bottom: 5rem;
    right: 1.5rem;
    width: 360px;
    max-height: 520px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    z-index: 1049;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.bot-header {
    background: var(--evc-primary);
    color: #fff;
    padding: 0.85rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.bot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.9rem;
}
.bot-msg { max-width: 85%; padding: 0.55rem 0.85rem; border-radius: 12px; line-height: 1.45; }
.bot-msg.bot  { background: #f0f4f8; color: var(--evc-text); align-self: flex-start; border-bottom-left-radius: 2px; }
.bot-msg.user { background: var(--evc-secondary); color: #fff; align-self: flex-end; border-bottom-right-radius: 2px; }
.bot-input-area {
    border-top: 1px solid var(--evc-border);
    padding: 0.65rem;
    display: flex;
    gap: 0.5rem;
}
.bot-input-area input {
    flex: 1;
    border: 1px solid var(--evc-border);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-size: 0.88rem;
    outline: none;
}
.bot-input-area button {
    background: var(--evc-secondary);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.bot-logo {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}
.bot-fab-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.bot-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.78rem;
    color: var(--evc-text-muted, #6c757d);
    border-top: 1px solid var(--evc-border);
}
.bot-rate-btn {
    background: none;
    border: 1px solid var(--evc-border);
    border-radius: 999px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--evc-text);
    transition: background 0.15s, color 0.15s;
}
.bot-rate-btn:hover { background: var(--evc-secondary); color: #fff; border-color: var(--evc-secondary); }
.bot-rate-btn.rated { background: var(--evc-secondary); color: #fff; border-color: var(--evc-secondary); }

/* ── Hero de detalle de curso ──────────────────────────────────── */
.course-hero {
    background: linear-gradient(135deg, #0d2240 0%, #1a3a5c 55%, #1e5fa8 100%);
    position: relative;
    overflow: hidden;
}
.course-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M20 20c0-5.5-4.5-10-10-10S0 14.5 0 20s4.5 10 10 10 10-4.5 10-10zm10 0c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10z'/%3E%3C/g%3E%3C/svg%3E");
}
.course-hero .card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   HOME PAGE — Secciones especiales
═══════════════════════════════════════════════════════════════ */

/* Hero */
.home-hero {
    background: linear-gradient(135deg, #0d2240 0%, #1a3a5c 45%, #1e5fa8 100%);
    position: relative;
    overflow: hidden;
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.home-hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
}
.home-hero-wave svg { width: 100%; height: 90px; display: block; }
.home-hero .display-4 { font-size: clamp(2rem, 5vw, 3.2rem); }
.home-hero .text-warning { color: #f59e0b !important; }

/* Títulos en secciones oscuras — anular el color primario global */
.home-hero h1,
.home-hero h2,
.home-hero h3,
.home-hero h4,
.home-hero h5,
.home-hero h6,
.home-cta h1,
.home-cta h2,
.home-cta h3,
.home-cta h4,
.home-cta h5,
.home-cta h6,
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
    color: #fff !important;
}

/* Hero visual card */
.hero-visual-card {
    background: #eaf1f7;
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 24px 64px rgba(0,0,0,0.25);
    position: relative;
}
.hero-icon-main {
    width: 90px; height: 90px;
    background: linear-gradient(135deg,#1a3a5c,#2563eb);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    color: #fff;
}
.hero-icon-logo {
    width: 70px;
    height: 58px;
    object-fit: contain;
    display: block;
}
.home-hero .hero-visual-card h4 {
    color: #163a5f !important;
}
.hero-badge-top, .hero-badge-bottom {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255,255,255,0.72);
    border: 1px solid #cbd9e8;
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
}
.hero-badge-top { margin-bottom: 1rem; }
.hero-badge-bottom { margin-top: 1rem; }

/* Section chip */
.section-chip {
    display: inline-block;
    background: rgba(37,99,235,0.1);
    color: #1a3a5c;
    border: 1px solid rgba(37,99,235,0.2);
    border-radius: 999px;
    padding: 0.3rem 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Specialty cards */
.specialty-card {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all .25s;
}
.specialty-card:hover {
    border-color: #2563eb;
    box-shadow: 0 8px 24px rgba(37,99,235,0.12);
    transform: translateY(-4px);
}
.specialty-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg,#e0e7ff,#dbeafe);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #1a3a5c;
    margin: 0 auto;
}

/* Course placeholder */
.card-placeholder-img {
    height: 180px;
    border-radius: 0;
}
.hover-lift { transition: transform .25s, box-shadow .25s; }
.hover-lift:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(0,0,0,0.12) !important; }

/* ═══════════════════════════════════════════════════════════════
   TARJETA DE CURSO PREMIUM
═══════════════════════════════════════════════════════════════ */
.course-card-v2 {
    border: 1px solid var(--evc-border);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    height: 100%;
}
.course-card-v2:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(26,58,92,0.16);
    border-color: transparent;
}
.course-card-v2 .cc-thumb-wrap {
    position: relative;
    overflow: hidden;
    height: 176px;
}
.course-card-v2 .cc-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.course-card-v2:hover .cc-thumb-wrap img { transform: scale(1.08); }
.course-card-v2 .cc-thumb-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13,34,64,0) 50%, rgba(13,34,64,0.55) 100%);
    opacity: 0;
    transition: opacity .3s ease;
}
.course-card-v2:hover .cc-thumb-wrap::after { opacity: 1; }
.course-card-v2 .cc-badge-pill {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.32em 0.7em;
    border-radius: 999px;
}
.course-card-v2 .cc-cat-pill {
    background: var(--evc-secondary);
    bg-opacity: 0.12;
    background: rgba(41,128,185,0.1);
    color: var(--evc-secondary);
}
.course-card-v2 .cc-level-pill {
    background: rgba(108,117,125,0.1);
    color: var(--evc-text-muted);
}
.course-card-v2 .cc-instructor-avatar {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--evc-secondary), var(--evc-primary));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700;
    flex-shrink: 0;
}
.course-card-v2 .cc-title {
    font-weight: 700;
    line-height: 1.35;
    color: var(--evc-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}
.course-card-v2 .cc-title:hover { color: var(--evc-secondary); }
.course-card-v2 .cc-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--evc-primary);
}
.course-card-v2 .cc-footer {
    border-top: 1px dashed var(--evc-border);
}
.course-card-v2 .btn-cc-view {
    background: var(--evc-primary);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.4rem 1.1rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    transition: background .2s, transform .2s;
}
.course-card-v2 .btn-cc-view:hover { background: var(--evc-secondary); color: #fff; transform: translateX(2px); }

/* ═══════════════════════════════════════════════════════════════
   PÁGINAS LEGALES — tratamiento tipo "documento oficial"
═══════════════════════════════════════════════════════════════ */
.legal-document {
    background: #fffdf8;
    border-top: 4px solid var(--evc-accent);
    position: relative;
    overflow: hidden;
}
.legal-document::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 140px; height: 140px;
    background: radial-gradient(circle at top right, rgba(201,162,39,0.08), transparent 70%);
    pointer-events: none;
}
.legal-document-letterhead {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--evc-border);
}
.legal-document-seal {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--evc-primary), var(--evc-secondary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(26,58,92,0.25);
}
.legal-document-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--evc-accent);
    margin-bottom: 0.2rem;
}
.legal-document .blog-content {
    font-family: Georgia, 'Times New Roman', serif;
}
.legal-document .blog-content h2 {
    font-family: var(--evc-font-heading);
    border-left: 3px solid var(--evc-accent);
    padding-left: 0.75rem;
}

/* ═══════════════════════════════════════════════════════════════
   DETALLE DE CURSO — currículo y valoraciones
═══════════════════════════════════════════════════════════════ */
#curriculumAccordion .accordion-item {
    border-radius: 10px !important;
    border-color: var(--evc-border) !important;
}
#curriculumAccordion .accordion-button {
    background: #fafbfc;
}
#curriculumAccordion .accordion-button:not(.collapsed) {
    background: rgba(41,128,185,0.07);
    color: var(--evc-primary);
    box-shadow: none;
}
#curriculumAccordion .accordion-button:focus { box-shadow: none; }
.lesson-row {
    transition: background .15s;
}
.lesson-row:hover { background: rgba(41,128,185,0.04); }
.lesson-preview-badge {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--evc-success);
    background: rgba(39,174,96,0.1);
    padding: 0.2em 0.6em;
    border-radius: 999px;
}

/* Resumen de valoraciones */
.rating-summary-score {
    font-size: 3rem;
    font-weight: 800;
    color: var(--evc-primary);
    line-height: 1;
}
.rating-bar-track {
    height: 6px;
    border-radius: 999px;
    background: #eef1f4;
    overflow: hidden;
    flex: 1;
}
.rating-bar-fill {
    height: 100%;
    background: var(--evc-accent);
    border-radius: 999px;
}
.review-item {
    border-bottom: 1px solid var(--evc-border);
    padding-bottom: 1.25rem;
}
.review-item:last-child { border-bottom: none; padding-bottom: 0; }

/* ═══════════════════════════════════════════════════════════════
   CONTENIDO DE BLOG (HTML enriquecido del editor)
═══════════════════════════════════════════════════════════════ */
.blog-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--evc-text);
}
.blog-content h2 {
    font-size: 1.5rem;
    margin-top: 2.2rem;
    margin-bottom: 1rem;
    color: var(--evc-primary);
}
.blog-content h3 {
    font-size: 1.25rem;
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
    color: var(--evc-primary);
}
.blog-content p { margin-bottom: 1.25rem; }
.blog-content img {
    border-radius: 10px;
    margin: 1.5rem 0;
}
.blog-content ul, .blog-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}
.blog-content li { margin-bottom: 0.4rem; }
.blog-content blockquote {
    border-left: 4px solid var(--evc-accent);
    background: rgba(201,162,39,0.06);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--evc-text);
}
.blog-content a { color: var(--evc-secondary); text-decoration: underline; }
.blog-content code {
    background: rgba(0,0,0,0.05);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
}
.blog-content table { width: 100%; margin-bottom: 1.5rem; border-collapse: collapse; }
.blog-content table th, .blog-content table td {
    border: 1px solid var(--evc-border);
    padding: 0.6rem 0.8rem;
}

/* ═══════════════════════════════════════════════════════════════
   HERO DE CATÁLOGO / LISTADOS
═══════════════════════════════════════════════════════════════ */
.catalog-hero {
    background: linear-gradient(135deg, #0d2240 0%, #1a3a5c 55%, #1e5fa8 100%);
    position: relative;
    overflow: hidden;
}
.catalog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M20 20c0-5.5-4.5-10-10-10S0 14.5 0 20s4.5 10 10 10 10-4.5 10-10zm10 0c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10z'/%3E%3C/g%3E%3C/svg%3E");
}
.catalog-hero .input-group .form-control {
    border: none;
    padding: 0.9rem 1.1rem;
}
.catalog-hero .input-group .form-control:focus { box-shadow: none; }
.catalog-hero-stat {
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
}
.catalog-hero-stat strong { color: #fff; font-size: 1.1rem; }

/* ═══════════════════════════════════════════════════════════════
   AUTENTICACIÓN — login / registro / recuperar contraseña
═══════════════════════════════════════════════════════════════ */
.auth-bg {
    background: linear-gradient(135deg, #0d2240 0%, #1a3a5c 55%, #1e5fa8 100%);
    position: relative;
    overflow: hidden;
}
.auth-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M20 20c0-5.5-4.5-10-10-10S0 14.5 0 20s4.5 10 10 10 10-4.5 10-10zm10 0c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10z'/%3E%3C/g%3E%3C/svg%3E");
}
.auth-bg .container { position: relative; z-index: 1; }
.auth-bg h4.text-primary { color: #fff !important; }
.auth-bg-footnote { color: rgba(255,255,255,0.75) !important; }
.auth-bg-footnote a { color: #c9a227; }
.auth-bg-footnote a:hover { color: #e0bf4a; }

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD — KPIs con icono en gradiente
═══════════════════════════════════════════════════════════════ */
.kpi-card {
    border: 1px solid var(--evc-border);
    border-radius: 14px;
    background: #fff;
    transition: transform .25s, box-shadow .25s;
}
.kpi-card:hover { transform: translateY(-3px); box-shadow: var(--evc-shadow-lg); }
.kpi-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    flex-shrink: 0;
}
.kpi-icon.kpi-primary  { background: linear-gradient(135deg, #2980b9, #1a3a5c); }
.kpi-icon.kpi-success  { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.kpi-icon.kpi-warning  { background: linear-gradient(135deg, #f5b942, #c9a227); }
.kpi-icon.kpi-info     { background: linear-gradient(135deg, #3fd0e0, #17a2b8); }
.dashboard-welcome {
    background: linear-gradient(120deg, #0d2240 0%, #1a3a5c 60%, #2980b9 130%);
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    color: #fff;
}
.dashboard-welcome::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M20 20c0-5.5-4.5-10-10-10S0 14.5 0 20s4.5 10 10 10 10-4.5 10-10zm10 0c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10z'/%3E%3C/g%3E%3C/svg%3E");
}
.continue-row {
    transition: background .2s;
}
.continue-row:hover { background: rgba(41,128,185,0.04); }
.continue-thumb-wrap { overflow: hidden; border-radius: 8px; }
.continue-thumb-wrap img { transition: transform .3s; }
.continue-row:hover .continue-thumb-wrap img { transform: scale(1.1); }

/* Process steps */
.process-step {
    background: #fff;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    position: relative;
}
.process-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px; height: 36px;
    background: #1a3a5c;
    color: #fff;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.process-icon-wrap {
    width: 72px; height: 72px;
    background: linear-gradient(135deg,#eff6ff,#dbeafe);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #1a3a5c;
}

/* Feature items */
.feature-item {
    background: #f9fafb;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #f0f0f0;
    transition: border-color .2s;
}
.feature-item:hover { border-color: #2563eb; }
.feature-icon-sm {
    width: 44px; height: 44px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Testimonials */
.testimonial-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    border: 1px solid #f0f4f8;
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s;
}
.testimonial-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.12); }
.testimonial-avatar {
    width: 46px; height: 46px;
    background: linear-gradient(135deg,#1a3a5c,#2563eb);
    border-radius: 50%;
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* CTA final */
.home-cta {
    background: linear-gradient(135deg,#0d2240 0%,#1a3a5c 60%,#2563eb 100%);
    position: relative;
    overflow: hidden;
}
.home-cta::before {
    content:'';
    position:absolute;
    top:-80px; right:-80px;
    width:300px; height:300px;
    background:rgba(255,255,255,0.04);
    border-radius:50%;
}
.home-cta::after {
    content:'';
    position:absolute;
    bottom:-60px; left:-60px;
    width:200px; height:200px;
    background:rgba(255,255,255,0.04);
    border-radius:50%;
}
.home-cta-icon {
    width: 80px; height: 80px;
    background: rgba(255,255,255,0.15);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: #f59e0b;
}

/* Accordion FAQ */
.accordion-button:not(.collapsed) {
    background: #eff6ff;
    color: #1a3a5c;
}
.accordion-button::after { color: #1a3a5c; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .evc-hero { padding: 3rem 0 2.5rem; }
    #evc-bot-window { width: calc(100vw - 2rem); right: 1rem; }
}

/* ── Accesibilidad ────────────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ── Modo oscuro (opcional, activable desde preferencias) ─────── */
@media (prefers-color-scheme: dark) {
    body.dark-mode {
        background: #1a1a2e;
        color: #e0e0e0;
    }
    body.dark-mode .evc-card { background: #252540; border-color: #333; }
    body.dark-mode .course-card { background: #252540; border-color: #333; }
}
