/* ═══ RESET ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Bitter', Georgia, 'Times New Roman', serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a2e;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ============================================
           VARIABLES Y RESET
           ============================================ */
        :root {
    --font-primary: "Bitter", Georgia, "Times New Roman", serif;
            /* Colores institucionales UBA */
            --azul-uba: #1d2554;
            --azul-uba-light: #2e3a6e;
            --azul-uba-dark: #151c3d;
            --celeste-uba: #91bde1;
            --celeste-claro: #bdd7ed;
            --amarillo-uba: #f7a600;
            --amarillo-hover: #e69500;
            --dorado-institucional: #a67c00;
            
            /* Historia = Patrimonio (paleta homologada) */
            --color-historia: #952B6C;
            --color-historia-light: #b84d8a;
            /* ═══ Colores por Área Temática - Paleta FADU unificada ═══ */
        --color-sustentabilidad: #6bbf3a;
        --color-sustentabilidad-bg: #e6f7e0;
        --color-patrimonio: #952B6C;
        --color-patrimonio-bg: #f5e8f0;
        --color-urbanismo: #00b8db;
        --color-urbanismo-bg: #e0f7fb;
        --color-diseno: #6861ac;
        --color-diseno-bg: #e8e6f5;
        --color-proyecto: #ff7621;
        --color-proyecto-bg: #fff3e8;
        --color-gestion: #2eb39a;
        --color-gestion-bg: #e0f7f1;
            
            /* Colores de estado */
            --verde-activo: #4caf50;
            --verde-claro: #8bc34a;
            --naranja-proximo: #ff9800;
            
            /* Neutros */
            --blanco: #ffffff;
            --gris-50: #fafafa;
            --gris-100: #f5f5f5;
            --gris-200: #eeeeee;
            --gris-300: #e0e0e0;
            --gris-400: #bdbdbd;
            --gris-500: #9e9e9e;
            --gris-600: #757575;
            --gris-700: #616161;
            --gris-800: #424242;
            --gris-900: #212121;
            
            /* Tipografía */
            --font-family: 'Bitter', Georgia, 'Times New Roman', serif;
            
            /* Espaciado */
            --spacing-xs: 0.25rem;
            --spacing-sm: 0.5rem;
            --spacing-md: 1rem;
            --spacing-lg: 1.5rem;
            --spacing-xl: 2rem;
            --spacing-2xl: 3rem;
            --spacing-3xl: 4rem;
            
            /* Bordes institucionales */
            --border-radius: 2px;
            
            /* Sombras */
            --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
            --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
            --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
            --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
        }
        
        /* Reset */
        *, *::before, *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        
        html {
            scroll-behavior: smooth;
        }
        
        body {
            font-family: var(--font-family);
            font-size: 16px;
            line-height: 1.6;
            color: var(--gris-800);
            background-color: var(--blanco);
            -webkit-font-smoothing: antialiased;
        }
        
        img {
            max-width: 100%;
            height: auto;
        }
        
        a {
            color: inherit;
            text-decoration: none;
        }
        
        button {
            font-family: inherit;
            cursor: pointer;
        }
/* ============================================
           HEADER
           ============================================ */
        
        
        
        
        
        
        .logo-uba {
            font-size: 1.5rem;
            font-weight: 300;
            color: var(--blanco);
            letter-spacing: -0.5px;
        }
        
        .logo-uba span {
            color: #00bcd4;
            font-weight: 400;
        }
        
        .logo-separador {
            width: 1px;
            height: 32px;
            background: rgba(255,255,255,0.3);
        }
        
        .logo-posgrado {
            font-size: 0.85rem;
            color: rgba(255,255,255,0.9);
            font-weight: 400;
        }
        
        
        
        
        
        
        
        /* Dropdown */
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        /* Menu móvil */
        
        
        
        
        /* ============================================
           BREADCRUMB
           ============================================ */
        
        
        
        
        
        
        
        
        
        
        
        
        /* ============================================
           HERO
           ============================================ */

/* ════════════════════════════════════════════════
   COMPARADOR-SPECIFIC STYLES
   ════════════════════════════════════════════════ */

