/* ============================================================
   Ánima Onco — Estilos
   Acompañamiento integral oncológico
   Cálido, limpio, esperanzador — Mobile-first
   ============================================================ */

:root {
    /* Paleta principal extraída del logo (verde musgo + lila mariposa) */
    --brand-primary: #3F5A3D;    /* verde musgo — títulos, primary */
    --brand-dark: #2E4530;       /* verde oscuro — hover/active */
    --brand-light: #7A9678;      /* verde salvia — acentos suaves */
    --brand-accent: #7C5B8F;     /* púrpura — CTAs destacadas */
    --brand-accent-soft: #B598C3;/* lila mariposa — badges, chips */
    --brand-cream: #FBF6F0;      /* crema — fondo principal */
    --brand-soft: #EFE7DC;       /* arena suave — cards, hovers */
    --text-main: #3D3A3A;        /* gris cálido — texto */
    --text-muted: #7A6A6A;       /* gris cálido claro — texto secundario */

    --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 2px 8px rgba(63,90,61,0.05);
    --shadow: 0 4px 16px rgba(63,90,61,0.07);
    --shadow-lg: 0 8px 30px rgba(63,90,61,0.10);
}

/* ============================================================
   BASE
   ============================================================ */
body {
    font-family: var(--font-body);
    background-color: var(--brand-cream);
    color: var(--text-main);
    font-size: 0.95rem;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
}

a { color: var(--brand-primary); }
a:hover { color: var(--brand-dark); }

/* ============================================================
   NAVBAR — área privada (mi-anima) + admin
   Fondo blanco con texto verde oscuro para máximo contraste.
   NOTA: .bg-brand a secas sigue con verde (progress bars, tabs, etc.);
   solo cuando además es .navbar aplicamos el estilo blanco.
   ============================================================ */
.bg-brand {
    background: linear-gradient(135deg, var(--brand-dark), var(--brand-primary)) !important;
}

.navbar.bg-brand {
    background: #ffffff !important;
    border-bottom: 1px solid var(--brand-soft);
    box-shadow: 0 1px 3px rgba(63, 90, 61, 0.04);
}

.navbar { padding: 0.5rem 0; }

.navbar.bg-brand .navbar-brand,
.navbar.bg-brand .brand-text {
    color: var(--brand-dark) !important;
}

.navbar.bg-brand .nav-link {
    color: var(--brand-dark) !important;
    opacity: 0.78;
    transition: opacity 0.15s, color 0.15s;
}
.navbar.bg-brand .nav-link:hover,
.navbar.bg-brand .nav-link:focus {
    opacity: 1;
    color: var(--brand-primary) !important;
}
.navbar.bg-brand .nav-link.active {
    opacity: 1;
    color: var(--brand-primary) !important;
    font-weight: 600;
}

.navbar.bg-brand .dropdown-toggle {
    color: var(--brand-dark) !important;
}

.navbar.bg-brand .navbar-toggler {
    color: var(--brand-dark);
    border-color: var(--brand-soft);
}
.navbar.bg-brand .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(46, 69, 48, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.brand-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.3px;
}

.user-avatar-sm {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--brand-soft);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700; color: var(--brand-dark);
}

/* Offcanvas móvil sigue con fondo oscuro (text-bg-dark en el HTML) */
.mobile-nav-link {
    display: block; padding: 0.65rem 1rem; border-radius: 8px;
    color: rgba(255,255,255,0.85); text-decoration: none;
    font-size: 0.9rem; margin: 1px 0;
}

/* ============================================================
   DASHBOARD "Mi Ánima" (área privada)
   ============================================================ */
.dashboard-hello h2 {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--brand-dark);
    font-size: 1.9rem;
}

.dashboard-card {
    background: white;
    border: 1px solid rgba(63,90,61,0.08);
    border-radius: var(--radius);
    padding: 1.75rem;
    height: 100%;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
    display: flex; flex-direction: column; align-items: center;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative;
}
.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-accent-soft);
    color: var(--text-main);
}
.dashboard-card h5 { color: var(--brand-dark); font-family: var(--font-display); font-weight: 500; }
.dashboard-card-icon {
    width: 68px; height: 68px; border-radius: 999px;
    background: linear-gradient(135deg, rgba(181,152,195,0.20), rgba(122,150,120,0.15));
    display: flex; align-items: center; justify-content: center;
    color: var(--brand-primary);
    font-size: 1.9rem;
    margin-bottom: 1rem;
}
.dashboard-card-soon { opacity: 0.85; cursor: default; }
.dashboard-card-soon:hover { transform: none; box-shadow: var(--shadow-sm); }
.dashboard-card-badge {
    display: inline-block;
    background: var(--brand-accent-soft);
    color: white;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    text-transform: uppercase;
    font-weight: 600;
}

.dashboard-block {
    background: white;
    border: 1px solid var(--brand-soft);
    border-radius: var(--radius);
    padding: 1.5rem;
    height: 100%;
}
.dashboard-block h5 { font-family: var(--font-display); font-weight: 500; color: var(--brand-dark); }

.dashboard-empty {
    text-align: center;
    padding: 1.5rem 1rem;
    color: var(--text-muted);
    background: var(--brand-cream);
    border-radius: 12px;
    font-size: 0.92rem;
}
.dashboard-empty i { font-size: 2rem; }

.dashboard-event-item {
    display: flex; align-items: flex-start; gap: 0.9rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--brand-soft);
}
.dashboard-event-item:last-child { border-bottom: 0; padding-bottom: 0; }
.dashboard-event-date {
    text-align: center; min-width: 52px;
    padding: 4px; background: var(--brand-cream);
    border-radius: 8px; border: 1px solid var(--brand-soft);
}
.dashboard-event-date .day { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--brand-primary); line-height: 1; }
.dashboard-event-date .month { font-size: 0.62rem; letter-spacing: 0.08em; color: var(--brand-accent); text-transform: uppercase; }

.dashboard-news-item {
    display: flex;
    gap: 0.85rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--brand-soft);
}
.dashboard-news-item:last-child { border-bottom: 0; padding-bottom: 0; }

/* Botón que envuelve la noticia (para abrir el modal). Reset visual del <button> */
.dashboard-news-item-btn {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.12s;
}
.dashboard-news-item-btn:hover { background: var(--brand-cream); }
.dashboard-news-item-btn:focus-visible { outline: 2px solid var(--brand-accent-soft); outline-offset: 2px; }

.dashboard-news-thumb {
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--brand-cream);
    background-size: cover;
    background-position: center;
}
.dashboard-news-body { flex: 1; min-width: 0; }

/* Modal detalle de noticia — layout 2 columnas (imagen izq, texto dcha) */
.news-modal-content {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}
.news-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    background-color: rgba(255,255,255,0.85);
    border-radius: 50%;
    padding: 0.55rem;
    background-size: 12px;
}
.news-modal-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    min-height: 480px;
}
.news-modal-grid.no-image {
    grid-template-columns: 1fr;
}
.news-modal-image-col {
    background: var(--brand-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    min-height: 100%;
}
.news-modal-image-col img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}
.news-modal-text-col {
    padding: 2.25rem 2rem 2rem;
    overflow-y: auto;
    max-height: 80vh;
}
.news-modal-body {
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.7;
}

