    @import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');


/* ============================================
   ESTILOS GENERALES - SCI FCA UNAM
   ============================================ */

/* Variables de diseño - Paleta de colores mejorada */
:root {
    /* Colores principales - Azul profundo institucional */
    --primary: #163A70;           /* Azul profundo (principal) */
    --primary-dark: #0E2A52;      /* Azul más oscuro para hover */
    --primary-light: #1E4A8A;     /* Azul más claro para variantes */
    
    /* Colores secundarios - Azul vibrante */
    --secondary: #2A90E8;         /* Azul vibrante (secundario) */
    --secondary-dark: #1A7AD1;    /* Azul más oscuro */
    --secondary-light: #4AA6FF;    /* Azul más claro */
    
    /* Acentos y complementos - Paleta armónica */
  --accent-navy: #1B4079;         /* Azul marino de referencia */
  --accent-teal: #4D7C8A;         /* Verde azulado */
  --accent-sage: #7F9C96;          /* Salvia */
  --accent-mint: #8FAD88;          /* Menta */
  --accent-mindaro: #CBDF90;       /* Verde claro */
  --accent-grotto: #118AB2;        /* Azul gruta */
  --accent-caribbean: #06D6A0;     /* Caribe */
  --accent-aqua: #2EC4B6;          /* Agua */
  
    /* Dorados y cálidos */
    --gold: #D4AF37;               /* Dorado clásico */
    --gold-dark: #b1952a;           /* Dorado oscuro */
  --gold-light: #FFD166;           /* Dorado claro (maize) */
  --sunset: #FF9F1C;               /* Naranja atardecer */
  --coral: #E71D36;                 /* Coral/rojo */
    
    /* Neutros y fondos */
    --paper: #ffffff;               /* Blanco puro */
    --ink: #111827;                  /* Casi negro para textos */
    --line: #E5E7EB;                 /* Líneas y bordes */
    --light-bg: #f8f9fa;            /* Fondo claro */
  --light-gray: #F3F4F6;           /* Gris muy claro */
  --medium-gray: #9CA3AF;           /* Gris medio */
  --dark-gray: #4B5563;             /* Gris oscuro */
    
    /* Colores semánticos */
    --success: #10B981;              /* Verde éxito */
    --warning: #F59E0B;              /* Naranja advertencia */
    --error: #EF4444;                 /* Rojo error */
    --info: var(--secondary);         /* Info usa el secundario */
    
    /* Aliases para compatibilidad */
    --color-primary: var(--primary);
    --color-primary-dark: var(--primary-dark);
    --color-secondary: var(--primary); /* Cambiamos: secundario ahora es el azul profundo */
    --color-accent: var(--secondary);   /* Acento ahora es el azul vibrante */
    --color-light: var(--light-bg);
    --color-gray: var(--medium-gray);
    --color-gray-light: var(--light-gray);
    --color-gray-ultralight: var(--light-gray);
    --color-gray-dark: var(--dark-gray);
    
    /* Tipografía */
    --font-heading: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
    --font-body: 'Jost', 'sans-serif', system-ui, -apple-system, sans-serif;

    
    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 5rem;
    
    /* Sombras */
    --shadow-sm: 0 1px 3px rgba(22, 58, 112, 0.08);
    --shadow-md: 0 4px 12px rgba(22, 58, 112, 0.12);
    --shadow-lg: 0 10px 25px rgba(22, 58, 112, 0.15);
    --shadow-xl: 0 20px 40px rgba(22, 58, 112, 0.2);
    --shadow-gold: 0 4px 12px rgba(212, 175, 55, 0.15);
    
    /* Transiciones */
    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;
    
    /* Bordes */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 18px;
    --radius-full: 9999px;
    
    /* Alturas */
    --hero-h: clamp(40vh, 56vh, 64vh);
}

/* ============================================
   RESET Y ESTILOS BASE - PREVENIR SCROLL HORIZONTAL
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--ink);
    line-height: 1.6;
    background-color: var(--paper);
    overflow-x: hidden;
    position: relative;
    width: 100%;
    font-family: "Jost", sans-serif !important;
    font-optical-sizing: auto;
    font-style: normal;
}

/* ============================================
   WRAPPER PRINCIPAL - CONTENEDOR DE TODO
   ============================================ */
#page-wrapper {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* ============================================
   TIPOGRAFÍA
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

h4 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

p {
    margin-bottom: var(--spacing-sm);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

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

/* ============================================
   LAYOUT - CONTENEDORES Y SECCIONES
   ============================================ */
.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.container-fluid {
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.section {
    padding: var(--spacing-xl) 0;
    width: 100%;
    position: relative;
}

.section > * {
    max-width: 100%;
}

/* ============================================
   TÍTULOS DE SECCIÓN
   ============================================ */
.section-title {
    text-align: center;
    margin: 10px;
    position: relative;
    padding: 0;
}

.section-title h2 {
    margin-bottom: calc(var(--spacing-sm) / 2);
    color: var(--primary);
    font-size: 2rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gold);
    margin: calc(var(--spacing-sm) / 2) auto var(--spacing-sm);
    border-radius: 2px;
}

.section-title.left-aligned {
    text-align: left;
}

.section-title.left-aligned::after {
    margin-left: 0;
    margin-right: 0;
}

.section-subtitle {
    text-align: center;
    margin-top: var(--spacing-xs);
    margin-bottom: 0;
    padding: 0 var(--spacing-sm);
    color: var(--medium-gray);
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   UTILIDADES - CLASES HELPER
   ============================================ */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-justify {
    text-align: justify !important;
    text-justify: inter-word !important;
}

.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--secondary);
}

.text-gold {
    color: var(--gold);
}

.bg-primary {
    background-color: var(--primary);
    color: white;
}

.bg-secondary {
    background-color: var(--secondary);
    color: white;
}

.bg-light {
    background-color: var(--light-bg);
}