/* ============================================
   COMPARADOR DE POSGRADOS — FADU UBA
   Solo estilos específicos del comparador.
   Requiere: ../styles/main.css (base del sitio)
   ============================================ */


/* ============================================
   SKIP LINK & SR-ONLY
   ============================================ */


.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;
}

/* ============================================
   CONTAINER
   ============================================ */
/* ============================================
   CONTAINER
   ============================================ */
@media (max-width: 768px) {
}


/* ============================================
   HEADER & NAVIGATION
   ============================================ */
/* ============================================
   HEADER - Sticky institucional
   ============================================ */


/* Dropdown navegación */


/* Menu Mobile */


/* ============================================
   BREADCRUMB
   ============================================ */


/* ============================================
   SECCIONES GENERALES
   ============================================ */
section {
    padding: var(--space-20) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-12);
}

.section-tag {
    display: inline-block;
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--morado-fadu);
    margin-bottom: var(--space-3);
}

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 900;
    color: var(--azul-uba);
    line-height: 1.2;
    margin-bottom: var(--space-4);
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--gris-600);
    line-height: 1.6;
}

.section-subtitle strong {
    color: var(--azul-uba);
}

.section-cta {
    text-align: center;
    margin-top: var(--space-12);
}

/* ============================================
   BADGES - Sistema unificado
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-tipo {
    background: var(--dorado-medio);
    color: var(--azul-uba);
}

/* Badges por tipo de programa - Alto contraste */
.badge-maestria {
    background: var(--azul-uba);
    color: var(--blanco);
}

.badge-especializacion {
    background: #1e2a3a;
    color: var(--blanco);
}

.badge-programa {
    background: var(--morado-fadu);
    color: var(--blanco);
}

.badge-curso {
    background: var(--gris-600);
    color: var(--blanco);
}

.badge-area {
    background: rgba(255,255,255,0.15);
    color: var(--blanco);
    border: 1px solid rgba(255,255,255,0.3);
}

.badge-inscripcion-abierta {
    background: linear-gradient(135deg, #2E7D32 0%, #43A047 100%);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.badge-inscripcion-abierta:hover {
    background: linear-gradient(135deg, #8dc63f 0%, #a4d65e 100%);
    color: #0a1628;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(141, 198, 63, 0.5);
    text-shadow: none;
    font-weight: 700;
}

a.badge-inscripcion-abierta {
    text-decoration: none;
}

.badge-inscripcion-cerrada {
    background: var(--rojo-alerta-bg);
    color: var(--rojo-alerta);
}

.badge-inscripcion-suspendida {
    background: var(--gris-suspendido-bg);
    color: var(--gris-suspendido);
}

/* Badge con animación pulse - desincronizada */
.badge-pulse {
    animation: pulse-glow 2.3s ease-in-out infinite;
}

.badge-pulse:nth-of-type(2) { animation-duration: 2.7s; animation-delay: 0.5s; }
.badge-pulse:nth-of-type(3) { animation-duration: 2.1s; animation-delay: 0.9s; }

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201,162,39,0.4); }
    50% { box-shadow: 0 0 20px 4px rgba(201,162,39,0.3); }
}

/* Dot animado - con variaciones */
.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--blanco);
    border-radius: 2px;
    animation: pulse-dot 2.2s ease-in-out infinite;
}