@media (max-width: 767.98px) {
    .news-modal-grid { grid-template-columns: 1fr; min-height: 0; }
    .news-modal-image-col { min-height: 220px; max-height: 260px; padding: 1rem; }
    .news-modal-text-col { padding: 1.5rem; max-height: none; }
}
.news-modal-body h3, .news-modal-body h4 {
    font-family: var(--font-display);
    color: var(--brand-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.news-modal-body h3 { font-size: 1.25rem; font-weight: 600; }
.news-modal-body h4 { font-size: 1.1rem; font-weight: 600; }
.news-modal-body p { margin-bottom: 1rem; }
.news-modal-body ul, .news-modal-body ol { margin-bottom: 1rem; padding-left: 1.25rem; }
.news-modal-body a { color: var(--brand-primary); text-decoration: underline; }
.news-modal-body a:hover { color: var(--brand-dark); }

.dashboard-activity-item {
    display: flex; align-items: center;
    padding: 0.65rem 0.9rem;
    background: var(--brand-cream);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.92rem;
    transition: background 0.15s;
}
.dashboard-activity-item:hover {
    background: rgba(181,152,195,0.10);
    color: var(--brand-primary);
}

.dashboard-card-cta {
    color: var(--brand-primary);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

/* ============================================================
   CURSOS
   ============================================================ */

.course-card {
    display: block;
    background: white;
    border: 1px solid rgba(63,90,61,0.08);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-main);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-accent-soft);
    color: var(--text-main);
}
.course-card-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--brand-cream);
    isolation: isolate; /* aísla los z-index de dentro */
}
/* Backdrop borroso — solo aparece cuando la card tiene --cover-bg definida
   (ver HTML). Rellena el hueco cuando la portada no es 16:9 sin recortar. */
.course-card-cover::before {
    content: '';
    position: absolute;
    inset: -8%; /* desborda para que el blur no muestre bordes */
    background-image: var(--cover-bg, none);
    background-size: cover;
    background-position: center;
    filter: blur(24px) saturate(1.15);
    transform: scale(1.08);
    z-index: 0;
    transition: transform 0.3s;
}
.course-card:hover .course-card-cover::before { transform: scale(1.12); }
.course-card-cover img {
    position: relative;
    z-index: 1;
    width: 100%; height: 100%;
    object-fit: contain;
    transition: transform 0.3s, filter 0.3s;
}
.course-card.locked .course-card-cover img {
    filter: grayscale(60%) brightness(0.95);
}
.course-card:hover .course-card-cover img { transform: scale(1.03); }
.course-card-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--brand-accent-soft);
    font-size: 3rem;
    background: linear-gradient(135deg, var(--brand-cream), rgba(181,152,195,0.15));
}
.course-card-placeholder.large { font-size: 6rem; min-height: 300px; }
.course-card-lock {
    position: absolute; top: 12px; right: 12px;
    background: rgba(255,255,255,0.95);
    border-radius: 999px; width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    color: var(--brand-accent);
    box-shadow: var(--shadow-sm);
    z-index: 2;
}
.course-card-owned {
    position: absolute; top: 12px; left: 12px;
    background: var(--brand-primary); color: white;
    border-radius: 999px; padding: 4px 12px;
    font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.05em; text-transform: uppercase;
    z-index: 2;
}
.course-card-body {
    padding: 1rem 1.25rem 1.25rem;
    flex-grow: 1;
    display: flex; flex-direction: column;
}
.course-card-body h5 {
    font-family: var(--font-display); font-weight: 500;
    color: var(--brand-dark); font-size: 1.1rem;
}

/* Pills de filtro por categoría */
.course-cats { margin: 0 auto; max-width: 900px; }
.course-cat-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    background: white;
    color: var(--brand-dark);
    border: 1px solid rgba(63,90,61,0.15);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
    line-height: 1.2;
}
.course-cat-pill:hover {
    background: var(--brand-cream);
    border-color: var(--brand-accent-soft);
    color: var(--brand-dark);
    transform: translateY(-1px);
}
.course-cat-pill.active {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}
.course-cat-pill.active:hover {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
    transform: none;
}

/* Detalle del curso */
.course-detail-cover {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--brand-cream);
    isolation: isolate;
}
/* Backdrop borroso — mismo tratamiento que las cards del grid.
   La URL se pasa como --cover-bg vía inline style desde la vista. */
.course-detail-cover::before {
    content: '';
    position: absolute;
    inset: -8%;
    background-image: var(--cover-bg, none);
    background-size: cover;
    background-position: center;
    filter: blur(28px) saturate(1.15);
    transform: scale(1.08);
    z-index: 0;
}
.course-detail-cover img {
    position: relative;
    z-index: 1;
    width: 100%; height: 100%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* Cover clickable → cursor zoom + icono flotante */
.course-detail-cover--clickable {
    cursor: zoom-in;
    outline: none;
}
.course-detail-cover--clickable:focus-visible {
    box-shadow: 0 0 0 3px var(--brand-accent-soft);
}
.course-detail-cover--clickable:hover img { transform: scale(1.02); }
.course-detail-cover-zoom {
    position: absolute;
    bottom: 14px; right: 14px;
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.92);
    color: var(--brand-dark);
    border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
    box-shadow: var(--shadow-md);
    opacity: 0; transform: translateY(6px);
    transition: opacity 0.25s, transform 0.25s;
    z-index: 2;
    pointer-events: none;
}
.course-detail-cover--clickable:hover .course-detail-cover-zoom,
.course-detail-cover--clickable:focus-visible .course-detail-cover-zoom {
    opacity: 1; transform: translateY(0);
}

/* ============================================================
   Modal ampliación de portada de curso
   ============================================================ */
.cover-modal .modal-dialog {
    max-width: min(92vw, 1200px);
    margin: 2rem auto;
}
.cover-modal .modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
    align-items: center;
    position: relative;
}
.cover-modal-img {
    max-width: 100%;
    max-height: 82vh;
    width: auto; height: auto;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 30px 80px rgba(0,0,0,0.45),
                0 10px 30px rgba(0,0,0,0.25);
    animation: coverModalIn 0.35s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}