.bg-gold {
    background-color: var(--gold);
    color: var(--primary);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

/* ============================================
   ELEMENTOS ESPECÍFICOS - ASEGURAR RESPONSIVIDAD
   ============================================ */
img, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

embed, object, iframe {
    max-width: 100%;
    display: block;
}

ul, ol {
    padding-left: 1.5rem;
    word-wrap: break-word;
}

input, textarea, select, button {
    max-width: 100%;
    font-family: inherit;
}

/* ============================================
   BOTONES
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    max-width: 100%;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn:active {
    transform: translateY(0);
}

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

.btn-secondary:hover {
    background-color: var(--secondary-dark);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

.btn-gold {
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--primary);
}

.btn-gold:hover {
    background: linear-gradient(90deg, var(--gold-light) 0%, var(--gold) 100%);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* ============================================
   TARJETAS Y COMPONENTES
   ============================================ */
.card {
    background: var(--paper);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-lg);
    transition: var(--transition);
    border: 1px solid var(--line);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.card-title {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

/* ============================================
   GRIDS Y FLEX COMUNES
   ============================================ */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

/* ============================================
   CLASES ESPECIALES PARA CONTENIDO EXTERNO
   ============================================ */
.responsive-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.responsive-embed iframe,
.responsive-embed object,
.responsive-embed embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ============================================
   UTILIDADES ADICIONALES
   ============================================ */
.prevent-overflow {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.full-width {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.max-width-100 {
    max-width: 100% !important;
    width: auto !important;
}

/* Espaciado */
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }
.p-5 { padding: var(--spacing-xl); }

/* ============================================
   MEDIA QUERIES - RESPONSIVIDAD
   ============================================ */

/* Pantallas grandes */
@media (max-width: 1400px) {
    .container {
        max-width: 1140px;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet landscape */
@media (max-width: 1024px) {
    .container {
        max-width: 720px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .section {
        padding: var(--spacing-lg) 0;
    }
    
    .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet portrait */
@media (max-width: 992px) {
    .container {
        max-width: 100%;
        padding: 0 var(--spacing-md);
    }
    
    h1 {
        font-size: 1.9rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
}

/* Móviles grandes */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
        line-height: 1.3;
        padding: 0 var(--spacing-sm);
    }
    
    h2 {
        font-size: 1.4rem;
        line-height: 1.3;
        padding: 0 var(--spacing-sm);
    }
    
    h3 {
        font-size: 1.2rem;
        padding: 0 var(--spacing-sm);
    }
    
    .section {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    

    
    .section-title h2 {
        font-size: 1.4rem;
        padding: 0;
    }
    
    .section-subtitle {
        padding: 0 var(--spacing-sm);
        font-size: 1rem;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    #page-wrapper {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        display: block;
        white-space: normal;
    }
}

/* Móviles pequeños */
@media (max-width: 576px) {
    h1 {
        font-size: 1.6rem;
        padding: 0 var(--spacing-xs);
    }
    
    h2 {
        font-size: 1.3rem;
        padding: 0 var(--spacing-xs);
    }
    
    h3 {
        font-size: 1.1rem;
        padding: 0 var(--spacing-xs);
    }
    
    .section {
        padding: var(--spacing-md) var(--spacing-xs);
    }
    
    .container {
        padding: 0 var(--spacing-xs);
    }
    
    .section-title {
        padding: 0 var(--spacing-xs);
    }
    
    .section-title h2 {
        font-size: 1.3rem;
    }
    
    .section-subtitle {
        padding: 0 var(--spacing-xs);
        font-size: 0.95rem;
    }
    
    body {
        font-size: 15px;
    }
    
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Móviles muy pequeños */
@media (max-width: 375px) {
    h1 {
        font-size: 1.4rem;
    }
    
    h2 {
        font-size: 1.2rem;
    }
    
    h3 {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.2rem;
    }
}

/* ============================================
   FIX PARA PROBLEMAS COMUNES DE SCROLL HORIZONTAL
   ============================================ */
.fix-overflow {
    overflow-x: hidden !important;
}

@viewport {
    width: device-width;
    zoom: 1.0;
}

@supports (-webkit-touch-callout: none) {
    body, html {
        max-width: 100% !important;
        overflow-x: hidden !important;
        position: relative !important;
    }
}

/* ============================================
   IMPRESIÓN
   ============================================ */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}

a.nav-link{
     color: #061d3d;
     font-size: 12px;
}
.revista-footer-band {
    background: #061d3d;
    color: #fff;
    font-size: 13px;
}

.revista-footer-top {
    background: linear-gradient(135deg, #293582 0%, #293582 50%, #061d3d 100%);
    color: #fff;
}

h6 {
    color: #fff;
}

.revista-social a{
    color: #fff;
    font-size: 25px;
    padding: 10px;
}

.dorado{
    color:#C0985A;
}

.texto-header{
    border-left: 2px solid #C0985A;padding:5px
}

.dropdown-item{
    font-size: 16px;
}

.texto-header{
    margin-left:10px;
    line-height:1.1;
    }
    
    .titulo-header{
    font-size:18px;
    }
    
    .subtitulo-header{
    font-size:13px;
    }

    .navbar-nav .nav-link{
        white-space: nowrap;
        padding-left:12px;
        padding-right:12px;
        font-size:16px;
        }

        .logo-unam{
            width:170px;
            transition:0.2s;
            }
            
            .logo-fca{
            width:110px;
            transition:0.2s;
            }

        .logo-sci{
            height:70px;
            width:auto;
            transition:0.2s;
        }

            .header-brand{
                gap:10px;
                min-width:0;
                }
                
                .texto-header{
                min-width:0;
                overflow:hidden;
                }
                
                .titulo-header,
                .subtitulo-header{
                white-space:nowrap;
                overflow:hidden;
                text-overflow:ellipsis;
                }

                .header-brand{
                    display:flex;
                    align-items:center;
                    gap:10px;
                    flex:1;
                    min-width:0;
                    }
                    
                    .texto-header{
                    min-width:0;
                    overflow:hidden;
                    }
                    
                    .titulo-header,
                    .subtitulo-header{
                    white-space:nowrap;
                    overflow:hidden;
                    text-overflow:ellipsis;
                    }
                    
                    .navbar-toggler{
                    flex-shrink:0;
                    }

                    #movil{
                        display: none;
                    }


                    /* BOTÓN FAQ FLOTANTE */
.faq-floating{
    position:fixed;
    bottom:25px;
    right:25px;
    width:40px;
    height:40px;
    border-radius:50%;
    background:#C0985A;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:28px;
    box-shadow:0 6px 15px rgba(0,0,0,0.25);
    z-index:9999;
    transition:all .25s ease;
    text-decoration:none;
    }
    
    .faq-floating:hover{
    background:#163A70;
    transform:scale(1.08);
    color:#fff;
    }
    
    /* animación suave */
    .faq-floating i{
    line-height:1;
    }
            
            /* Laptop pequeña */
            @media (max-width:1200px){
            
            .logo-unam{
            width:90px;
            }
            
            .logo-fca{
            width:95px;
            }

            .logo-sci{
                height:55px;
            }
            
            }
            
            /* Tablet */
            @media (max-width:992px){
            
            .logo-unam{
            width:80px;
            }
            
            .logo-fca{
            width:80px;
            }

            .logo-sci{
                height:50px;
            }
            
            }
            
            /* Móvil */
            @media (max-width:576px){
            
            .logo-unam{
            width:60px;
            }
            
            .logo-fca{
            width:45px;
            }

            .logo-sci{
                height:40px;
            }
            
            }

        @media (max-width:992px){

            .navbar-nav{
            overflow-x:auto;
            flex-wrap:nowrap;
            }
            
            }
    
    /* Ajuste para pantallas pequeñas */
    @media (max-width: 768px){
    
    .titulo-header{
    font-size:11px;
    }
    
    .subtitulo-header{
    font-size:9px;
    }
    
    .navbar-brand img{
    width:50px;
    }
    
    .navbar-brand img:last-child{
    width:70px;
    }

    #movil{
        display: block;
    }

    #desktop{
        display: none;
    }
    
    .logo-sci{
        height:28px;
    }
    
    }


    /*footer*/

    #btnTop {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: var(--primary, #163A70);
        color: white;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9999;
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow-md, 0 4px 12px rgba(22, 58, 112, 0.12));
        font-family: var(--font-body, sans-serif);
    }
    
    #btnTop.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    #btnTop:hover {
        background: var(--primary-dark, #0E2A52);
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg, 0 10px 25px rgba(22, 58, 112, 0.15));
    }
    
    /* Reglas específicas para móvil */
    @media (max-width: 768px) {
        #btnTop {
            bottom: 15px !important;
            right: 15px !important;
            width: 38px !important;
            height: 38px !important;
        }
    }
    
    /* ===== FOOTER PRINCIPAL ===== */
    .site-footer {
        font-family: var(--font-body, sans-serif);
        font-size: 0.85rem;
        line-height: 1.5;
        margin-top: 3rem;
        color: #ffffff;
        width: 100%;
        overflow: hidden;
    }
    
    /* Primera cintilla */
    .site-footer .footer-main {
        background: linear-gradient(180deg, var(--primary, #163A70) 0%, var(--primary-dark, #0E2A52) 100%);
        padding: 2rem 0;
    }
    
    .site-footer .footer-grid {
        display: grid;
        grid-template-columns: 1.2fr 1.5fr 1.8fr;
        gap: 2rem;
        align-items: start;
    }
    
    .site-footer .footer-col {
        padding: 0 1rem;
    }
    
    /* ===== COLUMNA IZQUIERDA - LOGO Y CONTADOR ===== */
    .site-footer .left-col {
        display: flex;
        justify-content: flex-start;
    }
    
    .site-footer .logo-contador-wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        width: 100%;
    }
    
    .site-footer .footer-logo {
        max-width: 140px;
        height: auto;
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .site-footer .footer-logo:hover {
        transform: scale(1.05);
        filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
    }
    
    /* Contador de visitas - ESTILO ANFECA */
    .site-footer .counter-section {
        width: 100%;
        max-width: 260px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 1rem;
        backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .site-footer .counter-header {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .site-footer .counter-icon {
        width: 48px;
        height: 48px;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--light-gray, #F3F4F6);
        font-size: 1.5rem;
        border: 2px solid rgba(255, 255, 255, 0.2);
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .site-footer .counter-header:hover .counter-icon {
        transform: scale(1.05);
        background: rgba(255, 255, 255, 0.2);
        border-color: var(--gold-light, #FFD166);
    }
    
    .site-footer .counter-display {
        display: flex;
        flex-direction: column;
    }
    
    .site-footer .counter-label {
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.85rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 0.15rem;
    }
    
    .site-footer .counter-value {
        font-size: 2rem;
        font-weight: 700;
        color: white;
        line-height: 1;
        font-family: var(--font-heading, 'Segoe UI', sans-serif);
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    
    .site-footer .counter-value.updated {
        animation: pulse 0.5s ease;
    }
    
    @keyframes pulse {
        0% { transform: scale(1); }
        50% { transform: scale(1.1); }
        100% { transform: scale(1); }
    }
    
    .site-footer .since-date {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--light-gray, #F3F4F6);
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 6px;
        border-left: 3px solid var(--gold, #D4AF37);
    }
    
    /* ===== COLUMNA CENTRAL - REDES SOCIALES ===== */
    .site-footer .center-col {
        display: flex;
        justify-content: center;
    }
    
    .site-footer .social-section {
        text-align: center;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        padding: 1.25rem 1rem;
        width: 100%;
        max-width: 300px;
    }
    
    .site-footer .social-title {
        color: white;
        font-weight: 600;
        font-size: 1rem;
        margin-bottom: 1rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-family: var(--font-heading, 'Segoe UI', sans-serif);
    }
    
    .site-footer .social-icons {
        display: flex;
        justify-content: center;
        gap: 0.75rem;
        margin-bottom: 1rem;
        flex-wrap: wrap;
    }
    
    .site-footer .social-btn {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        text-decoration: none;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        border: 2px solid rgba(255, 255, 255, 0.2);
    }
    
    .site-footer .social-btn:hover {
        transform: translateY(-3px) scale(1.1);
        border-color: transparent;
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    }
    
    .site-footer .social-btn.facebook {
        background: linear-gradient(135deg, #1877F2, #0D5FD9);
    }
    
    .site-footer .social-btn.twitter {
        background: #000000;
    }
    
    .site-footer .social-btn.instagram {
        background: linear-gradient(135deg, #833AB4, #C13584, #E1306C, #FCAF45);
    }
    
    .site-footer .social-btn.youtube {
        background: linear-gradient(135deg, #FF0000, #CC0000);
    }
    
    .site-footer .social-btn i {
        font-size: 1.2rem;
    }
    
    .site-footer .social-text {
        color: var(--light-gray, #F3F4F6);
        font-size: 0.8rem;
        font-style: italic;
    }
    
    /* ===== COLUMNA DERECHA - INFORMACIÓN INSTITUCIONAL ===== */
    .site-footer .right-col {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        text-align: right;
    }
    
    .site-footer .footer-title {
        color: white;
        font-weight: 700;
        font-size: 1rem;
        margin: 0 0 1rem 0;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-family: var(--font-heading, 'Segoe UI', sans-serif);
        border-bottom: 2px solid var(--gold, #D4AF37);
        padding-bottom: 0.5rem;
        width: fit-content;
    }
    
    .site-footer .footer-address {
        color: rgba(255, 255, 255, 0.9);
        margin-bottom: 1.25rem;
        font-size: 0.9rem;
        line-height: 1.6;
        font-style: normal;
    }
    
    .site-footer .institutional-links {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 0.6rem;
    }
    
    .site-footer .footer-link {
        display: inline-flex;
        align-items: center;
        gap: 0.75rem;
        color: rgba(255, 255, 255, 0.85);
        text-decoration: none;
        padding: 0.5rem 1rem;
        border-radius: 6px;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        font-size: 0.9rem;
        background: rgba(255, 255, 255, 0.05);
        width: fit-content;
    }
    
    .site-footer .footer-link:hover {
        background: rgba(255, 255, 255, 0.15);
        color: white;
        transform: translateX(-5px);
    }
    
    .site-footer .footer-link i {
        color: var(--gold-light, #FFD166);
        font-size: 0.9rem;
        width: 18px;
    }
    
    /* ===== SEGUNDA CINTILLA - ESTILO ORIGINAL ANFECA (ULTRA DELGADA) ===== */
    .site-footer .footer-bottom {
        background: linear-gradient(180deg, var(--primary-dark, #0E2A52) 0%, #000000 100%);
        padding: 0.25rem 0 !important;
        border-top: 1px solid var(--gold, #D4AF37);
        font-size: 0.7rem;
    }
    
    .site-footer .legal-wrapper {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0;
    }
    
    /* Línea principal - Hecho en México a la izquierda, enlaces a la derecha */
    .site-footer .main-legal {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        padding: 0.1rem 0;
        color: var(--light-gray, #F3F4F6);
    }
    
    .site-footer .made-in {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        color: white;
    }
    
    .site-footer .made-in i {
        display: none;  /* Sin íconos como el original */
    }
    
    .site-footer .made-in strong {
        font-weight: 500;
        color: white;
        font-size: 0.7rem;
    }
    
    .site-footer .copyright {
        color: var(--light-gray, #F3F4F6);
        margin-left: 0.5rem;
    }
    
    .site-footer .copyright strong {
        font-weight: 500;
        color: white;
    }
    
    .site-footer .separator {
        color: var(--gold, #D4AF37);
        opacity: 0.5;
        margin: 0 0.5rem;
    }
    
    .site-footer .legal-links {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .site-footer .legal-links a {
        color: var(--light-gray, #F3F4F6);
        text-decoration: none;
        transition: color 0.2s ease;
        padding: 0;
        background: none;
        border: none;
        font-size: 0.7rem;
    }
    
    .site-footer .legal-links a:hover {
        color: white;
        text-decoration: underline;
        background: none;
    }
    
    /* Línea de créditos (opcional, si la necesitas) */
    .site-footer .creditos-line {
        font-size: 0.65rem;
        color: var(--light-gray, #F3F4F6);
        padding: 0.1rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 0.1rem;
        text-align: left;
    }
    
    /* ===== RESPONSIVE ===== */
    @media (max-width: 992px) {
        .site-footer .footer-grid {
            grid-template-columns: 1fr;
            gap: 2rem;
        }
        
        .site-footer .left-col,
        .site-footer .center-col,
        .site-footer .right-col {
            align-items: center;
            text-align: center;
        }
        
        .site-footer .logo-contador-wrapper {
            align-items: center;
        }
        
        .site-footer .counter-section {
            max-width: 280px;
            margin: 0 auto;
        }
        
        .site-footer .right-col {
            align-items: center;
            text-align: center;
        }
        
        .site-footer .footer-title {
            margin-left: auto;
            margin-right: auto;
        }
        
        .site-footer .institutional-links {
            align-items: center;
        }
        
        .site-footer .footer-link:hover {
            transform: translateX(5px);
        }
        
        /* Responsive para la segunda cintilla */
        .site-footer .main-legal {
            flex-direction: column;
            gap: 0.25rem;
            text-align: center;
        }
        
        .site-footer .legal-links {
            justify-content: center;
        }
    }
    
    @media (max-width: 768px) {
        .site-footer .footer-main {
            padding: 1.5rem 0;
        }
        
        .site-footer .footer-bottom {
            padding: 0.2rem 0 !important;
        }
        
        .site-footer .logo-contador-wrapper {
            flex-direction: column;
        }
        
        .site-footer .social-icons {
            gap: 0.5rem;
        }
        
        .site-footer .social-btn {
            width: 40px;
            height: 40px;
        }
        
        .site-footer .legal-links {
            gap: 0.75rem;
        }
    }
    
    @media (max-width: 576px) {
        .site-footer {
            font-size: 0.8rem;
        }
        
        .site-footer .footer-title {
            font-size: 0.95rem;
        }
        
        .site-footer .footer-address {
            font-size: 0.85rem;
        }
        
        .site-footer .counter-value {
            font-size: 1.8rem;
        }
        
        .site-footer .counter-icon {
            width: 42px;
            height: 42px;
            font-size: 1.3rem;
        }
        
        .site-footer .legal-links {
            flex-direction: column;
            gap: 0.35rem;
            align-items: center;
        }
        
        .site-footer .legal-links a {
            font-size: 0.65rem;
        }
        
        .site-footer .made-in strong,
        .site-footer .copyright strong {
            font-size: 0.65rem;
        }
    }

    /*Banner*/

    .sci-carousel {
        position: relative;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        background-color: var(--light-bg, #f8f9fa);
        margin: 0 auto;
    }
    
    .carousel-container {
        position: relative;
        width: 100%;
        height: auto;
        overflow: hidden;
    }
    
    /* ============================================
       TRACK DE SLIDES
       ============================================ */
    .carousel-track-container {
        position: relative;
        width: 100%;
        overflow: hidden;
        height: auto;
        transition: height 0.3s ease;
    }
    
    .carousel-track {
        position: relative;
        display: flex;
        padding: 0;
        margin: 0;
        list-style: none;
        will-change: transform;
        transition: transform 0.5s ease;
    }
    
    /* ============================================
       SLIDES INDIVIDUALES
       ============================================ */
    .carousel-slide {
        position: relative;
        flex: 0 0 100%;
        width: 100%;
        overflow: hidden;
    }
    
    .carousel-link {
        display: block;
        width: 100%;
        height: 100%;
        text-decoration: none;
    }
    
    .carousel-image {
        display: block;
        width: 100%;
        height: auto;
        object-fit: cover;
        aspect-ratio: 1500 / 500; /* Desktop: 3:1 */
    }
    
    /* ============================================
       CLONES
       ============================================ */
    .carousel-slide--clone {
        display: block;
    }
    
    /* ============================================
       BOTONES DE NAVEGACIÓN (FLECHAS)
       ============================================ */
    .carousel-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 48px;
        height: 48px;
        border: none;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.9);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition, all 0.2s ease);
        z-index: 20;
        box-shadow: var(--shadow-md, 0 4px 12px rgba(22, 58, 112, 0.12));
        color: var(--primary, #163A70);
    }
    
    .carousel-btn:hover {
        background-color: var(--paper, #ffffff);
        transform: translateY(-50%) scale(1.1);
        box-shadow: var(--shadow-lg, 0 10px 25px rgba(22, 58, 112, 0.15));
        color: var(--secondary, #2A90E8);
    }
    
    .carousel-btn:focus-visible {
        outline: 3px solid var(--gold, #D4AF37);
        outline-offset: 2px;
    }
    
    .carousel-btn svg {
        width: 24px;
        height: 24px;
        transition: transform 0.3s ease;
    }
    
    .carousel-btn--prev {
        left: 20px;
    }
    
    .carousel-btn--next {
        right: 20px;
    }
    
    .carousel-btn--prev:hover svg {
        transform: translateX(-3px);
    }
    
    .carousel-btn--next:hover svg {
        transform: translateX(3px);
    }
    
    /* ============================================
       INDICADORES (PUNTOS)
       ============================================ */
    .carousel-nav {
        position: absolute;
        bottom: 20px;
        left: 0;
        right: 0;
        display: flex;
        justify-content: center;
        gap: 10px;
        z-index: 20;
        padding: 10px;
    }
    
    .carousel-indicator {
        width: 12px;
        height: 12px;
        border: none;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        padding: 0;
        transition: var(--transition, all 0.2s ease);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    
    .carousel-indicator:hover {
        background-color: rgba(255, 255, 255, 0.8);
        transform: scale(1.2);
    }
    
    .carousel-indicator--active {
        background-color: var(--gold, #D4AF37);
        transform: scale(1.2);
        box-shadow: 0 0 0 2px var(--primary, #163A70);
    }
    
    .carousel-indicator:focus-visible {
        outline: 3px solid var(--gold, #D4AF37);
        outline-offset: 2px;
    }
    
    /* ============================================
       RESPONSIVE
       ============================================ */
    
    /* Tablet */
    @media (max-width: 1024px) {
        .carousel-btn {
            width: 40px;
            height: 40px;
        }
        
        .carousel-btn svg {
            width: 20px;
            height: 20px;
        }
    }
    
    /* Móvil */
    @media (max-width: 768px) {
        .carousel-image {
            aspect-ratio: 1000 / 1000; /* Móvil: 1:1 (cuadrado) */
        }
        
        .carousel-btn {
            width: 36px;
            height: 36px;
            background-color: rgba(255, 255, 255, 0.95);
        }
        
        .carousel-btn--prev {
            left: 10px;
        }
        
        .carousel-btn--next {
            right: 10px;
        }
        
        .carousel-nav {
            bottom: 15px;
            gap: 8px;
        }
        
        .carousel-indicator {
            width: 10px;
            height: 10px;
        }
    }
    
    /* Móvil pequeño */
    @media (max-width: 480px) {
        .carousel-btn {
            width: 32px;
            height: 32px;
        }
        
        .carousel-btn svg {
            width: 18px;
            height: 18px;
        }
        
        .carousel-nav {
            bottom: 10px;
        }
        
        .carousel-indicator {
            width: 8px;
            height: 8px;
        }
    }
    
    /* ============================================
       ESTADOS DE INTERACCIÓN
       ============================================ */
    @media (min-width: 1025px) {
        .carousel-btn {
            opacity: 0.7;
        }
        
        .sci-carousel:hover .carousel-btn {
            opacity: 1;
        }
    }
    
    /* ============================================
       ACCESIBILIDAD
       ============================================ */
    .carousel-btn:focus-visible,
    .carousel-indicator:focus-visible {
        outline: 3px solid var(--gold, #D4AF37);
        outline-offset: 2px;
    }
    
    @media (prefers-reduced-motion: reduce) {
        .carousel-track,
        .carousel-btn,
        .carousel-indicator {
            transition: none !important;
        }
    }
    
    /* ============================================
       FALLBACKS
       ============================================ */
    @supports not (aspect-ratio: 1500 / 500) {
        .carousel-image {
            height: 500px;
            width: 100%;
        }
        
        @media (max-width: 768px) {
            .carousel-image {
                height: 100vw;
            }
        }
    }

    /*convenios*/
    .page-title {
        color: var(--primary);
        font-weight: 700;
        margin-bottom: var(--spacing-md);
        position: relative;
        display: inline-block;
        text-align: center;
        font-family: var(--font-heading);
    }
    
    .page-title::after {
        content: '';
        position: absolute;
        bottom: -1rem;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 4px;
        background: var(--gold);
        border-radius: 2px;
    }
    
    /* Small pill displaying counts for each region */
    .count-chip {
        background: var(--gold);
        color: white;
        padding: 0.25rem 0.75rem;
        border-radius: var(--radius-full);
        font-size: 0.8rem;
        font-weight: 600;
        margin-left: var(--spacing-xs);
    }
    
    /* ============================================
       ACORDEÓN Y LISTA DE CONVENIOS
       ============================================ */
    #accordionRegiones .accordion-body .lista-simple {
        display: grid;
        gap: 0.65rem;
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    }
    
    #accordionRegiones .accordion-body .btn-convenio {
        position: relative;
        background: var(--paper);
        border: 1px solid var(--gold);
        border-radius: 0.75rem;
        padding: 0.75rem 0.95rem;
        cursor: pointer;
        font-size: 0.95rem;
        box-shadow: var(--shadow-sm);
        transition: var(--transition);
        color: var(--primary);
        font-family: var(--font-body);
        text-align: left;
        width: 100%;
    }
    
    /* Chevron indicator for list items */
    #accordionRegiones .accordion-body .btn-convenio::after {
        content: "";
        position: absolute;
        right: 0.75rem;
        top: 50%;
        width: 10px;
        height: 10px;
        transform: translateY(-50%) rotate(-45deg);
        border-right: 2px solid var(--gold);
        border-bottom: 2px solid var(--gold);
        opacity: 0.9;
        transition: transform 0.15s ease;
    }
    
    /* Hover effect on list items */
    #accordionRegiones .accordion-body .btn-convenio:hover {
        background: linear-gradient(0deg, rgba(212, 175, 55, 0.1), transparent 60%);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }
    
    #accordionRegiones .accordion-body .btn-convenio:hover::after {
        transform: translateY(-50%) translateX(3px) rotate(-45deg);
    }
    
    /* Left border accent by region */
    .btn-convenio[data-r="mexico"]  { border-left: 5px solid var(--gold-light); }
    .btn-convenio[data-r="latam"]   { border-left: 5px solid var(--accent-mint); }
    .btn-convenio[data-r="europa"]  { border-left: 5px solid var(--primary); }
    .btn-convenio[data-r="asia"]    { border-left: 5px solid var(--gold); }
    
    /* Accordion button styling */
    .accordion-button {
        background: linear-gradient(135deg, var(--light-bg) 0%, var(--light-gray) 100%);
        color: var(--primary);
        font-weight: 600;
        border: 1px solid var(--line);
        border-radius: var(--radius-md);
        margin-bottom: 0.5rem;
        font-family: var(--font-heading);
    }
    
    .accordion-button:not(.collapsed) {
        background: linear-gradient(135deg, var(--gold), var(--gold-dark));
        color: white;
        border-color: var(--gold);
    }
    
    .accordion-item {
        border: 1px solid var(--line);
        border-radius: var(--radius-md);
        margin-bottom: var(--spacing-md);
        overflow: hidden;
    }
    
    .accordion-body {
        padding: var(--spacing-lg);
    }
    
    /* ============================================
       MAPA
       ============================================ */
    .map-frame {
        border-radius: var(--radius-lg);
        overflow: hidden;
        box-shadow: var(--shadow-md);
        border: 1px solid var(--line);
    }
    
    .mapa-convenios {
        border-radius: var(--radius-lg);
    }
    
    /* Pin design used on the map */
    .pin-wrap {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .pin {
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: var(--gold);
        border: 2px solid white;
        box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    
    /* ============================================
       MODAL
       ============================================ */
    .modal-header {
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        color: white;
        border-bottom: 3px solid var(--gold);
    }
    
    .modal-title {
        color: white;
        font-weight: 600;
        font-family: var(--font-heading);
    }
    
    .modal-content {
        border-radius: var(--radius-lg);
        overflow: hidden;
    }
    
    .modal-body {
        padding: var(--spacing-lg);
    }
    
    .modal-footer {
        border-top: 1px solid var(--line);
        padding: var(--spacing-md);
    }
    
    .list-group-item {
        border: 1px solid var(--line);
        margin-bottom: 0.5rem;
        border-radius: var(--radius-md);
        transition: var(--transition);
        color: var(--ink);
    }
    
    .list-group-item:hover {
        background-color: rgba(212, 175, 55, 0.08);
        border-color: var(--gold);
    }
    
    /* ============================================
       TARJETAS DE CONVENIOS EN MODAL
       ============================================ */
    .card-convenio {
        display: block;
        background: var(--paper);
        border: 1px solid var(--line);
        border-radius: var(--radius-md);
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-sm);
        box-shadow: var(--shadow-sm);
        text-decoration: none;
        color: var(--ink);
        transition: var(--transition);
    }
    
    .card-convenio:hover {
        border-color: var(--gold);
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
    }
    
    .card-convenio h4 {
        margin: 0;
        font-weight: 600;
        color: var(--primary);
        font-size: 1rem;
        font-family: var(--font-heading);
    }
    
    .card-convenio p {
        margin: 0.25rem 0 0;
        font-size: 0.875rem;
        font-family: var(--font-body);
    }
    
    .card-convenio p.small.text-muted {
        color: var(--medium-gray);
    }
    
    .card-convenio p.url {
        color: var(--primary);
        text-decoration: none;
    }
    
    /* ============================================
       UTILIDADES
       ============================================ */
    .legend.small {
        font-size: 0.85rem;
        color: var(--dark-gray);
        font-family: var(--font-body);
    }
    
    /* ============================================
       RESPONSIVE
       ============================================ */
    @media (max-width: 768px) {
        #accordionRegiones .accordion-body .lista-simple {
            grid-template-columns: 1fr;
        }
        
        .btn-convenio {
            padding: 0.6rem 0.8rem;
            font-size: 0.9rem;
        }
        
        .modal-body {
            padding: var(--spacing-md);
        }
        
        .card-convenio {
            padding: var(--spacing-sm);
        }
    }

    /*testimonios*/

/* Contenedor general del carrusel */
.movilidad-carousel {
    padding: var(--spacing-xl) 0;
    width: 100%;
    position: relative;
  }
  
  /* Cabecera (título y subtítulo) */
  .carousel-head {
    text-align: center;
    margin-bottom: var(--spacing-lg);
  }
  
  .carousel-title {
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
  }
  
  .carousel-subtitle {
    color: var(--medium-gray);
    max-width: 800px;
    margin: 0 auto;
    font-size: 1rem;
  }
  
  /* Slider horizontal */
  .mov-slider {
    display: flex;
    gap: var(--spacing-lg);
    align-items: stretch;
    overflow: hidden;
  }
  
  /* Tarjeta base */
  .mov-card {
    background: var(--light-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    position: relative;
    flex: 0 0 280px;
    height: 420px;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    overflow: hidden;
    outline: none;
  }
  
  /* Tarjeta activa (se expande) */
  .mov-card.is-active {
    flex-basis: 580px;
    box-shadow: var(--shadow-md);
  }
  
  /* Contenido colapsado */
  /* Contenido colapsado: divide en secciones superior (titulo) e inferior (imagen) */
  .mov-closed {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: opacity 0.4s ease;
  }
  
  /* Área superior con el título */
  .mov-top {
    flex: 1 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-md);
    background: var(--light-bg);
  }
  
  .mov-title {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
  }
  
  /* Área inferior con la imagen */
  .mov-image {
    flex: 1 0 50%;
    position: relative;
    overflow: hidden;
  }
  
  .mov-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  /* Oculta el contenido colapsado cuando la tarjeta está activa */
  .mov-card.is-active .mov-closed {
    opacity: 0;
    pointer-events: none;
  }
  
  /* Contenido expandido */
  /* Contenido expandido: imagen a la izquierda, texto a la derecha */
  .mov-open {
    position: absolute;
    inset: 0;
    display: flex;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
  }
  
  .mov-card.is-active .mov-open {
    opacity: 1;
    pointer-events: auto;
  }
  
  /* Columna izquierda del modo activo (imagen) */
  .mov-open-left {
    width: 45%;
    height: 100%;
    overflow: hidden;
  }
  
  .mov-open-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  /* Columna derecha del modo activo (texto) */
  /* Lado derecho del modo activo (texto y botón). Se utiliza flex para
     alinear el contenido verticalmente. */
  .mov-open-right {
    width: 55%;
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    /* justificación inicial; el botón se empujará con margin-top */
    justify-content: flex-start;
  }
  
  .mov-title-lg {
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 var(--spacing-xs) 0;
  }
  
  .mov-desc {
    color: var(--dark-gray);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
  }
  
  .mov-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-light);
    color: #fff;
    padding: 0.6rem 1.4rem;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    margin-top: var(--spacing-lg);
    transition: background-color 0.2s ease;
    gap: 0.4rem;
  }
  
  /* Estilo de hover para botón minimalista */
  .mov-btn:hover {
    background: var(--secondary);
    color: #fff;
  }
  
  /* Media queries para tablet y móvil */
  @media (max-width: 991.98px) {
    .mov-slider {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scroll-snap-type: x mandatory;
      padding-bottom: var(--spacing-sm);
    }
    .mov-card {
      scroll-snap-align: start;
      flex: 0 0 auto;
      width: 80vw;
      max-width: 540px;
      min-width: 300px;
      height: 420px;
    }
    .mov-card.is-active {
      flex-basis: auto;
    }
  }
  
  @media (max-width: 575.98px) {
    .mov-card {
      width: 88vw;
      height: 400px;
    }
    .mov-icon {
      width: 64px;
      height: 64px;
      font-size: 1.8rem;
    }
    .mov-icon-lg {
      width: 70px;
      height: 70px;
      font-size: 2rem;
    }
    .mov-title-lg {
      font-size: 1.25rem;
    }
    .mov-desc {
      font-size: 0.95rem;
    }
    .mov-btn {
      font-size: 0.9rem;
      padding: 0.5rem 1.2rem;
    }
  }

      /*actividades*/

      .calendar-wrapper {
        max-width: 100%;
    }
    
    .calendar-day {
        text-align: center;
        padding: 0.5rem;
        border-radius: var(--radius-sm);
        cursor: pointer;
        font-size: 0.9rem;
        transition: var(--transition);
    }
    
    .calendar-day:hover:not(.empty) {
        background-color: var(--light-gray);
    }
    
    .calendar-day.event {
        background-color: rgba(212, 175, 55, 0.1);
        font-weight: 600;
        color: var(--primary);
        position: relative;
    }
    
    .calendar-day.today {
        background-color: var(--gold);
        color: white;
    }
    
    .calendar-day.empty {
        cursor: default;
    }
    
    .calendar-day.has-events::after {
        content: "";
        display: block;
        width: 4px;
        height: 4px;
        background-color: var(--gold);
        border-radius: 50%;
        margin: 2px auto 0;
    }
    
    /* Encabezado del calendario */
    .calendar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: var(--spacing-md);
    }
    
    .calendar-header h4 {
        margin: 0 1rem;
    }
    
    .calendar-nav {
        padding: 0.25rem 1rem !important;
        font-size: 1.2rem !important;
    }
    
    /* Días de la semana */
    .calendar-weekdays {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        text-align: center;
        font-weight: 600;
        color: var(--primary);
        margin-bottom: var(--spacing-sm);
        font-size: 0.85rem;
    }
    
    /* Contenedor de días */
    .calendar-days {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 4px;
    }
    
    /* ============================================
       FILTROS DE ACTIVIDADES
       ============================================ */
    .filter-btn.active {
        background-color: var(--gold) !important;
        border-color: var(--gold) !important;
        color: white !important;
    }
    
    .filter-btn {
        padding: 0.4rem 1rem !important;
        font-size: 0.9rem !important;
    }
    
    /* ============================================
       BADGES POR TIPO DE ACTIVIDAD
       ============================================ */
    .badge-taller {
        background-color: var(--gold);
        color: white;
        padding: 4px 12px;
        border-radius: var(--radius-full);
        font-size: 0.75rem;
        display: inline-block;
    }
    
    .badge-conferencia {
        background-color: var(--secondary);
        color: white;
        padding: 4px 12px;
        border-radius: var(--radius-full);
        font-size: 0.75rem;
        display: inline-block;
    }
    
    /* ============================================
       MODAL DE EVENTOS
       ============================================ */
    .event-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1050;
        justify-content: center;
        align-items: center;
    }
    
    .event-modal-content {
        background-color: var(--paper);
        padding: var(--spacing-lg);
        border-radius: var(--radius-lg);
        max-width: 500px;
        width: 90%;
        max-height: 80vh;
        overflow-y: auto;
        box-shadow: var(--shadow-xl);
    }
    
    .event-modal-content h3 {
        color: var(--primary);
        margin-bottom: var(--spacing-md);
    }
    
    .event-modal-content ul {
        list-style-type: none;
        padding: 0;
    }
    
    .event-modal-content li {
        padding: var(--spacing-sm);
        margin-bottom: var(--spacing-sm);
        background-color: var(--light-bg);
        border-radius: var(--radius-sm);
        border-left: 3px solid var(--gold);
    }
    
    .event-modal-content button {
        background-color: var(--gold);
        color: var(--primary);
        border: none;
        padding: 0.5rem 1.5rem;
        border-radius: var(--radius-full);
        cursor: pointer;
        font-weight: 600;
        transition: var(--transition);
        margin-top: var(--spacing-sm);
    }
    
    .event-modal-content button:hover {
        background-color: var(--gold-dark);
        transform: translateY(-2px);
    }
    
    /* ============================================
       ICONOS DE MATERIAL DE APOYO
       ============================================ */
    .material-link {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        padding: 0.2rem 0.75rem;
        font-size: 0.75rem;
        border: 1px solid var(--gold);
        border-radius: var(--radius-full);
        color: var(--primary);
        transition: var(--transition);
    }
    
    .material-link:hover {
        background-color: var(--gold);
        color: white;
        text-decoration: none;
    }
    
    .material-link i {
        font-size: 0.8rem;
    }
    
    /* ============================================
       AJUSTES RESPONSIVOS ESPECÍFICOS
       ============================================ */
    @media (max-width: 768px) {
        .calendar-header {
            flex-wrap: wrap;
            gap: var(--spacing-xs);
        }
        
        .calendar-day {
            padding: 0.35rem;
            font-size: 0.8rem;
        }
        
        .calendar-weekdays div {
            font-size: 0.75rem;
        }
        
        .event-modal-content {
            padding: var(--spacing-md);
            max-width: 95%;
        }
    }
    
    @media (max-width: 576px) {
        .calendar-day {
            padding: 0.25rem;
            font-size: 0.75rem;
        }
        
        .calendar-weekdays div {
            font-size: 0.7rem;
        }
        
        .filter-btn {
            padding: 0.3rem 0.8rem !important;
            font-size: 0.85rem !important;
        }
    }


    /*  ALIANZAS  */

.alianzas-section{ padding: 80px 0; }

.alianzas-head{ margin-bottom: 46px; }

.alianzas-title{
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  margin: 0;
}

.alianzas-subtitle{
  margin-top: 10px;
  color: var(--dark-gray);
  max-width: 680px;
}

/* GRID */
.alianzas-list{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

/* CARD */
.alianza-card{
  background: var(--paper);
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.06);
  padding: 22px;
  display:flex;
  flex-direction:column;
  min-height: 320px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.alianza-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,.08);
  border-color: rgba(212,175,55,.20);
}

/* TOP (logo + título + acción arriba derecha) */
.alianza-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.alianza-top-left{
  display:flex;
  align-items:center;
  gap: 14px;
  min-width: 0;
}

.alianza-logo{
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 12px;
  padding: 8px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.05);
}

.alianza-titlewrap{ min-width:0; }

.alianza-name{
  font-size: 1.18rem;
  font-weight: 900;
  margin: 0;
  color: var(--primary);
}

.alianza-rule{
  width: 52px;
  height: 3px;
  border-radius: 999px;
  margin-top: 7px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

/* Acción arriba derecha: “Sitio” */
.alianza-top-action{
  flex: 0 0 auto;
  display:flex;
  align-items:center;
}

.alianza-top-action a{
  display:inline-flex;
  align-items:center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(22,58,112,.05);
  border: 1px solid rgba(22,58,112,.10);
  color: var(--primary);
  font-weight: 800;
  text-decoration:none;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.alianza-top-action a:hover{
  background: rgba(212,175,55,.12);
  border-color: rgba(212,175,55,.25);
  transform: translateY(-1px);
}

/* DESCRIPCIÓN (preview con expansión suave) */
.alianza-desc{
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dark-gray);

  overflow: hidden;
  max-height: 140px;            /* preview */
  transition: max-height .35s ease;
}

.alianza-card.is-open .alianza-desc{
  max-height: 1200px;           /* expandido */
}

/* FOOT */
.alianza-foot{
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,.06);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 14px;
}

/* BOTÓN Leer más */
.alianza-more{
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: .95;
  transition: transform .15s ease, opacity .15s ease;
}

.alianza-more:hover{
  opacity: 1;
  transform: translateY(-1px);
}

.alianza-more .chev{
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
}

.alianza-card.is-open .alianza-more .chev{
  transform: rotate(-135deg);
}

/* LINKS abajo derecha (Objetivos / Correo / IMCP ECD) */
.alianza-links{
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
  justify-content:flex-end;
}

.alianza-links a{
  color: #fff;
  font-weight: 400;
  text-decoration:none;
  border-bottom: 2px solid rgba(42,144,232,.22);
  padding-bottom: 2px;
  transition: border-color .18s ease, color .18s ease;
  background:#2a90e8;
}

.alianza-links a:hover{
  color: var(--primary);
  background: #fff;
  border-bottom-color: rgba(212,175,55,.55);
}

/* RESPONSIVE */
@media(max-width: 992px){
  .alianzas-list{ grid-template-columns: 1fr; }
}


/*asignaturas*/

.golden-line {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
    margin: var(--spacing-lg) 0;
}

/* ============================================
   NAVEGACIÓN HORIZONTAL - NUEVO DISEÑO
   ============================================ */
.nav-horizontal {
    display: flex;
    gap: 1rem;
    margin: var(--spacing-lg) 0;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-btn {
    background-color: var(--light-gray);
    border: 1px solid var(--line);
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    font-size: 1rem;
}

.nav-btn:hover {
    background-color: white;
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-btn.active {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: white;
    border-color: var(--gold);
}

a.nav-link:hover{
    color: var(--gold) !important;
}

.nav-btn i {
    font-size: 1.1rem;
    color: inherit;
}

/* ============================================
   TARJETAS DE CONTENIDO
   ============================================ */
.long-card {
    display: none;
}

.long-card.active {
    display: block;
}

/* ============================================
   PESTAÑAS DE CARRERAS
   ============================================ */
.tab-bar {
    display: flex;
    gap: 0.5rem;
    margin: var(--spacing-lg) 0;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-btn {
    background-color: var(--light-gray);
    border: 1px solid var(--line);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.tab-btn i {
    font-size: 1.1rem;
    color: var(--gold);
    transition: var(--transition);
}

.tab-btn:hover {
    background-color: white;
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tab-btn:hover i {
    color: var(--gold-dark);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-color: var(--primary-dark);
    box-shadow: var(--shadow-md);
}

.tab-btn.active i {
    color: var(--gold-light);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ============================================
   TABLAS - AHORA CON SUBDIVISIONES EN HORARIO
   ============================================ */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-top: var(--spacing-md);
    border-radius: 2px;
    box-shadow: var(--shadow-lg);
    background: white;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9rem;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

table th {
    background: #293582;
    color: white !important;
    font-weight: 600;
    padding: 1rem 0.8rem;
    border: none;
    text-align: left;
    white-space: nowrap;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

table th i {
    margin-right: 0.5rem;
    color: var(--gold-light);
}

/* Estilo especial para el encabezado de horario con subdivisiones */
.horario-header {
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.horario-subheader {
    display: flex;
    justify-content: space-around;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    font-weight: 400;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 0.3rem;
}

.horario-subheader span {
    flex: 1;
    text-align: center;
}

table td {
    padding: 1rem 0.8rem;
    border-bottom: 1px solid var(--line);
    background-color: white;
    color: var(--ink);
    vertical-align: top;
}

/* Estilo para celdas con múltiples valores */
.multi-value-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.multi-value-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.3rem 0;
    border-bottom: 1px dashed var(--medium-gray);
}

.multi-value-row:last-child {
    border-bottom: none;
}

.multi-value-profesor {
    flex: 2;
    font-weight: 500;
    color: var(--primary);
}

/* Estilo para los detalles del horario */
.horario-detalles {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.horario-detalles span {
    flex: 1;
    padding: 0.2rem 0.3rem;
    background-color: var(--light-gray);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    text-align: center;
    white-space: nowrap;
}

/* Estilo para filas sin múltiples valores */
.single-value {
    display: flex;
    align-items: center;
    min-height: 32px;
}

.single-value .horario-detalles {
    justify-content: flex-start;
}

/* Mantener el estilo para claves de materias */
td:first-child {
    font-weight: 600;
    color: var(--primary);
}

/* Efectos hover en filas */
table tbody tr:hover td {
    background-color: rgba(212, 175, 55, 0.05);
}

table tbody tr:nth-child(even) td {
    background-color: var(--light-bg);
}

table tbody tr:nth-child(even):hover td {
    background-color: rgba(212, 175, 55, 0.08);
}

/* ============================================
   TEXTO INFORMATIVO
   ============================================ */
.update-notice {
    color: var(--gold);
    font-style: italic;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: rgba(212, 175, 55, 0.08);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--gold);
}

.update-notice i {
    margin-right: 0.5rem;
    color: var(--gold);
}

.text-accent {
    color: var(--accent-teal);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    table {
        font-size: 0.85rem;
    }
    
    table th, table td {
        padding: 0.8rem 0.6rem;
    }
    
    .horario-subheader {
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .nav-horizontal {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-btn {
        justify-content: center;
    }
    
    .tab-bar {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: center;
    }
    
    .table-responsive {
        margin: var(--spacing-md) -0.5rem;
        width: calc(100% + 1rem);
        padding: 0 0.5rem;
    }
    
    table {
        font-size: 0.8rem;
    }
    
    .horario-detalles {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .horario-detalles span {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .nav-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .tab-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* ============================================
   ANCHOS FIJOS PARA COLUMNAS - TABLAS CONSISTENTES
   ============================================ */
table {
    table-layout: fixed;
    width: 100%;
}

/* Distribución de ancho de columnas */
table th:nth-child(1) { /* CLAVE */
    width: 8%;
}

table th:nth-child(2) { /* ASIGNATURA */
    width: 37%;
}

table th:nth-child(3) { /* PROFESOR(ES) */
    width: 30%;
}

table th:nth-child(4) { /* HORARIO */
    width: 25%;
}

/* Ajustes para contenido */
table td:nth-child(1) {
    width: 8%;
    text-align: center;
}

table td:nth-child(2) {
    width: 37%;
}

table td:nth-child(3) {
    width: 30%;
}

table td:nth-child(4) {
    width: 25%;
}

/* Ajustes responsivos */
@media (max-width: 1200px) {
    table th:nth-child(2),
    table td:nth-child(2) {
        width: 35%;
    }
    
    table th:nth-child(3),
    table td:nth-child(3) {
        width: 28%;
    }
    
    table th:nth-child(4),
    table td:nth-child(4) {
        width: 29%;
    }
}

@media (max-width: 992px) {
    table th:nth-child(1),
    table td:nth-child(1) {
        width: 10%;
    }
    
    table th:nth-child(2),
    table td:nth-child(2) {
        width: 32%;
    }
    
    table th:nth-child(3),
    table td:nth-child(3) {
        width: 28%;
    }
    
    table th:nth-child(4),
    table td:nth-child(4) {
        width: 30%;
    }
}

/* Asegurar que los contenedores respeten los anchos */
.multi-value-container {
    width: 100%;
}

.horario-detalles {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.horario-detalles span {
    flex: 1;
    text-align: center;
    margin: 0 2px;
}

/* =========================================
   TABLAS RESPONSIVE
   ========================================= */

   .table-responsive{
    overflow-x:auto;
    -webkit-overflow-scrolling: touch;
}

.table{
    min-width:900px;
}

.table th,
.table td{
    vertical-align: middle;
    white-space: nowrap;
}

/* estructura interna de horarios */
.horario-detalles{
    display:flex;
    gap:10px;
}

.multi-value-container{
    display:flex;
    flex-direction:column;
    gap:6px;
}

.multi-value-row{
    display:flex;
    gap:10px;
}




/*Historico noticias*/
.filtros-container {
    background: var(--light-bg);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    border: 1px solid var(--line);
}

.filtros-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-md);
    justify-content: center;
}

.filtro-grupo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.filtro-grupo label {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0;
    white-space: nowrap;
}

.filtro-grupo label i {
    color: var(--gold);
    margin-right: 4px;
}

.filtro-select {
    padding: 0.75rem 2rem 0.75rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background-color: white;
    font-size: 0.95rem;
    color: var(--ink);
    cursor: pointer;
    min-width: 180px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23163A70' stroke-width='2' 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: right 0.75rem center;
    background-size: 1rem;
    transition: none;
}

.filtro-select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* Badges y metadatos */
.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.5px;
}

.badge-primary {
    background-color: var(--primary);
    color: white;
}

/* Mensajes de estado */
.mensaje-carga,
.mensaje-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--medium-gray);
    font-size: 1rem;
}

.mensaje-error {
    color: var(--error);
}

/* Estilos para las etiquetas de categoría */
.categoria-badge {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    z-index: 2;
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.categoria-fca {
    background: linear-gradient(135deg, #1B4079 0%, #2A4F8A 100%);
    color: white;
}

.categoria-educacion {
    background: linear-gradient(135deg, #D4AF37 0%, #E5C05A 100%);
    color: #1B4079;
}

.categoria-movilidad {
    background: linear-gradient(135deg, #118AB2 0%, #2A9FD0 100%);
    color: white;
}

.categoria-negocios {
    background: linear-gradient(135deg, #7F9C96 0%, #9FB7B1 100%);
    color: white;
}

.categoria-huella {
    background: linear-gradient(135deg, #06D6A0 0%, #2CE5B5 100%);
    color: #1B4079;
}

/* Responsive */
@media (max-width: 768px) {
    .filtros-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filtro-grupo {
        width: 100%;
    }
    
    .filtro-select {
        width: 100%;
        min-width: auto;
    }
    
    .noticia-imagen {
        height: 140px;
    }
    
    .noticia-titulo {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .noticia-imagen {
        height: 120px;
    }
}

/* QUITAR TODAS LAS ANIMACIONES DEL BLOQUE DE FILTROS */
.filtros-container,
.filtros-container *,
.filtro-select,
.filtro-select:hover,
.filtro-select:focus,
.filtro-select:active {
    transition: none !important;
    transform: none !important;
    animation: none !important;
}

/* Mantener solo el efecto focus visual pero sin animación */
.filtro-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    outline: none;
}

/*Historico testimonio*/
.filtros-container {
    background: var(--light-bg);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    border: 1px solid var(--line);
}

.filtros-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-md);
    justify-content: center;
}

.filtro-grupo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.filtro-grupo label {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0;
    white-space: nowrap;
}

.filtro-grupo label i {
    color: var(--gold);
    margin-right: 4px;
}

.filtro-select {
    padding: 0.75rem 2rem 0.75rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background-color: white;
    font-size: 0.95rem;
    color: var(--ink);
    cursor: pointer;
    min-width: 180px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23163A70' stroke-width='2' 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: right 0.75rem center;
    background-size: 1rem;
    transition: none;
}

.filtro-select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* ============================================
   CONTADOR DE RESULTADOS
   ============================================ */
.resultados-info {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--dark-gray);
    font-size: 0.95rem;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--light-bg);
    border-radius: var(--radius-full);
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}

.resultados-info span {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
    margin: 0 0.25rem;
}

/* ============================================
   TARJETAS DE TESTIMONIOS (estilo noticias)
   ============================================ */
.testimonio-item {
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
}

.testimonio-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.testimonio-imagen {
    height: 170px;
    width: 100%;
    margin: 0;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    position: relative;
    background-size: cover !important;
    background-position: center !important;
}

.testimonio-item:hover .testimonio-imagen {
    transform: scale(1.02);
}

.testimonio-imagen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
    z-index: 1;
}

.testimonio-badge {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    z-index: 2;
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.testimonio-contenido {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: var(--spacing-md);
}

.testimonio-titulo {
    margin: 0 0 var(--spacing-xs) 0;
    font-size: 1.1rem;
    line-height: 1.4;
    color: var(--primary);
    font-weight: 700;
}

.testimonio-universidad {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

.testimonio-destino {
    color: var(--gold);
    font-size: 0.85rem;
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: center;
    gap: 4px;
}

.testimonio-destino i {
    font-size: 0.8rem;
}

.testimonio-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--line);
}

.testimonio-convocatoria {
    font-size: 0.75rem;
    color: var(--medium-gray);
}

.testimonio-ver-mas {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.testimonio-ver-mas i {
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.testimonio-item:hover .testimonio-ver-mas i {
    transform: translateX(4px);
}

/* ============================================
   MODAL DE TESTIMONIO COMPLETO - VERSIÓN SIMPLIFICADA
   ============================================ */
.modal-testimonio {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 9999;
    overflow-y: auto;
    padding: var(--spacing-md);
}

.modal-contenido {
    position: relative;
    background: var(--paper);
    margin: 40px auto;
    max-width: 700px;
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.4s ease;
    overflow: hidden;
}

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

.modal-header {
    padding: var(--spacing-lg) var(--spacing-xl);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--gold);
}

.modal-header h2 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--gold);
    color: var(--primary);
    transform: rotate(90deg);
}

.modal-body {
    padding: var(--spacing-xl);
}

/* Imagen destacada en el modal */
.modal-imagen-destacada {
    width: 100%;
    height: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
    border: 3px solid var(--gold);
    box-shadow: var(--shadow-md);
}

.modal-imagen-destacada img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Testimonios en el modal - SOLO COMENTARIOS */
.modal-testimonios-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.modal-testimonio-bloque {
    background: var(--light-bg);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--gold);
    transition: var(--transition);
}

.modal-testimonio-bloque:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.modal-testimonio-pregunta {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-testimonio-pregunta i {
    color: var(--gold);
    font-size: 1.1rem;
}

.modal-testimonio-respuesta {
    line-height: 1.7;
    color: var(--dark-gray);
    font-size: 0.95rem;
    padding-left: var(--spacing-sm);
}

.modal-frase-destacada {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    font-style: italic;
    font-size: 1.2rem;
    text-align: center;
    color: var(--primary);
    border: 2px dashed var(--gold);
    position: relative;
    margin-top: var(--spacing-lg);
}

.modal-frase-destacada::before,
.modal-frase-destacada::after {
    content: '"';
    font-size: 3rem;
    color: var(--gold);
    opacity: 0.3;
    position: absolute;
    font-family: serif;
}

.modal-frase-destacada::before {
    top: -10px;
    left: 10px;
}

.modal-frase-destacada::after {
    bottom: -30px;
    right: 10px;
    transform: rotate(180deg);
}

/* ============================================
   ESTADOS DE CARGA Y VACÍO
   ============================================ */
.mensaje-carga,
.mensaje-vacio {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--medium-gray);
    font-size: 1rem;
}

.mensaje-vacio i {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: var(--spacing-sm);
    opacity: 0.5;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .filtros-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filtro-grupo {
        width: 100%;
    }
    
    .filtro-select {
        width: 100%;
        min-width: auto;
    }
    
    .testimonio-imagen {
        height: 140px;
    }
    
    .testimonio-titulo {
        font-size: 1rem;
    }
    
    .modal-imagen-destacada {
        height: 150px;
    }
    
    .modal-body {
        padding: var(--spacing-lg);
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .modal-testimonio-bloque {
        padding: var(--spacing-md);
    }
}

@media (max-width: 576px) {
    .testimonio-imagen {
        height: 120px;
    }
    
    .resultados-info {
        font-size: 0.85rem;
        padding: var(--spacing-xs) var(--spacing-md);
    }
    
    .modal-imagen-destacada {
        height: 120px;
    }
    
    .modal-frase-destacada {
        font-size: 1rem;
        padding: var(--spacing-md);
    }
}

/* QUITAR TODAS LAS ANIMACIONES DEL BLOQUE DE FILTROS */
.filtros-container,
.filtros-container *,
.filtro-select,
.filtro-select:hover,
.filtro-select:focus,
.filtro-select:active {
    transition: none !important;
    transform: none !important;
    animation: none !important;
}

/* Mantener solo el efecto focus visual pero sin animación */
.filtro-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    outline: none;
}


/* Estilos personalizados para la sección de movilidad de la FCA UNAM */

/* Reset básico para la página de movilidad */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estructura general */
.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-xl) 0;
}

/* Título de sección */
.section-title {
    text-align: center;
}
.section-title h2 {
    color: var(--primary);
}
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gold);
    margin: 0.5rem auto;
    border-radius: 2px;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background-color: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-shadow: var(--shadow-sm);
}
.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}
.btn:active {
    transform: translateY(0);
}
.btn-secondary {
    background-color: var(--secondary);
}
.btn-secondary:hover {
    background-color: var(--secondary-dark);
}

/* ===== Golden Line ===== */
.golden-line {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
    margin: 2rem 0;
}

/* ===== Navegación Buttons ===== */
.info-btn {
    background-color: #e9ecef;
    border: 1px solid var(--line);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    text-align: left;
    width: 100%;
    margin-bottom: 0.5rem;
    color: var(--accent-navy);
}
.info-btn:hover {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--accent-navy);
}
.info-btn.active {
    background: linear-gradient(135deg, var(--gold), #C19B30);
    color: #fff;
    border-color: var(--gold);
}
.info-btn i {
    font-size: 1rem;
    width: 20px;
}

/* Long card visibility */
.long-card {
    display: none;
}
.long-card.active {
    display: block;
}

/* Tabs */
.tab-bar {
    display: flex;
    gap: .5rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}
.tab-btn {
    background-color: #e9ecef;
    border: 1px solid var(--line);
    padding: .6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    display:flex;
    align-items:center;
    gap:.5rem;
}
.tab-btn.active,
.tab-btn:hover {
    background: linear-gradient(135deg, var(--gold), #C19B30);
    color:#fff;
    border-color: var(--gold);
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* ======== CÍRCULO (estático, sin desplazamientos) ======== */
.process-container {
    display:flex;
    flex-direction:column;
    align-items:center;
    margin: 2rem 0;
}
.circle-diagram {
    position:relative;
    width:420px;
    height:420px;
    margin-bottom:.75rem;
    filter: drop-shadow(0 10px 16px rgba(0,0,0,.12));
}
.connection-circle {
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    width:320px;
    height:320px;
    border-radius:50%;
    border:3px dashed var(--gold);
    opacity:.95;
    animation: none;
}
.center-circle {
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    width:170px;
    height:170px;
    border-radius:50%;
    background: radial-gradient(120px 120px at 35% 30%, #20467f, #16335f 62%, #0f2a4a 100%);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    font-weight:800;
    line-height:1.15;
    letter-spacing:.2px;
    box-shadow: 0 12px 22px rgba(0,0,0,.28), 0 0 0 6px rgba(212,175,55,.12);
}
.circle-arrow {
    position:absolute;
    width:56px;
    height:56px;
    border:0;
    border-radius:50%;
    background: var(--gold);
    color:#fff;
    font-weight:800;
    cursor:pointer;
    box-shadow: inset 0 0 0 3px rgba(255,255,255,.2), 0 8px 14px rgba(0,0,0,.18);
    transition: background .22s ease, box-shadow .22s ease;
}
.circle-arrow::after {
    content:"";
    position:absolute;
    inset:-6px;
    border-radius:50%;
    box-shadow: 0 0 0 2px rgba(212,175,55,.65);
}
.circle-arrow:hover {
    background:#1b4079;
}
.circle-arrow.active {
    background:#1b4079;
    box-shadow: inset 0 0 0 3px rgba(255,255,255,.28), 0 0 0 4px rgba(212,175,55,.75);
}

/* Posiciones de los nodos */
.arrow-1 { top: 8%;  left: 50%; transform: translateX(-50%); }
.arrow-2 { top: 20%; right: 18%; }
.arrow-3 { top: 50%; right: 7%;  transform: translateY(-50%); }
.arrow-4 { bottom: 20%; right: 18%; }
.arrow-5 { bottom: 8%; left: 50%; transform: translateX(-50%); }
.arrow-6 { bottom: 20%; left: 18%; }
.arrow-7 { top: 50%; left: 7%;  transform: translateY(-50%); }
.arrow-8 { top: 20%; left: 18%; }

/* ===== Modal rectangular (centrado y elegante) ===== */
.modal-rect-dialog {
    max-width: 600px;
}
.modal-rect-content {
    border-radius: 8px;
    border: 2px solid var(--accent-navy);
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.modal-header-yale {
    background: var(--accent-navy);
    color: #fff;
    border-bottom: 3px solid var(--gold);
    padding: .95rem 1.25rem;
}
#stepModal .modal-title {
    font-weight: 800;
    font-size: 1.25rem;
    margin: 0;
}
.modal-body-contrast {
    color: var(--ink);
    font-size: 1.06rem;
    line-height: 1.75;
    padding: 1.1rem 1.25rem;
}
.modal-footer-clean {
    background: #f7f7f9;
    border-top: 0;
    padding: .9rem 1.25rem;
}
#stepModal .btn.btn-primary {
    background: var(--accent-navy);
    border-color: var(--accent-navy);
    font-weight: 700;
}
#stepModal .btn.btn-primary:hover {
    background: #16335f;
    border-color: #16335f;
}

/* === Tarjetas "Otros programas" (estilo anterior) === */
.program-box {
    background: rgba(212,175,55,.08);
    border-left: 4px solid var(--gold);
    padding: 1rem 1.25rem;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
    margin-bottom: 1rem;
}
.program-box h6 {
    margin: 0 0 .35rem 0;
    color: var(--accent-navy);
    font-weight: 700;
}
.program-box p {
    margin: 0;
    color: var(--accent-teal);
}

/* Responsive for circle diagram */
@media (max-width:1200px) {
    .circle-diagram {
        width:340px;
        height:340px;
    }
    .connection-circle {
        width:270px;
        height:270px;
    }
    .center-circle {
        width:145px;
        height:145px;
        font-size:.95rem;
    }
    .circle-arrow {
        width:48px;
        height:48px;
        font-size:.95rem;
    }
}
@media (max-width:768px) {
    .circle-diagram {
        width:270px;
        height:270px;
    }
    .connection-circle {
        width:215px;
        height:215px;
    }
    .center-circle {
        width:120px;
        height:120px;
        font-size:.85rem;
    }
    .circle-arrow {
        width:40px;
        height:40px;
        font-size:.9rem;
    }
    .modal-rect-dialog {
        max-width: 92vw;
    }
}

/* Utilidades de fondo */
.bg-light {
    background-color: var(--light-bg);
}
.bg-gold {
    background-color: var(--gold);
    color: var(--primary);
}

/* Formulario de opinión */
form.flex-column > div {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--spacing-sm);
}
form label {
    font-weight: bold;
    margin-bottom: 0.5rem;
}
form input,
form textarea {
    padding: var(--spacing-xs);
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    font-family: inherit;
}

/* Responsividad */
@media (max-width: 768px) {
    .section {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        display: block;
        white-space: normal;
    }
}

/* ============================================
   ESTILOS PARA PREGUNTAS FRECUENTES (FAQ)
   Basado en style.css y homogeneizado con asignaturas.css
   ============================================ */

/* ============================================
   PESTAÑAS DE NAVEGACIÓN - FAQ TABS
   ============================================ */
   .faq-tabs {
    display: flex;
    gap: 1rem;
    margin: var(--spacing-lg) 0 var(--spacing-xl);
    flex-wrap: wrap;
    justify-content: center;
}

.faq-tab-btn {
    background-color: var(--light-gray);
    border: 1px solid var(--line);
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    font-size: 1rem;
}

.faq-tab-btn i {
    font-size: 1.1rem;
    color: var(--gold);
    transition: var(--transition);
}

.faq-tab-btn:hover {
    background-color: white;
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.faq-tab-btn:hover i {
    color: var(--gold-dark);
}

.faq-tab-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-color: var(--primary-dark);
    box-shadow: var(--shadow-md);
}

.faq-tab-btn.active i {
    color: var(--gold-light);
}

/* ============================================
   CONTENEDORES DE PESTAÑAS
   ============================================ */
.faq-content-wrapper {
    display: none;
    animation: fadeIn 0.3s ease;
}

.faq-content-wrapper.active {
    display: block;
}

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

/* ============================================
   TÍTULOS DE SECCIÓN SECUNDARIOS
   ============================================ */
.faq-section-subtitle {
    text-align: center;
    color: var(--medium-gray);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    font-weight: 500;
}

/* ============================================
   CONTENEDOR PRINCIPAL DE FAQ
   ============================================ */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

/* ============================================
   ITEMS DE PREGUNTAS FRECUENTES (ACORDEONES)
   ============================================ */
.faq-item {
    background-color: var(--paper);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    border-left: 4px solid transparent;
    border: 1px solid var(--line);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.faq-item.active {
    border-left: 4px solid var(--gold);
    box-shadow: var(--shadow-md);
}

/* ============================================
   PREGUNTA (HEADER DEL ACORDEÓN)
   ============================================ */
.faq-question {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--primary);
    background-color: var(--paper);
    transition: var(--transition);
}

.faq-question:hover {
    background-color: rgba(212, 175, 55, 0.05);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    padding: 0;
    flex: 1;
}

/* ============================================
   ÍCONO DEL ACORDEÓN
   ============================================ */
.faq-icon {
    font-size: 1.2rem;
    color: var(--gold);
    transition: transform 0.3s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(212, 175, 55, 0.1);
    border-radius: var(--radius-full);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    background-color: var(--gold);
    color: white;
}

/* ============================================
   RESPUESTA (CONTENIDO DEL ACORDEÓN)
   ============================================ */
.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    border-top: 1px solid transparent;
}

.faq-answer.active {
    max-height: 800px; /* Suficiente para contenido largo */
    padding: 1.5rem;
    border-top: 1px solid var(--line);
}

/* ============================================
   CONTENIDO DE LAS RESPUESTAS
   ============================================ */
.faq-answer p {
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
    color: var(--dark-gray);
    line-height: 1.6;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul, 
.faq-answer ol {
    margin: 0.5rem 0 1rem;
    padding-left: 1.5rem;
    color: var(--dark-gray);
}

.faq-answer li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    display: list-item;
}

.faq-answer li::marker {
    color: var(--gold);
    font-weight: 600;
}

.faq-answer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.faq-answer a:hover {
    color: var(--gold-dark);
    border-bottom-color: var(--gold);
}

.faq-answer strong {
    color: var(--primary);
}

.faq-answer .note {
    color: var(--medium-gray);
    font-size: 0.9rem;
    font-style: italic;
    display: block;
    margin-top: var(--spacing-xs);
}

/* ============================================
   LISTAS ANIDADAS
   ============================================ */
.faq-answer ul ul,
.faq-answer ol ol,
.faq-answer ul ol,
.faq-answer ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* ============================================
   ESTILOS ESPECIALES PARA ENLACES DE DESCARGA
   ============================================ */
.faq-answer a[href$=".pdf"],
.faq-answer a[href$=".doc"],
.faq-answer a[href$=".docx"] {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background-color: rgba(212, 175, 55, 0.05);
    border-radius: var(--radius-sm);
}

.faq-answer a[href$=".pdf"]:hover,
.faq-answer a[href$=".doc"]:hover,
.faq-answer a[href$=".docx"]:hover {
    background-color: rgba(212, 175, 55, 0.1);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .faq-tabs {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .faq-tab-btn {
        width: 100%;
        justify-content: center;
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
        padding-right: 0.5rem;
    }
    
    .faq-answer.active {
        padding: 1rem;
    }
    
    .faq-answer ul, 
    .faq-answer ol {
        padding-left: 1.25rem;
    }
    
    .faq-section-subtitle {
        font-size: 1.1rem;
        margin-bottom: var(--spacing-md);
    }
}

@media (max-width: 576px) {
    .faq-question {
        padding: 0.875rem;
    }
    
    .faq-question h3 {
        font-size: 0.95rem;
    }
    
    .faq-icon {
        width: 20px;
        height: 20px;
        font-size: 1rem;
    }
    
    .faq-answer {
        font-size: 0.95rem;
    }
    
    .faq-answer.active {
        padding: 0.875rem;
    }
}

/* ============================================
   UTILIDADES ADICIONALES
   ============================================ */
.faq-highlight {
    background-color: rgba(212, 175, 55, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.faq-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: var(--spacing-md) 0;
}


  
  /* =======================================================
     SECCIÓN GENERAL
  ======================================================= */
  .section {
    width: 100%;
    max-width: 1300px;
    background: var(--light-bg);
    padding: var(--spacing-md) var(--spacing-lg);
    margin: 0 auto var(--spacing-xl) auto;
  
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
  
    box-sizing: border-box;
  }
  
  /* =======================================================
     HEADER DE SECCIÓN
  ======================================================= */
  .section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 4px; /* Reducido */
  }
  
  .section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--yale);
    position: relative;
    text-align: center;
    margin: 0;
    padding: 0;
  }
  
  /* Línea dorada alineada a la izquierda */
  .section-title::after {
    content: '';
    display: block;
    width: 52px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    margin-top: 6px;
    margin-left: 0;
  }
  
  /* =======================================================
     CONTENEDOR PRINCIPAL
  ======================================================= */
  #sitios-interes .sitios-contenedor {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 6px; /* Muy reducido */
  }
  
  /* =======================================================
     RECUADROS
  ======================================================= */
  #sitios-interes .sitios-recuadro {
    flex: 1 1 300px;
    min-width: 280px;
    background: var(--paper);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
  
    text-align: center;
    margin-bottom: var(--spacing-sm);
  
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  /* Subtítulos internos */
  #sitios-interes .sitios-recuadro h3 {
    color: var(--yale);
    font-size: 1.4rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
  }
  
  /* =======================================================
     LISTAS DE SITIOS
  ======================================================= */
  #sitios-interes .sitios-list-mini {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
  }
  
  /* =======================================================
     MICRO ITEMS
  ======================================================= */
  #sitios-interes .sitio-micro {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 110px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
  }
  
  #sitios-interes .sitio-micro:hover {
    transform: translateY(-6px);
  }
  
  /* Contenedor circular */
  #sitios-interes .sitio-img-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    background: #fff;
    transition: all 0.3s ease;
  }
  
  /* Efecto elegante al hover */
  #sitios-interes .sitio-micro:hover .sitio-img-container {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transform: scale(1.05);
  }
  
  #sitios-interes .sitio-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* Texto debajo del logo */
  #sitios-interes .sitio-micro span,
  #sitios-interes .sitio-micro .sitio-text {
    font-size: 0.85rem;
    color: var(--yale);
    text-align: center;
    font-weight: 500;
    line-height: 1.2;
  }
  
  /* =======================================================
     CARRUSEL OTRAS LIGAS (LOOP INFINITO REAL SIN HUECO)
  ======================================================= */
  #sitios-interes .ligas-carousel-container{
    overflow: hidden;
    width: 100%;
    position: relative;
  }
  
  #sitios-interes .ligas-track{
    display: flex;
    flex-wrap: nowrap;
    gap: var(--spacing-md);
    width: max-content;
    will-change: transform;
  
    /* CLAVE: sin keyframes */
    animation: none !important;
    transform: translate3d(0,0,0);
  }
  
  #sitios-interes .liga-item{
    flex: 0 0 auto;
  }
  
  @media (max-width: 768px) {
    .section-title {
      font-size: 1.6rem;
    }
  
    #sitios-interes .sitios-recuadro {
      padding: var(--spacing-sm);
    }
  
    #sitios-interes .sitio-micro {
      width: 95px;
    }
  
    #sitios-interes .sitio-img-container {
      width: 70px;
      height: 70px;
    }
  
    /* Carrusel un poquito más rápido en móvil */
    #sitios-interes .ligas-track {
      animation-duration: var(--ligas-speed-mobile);
    }
  }
  
  /* Opcional: reducir animaciones si el usuario lo prefiere */
  @media (prefers-reduced-motion: reduce) {
    #sitios-interes .ligas-track {
      animation: none;
      transform: none;
    }
  }

/* =======================================================
   Carrusel móvil para múltiples secciones
   
   En pantallas pequeñas, convertir contenedores con la clase
   .mobile-carousel en un carrusel horizontal interactivo. Las
   tarjetas se apilan horizontalmente con scroll suave y se
   alinean mediante scroll-snap. Al deslizar con el dedo, los
   usuarios pueden navegar entre Calendario de Actividades,
   Alianzas/Amigos y Testimonios u otras secciones. No afecta
   el layout de escritorio.
   ======================================================= */
@media (max-width: 768px) {
  .mobile-carousel {
    display: flex !important;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--spacing-md);
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-carousel > * {
    flex: 0 0 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .mobile-carousel > *:not(:last-child) {
    margin-right: var(--spacing-md);
  }

  /* Ajuste específico para las alianzas: mostrar como carrusel horizontal */
  .alianzas-list {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--spacing-md);
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
  .alianzas-list .alianza-card {
    flex: 0 0 85%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  /* Si existe un contenedor de testimonios con la clase testimonio-carousel,
     convertirlo también en un carrusel horizontal. Esto permite adaptar el
     módulo de testimonios en el inicio para móvil. */
  .testimonios-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--spacing-md);
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
  .testimonios-carousel .testimonio-item {
    flex: 0 0 85%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
}

/* =======================================================
   Ajustes adicionales para la sección ¿Quiénes Somos? 
   Versión más clara del azul y barra dorada centrada
   ======================================================= */

/* Los títulos de sección usan el color primario para un tono más claro */
.section-title h1,
.section-title h2 {
    color: var(--primary);
}

/* Barra dorada centrada siempre debajo del título */
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gold);
    margin: calc(var(--spacing-sm) / 2) auto var(--spacing-sm);
    border-radius: 2px;
}

/* Subtítulo para ¿Quiénes Somos? */
.ys-section-subtitle {
    color: var(--dark-gray);
    text-align: center;
    margin-top: calc(var(--spacing-xs) / 2);
    margin-bottom: var(--spacing-md);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.05rem;
}

/* Carta Misión/Visión */
.ys-card-icon-only {
    text-align: center;
    padding: var(--spacing-md);
    background-color: var(--light-gray);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.ys-card-icon-only i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: var(--spacing-xs);
}

.ys-card-icon-only-title {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
    font-size: 1.3rem;
}

.ys-card-icon-only-text {
    color: var(--ink);
    font-weight: 400;
    font-size: 1rem;
}

/* Tabla minimalista para Nuestro Equipo */
.ys-equipo {
    margin-top: var(--spacing-xl);
}


/*directorio*/
  .ys-equipo-card{
background:#f3f3f3;
border-radius:16px;
overflow:hidden;
}



.ys-equipo-item{
display:flex;
justify-content:space-between;
align-items:center;
padding:26px 30px;
border-bottom:1px solid #e3e3e3;
gap:20px;
}

.ys-equipo-item:hover{
    background:#fff !important;
    }

.ys-equipo-item:last-child{
border-bottom:none;
}

.ys-equipo-info h5{
margin:0 0 6px 0;
font-weight:800;
color:#1e1e1e;
}

.ys-equipo-info p{
margin:0;
color:#4f7c7f; /* verdoso/azulado del ejemplo */
font-size:16px;
}

.ys-equipo-contacto{
text-align:right;
color:#7b7b7b;
font-size:16px;
min-width:220px;
}

.ys-equipo-contacto div{
display:flex;
justify-content:flex-end;
align-items:center;
gap:10px;
margin-bottom:10px;
}

.ys-equipo-contacto div:last-child{
margin-bottom:0;
}

.ys-equipo-contacto i{
color:#8a8a8a;
font-size:18px;
}

/* Responsive */
@media (max-width:768px){
  .ys-equipo-item{
    flex-direction:column;
    align-items:flex-start;
  }
  .ys-equipo-contacto{
    text-align:left;
    min-width:auto;
    width:100%;
  }
  .ys-equipo-contacto div{
    justify-content:flex-start;
  }
}

/* ===========================
   Actividades Responsive Cards & Modal
   Estas reglas se aplican a la sección de actividades para ofrecer un
   formato compacto en móviles y un modal interactivo al hacer clic en
   "Descubre más". Mantienen la estética institucional con colores y
   tipografías existentes.
   =========================== */
/* Estilos para vista móvil de las tarjetas de actividades */
@media (max-width: 768px) {
    /* Oculta descripción, fechas detalladas y material en tarjetas para móviles */
    .actividad-item .card-body > p,
    .actividad-item .card-body .grid-2,
    .actividad-item .card-body .border-top {
        display: none;
    }
    /* Muestra el enlace para abrir el modal */
    .actividad-item .descubre-link {
        display: block !important;
        margin-top: var(--spacing-xs);
    }
    .actividad-item .descubre-link a {
        color: var(--primary);
        font-weight: 500;
        text-decoration: none;
        font-size: 0.9rem;
        display: inline-flex;
        align-items: center;
        gap: 0.2rem;
    }
    .actividad-item .descubre-link a:hover {
        text-decoration: underline;
    }
    /* Texto de fecha que se añade dinámicamente vía JS */
    .actividad-fecha {
        color: var(--dark-gray);
        font-size: 0.85rem;
        margin-top: var(--spacing-xs);
    }
}

/* Estilos del modal de actividades */
.actividad-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1050;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm);
    box-sizing: border-box;
}
.actividad-modal.active {
    display: flex;
}
.actividad-modal-content {
    background: #fff;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    position: relative;
    display: flex;
    flex-direction: column;
}
.actividad-modal-content img {
    width: 100%;
    height: auto;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    object-fit: cover;
}
.modal-close-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--ink);
    cursor: pointer;
    line-height: 1;
}
.actividad-modal-content h4 {
    margin: var(--spacing-sm);
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 600;
}
.actividad-modal-content p {
    margin: 0 var(--spacing-sm) var(--spacing-sm);
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.4;
}
.actividad-modal-content .modal-schedule {
    padding: 0 var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.actividad-modal-content .modal-schedule div {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--dark-gray);
}
.actividad-modal-content .modal-schedule i {
    color: var(--gold);
}
.actividad-modal-content .btn {
    margin: 0 var(--spacing-sm) var(--spacing-sm);
    align-self: flex-start;
}