.badge-inscripcion-abierta .badge-dot {
    background: var(--blanco);
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

/* ============================================
   CARDS - Sistema unificado
   ============================================ */
.card {
    background: var(--blanco);
    border: 1px solid var(--gris-200);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: all var(--transition-base);
}

.card:hover {
    border-color: var(--azul-uba);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

/* Card con línea de color superior */
.card-top-line {
    height: 4px;
    width: 100%;
}

.card-top-line--sustentabilidad { background: var(--color-sustentabilidad); }
.card-top-line--patrimonio { background: var(--color-patrimonio); }
.card-top-line--urbanismo { background: var(--color-urbanismo); }
.card-top-line--diseno { background: var(--color-diseno); }
.card-top-line--proyecto { background: var(--color-proyecto); }
.card-top-line--gestion { background: var(--color-gestion); }
.card-top-line--historia { background: var(--color-patrimonio); }
.card-top-line--innovacion { background: var(--color-proyecto); }

/* ============================================
   FOOTER
   ============================================ */

/* Footer logo especial */


/* ============================================
   FORMULARIOS
   ============================================ */
.form-group {
    margin-bottom: var(--space-4);
}

.form-group label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--azul-uba);
    margin-bottom: var(--space-2);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    border: 2px solid var(--gris-200);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    color: var(--azul-uba);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--celeste-uba);
    box-shadow: 0 0 0 4px rgba(74, 144, 194, 0.1);
}