@keyframes coverModalIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}
.cover-modal-close {
    position: absolute;
    top: -14px; right: -14px;
    width: 42px; height: 42px;
    border: none;
    background: white;
    color: var(--brand-dark);
    border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    font-size: 1.05rem;
    transition: transform 0.2s, background 0.2s;
    z-index: 5;
}
.cover-modal-close:hover {
    background: var(--brand-cream);
    transform: rotate(90deg) scale(1.05);
}
.cover-modal-caption {
    margin-top: 1.25rem;
    text-align: center;
    color: white;
    max-width: 720px;
    animation: coverModalIn 0.5s cubic-bezier(0.2, 0.9, 0.2, 1) both;
    animation-delay: 0.1s;
}
.cover-modal-caption-title {
    display: block;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.3;
}
.cover-modal-caption-sub {
    display: block;
    margin-top: 0.35rem;
    opacity: 0.85;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Backdrop del modal más oscuro + blur del fondo. La clase se añade al
   body con JS al abrir el modal (show.bs.modal) porque Bootstrap no
   permite asociar el .modal-backdrop a un modal concreto vía CSS. */
body.cover-modal-open .modal-backdrop.show {
    opacity: 0.72;
    backdrop-filter: blur(10px) saturate(0.9);
    -webkit-backdrop-filter: blur(10px) saturate(0.9);
}

@media (max-width: 767.98px) {
    .cover-modal-img { max-height: 70vh; }
    .cover-modal-close { top: -12px; right: -6px; width: 36px; height: 36px; }
    .cover-modal-caption-title { font-size: 1.1rem; }
    .cover-modal-caption-sub { font-size: 0.85rem; }
}
.course-description { line-height: 1.7; color: var(--text-main); }

.course-buy-card {
    background: white;
    border: 1px solid var(--brand-soft);
    border-radius: var(--radius);
    padding: 1.5rem;
    position: sticky; top: 80px;
}
.course-price {
    padding: 1rem 0;
    border-bottom: 1px solid var(--brand-soft);
}
.course-price .price-value {
    font-family: var(--font-display); font-size: 2.4rem; font-weight: 600;
    color: var(--brand-primary);
}
.course-price .price-currency {
    font-size: 1rem; color: var(--text-muted); margin-left: 4px;
}

.course-lessons-list { display: flex; flex-direction: column; gap: 6px; }
.course-lesson-row {
    display: flex; align-items: center; gap: 1rem;
    padding: 0.9rem 1rem;
    background: white;
    border: 1px solid var(--brand-soft);
    border-radius: 12px;
    transition: border-color 0.15s, background 0.15s;
}
.course-lesson-row:hover { border-color: var(--brand-accent-soft); }
.course-lesson-row.locked { opacity: 0.65; }
.course-lesson-num {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--brand-cream);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 600; color: var(--brand-primary);
    font-family: var(--font-display);
    flex-shrink: 0;
}
.course-lesson-icon { color: var(--brand-accent); font-size: 1.1rem; }

/* Visor de lección */
.lesson-viewer { border-radius: var(--radius); overflow: hidden; background: #000; }
.lesson-viewer .alert { background: white; }

.lesson-sidebar {
    background: white;
    border: 1px solid var(--brand-soft);
    border-radius: var(--radius);
    padding: 1rem;
    position: sticky; top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}
.lesson-sidebar h6 { font-family: var(--font-display); color: var(--brand-dark); }
.lesson-sidebar-item {
    display: flex; align-items: center; gap: 8px;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-main);
    margin-bottom: 3px;
    font-size: 0.9rem;
}
.lesson-sidebar-item:hover { background: var(--brand-cream); color: var(--brand-dark); }
.lesson-sidebar-item.active {
    background: rgba(181,152,195,0.15);
    color: var(--brand-primary);
    font-weight: 500;
}
.lesson-sidebar-item .num {
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--brand-soft); color: var(--brand-primary);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.72rem; font-weight: 600;
    flex-shrink: 0;
}
.lesson-sidebar-item.active .num { background: var(--brand-primary); color: white; }

/* ============================================================
   CONTENIDO ÁNIMA (bloques, carpetas, media cards)
   ============================================================ */
.theme-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    border: 1px solid var(--brand-soft);
    border-radius: var(--radius);
    padding: 1.15rem 1.25rem;
    height: 100%;
    color: var(--text-main);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.theme-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-accent-soft);
    color: var(--text-main);
}
.theme-card h6 {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--brand-dark);
    margin: 0;
}
.theme-card .folder-icon-wrap {
    width: 52px; height: 52px;
}
.theme-card .folder-icon-wrap i {
    font-size: 1.4rem;
    color: var(--brand-primary);
}

.media-card-anima {
    position: relative;
    background: white;
    border: 1px solid var(--brand-soft);
    border-radius: var(--radius);
    padding: 1.15rem 1.25rem;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.media-card-anima:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-accent-soft);
}
.media-card-anima h6 {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--brand-dark);
    font-size: 1rem;
}
.media-card-anima .media-icon-circle {
    background: linear-gradient(135deg, rgba(181,152,195,0.20), rgba(122,150,120,0.15));
    color: var(--brand-primary);
}

.bg-brand-soft { background-color: rgba(181,152,195,0.15) !important; }
.text-brand { color: var(--brand-primary) !important; }

/* ============================================================
   TEST ORIENTADOR — opciones de respuesta y escala
   ============================================================ */
.test-option {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1.5px solid var(--brand-soft);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s, transform 0.1s;
}
.test-option:hover { border-color: var(--brand-light); background: var(--brand-cream); }
.test-option.is-active { border-color: var(--brand-primary); background: rgba(63,90,61,0.05); }

.test-option-check {
    flex-shrink: 0;
    width: 24px; height: 24px;
    border-radius: 50%;
    border: 2px solid var(--brand-soft);
    display: inline-flex; align-items: center; justify-content: center;
    color: transparent;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.test-option.is-active .test-option-check {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
}
.test-option-label { color: var(--text-main); line-height: 1.4; }

.test-scale {
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    gap: 6px;
    margin-top: 0.5rem;
}
.test-scale-item {
    cursor: pointer;
    background: #fff;
    border: 1.5px solid var(--brand-soft);
    border-radius: 8px;
    padding: 0.65rem 0;
    text-align: center;
    font-weight: 600;
    color: var(--brand-dark);
    transition: all 0.12s;
}
.test-scale-item:hover { border-color: var(--brand-light); }
.test-scale-item.is-active { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
@media (max-width: 575.98px) {
    .test-scale { grid-template-columns: repeat(6, 1fr); }
}

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35), 0 2px 6px rgba(0,0,0,0.12);
    text-decoration: none;
    z-index: 9998;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.whatsapp-float:hover {
    background: #1EBE5D;
    color: #fff !important;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45), 0 4px 10px rgba(0,0,0,0.15);
}
.whatsapp-float:focus-visible {
    outline: 3px solid rgba(37, 211, 102, 0.4);
    outline-offset: 3px;
}
@media (max-width: 575.98px) {
    .whatsapp-float { width: 52px; height: 52px; font-size: 1.55rem; right: 16px; bottom: 16px; }
}

/* ============================================================
   COOKIE BANNER + PÁGINAS LEGALES
   ============================================================ */
.anima-cookie-banner {
    position: fixed;
    left: 16px; right: 16px; bottom: 16px;
    z-index: 9999;
    background: white;
    border: 1px solid var(--brand-soft);
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 1rem 1.25rem;
    max-width: 900px;
    margin: 0 auto;
}
.anima-cookie-body {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.anima-cookie-text {
    flex: 1 1 300px;
    font-size: 0.88rem;
    color: var(--text-main);
}
.anima-cookie-text strong {
    display: block;
    font-family: var(--font-display);
    color: var(--brand-dark);
    margin-bottom: 0.15rem;
}
.anima-cookie-text a { color: var(--brand-primary); }
.anima-cookie-actions {
    display: flex; gap: 0.5rem;
    flex-shrink: 0;
}
@media (max-width: 575.98px) {
    .anima-cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 0.85rem; }
    .anima-cookie-actions { width: 100%; }
    .anima-cookie-actions .btn { flex: 1; }
}

.legal-content h2 {
    font-family: var(--font-display);
    color: var(--brand-dark);
    font-weight: 500;
    font-size: 1.35rem;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}
.legal-content h3 {
    font-family: var(--font-display);
    color: var(--brand-primary);
    font-weight: 500;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.legal-content p, .legal-content li {
    line-height: 1.7;
    color: var(--text-main);
}
.legal-content ul { padding-left: 1.5rem; }
.legal-content code {
    background: var(--brand-cream);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--brand-dark);
    font-size: 0.85em;
}
.legal-content table {
    margin: 1rem 0;
}
.legal-content table th {
    background: var(--brand-cream);
    color: var(--brand-dark);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.85rem;
}

/* ============================================================
   CONSULTA — Booking calendario tipo Calendly
   ============================================================ */
.booking-cal-wrap { padding: 1.5rem; }
.booking-cal-left  { padding-right: 1.25rem; }
.booking-cal-right {
    padding-left: 1.25rem;
    border-left: 1px solid var(--brand-soft);
}

/* ============================================================
   TEST ORIENTADOR — Vista de resultado (Pasaporte Ánima)
   ============================================================ */
.test-result-alert {
    border: 1.5px solid;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}
.test-result-alert h4 { font-family: var(--font-display); font-weight: 600; }
.test-result-alert ul { padding-left: 1.25rem; }

.test-result-goal {
    background: var(--brand-cream);
    border-left: 4px solid var(--brand-accent);
    padding: 1.15rem 1.35rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}
.test-result-goal blockquote {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--brand-dark);
    font-style: italic;
    line-height: 1.4;
}