@media (max-width: 768px) {
    .ys-equipo-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }

    .ys-equipo-contacto {
        justify-content: flex-start;
        gap: var(--spacing-xs);
    }
}

/*SITIOS DE INTERES 06032026*/
/* =======================================================
   SITIOS DE INTERÉS - ESTILOS PROPIOS
   Basado en style.css - SCI FCA UNAM
   ======================================================= */

/* =======================================================
   SECCIÓN PRINCIPAL
   ======================================================= */
.sitios-page {
    padding: var(--spacing-xl) 0;
    background: var(--light-bg);
}

/* =======================================================
   ENCABEZADO DE PÁGINA (solo línea dorada)
   ======================================================= */
.sitios-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.sitios-header .gold-line {
    width: 100px;
    height: 4px;
    background: var(--gold);
    margin: 0 auto;
    border-radius: 2px;
}

/* =======================================================
   CONTENEDOR PRINCIPAL (una sola columna)
   ======================================================= */
.sitios-contenedor {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

/* =======================================================
   SECCIÓN RELACIONADAS CON LA SCI
   ======================================================= */
.sitios-relacionadas {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}


.sitios-relacionadas h2 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--gold);
    display: inline-block;
    font-weight: 700;
}

.sitios-relacionadas-lista {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.sitio-destacado {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--light-bg);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.sitio-destacado:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
    background: white;
}