/* Fila de formulario (campos lado a lado) */
.form-row {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.form-group-half {
    flex: 1;
    margin-bottom: 0;
}

@media (max-width: 480px) {

    .form-row {
        flex-direction: column;
        gap: var(--space-3);
    }
    
    .form-group-half {
        margin-bottom: 0;
    }
}


/* ============================================
   FAQ / ACORDEÓN
   ============================================ */
.faq-item {
    background: var(--blanco);
    border: 1px solid var(--gris-200);
    border-radius: 2px;
    margin-bottom: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.faq-item:hover {
    border-color: var(--celeste-uba);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.faq-item[open] {
    border-color: var(--azul-uba);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.faq-item summary {
    padding: 0.9rem 1.25rem;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--azul-uba);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '';
    width: 24px;
    height: 24px;
    min-width: 24px;
    background: var(--gris-100);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230d1b2a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s ease;
}

.faq-item[open] summary::after {
    background-color: var(--azul-uba);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='18 15 12 9 6 15'%3E%3C/polyline%3E%3C/svg%3E");
}

.faq-item summary:hover {
    background: var(--gris-50);
}

.faq-item summary:hover::after {
    background-color: var(--celeste-uba);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230d1b2a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.faq-item[open] summary {
    background: var(--azul-uba);
    color: white;
}

.faq-item[open] summary:hover {
    background: var(--azul-uba);
}

.faq-item .faq-content {
    padding: 0 1.25rem 1rem;
    color: var(--gris-700);
    line-height: 1.6;
    animation: slideDown 0.3s ease;
}

.faq-item p {
    padding: 0 1.25rem 1rem;
    color: var(--gris-700);
    line-height: 1.6;
    font-size: 0.88rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   UTILIDADES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }

/* ============================================
   ANIMACIONES
   ============================================ */
@media (prefers-reduced-motion: no-preference) {

    .fade-in {
        animation: fadeInUp 0.6s ease-out backwards;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}


/* Reducir animaciones si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {

    .btn-dorado,
    .badge-pulse {
        animation: none;
        background: var(--dorado-medio);
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* ============================================
   PRINT STYLES
   ============================================ */
@media print {

    .header,
    .footer,
    .btn,
    body {
        font-size: 12pt;
        color: #000;
    }
    
    section {
        page-break-inside: avoid;
    }
}


/* ===== HOME.CSS ===== */

/* ============================================
   HOME - Estilos específicos
   ============================================ */

/* ============================================
   FOOTER
   ============================================ */


/* ============================================
   RESPONSIVE HEADER/NAV
   ============================================ */


/* Comparador en dropdown */


/* ============================================
   HERO COMPARADOR
   ============================================ */
.hero-comparador {
    background: linear-gradient(160deg, var(--azul-uba) 0%, #0d2f4a 60%, #1a5276 100%);
    color: var(--blanco);
    padding: 56px 0 48px;
    position: relative;
    overflow: hidden;
}

.hero-comparador::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-comparador::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        var(--dorado-uba, #c9a227),
        var(--morado-fadu, #6b4c9a),
        var(--azul-uba));
}

.hero-comparador .contenedor {
    position: relative;
    z-index: 1;
}

.hero-comparador__pretitulo {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    opacity: 0.65;
    margin-bottom: 12px;
}

.hero-comparador__titulo {
    font-family: 'Bitter', Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
}

.hero-comparador__bajada {
    font-size: 1.05rem;
    font-weight: 300;
    opacity: 0.85;
    max-width: 640px;
    line-height: 1.6;
}

/* ============================================
   PANEL DE SELECCIÓN
   ============================================ */
.selector-panel {
    background: var(--blanco);
    border-radius: var(--radius-sm, 2px);
    padding: 32px;
    margin-top: -28px;
    position: relative;
    z-index: 10;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border: 1px solid var(--gris-300, #ddd);
}

.selector-panel__label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--texto-secundario, #666);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.selector-panel__label svg {
    width: 16px;
    height: 16px;
    stroke: var(--azul-uba);
}

.selector-panel__row {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.selector-panel__group {
    flex: 1;
    min-width: 240px;
}

.selector-panel__group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--texto-principal, #333);
    margin-bottom: 6px;
}

.selector-panel__group select {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 2px solid var(--gris-300, #ddd);
    border-radius: var(--radius-sm, 2px);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--texto-principal, #333);
    background: var(--blanco);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.selector-panel__group select:focus {
    outline: none;
    border-color: var(--azul-uba);
    box-shadow: 0 0 0 3px rgba(0, 53, 108, 0.12);
}

.selector-panel__hint {
    font-size: 0.8rem;
    color: var(--texto-secundario, #666);
    margin-top: 12px;
    font-style: italic;
}

/* Botón agregar */
.btn-agregar {
    padding: 12px 32px;
    background: var(--azul-uba);
    color: var(--blanco);
    border: none;
    border-radius: var(--radius-sm, 2px);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    white-space: nowrap;
}

.btn-agregar:hover {
    background: #002a56;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,53,108,0.3);
}

.btn-agregar:disabled {
    background: var(--gris-300, #ddd);
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Chips */
.selector-panel__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    min-height: 36px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    background: rgba(0, 53, 108, 0.08);
    color: var(--azul-uba);
    border: 1px solid rgba(0, 53, 108, 0.18);
    animation: chipIn 0.25s ease;
}

.chip__remove {
    cursor: pointer;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    background: rgba(0, 53, 108, 0.12);
    color: var(--azul-uba);
    transition: background 0.15s;
    border: none;
    font-weight: 700;
    line-height: 1;
    padding: 0;
}

.chip__remove:hover {
    background: #c0392b;
    color: var(--blanco);
}

@keyframes chipIn {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

/* ============================================
   RESULTADO
   ============================================ */
.comparador-resultado {
    padding: 32px 0 60px;
}

.comparador-vacio {
    text-align: center;
    padding: 80px 24px;
    background: var(--blanco);
    border-radius: var(--radius-sm, 2px);
    border: 2px dashed var(--gris-300, #ddd);
}

.comparador-vacio__icono {
    font-size: 2.8rem;
    margin-bottom: 16px;
    opacity: 0.35;
}

.comparador-vacio h3 {
    font-size: 1.2rem;
    color: var(--azul-uba);
    margin-bottom: 8px;
}

.comparador-vacio p {
    font-size: 0.95rem;
    color: var(--texto-secundario, #666);
    max-width: 420px;
    margin: 0 auto;
}

/* Controles */
.comparador-controles {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.comparador-controles__info {
    font-size: 0.9rem;
    color: var(--texto-secundario, #666);
}

.comparador-controles__info strong {
    color: var(--azul-uba);
}

.comparador-toggle {
    display: flex;
    gap: 4px;
    background: var(--gris-100, #f5f5f5);
    border-radius: var(--radius-sm, 2px);
    padding: 4px;
}

.comparador-toggle__btn {
    padding: 8px 20px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm, 2px);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--texto-secundario, #666);
    transition: all 0.2s;
}

.comparador-toggle__btn:hover { color: var(--texto-principal, #333); }

.comparador-toggle__btn.active {
    background: var(--blanco);
    color: var(--azul-uba);
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ============================================
   TABLA
   ============================================ */
.comparador-tabla-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-sm, 2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    background: var(--blanco);
    border: 1px solid var(--gris-300, #ddd);
}

.comparador-tabla {
    width: 100%;
    border-collapse: collapse;
}

.comparador-tabla thead { position: sticky; top: 0; z-index: 5; }

.comparador-tabla th {
    padding: 20px 18px;
    text-align: left;
    font-weight: 700;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--gris-300, #ddd);
}

.comparador-tabla th.col-aspecto {
    background: var(--gris-100, #f5f5f5);
    color: var(--texto-secundario, #666);
    width: 200px;
    min-width: 160px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.72rem;
}

.comparador-tabla th.col-programa {
    min-width: 220px;
    color: var(--blanco);
}

.comparador-tabla th.col-programa.color-0 { background: var(--azul-uba); }
.comparador-tabla th.col-programa.color-1 { background: #7b2d00; }
.comparador-tabla th.col-programa.color-2 { background: #1a6b3c; }
.comparador-tabla th.col-programa.color-3 { background: var(--morado-fadu, #4a3570); }

.col-programa__tipo {
    display: block;
    font-size: 0.62rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 4px;
}

.col-programa__nombre {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
}

.col-programa__sigla {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-sm, 2px);
    background: rgba(255,255,255,0.2);
    font-size: 0.68rem;
    font-weight: 700;
    margin-top: 6px;
    letter-spacing: 0.5px;
}

.comparador-tabla td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--gris-100, #f0f0f0);
    font-size: 0.9rem;
    line-height: 1.55;
    vertical-align: top;
}

.comparador-tabla tbody tr:hover td { background: rgba(0, 53, 108, 0.015); }

.comparador-tabla td.col-aspecto {
    font-weight: 600;
    color: var(--texto-secundario, #666);
    background: var(--gris-50, #fafafa);
    font-size: 0.85rem;
    position: sticky;
    left: 0;
    z-index: 2;
}

.comparador-tabla tr.fila-categoria td {
    background: rgba(0, 53, 108, 0.06);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--azul-uba);
    padding: 10px 18px;
    border-bottom: 2px solid rgba(0,53,108,0.12);
}

.comparador-tabla tr.fila-cta td {
    padding: 20px 18px;
    text-align: center;
    background: var(--gris-50, #fafafa);
}

.modalidad-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.modalidad-tag--virtual    { background: #e8f8f5; color: #1a6b3c; }
.modalidad-tag--hibrida    { background: #fef5e7; color: #7d6608; }
.modalidad-tag--presencial { background: #fbeee6; color: #7b2d00; }

.btn-ver-programa {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--radius-sm, 2px);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--blanco);
    transition: all 0.2s;
}

.btn-ver-programa:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    filter: brightness(1.1);
}

.btn-ver-programa.color-0 { background: var(--azul-uba); }
.btn-ver-programa.color-1 { background: #7b2d00; }
.btn-ver-programa.color-2 { background: #1a6b3c; }
.btn-ver-programa.color-3 { background: var(--morado-fadu, #4a3570); }

/* ============================================
   CARDS
   ============================================ */
.comparador-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.card-comparador {
    background: var(--blanco);
    border-radius: var(--radius-sm, 2px);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border: 1px solid var(--gris-300, #ddd);
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}

.card-comparador:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.card-comparador__header { padding: 24px; color: var(--blanco); }
.card-comparador__header.color-0 { background: linear-gradient(135deg, var(--azul-uba), #002a56); }
.card-comparador__header.color-1 { background: linear-gradient(135deg, #a04000, #7b2d00); }
.card-comparador__header.color-2 { background: linear-gradient(135deg, #1a6b3c, #145a32); }
.card-comparador__header.color-3 { background: linear-gradient(135deg, var(--morado-fadu, #6b4c9a), #4a3570); }

.card-comparador__tipo {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.7;
    margin-bottom: 4px;
}

.card-comparador__nombre {
    font-family: 'Bitter', Georgia, serif; font-weight: 800;
    font-size: 1.15rem;
    line-height: 1.3;
    margin: 0;
}

.card-comparador__sigla {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 10px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-sm, 2px);
    font-size: 0.72rem;
    font-weight: 700;
}

.card-comparador__body { padding: 24px; flex: 1; }

.card-comparador__item {
    padding: 12px 0;
    border-bottom: 1px solid var(--gris-100, #f0f0f0);
}
.card-comparador__item:last-child { border-bottom: none; }

.card-comparador__item-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--texto-secundario, #666);
    margin-bottom: 4px;
}

.card-comparador__item-value {
    font-size: 0.9rem;
    color: var(--texto-principal, #333);
    line-height: 1.5;
}

.card-comparador__footer {
    padding: 16px 24px;
    background: var(--gris-50, #fafafa);
    border-top: 1px solid var(--gris-100, #f0f0f0);
}

.btn-card-programa {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    border-radius: var(--radius-sm, 2px);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--blanco);
    transition: all 0.2s;
}

.btn-card-programa.color-0 { background: var(--azul-uba); }
.btn-card-programa.color-1 { background: #7b2d00; }
.btn-card-programa.color-2 { background: #1a6b3c; }
.btn-card-programa.color-3 { background: var(--morado-fadu, #4a3570); }

.btn-card-programa:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* ============================================
   CTA INFERIOR
   ============================================ */
.comparador-cta {
    text-align: center;
    margin-top: 40px;
    padding: 40px;
    background: var(--blanco);
    border-radius: var(--radius-sm, 2px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid var(--gris-300, #ddd);
}

.comparador-cta p {
    font-size: 1rem;
    color: var(--texto-secundario, #666);
    margin-bottom: 16px;
}

.comparador-cta__link {
    color: var(--azul-uba);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--azul-uba);
    padding-bottom: 2px;
    transition: all 0.2s;
}

.comparador-cta__link:hover {
    color: #002a56;
    border-bottom-color: #002a56;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {

    .hero-comparador { padding: 36px 0 32px; }

    .selector-panel { padding: 20px; margin-top: -20px; }
    .selector-panel__row { flex-direction: column; }
    .selector-panel__group { min-width: 100%; }
    .btn-agregar { width: 100%; }

    .comparador-controles { flex-direction: column; align-items: stretch; }
    .comparador-toggle { align-self: center; }

    .comparador-tabla th,
    .comparador-tabla td { padding: 12px; font-size: 0.82rem; }

    .comparador-tabla th.col-aspecto,
    .comparador-tabla td.col-aspecto { min-width: 120px; width: 120px; }

    .comparador-cards { grid-template-columns: 1fr; }
    .comparador-cta { padding: 28px 20px; }
}


/* Animaciones */
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.comparador-tabla-wrapper,
.comparador-cards { animation: fadeSlideIn 0.35s ease; }

/* Print */
@media print {

    .selector-panel, .comparador-controles, .comparador-cta, .fila-cta { display: none !important; }
    .hero-comparador { padding: 20px 0; }
    .comparador-tabla-wrapper { box-shadow: none; border: 1px solid #ccc; }
}


/* Comparador en dropdown */


/* ════════════════════════════════════════════════
   FOOTER + RESPONSIVE (from base)
   ════════════════════════════════════════════════ */


        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        /* ============================================
           RESPONSIVE
           ============================================ */
        @media (max-width: 992px) {

            .info-section__content {
                grid-template-columns: 1fr;
            }
            
            
        }

        
        @media (max-width: 768px) {

            
            
            
            
            .hero {
                padding: var(--spacing-2xl) 0;
            }
            
            .hero-stats {
                gap: var(--spacing-lg);
            }
            
            .stat-number {
                font-size: 2rem;
            }
            
            .seminarios-grid {
                grid-template-columns: 1fr;
            }
            
            
        }

        
        @media (max-width: 480px) {

            .hero-title {
                font-size: 1.75rem;
            }
            
            .hero-badges {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .filtros-grid {
                flex-direction: column;
            }
            
            .filtro-btn {
                width: 100%;
                text-align: center;
            }
        }


/* Comparador en dropdown - separado visualmente */


/* ═══ BREADCRUMB-LIST (formato estructurado) ═══ */