.test-result-priority {
    background: #fff;
    border: 1px solid var(--brand-soft);
    border-radius: 12px;
    padding: 1rem 1.15rem;
    height: 100%;
}
.test-result-priority-header {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 0.75rem;
    margin-bottom: 0.6rem;
    border-bottom: 3px solid;
}
.test-result-priority-num {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-dark);
}
.test-result-priority h5 {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--brand-dark);
    margin: 0;
}

.test-result-card {
    display: flex; gap: 0.85rem; align-items: flex-start;
    background: #fff;
    border: 1px solid var(--brand-soft);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    height: 100%;
}
.test-result-card i { font-size: 1.4rem; padding-top: 0.15rem; flex-shrink: 0; }

.test-result-path {
    background: var(--brand-cream);
    border-radius: 12px;
    padding: 1.5rem 1.5rem 1.5rem 3rem;
    counter-reset: path;
    list-style: none;
}
.test-result-path li {
    position: relative;
    padding: 0.6rem 0 0.6rem 0.85rem;
    color: var(--text-main);
    counter-increment: path;
    border-bottom: 1px solid var(--brand-soft);
}
.test-result-path li:last-child { border-bottom: 0; }
.test-result-path li::before {
    content: counter(path);
    position: absolute;
    left: -2rem;
    top: 0.6rem;
    width: 26px; height: 26px;
    background: var(--brand-primary);
    color: #fff;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
}

/* ============================================================
   PASAPORTE ÁNIMA v2 — resultado (mapa + camino + plan + cierre)
   Spec: docs/pasaporte-resultados-v2.md
   ============================================================ */
.passport-area-card {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid transparent;
    border-left-width: 4px;
    border-radius: var(--radius-sm);
    background: #fff;
    height: 100%;
    transition: transform 0.15s, box-shadow 0.15s;
}
.passport-area-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.passport-area-dot {
    width: 8px;
    border-radius: 4px;
    align-self: stretch;
    flex-shrink: 0;
}
.passport-area-body { flex: 1; min-width: 0; }
.passport-area-name {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--brand-dark);
    font-size: 0.95rem;
    line-height: 1.2;
    margin-bottom: 0.2rem;
}
.passport-area-status {
    font-size: 0.78rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.passport-need-card {
    background: #fff;
    border: 1px solid var(--brand-soft);
    border-radius: var(--radius-sm);
    padding: 1rem 1.1rem;
    height: 100%;
}
.passport-need-badge {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.passport-meaning {
    background: var(--brand-cream);
    border-left: 3px solid var(--brand-accent-soft);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 0.9rem 1.1rem;
}
.passport-meaning strong {
    display: block;
    color: var(--brand-dark);
    font-family: var(--font-display);
    margin-bottom: 0.25rem;
}

.passport-camino-card {
    background: #fff;
    border: 1px solid var(--brand-soft);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.passport-camino-card:hover {
    border-color: var(--brand-accent-soft);
    box-shadow: var(--shadow-sm);
}
.passport-camino-icon {
    width: 48px; height: 48px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(181,152,195,0.2), rgba(122,150,120,0.15));
    color: var(--brand-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.passport-camino-because {
    background: rgba(63,90,61,0.04);
    padding: 0.7rem 0.9rem;
    border-radius: var(--radius-sm);
}
.passport-checklist,
.passport-benefit-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.passport-checklist li {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    padding: 0.15rem 0;
    font-size: 0.9rem;
}
.passport-checklist li i {
    font-size: 1rem;
}
.passport-benefit-list li {
    padding: 0.15rem 0 0.15rem 1rem;
    position: relative;
    font-size: 0.9rem;
}
.passport-benefit-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--brand-accent);
    font-weight: 700;
}

.passport-plan {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.passport-plan-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--brand-soft);
    border-left: 4px solid var(--brand-primary);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
}
.passport-plan-num {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--brand-primary);
    font-size: 1.15rem;
    flex-shrink: 0;
    min-width: 3rem;
}
.passport-plan-body { flex: 1; }
.passport-plan-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-accent);
    font-weight: 500;
    margin-bottom: 0.15rem;
}

.passport-cta {
    background: linear-gradient(135deg, var(--brand-cream), rgba(181,152,195,0.15));
    border: 1px solid var(--brand-soft);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.passport-closing {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
}
.passport-closing::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(181,152,195,0.25), transparent 55%);
    pointer-events: none;
}
.passport-closing > * { position: relative; }
.passport-closing p { margin-bottom: 0.75rem; }
.passport-closing-lead {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
}
.passport-closing-anima {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-style: italic;
    opacity: 0.95;
}
.passport-closing .btn-brand {
    background: #fff;
    color: var(--brand-primary);
    border-color: #fff;
}
.passport-closing .btn-brand:hover {
    background: var(--brand-cream);
    color: var(--brand-dark);
    border-color: var(--brand-cream);
}
.passport-closing .btn-outline-brand {
    color: #fff;
    border-color: rgba(255,255,255,0.6);
    background: transparent;
}
.passport-closing .btn-outline-brand:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: #fff;
}
.passport-closing .btn-accent {
    background: var(--brand-accent-soft);
    border-color: var(--brand-accent-soft);
    color: var(--brand-dark);
}
.passport-closing .btn-accent:hover {
    background: #fff;
    border-color: #fff;
    color: var(--brand-primary);
}

/* ============================================================
   ADMIN — Agenda mensual de reservas (/admin/consulta)
   ============================================================ */