.sitio-destacado-logo {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--gold);
    background: white;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sitio-destacado-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sitio-destacado-info {
    flex: 1;
}

.sitio-destacado-info h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-xs);
    font-weight: 700;
}

.sitio-destacado-info p {
    color: var(--dark-gray);
    margin-bottom: var(--spacing-xs);
    font-size: 0.95rem;
}

.sitio-destacado-info .sitio-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.sitio-destacado-info .sitio-link:hover {
    gap: 0.75rem;
    color: var(--primary);
}

/* =======================================================
   SECCIÓN OTRAS LIGAS DE INTERÉS
   ======================================================= */
.sitios-otras {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
}

.sitios-otras h2 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--gold);
    display: inline-block;
    font-weight: 700;
}

.sitios-otras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--spacing-md);
}

.sitio-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--spacing-md);
    background: var(--light-bg);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
    height: 100%;
}

.sitio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
    background: white;
}

.sitio-item-logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--gold);
    margin-bottom: var(--spacing-sm);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sitio-item:hover .sitio-item-logo {
    border-color: var(--primary);
}

.sitio-item-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sitio-item-logo .logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    color: white;
}

.fallback-dgeci { background: #1B4079; }
.fallback-fca { background: #4D7C8A; }
.fallback-crai { background: #4D7C8A; }
.fallback-sre { background: #006341; }
.fallback-revista { background: #9d2449; }
.fallback-museos { background: #8E2434; }
.fallback-cultura { background: #D4AF37; color: #000; }
.fallback-bicipuma { background: #2A90E8; }
.fallback-pumabus { background: #7F9C96; }
.fallback-bidi { background: #1B4079; }
.fallback-algomas { background: #8E2434; }
.fallback-coe { background: var(--gold); color: #111; }
.fallback-deportes { background: var(--primary-dark); }

.sitio-item-nombre {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: var(--spacing-xs);
}

/* =======================================================
   RESPONSIVE
   ======================================================= */
@media (max-width: 992px) {
    .sitios-relacionadas h2,
    .sitios-otras h2 {
        font-size: 1.6rem;
    }
    
    .sitio-destacado {
        flex-direction: column;
        text-align: center;
    }
    
    .sitio-destacado-logo {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .sitios-page {
        padding: var(--spacing-lg) 0;
    }
    
    .sitios-relacionadas,
    .sitios-otras {
        padding: var(--spacing-md);
    }
    
    .sitios-otras-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .sitio-item-logo {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 576px) {
    .sitios-otras-grid {
        grid-template-columns: 1fr;
    }
    
    .sitio-item {
        flex-direction: row;
        text-align: left;
        gap: var(--spacing-md);
    }
    
    .sitio-item-logo {
        width: 70px;
        height: 70px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .sitio-item-info {
        flex: 1;
    }
}


/*ASIGNATURAS INGLES 06032026*/

/* Contenedor para un solo profesor (sin líneas) */
.single-value {
    width: 100%;
}

/* Contenedor para múltiples profesores (con líneas entre ellos) */
.multi-value-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.3rem; /* Espacio sutil entre elementos */
}

/* Cada fila de profesor en el contenedor múltiple */
.multi-value-row {
    width: 100%;
    padding: 0.25rem 0; /* Espaciado interno */
    border-bottom: 1px dashed var(--medium-gray, #9CA3AF);
}

/* Quitar la línea del último elemento */
.multi-value-row:last-child {
    border-bottom: none;
}

/* Estilo del texto del profesor */
.multi-value-profesor {
    color: var(--primary, #163A70);
    font-weight: 500;
    display: block; /* Para que ocupe todo el ancho */
}


/* --- Estilos para la columna de HORARIO --- */

/* Contenedor para un solo horario (sin líneas) */
.horario-detalles {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    justify-content: space-between;
}

/* Cada celda interna del horario (Grupo, Días, Hora) */
.horario-detalles span {
    flex: 1;
    padding: 0.2rem 0.3rem;
    background-color: var(--light-gray, #F3F4F6);
    border-radius: var(--radius-sm, 4px);
    font-size: 0.85rem;
    text-align: center;
    white-space: nowrap;
}

/* Contenedor para múltiples horarios (con líneas entre ellos) */
.multi-value-container .multi-value-row {
    /* Reutilizamos la misma clase .multi-value-row */
    border-bottom: 1px dashed var(--medium-gray, #9CA3AF);
}

/* Asegurar que el último horario no tenga línea */
.multi-value-container .multi-value-row:last-child {
    border-bottom: none;
}

/* Hacer que el contenedor de horarios múltiples herede los estilos */
.multi-value-container .multi-value-row .horario-detalles {
    /* Los estilos de .horario-detalles se aplican directamente */
    margin: 0; /* Resetear cualquier margen */
}


/* --- Ajustes Generales de Tabla --- */

/* Asegurar alineación vertical superior en las celdas de profesor y horario */
table td:nth-child(3), /* Columna de profesor(es) */
table td:nth-child(4) { /* Columna de horario */
    vertical-align: top;
}

/* Asegurar que las celdas de la tabla tengan un padding consistente */
table td {
    padding: 1rem 0.8rem;
}

/*MOVILIDAD ENTRANTE 06032026*/

.modalidad-wrap-card {
  background: linear-gradient(180deg, #ffffff 0%, #fcfbf7 100%);
}

.modalidad-main-title {
  color: var(--accent-navy);
  font-weight: 700;
}

.modalidad-main-icon {
  color: var(--gold);
}

.modalidad-intro {
  color: var(--accent-teal);
  max-width: 850px;
}

.modalidad-card {
  position: relative;
  background: #fffdfa;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(27, 64, 121, 0.07);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  height: 100%;
}

.modalidad-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(27, 64, 121, 0.12);
  border-color: rgba(212, 175, 55, 0.42);
}

.modalidad-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--gold), #f2d57a);
}

.modalidad-card-inner {
  padding: 1.5rem 1.4rem 1.4rem 1.4rem;
}

.modalidad-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.12);
  color: var(--accent-navy);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.modalidad-title {
  color: var(--accent-navy);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.modalidad-text {
  color: var(--accent-teal);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.modalidad-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.modalidad-list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.7rem;
  color: var(--accent-teal);
  line-height: 1.6;
}

.modalidad-list li:last-child {
  margin-bottom: 0;
}

.modalidad-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
}

@media (max-width: 767.98px) {
  .modalidad-card-inner {
    padding: 1.2rem;
  }

  .modalidad-title {
    font-size: 1.15rem;
  }

  .modalidad-text,
  .modalidad-list li {
    font-size: 0.95rem;
  }
}

/* ============================================
   ¿QUIÉNES SOMOS? - MISIÓN Y VISIÓN
   ============================================ */
.card.text-center.h-100 {
    height: 100%;
    transition: var(--transition);
    background: #f7f5f0;
    border-radius: 1px;
    border-left: 4px solid rgba(184, 150, 85, .25);
}

.card.text-center.h-100:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card.text-center .card-body {
    padding: 2rem 1.5rem;
}

/* ============================================
   ¿QUIÉNES SOMOS? - TABLA DE EQUIPO
   ============================================ */
.equipo-tabla {
    width: 100%;
    background: var(--paper);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.equipo-fila {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.8rem;
    border-bottom: 1px solid var(--line);
    transition: var(--transition);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.equipo-fila:last-child {
    border-bottom: none;
}

.equipo-fila:hover {
    background-color: rgba(212, 175, 55, 0.04);
}

.equipo-nombre {
    font-weight: 600;
    color: var(--primary);
    font-size: 1rem;
    flex: 2;
    min-width: 200px;
}

.equipo-cargo {
    color: var(--dark-gray);
    font-size: 0.9rem;
    flex: 1;
    min-width: 180px;
    text-align: right;
}

/* Responsive */
@media (max-width: 768px) {
    .equipo-fila {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 1.2rem;
    }
    
    .equipo-nombre {
        width: 100%;
    }
    
    .equipo-cargo {
        text-align: left;
        width: 100%;
        color: var(--gold);
        font-size: 0.85rem;
    }
    
    .card.text-center .card-body {
        padding: 1.5rem 1rem;
    }
}

   /* ============================================
   ESTILOS PARA CONVOCATORIAS - GRID DE 3 COLUMNAS
   ============================================ */

/* TÍTULO DE LA PÁGINA */
.section-title {
    text-align: center;
    position: relative;
    max-width: 1300px;
    width: 100%;
    margin: 5px;
}

.section-title h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: calc(var(--spacing-sm) / 2);
    font-weight: 400;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gold);
    margin: calc(var(--spacing-sm) / 2) auto var(--spacing-sm);
    border-radius: 2px;
}

.section:first-of-type {
    padding-top: 0;
    background: transparent !important;
}

.section {
    background: transparent !important;
}

/* FILTROS */
.convocatorias-filtros {
    background: var(--paper);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.filtros-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.filtros-titulo {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.btn-limpiar {
    background: none;
    border: 1px solid var(--gold);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-limpiar:hover {
    background: var(--gold);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.filtros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--spacing-sm);
    align-items: end;
}

.conv-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.conv-filter-group label {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.conv-filter-group select {
    padding: 0.4rem 1.5rem 0.4rem 0.6rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background-color: white;
    font-size: 0.8rem;
    color: var(--ink);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23163A70' stroke-width='2' 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: right 0.5rem center;
    background-size: 0.9rem;
    width: 100%;
}

.conv-filter-group select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* GRID DE TARJETAS - 3 COLUMNAS */
.convocatorias-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

/* TARJETA */
.convocatoria-card {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--line);
    overflow: hidden;
    height: 420px;
    width: 100%;
    position: relative;
}

.convocatoria-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}

.convocatoria-card.vencida {
    opacity: 0.7;
}

.convocatoria-card.vencida .convocatoria-btn {
    background-color: var(--medium-gray);
    pointer-events: none;
    cursor: not-allowed;
}

.convocatoria-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

.convocatoria-imagen {
    height: 120px;
    width: 100%;
    background-size: cover !important;
    background-position: center !important;
    background-color: var(--primary-light);
}

.convocatoria-imagen-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.convocatoria-contenido {
    padding: 10px 12px 8px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.convocatoria-titulo {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 4px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}

.convocatoria-detalles-grid {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 6px;
}

.detalle-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.8rem;
    line-height: 1.3;
}

.detalle-label {
    color: var(--medium-gray);
    font-weight: 400;
}

.detalle-valor {
    font-weight: 600;
    color: var(--primary);
    text-align: right;
    font-size: 0.8rem;
}

.perfiles-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-end;
    max-width: 70%;
}

.perfil-tag {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid rgba(212, 175, 55, 0.3);
    white-space: nowrap;
}

.convocatoria-fechas {
    margin: 4px 0 2px 0;
    padding: 4px 0;
    border-top: 1px dashed var(--line);
    border-bottom: 1px dashed var(--line);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fecha-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.8rem;
    line-height: 1.3;
}

.fecha-label {
    color: var(--medium-gray);
    font-weight: 400;
}

.fecha-valor {
    font-weight: 600;
    color: var(--gold-dark);
    font-size: 0.8rem;
}

.fecha-valor.vencida {
    color: var(--error, #EF4444);
}

.convocatoria-footer {
    margin-top: 6px;
    text-align: center;
}

.convocatoria-btn {
    display: inline-block;
    padding: 0.35rem 0.6rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    width: 100%;
    letter-spacing: 0.2px;
}

.convocatoria-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.convocatoria-btn.disabled {
    background-color: var(--medium-gray);
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}

/* PAGINACIÓN */
.paginacion {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
}

.paginacion-btn {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 0 0.5rem;
}

.paginacion-btn:hover {
    background: var(--gold);
    color: white;
    border-color: var(--gold);
    transform: translateY(-2px);
}

.paginacion-btn.activo {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.paginacion-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.no-resultados {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacing-lg);
    color: var(--medium-gray);
    font-size: 0.9rem;
    background: var(--paper);
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
}

.resultados-count {
    text-align: right;
    color: var(--dark-gray);
    font-size: 0.8rem;
    margin-bottom: var(--spacing-xs);
}

.resultados-count span {
    font-weight: 700;
    color: var(--primary);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .convocatorias-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .convocatoria-card {
        height: 440px;
    }
}

@media (max-width: 768px) {
    .section-title h2 {
        font-size: 1.5rem;
    }
    .filtros-grid {
        grid-template-columns: 1fr;
    }
    .convocatorias-grid {
        grid-template-columns: 1fr;
    }
    .convocatoria-card {
        height: auto;
        min-height: 400px;
    }
    .resultados-count {
        text-align: center;
    }
    .filtros-header {
        flex-direction: column;
        gap: var(--spacing-xs);
        align-items: flex-start;
    }
    .perfiles-container {
        justify-content: flex-start;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .section-title h2 {
        font-size: 1.3rem;
    }
    .convocatoria-card {
        min-height: 380px;
    }
}

/* ============================================
   CORRECCIÓN PARA MENÚ HAMBURGUESA EN MÓVILES
   ============================================ */

/* Estilos SOLO para móviles (pantallas menores a lg) */
@media (max-width: 991.98px) {
    .boton-hamburguesa-movil {
        position: relative !important;
        top: 0 !important;
        transform: none !important;
        margin: 0 !important;
        padding: 0.25rem 0.5rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: auto !important;
        min-height: 40px !important;
        /* Alineación vertical con los logos */
        align-self: center !important;
    }
    
    .boton-hamburguesa-movil .navbar-toggler-icon {
        display: block !important;
    }
}

/* Estilos para escritorio (pantallas lg y mayores) */
@media (min-width: 992px) {
    .boton-hamburguesa-movil {
        /* Resetear cualquier estilo que pueda afectar en escritorio */
        position: static !important;
        top: auto !important;
        transform: none !important;
        margin: 0 !important;
        padding: 0.25rem 0.75rem !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: auto !important;
        min-height: auto !important;
        align-self: auto !important;
    }
}
/* ============================================
   FIX BOTÓN HAMBURGUESA - MISMO RENGLÓN QUE LOGOS
   ============================================ */
@media (max-width: 991.98px) {
    #navbarMain {
        position: relative;
    }
    #navbarMain .container-fluid {
        flex-wrap: nowrap !important;
        position: relative;
        padding-right: 60px !important;
    }
    #navbarMain .navbar-toggler {
        position: absolute !important;
        right: 12px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin: 0 !important;
    }
    /* Al abrir el menú, cae hacia abajo sin mover el botón */
    #navbarMain #menuPrincipal {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: #fff !important;
        z-index: 9998 !important;
        padding: 0 1rem 1rem 1rem !important;
    }
}

/* ===== Espaciador del navbar fijo ===== */
.navbar-spacer {
    height: 110px;            /* Escritorio: tu valor actual, intacto */
}

@media (max-width: 991.98px) {
    .navbar-spacer {
        height: 0px;         /* Móvil: ajusta este número */
    }
}





.navbar-toggler {
    border-color: #061d3d;
}

.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='%23061d3d' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}



#letra-osc{
    color: #000;
}


.txt{
    color: #061d3d;
    cursor: pointer;
    text-align: right;
}


.tabla-contactos thead th{
    background-color: #293582 !important;
    color: #fff;
    border-color: #293582;
    border-radius: 0 !important;
    font-weight: 400;
}

.tabla-contactos{
    border-radius: 0 !important;
}

.tabla-contactos th,
.tabla-contactos td{
    vertical-align: middle;
}


/*somos*/

#img-cuadrada {
    display: none;
}

/* En móviles, más espacio */
@media (max-width: 768px) {
    body > div:first-of-type {
        height: 0px !important;
    }

    #img-rectangular{
        display: none;
    }

    #img-cuadrada {
    display: block;
}

}


/*Noticias*/
:root {
    --primary:    #163A70;
    --gold:       #D4AF37;
    --light-gray: #F3F4F6;
    --radius-lg:  12px;
    --shadow-sm:  0 1px 3px rgba(22, 58, 112, 0.08);
    --shadow-md:  0 4px 12px rgba(22, 58, 112, 0.12);
}

/* ── Header de sección ───────────────────────────────── */
.section-divider-line {
    width: 28px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    flex-shrink: 0;
}

.section-label {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.12em;
    color: var(--primary);
}

/* ── Pills de categoría ──────────────────────────────── */
.noticia-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.noticia-pill {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: 4px;
}

.noticia-pill-podcast  { background: #C0985A; color: #fff; }
.noticia-pill-noticia  { background: #C0985A; color: #fff; }

.noticia-meta-date {
    font-size: 0.7rem;
    color: #6b7280;
}

/* ── Tarjeta destacada ───────────────────────────────── */
.noticia-featured-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.noticia-featured {
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(22, 58, 112, 0.1);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.noticia-featured:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.noticia-featured-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--light-gray);
}

.noticia-featured-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.noticia-featured:hover .noticia-featured-thumb img {
    transform: scale(1.04);
}

.noticia-featured-body {
    padding: 1.1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    border-top: 3px solid var(--gold);
}

.noticia-featured-title {
    font-size: 1rem;
    font-weight: 400;
    color: var(--primary);
    margin: 0;
    line-height: 1.4;
}

.noticia-featured-excerpt {
    font-size: 0.8rem;
    color: #fff;
    line-height: 1.6;
    margin: 0;
    flex: 1;
    text-align: justify
}

.noticia-read-more {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

/* ── Lista de noticias ───────────────────────────────── */
.noticia-list {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(22, 58, 112, 0.1);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.noticia-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(22, 58, 112, 0.08);
    text-decoration: none;
    transition: background 0.15s ease;
    flex: 1;
    background: #293582;
    margin-top: 2px;
    margin-bottom: 2px;
    color: #fff;
}

.noticia-item:last-child { border-bottom: none; }

.noticia-item:hover { 
    background: #f7f9fc;
    color: #000;
 }

.noticia-item:hover .noticia-item-title {
    color: #000;
}

.noticia-item:hover .noticia-featured-excerpt {
    color: #000;
}  



/* ── Íconos: base compartida ─────────────────────────── */
.noticia-item-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
}

/* Formato 1: cuadrado con fondo sólido y esquinas redondeadas */
.icon-fmt-square {
    border-radius: 10px;
    background: #e8f0fd;
    color: #163A70;
}

/* Formato 2: círculo con borde */
.icon-fmt-circle {
    border-radius: 50%;
    background: transparent;
    border: 2px solid #163A70;
    color: #163A70;
}

/* Formato 3: rombo / diamante rotado */
.icon-fmt-diamond {
    border-radius: 8px;
    background: #163A70;
    color: #ffffff;
    transform: rotate(45deg);
}

.icon-fmt-diamond i {
    transform: rotate(-45deg);
    display: block;
}

/* ── Cuerpo del ítem ─────────────────────────────────── */
.noticia-item-body {
    flex: 1;
    min-width: 0;
}

.noticia-item-title {
    font-size: 1rem;
    font-weight: 400;
    color: #fff;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.noticia-item-arrow {
    font-size: 0.75rem;
    color: #9ca3af;
    flex-shrink: 0;
}

.noticia-item:hover .noticia-item-arrow { color: var(--primary); }


/*alianzas*/

/* ============================================
   VARIABLES Y ESTILOS BASE
   ============================================ */
   :root {
    --alianza-primary: #163A70;
    --alianza-gold: #D4AF37;
    --alianza-gold-dark: #b1952a;
    --alianza-bg: #ffffff;
    --alianza-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --alianza-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --alianza-radius: 16px;
    --alianza-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  /* ============================================
     GRID DE TARJETAS
     ============================================ */
  .alianzas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
  }
  
  .alianza-card {
    background: var(--alianza-bg);
    transition: transform var(--alianza-transition), box-shadow var(--alianza-transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
  }
  
  .alianza-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--alianza-shadow-hover);
  }
  
  .alianza-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
    background: #f7f5f0;
  }
  
  /* ========== HEADER ========== */
  .alianza-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  
  .alianza-top-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex: 1;
    min-width: 0;
  }
  
  .alianza-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 12px;
    padding: 8px;
    background: #f8f9fa;
    flex-shrink: 0;
    transition: transform var(--alianza-transition);
  }
  
  .alianza-card:hover .alianza-logo {
    transform: scale(1.05);
  }
  
  .alianza-titlewrap {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
  }
  
  .alianza-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #061d3d;
    margin: 0;
    line-height: 1.2;
  }
  
  .alianza-rule {
    width: 48px;
    height: 3px;
    background: var(--alianza-gold);
    border-radius: 2px;
    transition: width var(--alianza-transition);
  }
  
  .alianza-card:hover .alianza-rule {
    width: 64px;
  }
  
  /* Botón Sitio */
  .btn-sitio {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.2rem;
    background: var(--alianza-primary);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--alianza-transition);
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .btn-sitio:hover {
    background: var(--alianza-gold);
    color: #1a1a1a;
    transform: translateY(-1px);
  }
  
  /* ========== BODY ========== */
  .alianza-body {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  
  .alianza-excerpt {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #061d3d;
    margin: 0 0 0.8rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  /* Botón Ver más */
  .alianza-more {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #fff;
    border: 2px solid var(--alianza-primary);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--alianza-primary);
    cursor: pointer;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    transition: all var(--alianza-transition);
    margin-bottom: 0.5rem;
    align-self: flex-start;
  }
  
  .alianza-more:hover {
    background: var(--alianza-primary);
    color: #ffffff;
  }
  
  /* ========== FOOTER ========== */
  .alianza-foot {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 1rem;
    margin-top: auto;
  }
  
  .alianza-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
  }
  
  .alianza-social-group {
    display: flex;
    gap: 6px;
    align-items: center;
  }
  
  .alianza-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2a90e8;
    color: #fff;
    text-decoration: none;
    transition: all 0.25s ease;
  }
  
  .alianza-social-link:hover {
    background: var(--alianza-primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 58, 112, 0.25);
  }
  
  .alianza-social-link svg {
    width: 14px;
    height: 14px;
  }
  
  .alianza-link-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--alianza-primary);
    text-decoration: none;
    padding: 0.35rem 0.8rem;
    border-radius: 6px;
    background: rgba(22, 58, 112, 0.05);
    transition: all var(--alianza-transition);
    white-space: nowrap;
  }
  
  .alianza-link-text:hover {
    background: var(--alianza-gold);
    color: #1a1a1a;
  }
  
  /* ============================================
     MODALES
     ============================================ */
  .alianza-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1.5rem;
  }
  
  .alianza-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }
  
  .alianza-modal {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .alianza-modal-overlay.is-open .alianza-modal {
    transform: translateY(0) scale(1);
  }
  
  /* Header del modal */
  .alianza-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 0 1.5rem;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 2;
    border-radius: 20px 20px 0 0;
  }
  
  .alianza-modal-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .alianza-modal-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 12px;
    padding: 8px;
    background: #f8f9fa;
  }
  
  .alianza-modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--alianza-primary);
    margin: 0;
  }
  
  /* Botón cerrar */
  .alianza-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
  }
  
  .alianza-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
  }
  
  /* Body del modal */
  .alianza-modal-body {
    padding: 1.2rem 1.5rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #4a5568;
  }
  
  .alianza-modal-body p {
    margin: 0 0 1rem 0;
  }
  
  .alianza-modal-body p:last-child {
    margin-bottom: 0;
  }
  
  .alianza-modal-body a {
    color: var(--alianza-primary);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--alianza-gold);
    text-underline-offset: 3px;
  }
  
  .alianza-modal-body a:hover {
    color: var(--alianza-gold-dark);
  }
  
  /* Footer del modal */
  .alianza-modal-footer {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    position: sticky;
    bottom: 0;
    background: #ffffff;
    border-radius: 0 0 20px 20px;
  }
  
  .alianza-modal-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .alianza-modal-social {
    display: flex;
    gap: 8px;
  }
  
  .alianza-modal-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
  }
  
  /* ============================================
     RESPONSIVE DESIGN
     ============================================ */
  
  /* Tablet: 2 columnas */
  @media (max-width: 992px) {
    .alianzas-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 1.2rem;
    }
    
    .alianza-card-inner {
      padding: 1.3rem;
    }
    
    .alianza-logo {
      width: 50px;
      height: 50px;
    }
    
    .alianza-modal {
      max-width: 550px;
    }
  }
  
  /* Móvil: 1 columna */
  @media (max-width: 768px) {
    .alianzas-grid {
      grid-template-columns: minmax(300px, 500px);
      justify-content: center;
      gap: 1.2rem;
    }
    
    .alianza-card {
      max-width: 100%;
    }
    
    .alianza-card-inner {
      padding: 1.2rem;
    }
    
    .alianza-top {
      flex-wrap: wrap;
      gap: 0.8rem;
    }
    
    .alianza-top-action {
      width: 100%;
    }
    
    .btn-sitio {
      width: 100%;
      justify-content: center;
      text-align: center;
    }
    
    .alianza-logo {
      width: 48px;
      height: 48px;
    }
    
    .alianza-name {
      font-size: 1rem;
    }
    
    .alianza-excerpt {
      font-size: 0.85rem;
      -webkit-line-clamp: 2;
    }
    
    .alianza-more {
      width: 100%;
      justify-content: center;
    }
    
    .alianza-links {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.8rem;
    }
    
    .alianza-link-text {
      width: 100%;
      text-align: center;
    }
    
    /* Modal en móvil */
    .alianza-modal-overlay {
      padding: 0.8rem;
      align-items: flex-end;
    }
    
    .alianza-modal {
      max-width: 100%;
      max-height: 90vh;
      border-radius: 20px 20px 0 0;
    }
    
    .alianza-modal-header {
      padding: 1.2rem 1.2rem 0 1.2rem;
    }
    
    .alianza-modal-body {
      padding: 1rem 1.2rem;
      font-size: 0.9rem;
    }
    
    .alianza-modal-footer {
      padding: 0.8rem 1.2rem 1.2rem 1.2rem;
    }
    
    .alianza-modal-links {
      flex-direction: column;
      gap: 0.8rem;
    }
    
    .alianza-modal-actions {
      width: 100%;
      flex-direction: column;
    }
    
    .alianza-modal-actions .btn-sitio,
    .alianza-modal-actions .alianza-link-text {
      width: 100%;
      text-align: center;
      justify-content: center;
    }
  }
  
  /* Móvil pequeño */
  @media (max-width: 480px) {
    .alianzas-grid {
      grid-template-columns: 1fr;
      gap: 1rem;
      padding: 0 0.3rem;
    }
    
    .alianza-card-inner {
      padding: 1rem;
    }
    
    .alianza-logo {
      width: 42px;
      height: 42px;
      padding: 6px;
    }
    
    .alianza-name {
      font-size: 0.95rem;
    }
    
    .alianza-excerpt {
      font-size: 0.82rem;
      -webkit-line-clamp: 2;
    }
    
    .alianza-modal-header {
      padding: 1rem 1rem 0 1rem;
    }
    
    .alianza-modal-body {
      padding: 0.8rem 1rem;
    }
    
    .alianza-modal-footer {
      padding: 0.8rem 1rem 1rem 1rem;
    }
    
    .alianza-modal-logo {
      width: 42px;
      height: 42px;
    }
    
    .alianza-modal-title {
      font-size: 1.15rem;
    }
  }
  
  /* ============================================
     ACCESIBILIDAD Y TOUCH
     ============================================ */
  @media (hover: none) and (pointer: coarse) {
    .alianza-card:hover {
      transform: none;
      box-shadow: var(--alianza-shadow);
    }
    
    .alianza-more,
    .btn-sitio,
    .alianza-link-text,
    .alianza-social-link,
    .alianza-modal-close {
      min-height: 44px;
      -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2);
    }
  }
  
  .alianza-more:focus-visible,
  .btn-sitio:focus-visible,
  .alianza-link-text:focus-visible,
  .alianza-social-link:focus-visible,
  .alianza-modal-close:focus-visible {
    outline: 2px solid var(--alianza-primary);
    outline-offset: 2px;
  }
  
  /* Prevenir scroll del body cuando modal está abierto */
  body.modal-open {
    overflow: hidden;
  }
  
  /* Animación de entrada de tarjetas */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .alianza-card {
    animation: fadeInUp 0.5s ease forwards;
  }
  
  .alianza-card:nth-child(1) { animation-delay: 0.1s; }
  .alianza-card:nth-child(2) { animation-delay: 0.2s; }
  .alianza-card:nth-child(3) { animation-delay: 0.3s; }


  a.nav-link.dropdown-toggle.show {
    color: #061d3d !important;
    background-color: transparent !important;  }


    .section-title-custom{
        position: relative;
        overflow: hidden;
        padding: 50px 20px;
        text-align: center;
        background: linear-gradient(135deg, #1f2b68 0%, #293582 45%, #3d4ea3 100%);
        border-bottom: 2px solid #c0985a;
    }
    
    /* Patrón de rayas */
    .section-title-custom::before{
        content: "";
        position: absolute;
        inset: 0;
        background:
            repeating-linear-gradient(
                -45deg,
                rgba(255,255,255,.04) 0px,
                rgba(255,255,255,.04) 8px,
                transparent 8px,
                transparent 28px
            );
        opacity: .6;
    }
    
    /* Destello de luz */
    .section-title-custom::after{
        content: "";
        position: absolute;
        top: -60%;
        right: -15%;
        width: 45%;
        height: 220%;
        background: radial-gradient(circle,
                    rgba(255,255,255,.08) 0%,
                    rgba(255,255,255,0) 70%);
        transform: rotate(-20deg);
    }
    
    .section-title-custom .container{
        position: relative;
        z-index: 2;
    }
    
    .section-title-custom h4{
        color: #d8b15c;
        font-size: 40px;
        font-weight: 300;
        margin-bottom: .5rem;
        letter-spacing: 1px;
    }
    
    .section-title-custom p{
        color: rgba(255,255,255,.85);
        font-size: 1.3rem;
        margin: 0;
        font-weight: 300;
    }


    /*Actividades*/
    /* ============================================
   TÍTULO DE LA PÁGINA - EXACTAMENTE IGUAL A CONVOCATORIAS
   ============================================ */
.section-title {
    text-align: center;
    margin: var(--spacing-xl) auto var(--spacing-xl);
    position: relative;
    padding: 0 var(--spacing-sm);
    max-width: 1300px;
    width: 100%;
}

.section-title h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: calc(var(--spacing-sm) / 2);
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gold);
    margin: calc(var(--spacing-sm) / 2) auto var(--spacing-sm);
    border-radius: 2px;
}

/* Espaciado superior para compensar el header fijo */
.section:first-of-type {
    padding-top: 0;
    background: transparent !important;
}

.section {
    background: transparent !important;
}

/* ============================================
   FILTROS
   ============================================ */
.actividades-filtros {
    background: var(--paper);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);  
    margin-bottom: var(--spacing-md);  
    margin-top: var(--spacing-md);  
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.filtros-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.filtros-titulo {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.btn-limpiar {
    background: none;
    border: 1px solid var(--gold);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-limpiar:hover {
    background: var(--gold);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.filtros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-sm);
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.filter-group label {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.filter-group select {
    padding: 0.4rem 1.5rem 0.4rem 0.6rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background-color: white;
    font-size: 0.8rem;
    color: var(--ink);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23163A70' stroke-width='2' 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: right 0.5rem center;
    background-size: 0.9rem;
    width: 100%;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.resultados-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    text-align: center;
    color: var(--dark-gray);
    font-size: 0.85rem;
    width: 100%;
}

.resultados-info span {
    font-weight: 700;
    color: var(--primary);
}

/* ============================================
   GRID PRINCIPAL (DESKTOP: 1/3 - 2/3)
   ============================================ */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-xl);
    align-items: start;
    width: 100%;
}

/* ============================================
   CALENDARIO
   ============================================ */
.calendar-wrapper {
    width: 100%;
}

.mes-indicador {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(212, 175, 55, 0.05) 100%);
    border-left: 4px solid var(--gold);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
    color: var(--primary);
    border-right: 1px solid var(--line);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.mes-indicador i {
    color: var(--gold);
    margin-right: 0.5rem;
    font-size: 1rem;
}

.mes-indicador strong {
    font-weight: 700;
    color: var(--primary-dark);
}

.mes-indicador span {
    font-weight: 600;
    color: var(--gold-dark);
    background: rgba(255, 255, 255, 0.5);
    padding: 0.15rem 0.6rem;
    border-radius: var(--radius-full);
    margin-left: 0.5rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    font-size: 0.75rem;
}

#calendar {
    background: var(--paper);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    border: 1px solid var(--line);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    padding: 0 var(--spacing-xs);
}