.agenda-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.agenda-dow {
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0.35rem 0;
    font-weight: 600;
}
.agenda-day {
    min-height: 90px;
    padding: 4px;
    background: #fff;
    border: 1px solid var(--brand-soft);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.agenda-day.is-blank { border-color: transparent; background: transparent; }
.agenda-day.is-today { border-color: var(--brand-primary); box-shadow: 0 0 0 1px var(--brand-primary); }
.agenda-day-clickable {
    text-align: left;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s, border-color 0.1s;
}
.agenda-day-clickable:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--brand-accent-soft);
}
.agenda-day-clickable.is-blank { cursor: default; }
.agenda-day-clickable.is-blank:hover { transform: none; box-shadow: none; }
.agenda-day-count {
    display: block;
    font-size: 0.68rem;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1.2;
    font-weight: 600;
}
.agenda-day-count.booked { background: rgba(40,167,69,0.15);  color: #1e7e34; }
.agenda-day-count.blocked { background: rgba(220,53,69,0.12); color: #a71d2a; }

/* ------- Day view modal (agenda diaria tipo Cal.com) ------- */
.day-view-modal .modal-dialog { max-width: 640px; }
.day-view-modal .modal-header {
    align-items: flex-start;
    border-bottom: 1px solid var(--brand-soft);
}
.day-slots {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.day-slot {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--brand-soft);
    background: white;
    transition: background 0.12s;
}
.day-slot:hover { background: var(--brand-cream); }
.day-slot-time {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    min-width: 68px;
    line-height: 1.15;
}
.day-slot-time strong { font-size: 0.95rem; color: var(--brand-dark); }
.day-slot-body {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
    min-width: 0;
}
.day-slot-label {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.day-slot-status {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.day-slot-status.open     { background: rgba(40,167,69,0.15);  color: #1e7e34; }
.day-slot-status.booked   { background: rgba(0,123,255,0.15);  color: #0056b3; }
.day-slot-status.blocked  { background: rgba(220,53,69,0.15);  color: #a71d2a; }
.day-slot-status.exercise { background: rgba(124,91,143,0.15); color: #4e2f5d; }
.day-slot-status.closed   { background: rgba(108,117,125,0.10);color: #495057; }

.day-slot.slot-closed { background: transparent; opacity: 0.6; }
.day-slot.slot-open   { border-color: rgba(40,167,69,0.35); }
.day-slot.slot-booked { border-color: rgba(0,123,255,0.35); background: rgba(0,123,255,0.04); }
.day-slot.slot-blocked  { border-color: rgba(220,53,69,0.35); background: rgba(220,53,69,0.04); }
.day-slot.slot-exercise { border-color: rgba(124,91,143,0.35); background: rgba(124,91,143,0.04); }
.agenda-day-num {
    font-size: 0.85rem;
    color: var(--brand-dark);
    font-weight: 600;
    padding: 2px 4px;
}
.agenda-chip {
    display: block;
    text-align: left;
    border: 0;
    border-radius: 5px;
    padding: 3px 6px;
    font-size: 0.72rem;
    line-height: 1.25;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: transform 0.1s, filter 0.1s;
}
.agenda-chip:hover { transform: translateY(-1px); filter: brightness(1.08); }
.agenda-legend {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 6px 14px;
}
.agenda-legend-dot {
    display: inline-block;
    width: 10px; height: 10px;
    border-radius: 3px;
    margin-right: 4px;
    vertical-align: middle;
}
@media (max-width: 767.98px) {
    .agenda-day { min-height: 70px; }
    .agenda-chip { font-size: 0.65rem; }
}

.booking-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.booking-cal-dow {
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0.35rem 0;
    font-weight: 600;
}
.booking-cal-day {
    aspect-ratio: 1 / 1;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 10px;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    transition: background-color 0.12s, color 0.12s, border-color 0.12s;
    font-size: 0.95rem;
}
.booking-cal-day.is-blank { visibility: hidden; }
.booking-cal-day.is-disabled {
    color: #c9c1b3;
    cursor: default;
    background: transparent;
}
.booking-cal-day.is-available {
    background: var(--brand-cream);
    color: var(--brand-dark);
    font-weight: 600;
}
.booking-cal-day.is-available:hover {
    background: var(--brand-soft);
}
.booking-cal-day.is-today {
    border-color: var(--brand-primary);
}
.booking-cal-day.is-selected {
    background: var(--brand-primary) !important;
    color: #fff !important;
    border-color: var(--brand-primary);
}

.booking-cal-legend {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex; align-items: center; gap: 0.5rem;
}
.booking-cal-legend-dot {
    display: inline-block;
    width: 12px; height: 12px;
    background: var(--brand-cream);
    border-radius: 3px;
}

.booking-cal-day-title {
    padding-bottom: 0.75rem;
    margin-bottom: 0.85rem;
    border-bottom: 1px solid var(--brand-soft);
    min-height: 44px;
    color: var(--brand-dark);
}
.booking-cal-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
}
.booking-cal-slot-form { margin: 0; }
.booking-cal-slot {
    width: 100%;
    background: #fff;
    border: 1.5px solid var(--brand-soft);
    color: var(--brand-primary);
    padding: 0.6rem 0.4rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.12s, border-color 0.12s, color 0.12s, transform 0.1s;
}
.booking-cal-slot:hover {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
    transform: translateY(-1px);
}

@media (max-width: 767.98px) {
    .booking-cal-left  { padding: 0 0 1.25rem 0; }
    .booking-cal-right {
        padding: 1.25rem 0 0 0;
        border-left: 0;
        border-top: 1px solid var(--brand-soft);
    }
}

/* Legacy: tarjetas booking-day (aún usadas en otras vistas antiguas) */
.booking-day {
    background: white;
    border: 1px solid var(--brand-soft);
    border-radius: var(--radius);
    padding: 1rem 1.15rem;
    height: 100%;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.booking-day:hover { border-color: var(--brand-accent-soft); box-shadow: var(--shadow-sm); }

.booking-day-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--brand-soft);
}
.booking-day-num {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--brand-cream);
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--brand-primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.booking-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
    gap: 6px;
}
.booking-slot {
    border: 1px solid var(--brand-soft);
    background: white;
    color: var(--brand-primary);
    padding: 0.55rem 0.4rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.92rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.12s;
    text-align: center;
}
.booking-slot:hover {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
    transform: translateY(-1px);
}

/* Lista de reservas del usuario */
.booking-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    border: 1px solid var(--brand-soft);
    border-radius: var(--radius);
    padding: 0.9rem 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.booking-list-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--brand-accent-soft);
    color: var(--text-main);
}
.booking-list-item .event-date {
    text-align: center;
    min-width: 54px;
    padding: 4px;
    background: var(--brand-cream);
    border-radius: 8px;
    border: 1px solid var(--brand-soft);
}
.booking-list-item .event-date .day {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--brand-primary);
    line-height: 1;
}
.booking-list-item .event-date .month {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    color: var(--brand-accent);
    text-transform: uppercase;
}

/* Selector de idioma (variante inline sobre fondo brand ahora blanco) */
.navbar.bg-brand .locale-switcher a {
    color: var(--brand-dark);
    opacity: 0.75;
}
.navbar.bg-brand .locale-switcher a:hover {
    color: var(--brand-primary);
    opacity: 1;
}
.navbar.bg-brand .locale-switcher .fw-semibold {
    color: var(--brand-primary);
}
.navbar.bg-brand .locale-switcher .text-muted {
    color: var(--brand-dark) !important;
    opacity: 0.4;
}
.mobile-nav-link:hover { background: rgba(255,255,255,0.1); color: white; }
.mobile-nav-link i { width: 20px; text-align: center; margin-right: 8px; }

/* ============================================================
   BOTONES
   ============================================================ */
.btn-brand {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: white; border-radius: var(--radius-sm);
}
.btn-brand:hover, .btn-brand:focus {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
    color: white;
}

.btn-outline-brand {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
    border-radius: var(--radius-sm);
}
.btn-outline-brand:hover {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: white;
}

.text-brand { color: var(--brand-primary) !important; }
.bg-brand-soft { background-color: var(--brand-soft) !important; }

/* ============================================================
   AUTH PAGE — Pantalla dividida login
   ============================================================ */
.auth-page { margin: 0; padding: 0; background: var(--brand-cream); }

.auth-split {
    display: flex; min-height: 100vh;
}

.auth-hero {
    flex: 0 0 45%; position: relative;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #B598C3 0%, #7A9678 55%, #3F5A3D 100%);
    overflow: hidden;
}

.auth-hero-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 60%, rgba(255,255,255,0.08) 0%, transparent 60%);
}

.auth-hero-content {
    position: relative; z-index: 1;
    text-align: center; color: white; padding: 2rem;
}

.auth-logo {
    font-size: 4rem; opacity: 0.9;
    margin-bottom: 1rem;
}

.auth-hero-title {
    font-family: var(--font-display);
    font-size: 2.5rem; font-weight: 700;
    letter-spacing: 0.5px; margin-bottom: 0.5rem;
}

.auth-hero-subtitle {
    font-size: 1.05rem; opacity: 0.85;
    font-weight: 300; line-height: 1.6;
}

.auth-hero-dots { margin-top: 2rem; }
.auth-hero-dots span {
    display: inline-block; width: 6px; height: 6px;
    border-radius: 50%; background: rgba(255,255,255,0.4);
    margin: 0 4px;
}
.auth-hero-dots span:nth-child(2) { background: rgba(255,255,255,0.7); }

.auth-form-panel {
    flex: 1; display: flex; align-items: center; justify-content: center;
    padding: 2rem;
}

.auth-form-wrapper { width: 100%; max-width: 400px; }

.auth-mobile-logo {
    font-size: 3rem; color: var(--brand-accent);
}
.auth-mobile-title {
    font-family: var(--font-display);
    font-size: 1.6rem; font-weight: 700;
    color: var(--brand-dark);
}

@media (max-width: 767.98px) {
    .auth-form-panel { padding: 1.5rem 1rem; }
}

/* ============================================================
   HOME
   ============================================================ */
.home-hero {
    background: linear-gradient(135deg, var(--brand-soft) 0%, var(--brand-cream) 100%);
    border-radius: var(--radius);
    overflow: hidden;
}

.home-hero-inner {
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.home-hero-title {
    font-family: var(--font-display);
    font-size: 2rem; font-weight: 700;
    color: var(--brand-dark);
}

.home-hero-subtitle {
    color: var(--text-muted); font-size: 1rem;
    font-weight: 300; margin-top: 0.3rem;
}

@media (min-width: 768px) {
    .home-hero-inner { padding: 3.5rem 2rem; }
    .home-hero-title { font-size: 2.4rem; }
}

/* Block cards */
.block-card {
    border-radius: var(--radius) !important;
    transition: transform 0.2s, box-shadow 0.2s;
}
.block-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg) !important;
}
.block-card-icon { font-size: 2.5rem; }