.calendar-nav {
    padding: 0.2rem 0.8rem !important;
    font-size: 0.8rem !important;
}

#calendar-month {
    font-size: 0.9rem;
    margin: 0;
    color: var(--primary);
    font-weight: 600;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
    padding: 0.25rem 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    color: var(--ink);
    background: transparent;
}

.calendar-day:hover {
    background: rgba(212, 175, 55, 0.15);
}

.calendar-day.event {
    background: var(--gold);
    color: white;
    font-weight: 600;
}

.calendar-day.today {
    border: 2px solid var(--gold);
    font-weight: 700;
    background: transparent;
    color: var(--primary);
}

.calendar-day.today:hover {
    background: rgba(212, 175, 55, 0.15);
    color: var(--primary);
}

.calendar-day.empty {
    cursor: default;
    opacity: 0;
}

/* Modal de eventos */
.event-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.event-modal-content {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    max-width: 400px;
    width: 90%;
    box-shadow: var(--shadow-lg);
}

.event-modal-content h3 {
    margin-bottom: var(--spacing-md);
    color: var(--primary);
}

.event-modal-content ul {
    list-style: none;
    padding: 0;
}

.event-modal-content li {
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid var(--line);
}

.event-modal-content button {
    margin-top: var(--spacing-md);
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

/* ============================================
   BADGES
   ============================================ */
.badge-conferencia {
    background: var(--secondary);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-block;
}

.badge-taller {
    background: var(--accent-teal);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-block;
}

.badge-charla {
    background: #6f42c1;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-block;
}

/* ============================================
   TARJETAS DE ACTIVIDADES - DISEÑO RESPONSIVO
   ============================================ */
.actividad-item {
    margin-bottom: var(--spacing-md);
}

.actividad-item .card-body {
    padding: var(--spacing-md);
}

.actividad-item .card-title {
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
    line-height: 1.3;
}

.actividad-item p {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: var(--spacing-sm);
}

/* Grid interno de la tarjeta - en desktop es 2 columnas */
.actividad-inner-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

/* Columna de información */
.actividad-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    flex-wrap: wrap;
}

.info-row i {
    color: var(--gold);
    width: 1.2rem;
    font-size: 0.9rem;
}

.info-row strong {
    font-weight: 600;
}

.info-row span {
    color: var(--ink);
}

/* Columna de botones */
.actividad-botones {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
    min-width: 140px;
}

.btn-medium {
    padding: 0.4rem 1rem !important;
    font-size: 0.8rem !important;
    white-space: nowrap;
}

.btn-group-actions {
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
}

.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================
   PAGINACIÓN
   ============================================ */
.paginacion {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
}

.paginacion-btn {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 0 0.5rem;
}

.paginacion-btn:hover {
    background: var(--gold);
    color: white;
    border-color: var(--gold);
    transform: translateY(-2px);
}

.paginacion-btn.activo {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.paginacion-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================
   MENSAJE SIN RESULTADOS
   ============================================ */
.sin-resultados {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--medium-gray);
    font-size: 1rem;
    background: var(--paper);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--gold);
    width: 100%;
    box-sizing: border-box;
}

.sin-resultados i {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: var(--spacing-sm);
    opacity: 0.5;
}

.sin-resultados p {
    margin-bottom: var(--spacing-xs);
}

.sin-resultados a {
    color: var(--gold);
    text-decoration: none;
}

.sin-resultados a:hover {
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE: TABLET (max-width: 992px)
   ============================================ */
@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .calendar-wrapper {
        max-width: 400px;
        margin: 0 auto var(--spacing-lg);
    }
}