/* News */
.news-card, .news-card-single {
    border-radius: var(--radius) !important;
}
.news-img-cover {
    background-size: cover; background-position: center;
    min-height: 140px;
}
.news-body { line-height: 1.7; }
.news-body-compact { line-height: 1.5; }

/* Search bar */
.search-bar-home {
    background: white;
    border-radius: var(--radius);
    padding: 1.2rem;
    box-shadow: var(--shadow-sm);
}

/* ============================================================
   CARDS
   ============================================================ */
.card { border-radius: var(--radius) !important; }

.folder-card {
    transition: transform 0.15s, box-shadow 0.15s;
    cursor: pointer;
}
.folder-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg) !important;
}
.folder-icon-wrap {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--brand-soft);
    display: flex; align-items: center; justify-content: center;
}
.folder-icon-wrap-sm {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--brand-soft);
    display: flex; align-items: center; justify-content: center;
}

/* Media card */
.media-card {
    transition: transform 0.12s, box-shadow 0.12s;
    border-radius: var(--radius) !important;
}
.media-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow) !important;
}
.media-icon-circle {
    width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}

/* Block hero */
.block-hero { border-radius: var(--radius); overflow: hidden; }

/* ============================================================
   CONTENT DETAIL
   ============================================================ */
.content-viewer { border-radius: 0; overflow: hidden; }
.content-viewer iframe,
.content-viewer video { border: 0; }

.content-meta-list { display: flex; flex-direction: column; gap: 0.5rem; }
.content-meta-item {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.85rem;
}
.content-meta-label { color: #999; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb { background: none; padding: 0; font-size: 0.82rem; margin-bottom: 0; }
.breadcrumb a { color: var(--brand-primary); }

/* ============================================================
   FORMS
   ============================================================ */
.form-control, .form-select {
    border-radius: var(--radius-sm);
}
.form-control:focus, .form-select:focus {
    border-color: var(--brand-light);
    box-shadow: 0 0 0 3px rgba(63,90,61,0.10);
}
.input-group-text {
    background-color: white; color: var(--brand-primary);
}
.input-group-lg .form-control { font-size: 1rem; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert { border-radius: var(--radius-sm); border: none; }

/* ============================================================
   BADGES
   ============================================================ */
.badge { font-weight: 500; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: white;
    border-top: 1px solid var(--brand-soft);
}
.footer-brand {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--brand-dark);
    font-size: 0.95rem;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.page-item.active .page-link {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}
.page-link { color: var(--brand-primary); border-radius: 8px !important; }

/* ============================================================
   TABLES (admin)
   ============================================================ */
.table th {
    font-size: 0.72rem; text-transform: uppercase;
    letter-spacing: 0.5px; color: #999; font-weight: 700;
}
.table .btn-link { text-decoration: none; }

/* ============================================================
   ADMIN (importado del bloque anterior)
   ============================================================ */
.admin-body { background-color: #f6f4f1; }

.admin-sidebar {
    background: white; min-height: calc(100vh - 56px);
    position: sticky; top: 56px; height: calc(100vh - 56px);
    overflow-y: auto;
}
.admin-sidebar .nav-link, #sidebarOffcanvas .nav-link {
    color: #555; padding: 0.55rem 1rem;
    border-radius: 8px; margin: 1px 6px; font-size: 0.88rem;
    transition: all 0.15s;
}
.admin-sidebar .nav-link:hover, #sidebarOffcanvas .nav-link:hover {
    background-color: var(--brand-soft); color: var(--brand-dark);
}
.admin-sidebar .nav-link.active, #sidebarOffcanvas .nav-link.active {
    background-color: var(--brand-primary); color: white; font-weight: 600;
}
.sidebar-heading { font-size: 0.7rem; letter-spacing: 1px; }