/* ============================================
   RESPONSIVE: MÓVIL (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    /* Título */
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .section-title::after {
        width: 60px;
        height: 3px;
    }
    
    /* Filtros */
    .filtros-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filtros-grid {
        grid-template-columns: 1fr;
    }
    
    /* Calendario */
    .calendar-wrapper {
        max-width: 100%;
    }
    
    .mes-indicador {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
        text-align: center;
    }
    
    .mes-indicador i {
        font-size: 0.9rem;
        margin-right: 0.4rem;
    }
    
    .mes-indicador span {
        display: inline-block;
        margin-left: 0.3rem;
        margin-top: 0;
        font-size: 0.7rem;
    }
    
    /* Tarjetas - en móvil los botones abajo */
    .actividad-inner-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .actividad-botones {
        flex-direction: row;
        justify-content: stretch;
        margin-top: var(--spacing-xs);
    }
    
    .btn-group-actions {
        flex-direction: row;
        width: 100%;
        gap: 0.5rem;
    }
    
    .btn-group-actions .btn {
        flex: 1;
        text-align: center;
        white-space: normal;
        word-break: keep-all;
    }
    
    .info-row {
        font-size: 0.75rem;
    }
    
    .info-row i {
        width: 1rem;
        font-size: 0.8rem;
    }
    
    .actividad-item .card-title {
        font-size: 0.95rem;
    }
    
    .actividad-item p {
        font-size: 0.75rem;
    }
    
    /* Paginación */
    .paginacion-btn {
        min-width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
}

/* ============================================
   RESPONSIVE: MÓVIL PEQUEÑO (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    .section-title h2 {
        font-size: 1.3rem;
    }
    
    .actividad-item .card-body {
        padding: var(--spacing-sm);
    }
    
    .actividad-item .card-title {
        font-size: 0.9rem;
    }
    
    .actividad-item p {
        font-size: 0.7rem;
    }
    
    .info-row {
        font-size: 0.7rem;
    }
    
    .btn-medium {
        padding: 0.35rem 0.5rem !important;
        font-size: 0.7rem !important;
    }
    
    .badge-conferencia, .badge-taller, .badge-charla {
        font-size: 0.6rem;
        padding: 0.15rem 0.5rem;
    }
    
    .mes-indicador {
        font-size: 0.7rem;
        padding: 0.5rem 0.6rem;
    }
    
    .mes-indicador strong {
        display: block;
        margin-bottom: 0.25rem;
    }
    
    .mes-indicador span {
        display: inline-block;
        margin-top: 0;
    }
}


/*footer*/

  /* BOTÓN FAQ FLOTANTE - TAL CUAL ESTABA ORIGINALMENTE */
  .faq-floating {
    position: fixed;
    bottom: 18px;
    right: 18px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--secondary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 9999;
    transition: all 0.25s ease;
    text-decoration: none;
    cursor: pointer;
  }
  
  .faq-floating:hover {
    background: var(--gold);
    color: white;
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 10px 25px rgba(22, 58, 112, 0.3);
  }
  
  .faq-floating i {
    line-height: 1;
  }
  
  @media (max-width: 768px) {
    .faq-floating {
      width: 50px;
      height: 50px;
      font-size: 24px;
      bottom: 15px;
      right: 15px;
    }
  }



  /*asignaturas ingles*/
  
/* ============================================
   MEJORAS DE RESPONSIVIDAD PARA TABLAS DE ASIGNATURAS
   ============================================ */
/* Estas reglas SOLO afectan a las páginas de asignaturas en inglés */

/* Tablets landscape */
@media (max-width: 1200px) {
    /* Selectores específicos de las tablas de asignaturas */
    .tab-content.active .horario-detalles {
        gap: 0.3rem;
    }
    .tab-content.active .horario-detalles span {
        font-size: 0.75rem;
        padding: 0.15rem 0.2rem;
        white-space: normal;
        word-break: break-word;
    }
    .tab-content.active .multi-value-profesor {
        font-size: 0.85rem;
        white-space: normal;
        word-break: break-word;
    }
    .tab-content.active td {
        padding: 0.8rem 0.5rem;
    }
}

/* Tablets portrait */
@media (max-width: 992px) {
    .tab-content.active .horario-detalles {
        flex-direction: column;
        gap: 0.2rem;
    }
    .tab-content.active .horario-detalles span {
        width: 100%;
        font-size: 0.8rem;
        white-space: normal;
        word-break: break-word;
        text-align: left;
        padding: 0.2rem 0.4rem;
    }
    .tab-content.active .multi-value-container .multi-value-row .horario-detalles {
        flex-direction: column;
    }
    .tab-content.active td {
        padding: 0.8rem 0.4rem;
    }
    .tab-content.active th {
        font-size: 0.85rem;
        padding: 0.8rem 0.4rem;
    }
    .tab-content.active .multi-value-profesor {
        font-size: 0.85rem;
    }
}

/* Móviles */
@media (max-width: 768px) {
    .tab-content.active table {
        min-width: 700px;
    }
    .tab-content.active td,
    .tab-content.active th {
        padding: 0.6rem 0.3rem;
    }
    .tab-content.active .multi-value-profesor {
        font-size: 0.8rem;
    }
    .tab-content.active .horario-subheader span {
        font-size: 0.65rem;
    }
}

/* Móviles pequeños */
@media (max-width: 576px) {
    .tab-content.active table {
        min-width: 600px;
    }
    .tab-content.active td,
    .tab-content.active th {
        padding: 0.5rem 0.2rem;
        font-size: 0.7rem;
    }
    .tab-content.active .horario-detalles span {
        font-size: 0.7rem;
        padding: 0.1rem 0.2rem;
    }
    .tab-content.active .multi-value-profesor {
        font-size: 0.7rem;
    }
}