.admin-breadcrumb {
    padding: 0.4rem 0.8rem; border-radius: 8px;
    background: white; border: 1px solid #eee; font-size: 0.85rem;
}
.admin-breadcrumb a { color: var(--brand-primary); text-decoration: none; }

.folder-admin-card {
    border-radius: var(--radius-sm);
    transition: transform 0.12s, box-shadow 0.12s;
    overflow: visible;
}
.folder-admin-card:hover {
    transform: translateY(-2px); box-shadow: var(--shadow) !important;
}
/* Cuando se abre el dropdown de 3 puntos, elevamos el col padre completo
   para que el menú NO quede tapado por las carpetas de la fila siguiente.
   :has() está soportado en todos los navegadores modernos (2024+). */
.sortable-item:has(.dropdown-menu.show) { z-index: 1055; position: relative; }
.folder-admin-card .dropdown-menu { z-index: 1056; }

.item-hidden { opacity: 0.45; }
.item-hidden:hover { opacity: 0.75; }

/* Permitir que los dropdowns salgan del table-responsive */
.table-responsive { overflow: visible !important; }

.admin-file-table th {
    font-size: 0.72rem; border-bottom: 2px solid #eee; padding: 0.5rem 0.75rem;
}
.admin-file-table td { padding: 0.55rem 0.75rem; font-size: 0.88rem; }
.admin-file-table tbody tr:hover { background-color: rgba(63,90,61,0.04); }

.ls-wide { letter-spacing: 0.5px; }

/* Drop zone */
.dropzone-wrapper {
    border: 2px dashed var(--brand-light); border-radius: var(--radius);
    background: white; transition: all 0.2s;
}
.dropzone-inner { text-align: center; padding: 2rem 1rem; color: #888; }
.dropzone-wrapper.dropzone-active {
    border-color: var(--brand-primary);
    background: rgba(63,90,61,0.04);
    box-shadow: 0 0 0 4px rgba(63,90,61,0.08);
}
.upload-queue { padding: 1rem; }
.upload-item { border-bottom: 1px solid #f0f0f0; }
.upload-item:last-child { border-bottom: none; }
.block-tab-wrapper { display: inline-flex; align-items: center; }
.progress { height: 6px; border-radius: 3px; }
.progress-bar { transition: width 0.4s ease; }

/* Sortable */
.sortable-ghost { opacity: 0.3; background: var(--brand-soft) !important; }
.sortable-chosen { box-shadow: var(--shadow-lg); }
.drag-handle, .drag-handle-cell { cursor: grab; }
.drag-handle:active, .drag-handle-cell:active { cursor: grabbing; }
.drag-handle {
    position: absolute; top: 4px; left: 4px;
    opacity: 0; transition: opacity 0.15s;
}
.folder-admin-card:hover .drag-handle { opacity: 0.5; }

/* Bulk toolbar */
.bulk-toolbar .card { border-radius: var(--radius-sm); }
.border-brand { border-color: var(--brand-light) !important; }

/* Preview panel */
.preview-panel .preview-media {
    border-bottom: 1px solid #eee; min-height: 120px;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.preview-panel .preview-media img, .preview-panel .preview-media video { max-width: 100%; }
.content-row.table-active {
    background-color: rgba(63,90,61,0.08) !important;
    border-left: 3px solid var(--brand-primary);
}

/* Tag autocomplete */
.tag-autocomplete-dropdown div:hover { background-color: var(--brand-cream); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767.98px) {
    .home-hero-title { font-size: 1.6rem; }
    .block-card-icon { font-size: 2rem; }
    .admin-file-table { font-size: 0.82rem; }
    .dropzone-inner { padding: 1.2rem 0.8rem; }
    .bulk-toolbar .card-body { padding: 0.5rem !important; }
    .bulk-toolbar .btn { font-size: 0.72rem; padding: 0.2rem 0.4rem; }
    .media-icon-circle { width: 36px; height: 36px; font-size: 0.95rem; }
    .content-viewer iframe { min-height: 250px; }
}

/* ============================================================
   Noticias & Agenda — calendario mensual + timeline
   ============================================================ */
.news-period-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.25rem;
    color: var(--brand-dark);
    text-transform: capitalize;
    min-width: 180px;
    text-align: center;
}

.news-cal {
    background: white;
    border: 1px solid var(--brand-soft);
    border-radius: var(--radius);
    padding: 1rem;
    position: sticky;
    top: 6rem;
}
.news-cal-head {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}
.news-cal-day-name {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 0.25rem 0;
}
.news-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.35rem;
}
.news-cal-cell {
    aspect-ratio: 1;
    background: transparent;
    border: 1.5px solid transparent;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: default;
    transition: background 0.12s, border-color 0.12s;
}
.news-cal-cell.empty { visibility: hidden; }
.news-cal-cell.has {
    color: var(--brand-dark);
    background: var(--brand-cream);
    cursor: pointer;
}
.news-cal-cell.has:hover {
    background: var(--brand-soft);
}
.news-cal-cell.today {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    font-weight: 600;
}
.news-cal-cell.selected {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}
.news-cal-cell.selected .dot { border-color: white; }
.news-cal-cell .d-num { line-height: 1; }
.news-cal-cell .d-dots {
    display: inline-flex;
    gap: 3px;
    align-items: center;
}
.dot {
    display: inline-block;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: currentColor;
    border: 1px solid transparent;
}
.dot-event { background: var(--brand-primary); }
.dot-news  { background: var(--brand-accent); }

.news-cal-legend {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--brand-soft);
    font-size: 0.72rem;
    color: var(--text-muted);
}
.news-cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.news-cal-legend .dot { width: 7px; height: 7px; }

/* Timeline lateral */
.news-item {
    display: flex;
    gap: 1rem;
    background: white;
    border: 1px solid var(--brand-soft);
    border-radius: var(--radius);
    padding: 1rem;
    cursor: pointer;
    outline: none;
    transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
}
.news-item:hover {
    box-shadow: var(--shadow);
    border-color: var(--brand-accent-soft);
    transform: translateY(-1px);
}
.news-item:focus-visible {
    box-shadow: 0 0 0 3px var(--brand-accent-soft);
    border-color: var(--brand-accent-soft);
}
/* Evento ya finalizado: fondo más apagado, texto gris, imagen desaturada. */
.news-item.is-past {
    background: #f5f5f3;
    border-color: #e5e5e0;
}
.news-item.is-past .news-item-thumb img { filter: grayscale(0.6) opacity(0.75); }
.news-item.is-past .news-item-title,
.news-item.is-past .news-item-subtitle,
.news-item.is-past .news-item-body-text { color: #6c757d; }
.news-item.is-past .news-item-date { opacity: 0.6; }
.news-item.is-past:hover { box-shadow: 0 2px 6px rgba(0,0,0,0.05); }

/* Card de "Próximos eventos" cuando el evento ya pasó. */
.card.event-past { opacity: 0.65; }
.card.event-past:hover { opacity: 0.85; }
.news-item-thumb {
    flex-shrink: 0;
    width: 92px;
    height: 92px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--brand-cream);
}
.news-item-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.news-item:hover .news-item-thumb img { transform: scale(1.06); }
.news-item-date {
    flex-shrink: 0;
    text-align: center;
    min-width: 58px;
    padding: 6px 4px;
    border-radius: 10px;
    background: var(--brand-cream);
    border: 1px solid var(--brand-soft);
}
.news-item-date.evt { border-color: rgba(63,90,61,0.25); }
.news-item-date.nws { border-color: rgba(124,91,143,0.30); }
.news-item-date .d {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--brand-primary);
    line-height: 1;
}
.news-item-date.nws .d { color: var(--brand-accent); }
.news-item-date .m {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 2px;
}
.news-item-body { flex-grow: 1; min-width: 0; }
.news-item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
}
.news-item-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.news-item-badge.evt { background: rgba(63,90,61,0.10); color: var(--brand-primary); }
.news-item-badge.nws { background: rgba(124,91,143,0.12); color: var(--brand-accent); }
.news-item-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--brand-dark);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}
.news-item-subtitle { margin-bottom: 0.3rem; }
.news-item-body-text {
    color: var(--text-main);
    font-size: 0.9rem;
    line-height: 1.55;
}
.news-item-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--brand-primary);
    font-weight: 500;
    text-decoration: none;
}
.news-item-link:hover { text-decoration: underline; color: var(--brand-dark); }

/* Vista año — mini-calendarios */
.news-year-cell {
    display: block;
    background: white;
    border: 1px solid var(--brand-soft);
    border-radius: var(--radius);
    padding: 1rem;
    text-decoration: none;
    color: var(--text-main);
    height: 100%;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.news-year-cell:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-accent-soft);
    color: var(--text-main);
}
.news-year-cell.empty { opacity: 0.55; }
.news-year-cell.empty:hover { transform: none; }
.news-year-month-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.6rem;
}
.news-year-month-name {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--brand-dark);
    text-transform: capitalize;
    font-size: 1rem;
}
.news-year-count {
    background: var(--brand-primary);
    color: white;
    border-radius: 999px;
    padding: 1px 8px;
    font-size: 0.68rem;
    font-weight: 600;
}
.news-year-mini {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}
.news-year-mini .d,
.news-year-mini .d-empty {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    color: var(--text-muted);
    border-radius: 4px;
}
.news-year-mini .d.has {
    color: white;
    font-weight: 600;
}
.news-year-mini .d.has.evt { background: var(--brand-primary); }
.news-year-mini .d.has.nws { background: var(--brand-accent); }
.news-year-mini .d.has.both {
    background: linear-gradient(135deg, var(--brand-primary) 50%, var(--brand-accent) 50%);
}

@media (max-width: 991.98px) {
    .news-cal { position: static; }
}
@media (max-width: 575.98px) {
    .news-item-thumb { width: 72px; height: 72px; }
}

/* ============================================================
   Modal detalle de noticia/evento
   ============================================================ */
.news-modal .modal-dialog { max-width: min(94vw, 1100px); margin: 1.75rem auto; }
.news-modal .modal-content {
    background: white;
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
    position: relative;
}
.news-modal-close {
    position: absolute;
    top: 12px; right: 12px;
    z-index: 10;
    width: 38px; height: 38px;
    border: none;
    background: rgba(255,255,255,0.95);
    color: var(--brand-dark);
    border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    font-size: 0.95rem;
    transition: transform 0.2s, background 0.2s;
}
.news-modal-close:hover {
    background: white;
    transform: rotate(90deg);
}
.news-modal-row { min-height: 460px; }
.news-modal-img-col {
    position: relative;
    background: var(--brand-cream);
    display: flex;
    align-items: stretch;
    overflow: hidden;
    isolation: isolate;
    min-height: 320px;
}
/* Backdrop borroso con la misma imagen (mismo patrón que /curso/{slug}).
   La URL se pasa como CSS custom property --modal-bg desde JS al abrir. */
.news-modal-img-col::before {
    content: '';
    position: absolute;
    inset: -8%;
    background-image: var(--modal-bg, none);
    background-size: cover;
    background-position: center;
    filter: blur(28px) saturate(1.15);
    transform: scale(1.08);
    z-index: 0;
}
.news-modal-img-col img {
    position: relative;
    z-index: 1;
    width: 100%; height: 100%;
    object-fit: contain;
    display: block;
}
.news-modal-img-col.news-modal-noimg::before { display: none; }
.news-modal-img-col.news-modal-noimg { align-items: center; justify-content: center; }
.news-modal-placeholder {
    color: var(--brand-accent-soft);
    font-size: 4rem;
    padding: 2rem;
}
.news-modal-body-col { display: flex; }
.news-modal-inner {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: 82vh;
    overflow-y: auto;
}
.news-modal-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}
.news-modal-title {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--brand-dark);
    font-size: 1.7rem;
    line-height: 1.25;
    margin-bottom: 0.35rem;
}
.news-modal-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}
.news-modal-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    padding: 0.85rem 1rem;
    background: var(--brand-cream);
    border-radius: 10px;
    margin-bottom: 1.25rem;
}
.news-modal-info i { color: var(--brand-primary); margin-right: 6px; }
.news-modal-info div:first-letter { text-transform: capitalize; }
.news-modal-desc {
    color: var(--text-main);
    line-height: 1.7;
    font-size: 0.98rem;
    white-space: normal;
}
.news-modal-desc p { margin: 0 0 0.75rem; }
.news-modal-desc p:last-child { margin-bottom: 0; }
/* Párrafos vacíos que inserta Quill como separadores: los convertimos en
   media línea en blanco en lugar de colapsar */
.news-modal-desc p:empty { min-height: 0.5rem; margin-bottom: 0.4rem; }
.news-modal-desc a { color: var(--brand-primary); }
.news-modal-desc a:hover { color: var(--brand-dark); }
.news-modal-desc ul, .news-modal-desc ol { padding-left: 1.5rem; margin: 0 0 0.75rem; }
.news-modal-desc strong { color: var(--brand-dark); }
.news-modal-desc img { max-width: 100%; height: auto; border-radius: 8px; margin: 0.5rem 0; }

@media (max-width: 767.98px) {
    .news-modal-row { min-height: 0; }
    .news-modal-img-col img { min-height: 220px; max-height: 260px; }
    .news-modal-inner { padding: 1.5rem; max-height: none; }
    .news-modal-title { font-size: 1.35rem; }
    .news-modal-close { top: 8px; right: 8px; width: 34px; height: 34px; }
}

/* ============================================================
   Ejercicio físico — tarjetas de plan (1x / 2x)
   ============================================================ */
.ex-plan-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: white;
    border: 1.5px solid var(--brand-soft);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.ex-plan-card:hover {
    border-color: var(--brand-accent-soft);
    background: var(--brand-cream);
}
.ex-plan-card input[type="radio"] { accent-color: var(--brand-primary); flex-shrink: 0; }
.ex-plan-card > span:not(:last-child) { flex-grow: 1; line-height: 1.35; }
.ex-plan-card:has(input:checked) {
    border-color: var(--brand-primary);
    background: var(--brand-cream);
}
.ex-plan-card:has(input:checked) strong { color: var(--brand-dark); }
