/* =========================================================
   1. RESET Y CONFIGURACIÓN BASE
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    background: var(--light);
    color: var(--dark);
}

/* =========================================================
   2. SISTEMA DE DISEÑO (VARIABLES)
========================================================= */
:root {
    /* Colores Base */
    --primary: #e30613;
    --primary-dark: #b9000b;
    --primary-light: rgba(227, 6, 19, 0.1);
    --secondary: #0f4c81;
    
    /* Superficies y Textos */
    --dark: #101828;
    --dark-2: #172033;
    --light: #f5f7fa;
    --surface: #ffffff;
    
    /* Bordes */
    --border-light: rgba(255, 255, 255, 0.15);
    --border-dark: rgba(0, 0, 0, 0.08);
    
    /* Radios */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    /* Sombras */
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 25px 60px rgba(0, 0, 0, 0.15);
    --shadow-primary: 0 8px 25px rgba(227, 6, 19, 0.25);
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-slow: 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* =========================================================
   3. HEADER Y NAVEGACIÓN
========================================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 82px;
    z-index: 1000;
    /* Glassmorphism corregido: requiere transparencia en el fondo */
    background: rgba(255, 255, 255, 0.637);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-dark);
    transition: height var(--transition-base), background var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled {
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.header-container {
    width: min(1600px, 92%);
    height: 100%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --- Logo --- */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--surface);
}
.logo-mark {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--surface);
    font-size: 21px;
    transition: transform var(--transition-fast);
}
.logo:hover .logo-mark {
    transform: scale(1.05) rotate(-5deg);
}
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.logo-text strong {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--primary);
}
.logo-text span {
    margin-top: 5px;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--dark);
    font-weight: 600;
}

/* --- Navegación Principal --- */
.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}
.main-nav > a, .nav-dropdown > a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    color: rgba(0, 0, 0, 0.75);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition-base);
}
.main-nav > a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 10px;
    transform: translateX(-50%);
    transition: width var(--transition-base);
}
.main-nav > a:hover, .nav-dropdown > a:hover {
    color: var(--primary);
    background: var(--primary-light);
}
.main-nav > a:hover::after {
    width: 60%;
}
.main-nav > a.active {
    color: var(--dark);
}
.main-nav > a.active::after {
    width: 20px;
    background: var(--primary);
}

/* --- Menú Desplegable (Dropdown) --- */
.nav-dropdown {
    position: relative;
}
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    width: 340px;
    padding: 10px;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid var(--border-dark);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.98);
    transform-origin: top left;
    transition: var(--transition-base);
}
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.nav-dropdown-menu a {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    color: var(--dark);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
}
.nav-dropdown-menu a:hover {
    background: var(--light);
    color: var(--primary);
    padding-left: 18px; /* Pequeño desplazamiento elegante */
}

/* --- Botones del Header y Móvil --- */
.header-action {
    display: flex;
    align-items: center;
    gap: 10px;
}
.btn-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: var(--surface);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition-base);
}
.btn-header:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(227, 6, 19, 0.35);
}
.mobile-menu {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition-fast);
}
.mobile-menu:hover {
    background: var(--primary);
    color: var(--surface);
}

/* =========================================================
   4. HERO SLIDER (Carrusel Dinámico)
========================================================= */
.hero-slider {
    position: relative;
    width: 100%;
    height: 900px;
    min-height: 600px;
    overflow: hidden;
    background: #111;
}
.hero-slider .slide {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Lógica de Tarjetas del Carrusel */
.hero-slider .slide .item {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 230px;
    height: 340px;
    border-radius: var(--radius-lg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: var(--transition-slow);
}

/* Elementos activos (Fondo y principal) */
.slide .item:nth-child(1),
.slide .item:nth-child(2) {
    top: 0;
    left: 0;
    transform: translate(0, 0);
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
}
/* Siguientes elementos en la fila */
.slide .item:nth-child(3) { left: calc(50% + 80px); }
.slide .item:nth-child(4) { left: calc(50% + 330px); }
.slide .item:nth-child(5) { left: calc(50% + 580px); }
.slide .item:nth-child(n+6) {
    left: calc(50% + 830px);
    opacity: 0;
}

/* Superposiciones Oscuras (Overlays) */
.item::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}
.slide .item:nth-child(n+3)::before {
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.8) 100%);
}

/* Contenido del Slide Activo */
.item .content {
    position: absolute;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 70%, transparent 100%);
    border-radius: var(--radius-lg);
    padding: 35px;
    width: 500px;
    top: 50%;
    left: 8%;
    width: min(560px, 90%);
    transform: translateY(-50%);
    z-index: 3;
    display: none;
}
.slide .item:nth-child(2) .content {
    display: block;
    animation: fadeIn 0.8s ease-in-out forwards;
}

/* Detalles del Contenido */
.content .tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
    border-radius: 50px;
    background: rgba(255, 242, 0, 0.627);
    backdrop-filter: blur(10px);
    color: var(--surface);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.content .tag i { color: var(--surface); }
.content .name {
    font-size: clamp(36px, 5vw, 72px);
    line-height: 1.05;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: -2px;
    color: var(--surface);
    margin-bottom: 18px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.content .des {
    max-width: 520px;
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
}

/* Botones del Hero */
.content-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.content-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    width: auto !important;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}
.btn-primary {
    background: var(--primary-dark);
    color: var(--surface);
    box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-light) !important;
    color: var(--surface);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    background: var(--surface);
    color: var(--dark);
    transform: translateY(-3px);
}

/* Controles del Slider */
.slider-navigation {
    position: absolute;
    bottom: 45px;
    right: 7%;
    z-index: 20;
    display: flex;
    gap: 12px;
}
.slider-navigation button {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    color: var(--surface);
    cursor: pointer;
    transition: var(--transition-base);
}
.slider-navigation button:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.05);
}

.slider-dots {
    position: absolute;
    bottom: 62px;
    left: 8%;
    z-index: 20;
    display: flex;
    gap: 8px;
}
.slider-dots span {
    display: block;
    width: 28px;
    height: 4px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: width var(--transition-base), background var(--transition-base);
}
.slider-dots span.active {
    width: 55px;
    background: var(--primary);
}

.slide-counter {
    position: absolute;
    top: 110px;
    right: 7%;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
}
.slide-counter .current {
    font-size: 28px;
    font-weight: 700;
    color: var(--surface);
}

/* Animación de entrada para texto activo */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-30%); }
    to { opacity: 1; transform: translateY(-50%); }
}



/* =========================================================
   2. ESTILOS GLOBALES Y COMPONENTES REUTILIZABLES
========================================================= */
body {
    background-color: var(--background);
    color: var(--text);
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}
.section-header span {
    display: inline-block;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.section-header h1 {
    font-size: clamp(32px, 5vw, 55px);
    color: var(--dark);
    line-height: 1.1;
    margin-bottom: 15px;
    font-weight: 800;
}
.section-header p {
    font-size: 15px;
    line-height: 1.8;
}

/* --- Cards Component (Reusable) --- */
.cards-section {
    width: min(1250px, calc(100% - 40px));
    margin: auto;
    
    padding: 90px 0;
}
.cards-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.card {
    position: relative;
    min-height: 200px;
    overflow: hidden;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.card::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -60px;
    top: -60px;
    border-radius: 50%;
    opacity: 0.1;
    transition: transform 0.5s ease, opacity 0.5s ease;
}
.card:hover::before {
    transform: scale(1.3);
    opacity: 0.15;
}
.card::after {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    top: 0;
    right: 0;
    background: var(--background);
    border-bottom-left-radius: 45px;
}
.card-icon {
    position: relative;
    z-index: 2;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    font-size: 28px;
    margin-bottom: 30px;
    transition: transform var(--transition-base);
}
.card:hover .card-icon {
    transform: rotate(-8deg) scale(1.08);
}
.card-content {
    position: relative;
    z-index: 2;
}
.card-number {
    position: absolute;
    right: 0;
    top: -85px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}
.card h2 {
    font-size: 22px;
    color: var(--dark);
    margin-bottom: 12px;
    font-weight: 700;
}
.card p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 25px;
}
.card a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: gap var(--transition-fast);
}
.card a:hover {
    gap: 16px;
}

/* Card Theme Variations */
.card-blue::before { background: #2563eb; }
.card-blue .card-icon { background: rgba(37, 99, 235, 0.12); color: #2563eb; }
.card-blue .card-number, .card-blue a { color: #2563eb; }

.card-purple::before { background: #8b5cf6; }
.card-purple .card-icon { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }
.card-purple .card-number, .card-purple a { color: #8b5cf6; }

.card-orange::before { background: #f97316; }
.card-orange .card-icon { background: rgba(249, 115, 22, 0.12); color: #f97316; }
.card-orange .card-number, .card-orange a { color: #f97316; }

.card-green::before { background: #10b981; }
.card-green .card-icon { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.card-green .card-number, .card-green a { color: #10b981; }

.card-red::before { background: #ef4444; }
.card-red .card-icon { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
.card-red .card-number, .card-red a { color: #ef4444; }

.card-pink::before { background: #ec4899; }
.card-pink .card-icon { background: rgba(236, 72, 153, 0.12); color: #ec4899; }
.card-pink .card-number, .card-pink a { color: #ec4899; }


/* =========================================================
   3. SECCIONES PRINCIPALES
========================================================= */

/* --- Quick Access --- */
.quick-access {
    position: relative;
    z-index: 50;
    margin-top: -55px;
    padding: 0 20px;
}
.quick-container {
    width: min(1250px, 100%);
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.quick-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px;
    text-decoration: none;
    color: var(--dark);
    border-right: 1px solid var(--border-color);
    transition: var(--transition-base);
}
.quick-item:last-child {
    border-right: none;
}
.quick-item:hover {
    background: #fafafa;
    transform: translateY(-3px);
}
.quick-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    font-size: 19px;
}
.quick-item strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
}
.quick-item span {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: var(--text-muted);
}

/* --- Trámites --- */
.tramites-section {
    padding: 40px 20px;
    background: var(--background);
}
.tramites-container {
    width: min(1250px, 100%);
    min-height: 520px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--background);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.tramites-image {
    position: relative;
    min-height: 520px;
    overflow: hidden;
}
.tramites-image video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tramites-image:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 76, 129, 0.05) 20%, rgba(5, 15, 30, 0.82) 100%);
    z-index: 1;
}
.tramites-image-overlay {
    position: absolute;
    left: 45px;
    bottom: 40px;
    z-index: 2;
    color: var(--surface);
}
.tramites-image-overlay span {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
}
.tramites-image-overlay strong {
    display: block;
    font-size: 34px;
    line-height: 1.1;
    font-weight: 800;
}
.tramites-image-overlay p {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}
.tramites-services {
    padding: 55px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.tramites-header {
    margin-bottom: 30px;
}
.tramites-header > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.tramites-header h2 {
    margin: 8px 0 6px;
    color: var(--dark);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.tramites-header p {
    color: var(--text);
    font-size: 14px;
}
.tramites-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tramite-btn {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 76px;
    padding: 12px 18px;
    gap: 15px;
    border: 1px solid rgba(102, 135, 197, 0.637);
    border-radius: var(--radius-md);
    background: var(--surface);
    text-decoration: none;
    color: var(--dark);
    overflow: hidden;
    transition: var(--transition-base);
}
.tramite-btn:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
    transform: scaleY(0);
    transition: var(--transition-base);
}
.tramite-btn:hover {
    transform: translateX(5px);
    border-color: rgba(227, 6, 21, 0.2);
    box-shadow: var(--shadow-sm);
}
.tramite-btn:hover:before {
    transform: scaleY(1);
}
.tramite-btn-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 18px;
    transition: var(--transition-base);
}
.tramite-btn:hover .tramite-btn-icon {
    background: var(--primary);
    color: var(--surface);
}
.tramite-btn-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.tramite-btn-text strong {
    font-size: 14px;
    font-weight: 700;
}
.tramite-btn-text small {
    font-size: 11px;
    color: var(--text-muted);
}
.tramite-btn-go {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    transition: var(--transition-base);
}
.tramite-btn:hover .tramite-btn-go {
    color: var(--primary);
}
.tramite-btn-go i {
    transition: var(--transition-base);
}
.tramite-btn:hover .tramite-btn-go i {
    transform: translateX(4px);
}

/* --- Contacto y Ubicación --- */
.contacto-section {
    position: relative;
    padding: 110px 20px;
    background: var(--background);
    overflow: hidden;
    isolation: isolate;
    
}
.contacto-section:before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 20%, var(--primary-light), transparent 32%), 
                radial-gradient(circle at 85% 80%, rgba(15, 76, 129, 0.06), transparent 30%);
    z-index: -2;
}
.contacto-section:after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(15, 76, 129, 0.08), transparent);
    z-index: -1;
}
.contacto-bg-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.18;
    pointer-events: none;
    z-index: -1;
}
.contacto-bg-glow-1 { top: -220px; left: -180px; background: var(--primary); }
.contacto-bg-glow-2 { right: -220px; bottom: -220px; background: #0f4c81; }

.contacto-wrapper {
    position: relative;
    width: min(1280px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 48% 52%;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.contacto-info {
    position: relative;
    padding: 68px 62px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92));
    overflow: hidden;
}
.contacto-info:after {
    content: "";
    position: absolute;
    right: -100px;
    top: -100px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 1px solid var(--primary-light);
    box-shadow: 0 0 0 35px rgba(227, 6, 19, 0.025), 0 0 0 70px rgba(227, 6, 19, 0.018);
    pointer-events: none;
}
.contacto-top-line {
    width: 52px;
    height: 4px;
    margin-bottom: 25px;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg, var(--primary), #ff5b64);
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.28);
}
.contacto-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.contacto-info h2 {
    position: relative;
    z-index: 1;
    margin: 15px 0 18px;
    color: var(--dark);
    font-size: 42px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1px;
}
.contacto-info h2 b { color: var(--primary); }
.contacto-dot { color: var(--primary); font-size: 48px; }

.contacto-descripcion {
    position: relative;
    z-index: 1;
    max-width: 500px;
    margin: 0 0 34px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.85;
}
.contacto-datos {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.contacto-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 16px;
    border: 1px solid rgba(102, 135, 197, 0.637);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.72);
    color: var(--dark);
    text-decoration: none;
    overflow: hidden;
    transition: var(--transition-base);
}
.contacto-item:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform var(--transition-base);
}
.contacto-item:hover {
    transform: translateX(7px);
    border-color: rgba(227, 6, 19, 0.25);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.contacto-item:hover:before {
    transform: scaleY(1);
}
.contacto-icon {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(227, 6, 19, 0.1);
    background: linear-gradient(145deg, rgba(227, 6, 19, 0.1), rgba(227, 6, 19, 0.045));
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-size: 18px;
    transition: var(--transition-base);
}
.contacto-item:hover .contacto-icon {
    transform: scale(1.05) rotate(-3deg);
}
.contacto-item-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}
.contacto-item-content span {
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}
.contacto-item-content strong {
    color: var(--dark);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.contacto-item-content small {
    color: var(--text-muted);
    font-size: 11px;
}
.contacto-arrow {
    position: relative;
    z-index: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b0b7c3;
    font-size: 12px;
    transition: var(--transition-base);
}
.contacto-item:hover .contacto-arrow {
    color: var(--primary);
    transform: translateX(3px);
}
.contacto-status {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    color: var(--text);
    font-size: 11px;
    font-weight: 600;
}
.contacto-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #20b26b;
    box-shadow: 0 0 0 5px rgba(32, 178, 107, 0.1), 0 0 12px rgba(32, 178, 107, 0.45);
    animation: contactoPulse 2s infinite;
}
.contacto-mapa {
    position: relative;
    min-height: 610px;
    background: #dfe3e8;
    overflow: hidden;
}
.contacto-mapa iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 610px;
    border: 0;
    filter: saturate(0.82) contrast(1.03);
    transition: filter 0.6s ease, transform 0.8s ease;
}
.contacto-mapa:hover iframe {
    filter: saturate(1) contrast(1);
    transform: scale(1.015);
}
.contacto-map-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.16), transparent 25%), 
                linear-gradient(0deg, rgba(15, 23, 42, 0.2), transparent 30%);
}
.contacto-map-card {
    position: absolute;
    z-index: 3;
    top: 25px;
    left: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 12px 12px;
    background: rgba(17, 24, 39, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-md);
    color: var(--surface);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(14px);
}
.contacto-map-card > span {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(227, 6, 19, 0.95);
    box-shadow: 0 6px 16px rgba(227, 6, 19, 0.35);
    font-size: 14px;
}
.contacto-map-card div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.contacto-map-card small {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
}
.contacto-map-card strong {
    font-size: 13px;
    font-weight: 700;
}
.contacto-map-card em {
    font-style: normal;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
}
.contacto-mapa-btn {
    position: absolute;
    z-index: 4;
    left: 300px;
    bottom: 25px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 18px;
    background: rgba(227, 6, 19, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--surface);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25), 0 5px 15px rgba(227, 6, 19, 0.28);
    backdrop-filter: blur(8px);
    transition: var(--transition-base);
}
.contacto-mapa-btn i:last-child {
    font-size: 10px;
    opacity: 0.7;
}
.contacto-mapa-btn:hover {
    transform: translateY(-4px);
    background: var(--primary-dark);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.28), 0 8px 22px rgba(227, 6, 19, 0.35);
}

@keyframes contactoPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(32, 178, 107, 0.1), 0 0 8px rgba(32, 178, 107, 0.35); }
    50% { box-shadow: 0 0 0 7px rgba(32, 178, 107, 0.04), 0 0 16px rgba(32, 178, 107, 0.55); }
}

/* --- Enlaces de Interés --- */
.enlaces-section {
    padding: 60px 20px;
    background: #f8f9fb;
}
.enlaces-header {
    text-align: center;
    margin-bottom: 45px;
}
.enlaces-header > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.enlaces-header h2 {
    color: var(--dark);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-top: 10px;
}
.enlaces-header p {
    margin: 10px 0 0;
    color: var(--text);
    font-size: 15px;
}
.enlaces-track {
    width: min(1250px, 100%);
    min-height: 125px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px 35px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}
.enlaces-track::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}
.enlace-slide {
    width: 210px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    text-decoration: none;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}
.enlace-slide:hover {
    transform: translateY(-6px);
    background: #fafafa;
    box-shadow: var(--shadow-sm);
}
.enlace-slide img {
    display: block;
    width: auto;
    max-width: 170px;
    height: 52px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition-base);
}
.enlace-slide:hover img {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}
.enlace-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    flex-shrink: 0;
    color: #d0d5dd;
    font-size: 14px;
    transition: var(--transition-fast);
}
.enlaces-track:hover .enlace-separator {
    color: var(--primary-light);
}

/* =========================================================
   4. NAVEGACIÓN Y FOOTER
========================================================= */

/* --- Mobile Nav --- */
.mobile-nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    padding: 15px;
    background: var(--primary-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
    z-index: 999;
}
.mobile-nav.active {
    display: block;
}
.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    color: var(--surface);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
}
.mobile-nav a:hover {
    background: rgb(255, 255, 255);
    color: var(--dark-2);
}
/* =========================================================
   FOOTER (Elegante y Minimalista)
========================================================= */
.site-footer {
    background-color: var(--dark-2); /* Un azul/gris muy oscuro casi negro */
    color: rgba(255, 255, 255, 0.65);
    padding: 80px 0 30px;
    font-size: 14px;
}

.footer-container {
    width: min(1200px, 92%);
    margin: auto;
}

.footer-top {
    display: grid;
    /* Grid asimétrico: la marca ocupa más espacio que las listas */
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* --- Marca --- */
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 20px;
}
.footer-logo .logo-mark {
    width: 42px;
    height: 42px;
    background: var(--primary);
    color: #ffffff;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-primary);
}
.footer-logo .logo-text {
    display: flex;
    flex-direction: column;
    color: #ffffff;
}
.footer-logo .logo-text strong {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1;
}
.footer-logo .logo-text span {
    font-size: 9px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin-top: 5px;
}
.footer-desc {
    line-height: 1.8;
    max-width: 340px;
    margin-bottom: 25px;
}

/* --- Redes Sociales --- */
.footer-social {
    display: flex;
    gap: 12px;
}
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05); /* Círculos sutiles */
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition-base);
}
.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px); /* Pequeño salto elegante */
}

/* --- Columnas (Enlaces y Contacto) --- */
.footer-top h3 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}
.footer-links ul, .contact-list {
    list-style: none;
}
.footer-links li {
    margin-bottom: 14px;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: var(--transition-fast);
}
.footer-links a:hover {
    color: var(--primary);
    padding-left: 6px; /* Efecto UX: movimiento suave a la derecha */
}

/* --- Lista de Contacto --- */
.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    line-height: 1.5;
}
.contact-list i {
    color: var(--primary);
    font-size: 16px;
    margin-top: 3px; /* Alinea el ícono con la primera línea de texto */
}
.contact-list a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: var(--transition-fast);
}
.contact-list a:hover {
    color: #ffffff;
}

/* --- Bottom / Legales --- */
.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0;
}
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 25px;
    font-size: 13px;
}
.footer-legal {
    display: flex;
    align-items: center;
    gap: 15px;
}
.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: var(--transition-fast);
}
.footer-legal a:hover {
    color: #ffffff;
}
.footer-legal .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

/* --- Responsive Layout --- */
@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr 1fr; /* Pasa a 2 columnas */
    }
}
@media (max-width: 650px) {
    .footer-top {
        grid-template-columns: 1fr; /* Pasa a 1 columna */
        gap: 40px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* =========================================================
   5. RESPONSIVE DESIGN (Media Queries Estandarizados)
========================================================= */

/* --- TABLET (hasta 1024px) --- */
@media(max-width: 1024px) {
    .main-nav { display: none; }
    .header-action { margin-left: auto; margin-right: 15px; }
    .mobile-menu { display: block; }
    
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .quick-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .quick-item:nth-child(2) { border-right: none; }
    .quick-item:nth-child(1), .quick-item:nth-child(2) { border-bottom: 1px solid var(--border-color); }
    
    .contacto-wrapper { grid-template-columns: 1fr; }
    .contacto-mapa, .contacto-mapa iframe { height: 450px; min-height: 450px; }
    .tramites-container { grid-template-columns: 1fr; }
}

/* --- MOBILE L (hasta 768px) --- */
@media(max-width: 768px) {
    .hero-slider { height: 680px; }
    .cards-container { grid-template-columns: 1fr; }
    
    .enlaces-section { padding: 40px 15px; }
    .enlaces-track { justify-content: flex-start; }
    
    .tramites-image { min-height: 350px; }
    .tramites-services { padding: 40px 30px; }
    .hero-slider .slide .item {
        position: absolute;
        top: 80%;
        transition:
            top 0.7s ease-in-out,
            left 0.7s ease-in-out,
            width 0.7s ease-in-out,
            height 0.7s ease-in-out,
            transform 0.7s ease-in-out,
            opacity 0.7s ease-in-out,
            border-radius 0.7s ease-in-out;
        will-change: top, left, width, height, transform, opacity;
    }
    

    .slide .item:nth-child(1),
    .slide .item:nth-child(2) {
        top: 0;
        left: 0;
        transform: translate(0, 0);
        width: 100%;
        height: 100%;
        border-radius: 0;
        box-shadow: none;
    }
    .slide .item:nth-child(3) {
        left: calc(100% - 120px);
        width: 100px;
        height: 140px;
    }
    .slide .item:nth-child(4) {
        left: calc(100% + 10px);
        width: 100px;
        height: 140px;
    }
    .slide .item:nth-child(5) {
        left: calc(100% + 120px);
        width: 100px;
        height: 140px;
    }
    .slide .item:nth-child(n+6) {
        left: calc(100% + 230px);
        opacity: 0;
    }
    .content button {
        display: none;
    }
    .slider-navigation button{
        display: none;
    }
    .content .name {
        font-size: clamp(20px, 9vw, 44px);
        line-height: 1.1;
        font-weight: 800;
        letter-spacing: -0.8px;
        margin-bottom: 12px;
        text-shadow: 0 3px 12px rgba(0,0,0,0.28);
    }
    .content .des {
        max-width: 520px;
        font-size: 14px;
        line-height: 1.8;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.85);
        margin-bottom: 30px;
    }
     
}

/* --- MOBILE S (hasta 480px) --- */
@media(max-width: 480px) {
    /* Header & Hero */
    .site-header { height: 70px; }
    .header-action { display: none; }
    .logo-text strong { font-size: 19px; }
    .logo-mark { width: 40px; height: 40px; }
    .hero-slider { height: 700px; min-height: 650px; }
    .content button {
        display: none;
    }
    .slider-navigation button{
        display: none;
    }
    .content .name {
        font-size: clamp(20px, 9vw, 44px);
        line-height: 1.1;
        font-weight: 800;
        letter-spacing: -0.8px;
        margin-bottom: 12px;
        text-shadow: 0 3px 12px rgba(0,0,0,0.28);
    }
    
    /* Quick Access */
    .quick-access { margin-top: -30px; }
    .quick-container { grid-template-columns: 1fr; }
    .quick-item { border-right: none !important; border-bottom: 1px solid var(--border-color); }
    .quick-item:last-child { border-bottom: none; }
    
    /* Trámites */
    .tramites-section { padding: 40px 15px; }
    .tramites-image { min-height: 280px; }
    .tramites-image-overlay { left: 25px; bottom: 25px; }
    .tramites-image-overlay strong { font-size: 26px; }
    .tramites-header h2 { font-size: 24px; }
    .tramite-btn { min-height: 70px; }
    .tramite-btn-text small, .tramite-btn-go { display: none; } /* Simplificación UI móvil */
    
    /* Contacto */
    .contacto-section { padding: 50px 15px; }
    .contacto-info { padding: 35px 20px; }
    .contacto-info h2 { font-size: 30px; }
    .contacto-mapa, .contacto-mapa iframe { height: 350px; min-height: 350px; }
    .contacto-map-card { top: 15px; left: 15px; padding: 10px; }
    .contacto-mapa-btn { left: 15px; bottom: 15px; padding: 10px 15px; font-size: 10px; }
    
    /* Cards */
    .cards-section { padding: 50px 0; width: min(100% - 30px, 1200px); }
    .card { padding: 25px; }
    .card h2 { font-size: 20px; }
    
    /* Footer */
    .footer-main { grid-template-columns: 1fr; gap: 40px; padding: 50px 0 30px; }
    .footer-bottom-container { flex-direction: column; text-align: center; gap: 15px; padding: 25px 0; }
}







/* =========================================================
   SECCIÓN PRESENTACIÓN (UI/UX - Texto Íntegro)
========================================================= */
.presentation-section {
    padding: 100px 0;
    background-color: var(--light);
}

.presentation-container {
    width: min(1200px, 92%);
    margin: auto;
}

/* --- Encabezado --- */
.presentation-header {
    margin-bottom: 40px;
}

.presentation-header .badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 50px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.presentation-header .section-title {
    font-size: clamp(32px, 4vw, 44px);
    color: var(--dark);
    font-weight: 800;
    letter-spacing: -1px;
    position: relative;
    padding-bottom: 15px;
}

.presentation-header .section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 10px;
}

/* --- Layout Grid --- */
.presentation-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 50px;
    align-items: start;
}

/* --- Contenido Principal de Texto --- */
.presentation-content {
    background: var(--surface);
    padding: 50px;
    border-radius: 12px;
    border: 1px solid var(--border-dark);
    box-shadow: var(--shadow-sm);
}

.presentation-content p {
    font-size: 16px;
    line-height: 1.85;
    color: rgba(0, 0, 0, 0.75);
    margin-bottom: 24px;
}

.presentation-content p:last-child {
    margin-bottom: 0;
}

/* Primer párrafo resaltado tipográficamente */
.presentation-content p.lead-paragraph {
    font-size: 18px;
    font-weight: 500;
    color: var(--dark-2);
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin-left: -20px;
}

/* --- Sidebar Lateral --- */
.presentation-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 100px; /* Mantiene la tarjeta fija mientras se desplaza el texto */
}

.summary-card {
    background: var(--surface);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-dark);
    box-shadow: var(--shadow-sm);
}

.summary-card h3 {
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-dark);
}

.modality-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.modality-item:last-child {
    margin-bottom: 0;
}

.modality-item .icon-box {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.modality-item strong {
    display: block;
    color: var(--dark);
    font-size: 15px;
    margin-bottom: 3px;
}

.modality-item span {
    display: block;
    font-size: 13px;
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.4;
}

.badge-location {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--dark-2);
    color: var(--surface);
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.badge-location i {
    font-size: 22px;
    color: var(--primary);
}

.badge-location strong {
    display: block;
    font-size: 14px;
}

.badge-location span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .presentation-grid {
        grid-template-columns: 1fr;
    }
    .presentation-sidebar {
        position: static;
    }
    .presentation-content {
        padding: 30px;
    }
    .presentation-content p.lead-paragraph {
        margin-left: 0;
    }
}

/* =========================================================
   SECCIÓN IDENTIDAD (MISIÓN, VISIÓN Y VALORES)
========================================================= */
.identity-section {
    padding: 100px 0;
    background-color: var(--light);
}

.identity-container {
    width: min(1200px, 92%);
    margin: auto;
}

/* --- Misión y Visión --- */
.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 90px;
}

.mv-card {
    padding: 45px 40px;
    border-radius: 12px;
    transition: var(--transition-base);
}

.mv-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.mv-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.mv-header h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.mv-card p {
    font-size: 15px;
    line-height: 1.8;
}

/* Tarjeta Misión (Blanca / Borde Rojo) */
.mission-card {
    background: var(--surface);
    border: 1px solid var(--border-dark);
    border-top: 5px solid var(--primary);
    box-shadow: var(--shadow-sm);
}

.mission-card .mv-icon {
    background: var(--primary-light);
    color: var(--primary);
}

.mission-card h2 {
    color: var(--dark);
}

.mission-card p {
    color: rgba(0, 0, 0, 0.75);
}

/* Tarjeta Visión (Tema Oscuro Elegante) */
.vision-card {
    background: var(--dark-2);
    color: var(--surface);
    box-shadow: var(--shadow-md);
}

.vision-card .mv-icon {
    background: rgba(255, 255, 255, 0.1);
    color: var(--surface);
}

.vision-card h2 {
    color: var(--surface);
}

.vision-card p {
    color: rgba(255, 255, 255, 0.8);
}

/* Hover efect en Misión / Visión */
.mv-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* --- Encabezado de Valores --- */
.values-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.values-header .badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 50px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.values-header h2 {
    font-size: 36px;
    color: var(--dark);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 15px;
}

.values-intro {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.65);
    line-height: 1.6;
}

/* --- Grid de Valores --- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.value-card {
    background: var(--surface);
    padding: 35px 30px;
    border-radius: 12px;
    border: 1px solid var(--border-dark);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
}

.value-card:hover {
    transform: translateY(-5px);
    border-color: rgba(227, 6, 19, 0.3);
    box-shadow: var(--shadow-md);
}

.value-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 20px;
    transition: var(--transition-fast);
}

.value-card:hover .value-icon {
    background: var(--primary);
    color: var(--surface);
}

.value-card h3 {
    font-size: 18px;
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 12px;
}

.value-card p {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.7;
}

/* Para que la última tarjeta (Igualdad - elemento #7) ocupe un ancho equilibrado */
.value-card-wide {
    grid-column: span 3;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
    align-items: center;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .mv-grid {
        grid-template-columns: 1fr;
    }
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .value-card-wide {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
    .value-card-wide {
        grid-column: span 1;
        text-align: left;
        align-items: flex-start;
    }
    .mv-card, .value-card {
        padding: 30px 25px;
    }
}








/* =========================================================
   VARIABLES GLOBALES (Paleta Elegante y Moderna)
========================================================= */
:root {
    --bg-page: #f8fafc;
    --surface: #ffffff;
    --primary: #d90429;          /* Rojo distintivo institucional */
    --primary-light: #ffebee;
    --dark-navy: #0f172a;        /* Azul oscuro para jerarquía superior */
    --slate-700: #334155;
    --slate-500: #64748b;
    --slate-200: #e2e8f0;
    --border-color: #cbd5e1;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-soft: 0 10px 30px -5px rgba(15, 23, 42, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================
   ESTRUCTURA CONTENEDORA
========================================================= */
.organigram-section {
    padding: 80px 20px;
    background-color: var(--bg-page);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.organigram-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Encabezado Limpio --- */
.organigram-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px;
}

.organigram-header .badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 30px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.organigram-header h2 {
    font-size: clamp(28px, 4vw, 40px);
    color: var(--dark-navy);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.organigram-header p {
    color: var(--slate-500);
    font-size: 16px;
}

/* =========================================================
   DISEÑO MODERNO POR NIVELES Y TARJETAS
========================================================= */

/* --- NIVEL 1: Alta Dirección --- */
.org-top-level {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 50px;
    position: relative;
}

/* Tarjeta Director General */
.card-director {
    background: var(--dark-navy);
    color: #ffffff;
    padding: 24px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-director i {
    font-size: 28px;
    color: var(--primary);
}

.card-director strong {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

/* Tarjeta Consejo Asesor (Staff) */
.card-advisor {
    background: var(--surface);
    border: 1px dashed var(--primary);
    color: var(--primary);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* --- NIVEL 2: Secretaría Académica --- */
.org-mid-level {
    max-width: 500px;
    margin: 0 auto 60px;
    text-align: center;
}

.card-secretary {
    background: var(--surface);
    border: 2px solid var(--slate-200);
    border-top: 4px solid var(--primary);
    padding: 20px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition);
}

.card-secretary strong {
    font-size: 17px;
    color: var(--dark-navy);
}

/* --- NIVEL 3: Grid de 3 Columnas (Las Subdirecciones) --- */
.org-branches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: start;
}

/* Columna de Rama */
.branch-column {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: var(--transition);
}

.branch-column:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

/* Encabezado de la Columna */
.branch-header {
    background: #f1f5f9;
    padding: 20px;
    border-bottom: 1px solid var(--slate-200);
    display: flex;
    align-items: center;
    gap: 12px;
}

.branch-header i {
    font-size: 20px;
    color: var(--primary);
}

.branch-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-navy);
    margin: 0;
    line-height: 1.3;
}

/* Cuerpo de la Columna y Jerarquías Internas */
.branch-body {
    padding: 24px;
}

.sub-leader {
    background: var(--primary-light);
    color: var(--primary);
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Lista de Cargos Dependientes */
.roles-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.roles-list li {
    background: var(--bg-page);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    color: var(--slate-700);
    border-left: 3px solid var(--slate-200);
    transition: var(--transition);
}

.roles-list li:hover {
    border-left-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Estilo para los niveles encadenados en la rama académica */
.nested-level {
    margin-top: 10px;
    padding-left: 15px;
    border-left: 2px dashed var(--border-color);
}

.nested-level .roles-list li {
    background: #ffffff;
}

/* =========================================================
   ADAPTATIVO Y RESPONSIVE
========================================================= */
@media (max-width: 1024px) {
    .org-branches-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .card-director {
        padding: 18px 24px;
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
    }
    
    .card-director strong {
        font-size: 17px;
    }

    .branch-body {
        padding: 16px;
    }
}


/* =========================================================
   SECCIÓN PLANA DOCENTE (UI / UX MODERNO)
========================================================= */
.faculty-section {
    padding: 80px 0;
    background-color: var(--bg-page);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.faculty-container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

/* --- Encabezado --- */
.faculty-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
}

.faculty-header .badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 30px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.faculty-header h2 {
    font-size: clamp(28px, 4vw, 38px);
    color: var(--dark-navy);
    font-weight: 800;
    margin-bottom: 10px;
}

.faculty-header p {
    color: var(--slate-500);
    font-size: 16px;
}

/* --- Pestañas de Navegación por Carrera --- */
.faculty-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.tab-btn {
    background: var(--surface);
    border: 1px solid var(--slate-200);
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: var(--slate-700);
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.tab-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(217, 4, 41, 0.25);
}

/* --- Subtítulo del Programa --- */
.program-subtitle {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--slate-200);
}

.program-subtitle i {
    font-size: 22px;
    color: var(--primary);
}

.program-subtitle h3 {
    font-size: 22px;
    color: var(--dark-navy);
    font-weight: 700;
}

/* --- Grid de Docentes --- */
.faculty-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.teacher-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition);
}

.teacher-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(217, 4, 41, 0.3);
}

/* Header de la Tarjeta */
.teacher-header {
    background: var(--dark-navy);
    color: #ffffff;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.teacher-avatar {
    width: 54px;
    height: 54px;
    min-width: 54px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #ffffff;
}

.teacher-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.regime-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--slate-200);
    background: rgba(255, 255, 255, 0.15);
    padding: 3px 10px;
    border-radius: 20px;
}

/* Cuerpo de la Tarjeta */
.teacher-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-group strong {
    display: block;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--slate-500);
    margin-bottom: 4px;
}

.info-group p {
    font-size: 14px;
    color: var(--slate-700);
    line-height: 1.5;
    margin: 0;
}

/* Unidades Didácticas */
.courses-group {
    margin-top: 10px;
    padding-top: 16px;
    border-top: 1px dashed var(--slate-200);
}

.courses-group strong {
    display: block;
    font-size: 13px;
    color: var(--dark-navy);
    margin-bottom: 10px;
}

.courses-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.courses-group li {
    background: var(--bg-page);
    border: 1px solid var(--slate-200);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--slate-700);
    font-weight: 500;
}

/* Footer & Botón CV */
.teacher-footer {
    padding: 20px 24px;
    background: #f8fafc;
    border-top: 1px solid var(--slate-200);
}

.btn-cv {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: var(--surface);
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-cv:hover {
    background: var(--primary);
    color: #ffffff;
}

/* --- Estados Vacíos --- */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--slate-200);
    color: var(--slate-500);
}

.empty-state i {
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--slate-500);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .faculty-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .faculty-grid {
        grid-template-columns: 1fr;
    }
    .faculty-tabs {
        flex-direction: column;
    }
    .tab-btn {
        width: 100%;
        text-align: center;
    }
}







/* =========================================================
   SECCIÓN CAMPUS E INFORMES (UI / UX MODERNO)
========================================================= */
.campus-section {
    padding: 80px 0;
    background-color: var(--bg-page);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.campus-container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

/* --- Encabezado --- */
.campus-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
}

.campus-header .badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 30px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.campus-header h2 {
    font-size: clamp(28px, 4vw, 38px);
    color: var(--dark-navy);
    font-weight: 800;
    margin-bottom: 10px;
}

.campus-header p {
    color: var(--slate-500);
    font-size: 16px;
}

/* --- Layout Grid --- */
.campus-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 40px;
    align-items: start;
}

/* --- Tarjeta Principal de la Sede --- */
.campus-main-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.card-top-banner {
    background: var(--dark-navy);
    color: #ffffff;
    padding: 30px 35px;
    position: relative;
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.card-top-banner h3 {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
}

.campus-body {
    padding: 35px;
}

.section-subtitle {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--slate-500);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--slate-200);
}

/* Filas Informativas */
.info-row {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.info-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.info-row strong {
    display: block;
    font-size: 14px;
    color: var(--dark-navy);
    margin-bottom: 4px;
}

.info-row p {
    font-size: 14.5px;
    color: var(--slate-700);
    margin: 0;
    line-height: 1.5;
}

.highlight-row p {
    font-weight: 600;
    color: var(--dark-navy);
}

/* Estadísticas Rápidas */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.stat-box {
    background: var(--bg-page);
    border: 1px solid var(--slate-200);
    padding: 16px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-box i {
    font-size: 22px;
    color: var(--primary);
}

.stat-box strong {
    display: block;
    font-size: 12px;
    color: var(--slate-500);
}

.stat-box span {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark-navy);
}

/* Bloque de Programas */
.programs-block {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px dashed var(--slate-200);
}

.block-title {
    display: block;
    font-size: 15px;
    color: var(--dark-navy);
    margin-bottom: 20px;
}

.modality-group {
    margin-bottom: 20px;
}

.modality-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.tag-presencial { background: var(--primary-light); color: var(--primary-dark); }
.tag-semipresencial { background: var(--secondary-light); color: var(--secondary-dark); }
.tag-distancia { background: var(--tertiary-light); color: var(--tertiary-dark); }

.modality-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modality-group li {
    font-size: 14px;
    color: var(--slate-700);
    padding-left: 12px;
    border-left: 2px solid var(--slate-200);
}

/* --- Sidebar (Informes & Horarios) --- */
.campus-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 40px;
}

.contact-card, .schedule-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-soft);
    padding: 30px;
}

.contact-header, .schedule-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.contact-header i, .schedule-header i {
    font-size: 22px;
    color: var(--primary);
}

.contact-header h3, .schedule-header h3 {
    font-size: 18px;
    color: var(--dark-navy);
    margin: 0;
}

.phone-box {
    background: var(--primary-light);
    border: 1px solid rgba(217, 4, 41, 0.2);
    padding: 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 16px;
}

.phone-box i {
    font-size: 26px;
    color: var(--primary);
}

.phone-box span {
    display: block;
    font-size: 12px;
    color: var(--slate-500);
}

.phone-box strong {
    font-size: 20px;
    color: var(--primary);
    letter-spacing: 0.5px;
}

/* Horarios */
.shifts-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.shifts-list li {
    background: var(--bg-page);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--dark-navy);
}

.shift-info strong {
    display: block;
    font-size: 14px;
    color: var(--dark-navy);
    margin-bottom: 2px;
}

.shift-info span {
    font-size: 13px;
    color: var(--slate-500);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .campus-grid {
        grid-template-columns: 1fr;
    }
    .campus-sidebar {
        position: static;
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .campus-body {
        padding: 20px;
    }
    .card-top-banner {
        padding: 20px;
    }
}



/* =========================================================
   VARIABLES DE COLOR Y LENGUAJE VISUAL (SIN COLOR NEGRO)
========================================================= */
:root {
    --navy-blue: #0f2942;
    --navy-light: #1e3a8a;
    --text-main: #334155;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-surface: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 10px 25px -5px rgba(15, 41, 66, 0.08);
}


.program-container {
    width: min(1140px, 92%);
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: clamp(26px, 3.5vw, 34px);
    color: var(--navy-blue);
    font-weight: 800;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

/* --- 1. HERO SLIDER --- */
.hero-program {
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--navy-light) 100%);
    padding: 80px 0;
    color: #ffffff;
    background-size: 100%;
}

.hero-container {
    width: min(1540px, 92%);
    margin: 50px auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: center;
}

.badge-tag-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
}
.hero-info{
    background: rgba(0, 0, 0, 0.568);
    padding: 30px;
    border-radius: 12px;
    
}
.hero-info h1 {
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 800;
    margin-bottom: 18px;
    line-height: 1.15;
}

.hero-description {
    font-size: 15.5px;
    line-height: 1.7;
    color: #cbd5e1;
}

.hero-form-wrapper {
    background: var(--bg-surface);
    border-radius: 16px;
    padding: 30px;
    color: var(--navy-blue);
    box-shadow: 0 20px 40px rgba(15, 41, 66, 0.2);
}

.hero-form-wrapper h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;
}

.hero-form-wrapper p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.lead-form .form-field {
    margin-bottom: 12px;
}

.lead-form input, .lead-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    color: var(--text-main);
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

/* --- 2. CONOCE EL PROGRAMA --- */
.about-program {
    padding: 70px 0;
    background: var(--bg-surface);
}

.about-card {
    background: var(--bg-light);
    border-left: 5px solid var(--primary);
    padding: 35px;
    border-radius: 12px;
}

.about-card h2 {
    font-size: 26px;
    color: var(--navy-blue);
    margin-bottom: 12px;
}

.exact-text {
    font-size: 15.5px;
    line-height: 1.8;
    color: var(--text-main);
    margin: 0;
}

/* --- 3. LO QUE NECESITAS SABER --- */
.facts-section {
    padding: 70px 0;
    background: var(--bg-light);
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.fact-box {
    background: var(--bg-surface);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.fact-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.fact-box strong {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.fact-box p {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--navy-blue);
    margin: 0;
    line-height: 1.5;
}

.fact-box-full {
    grid-column: span 3;
}

/* --- 4. APRENDIZAJE Y CAMPO --- */
.outcomes-section {
    padding: 70px 0;
    background: var(--bg-surface);
}

.outcomes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.outcome-box {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.outcome-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.outcome-header i {
    font-size: 22px;
    color: var(--primary);
}

.outcome-header h2 {
    font-size: 22px;
    color: var(--navy-blue);
    margin: 0;
}

.custom-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.custom-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    color: var(--text-main);
}

.custom-list i {
    color: var(--primary);
}

/* --- 5. MALLA CURRICULAR DESPLEGABLE --- */
.curriculum-section {
    padding: 70px 0;
    background: var(--bg-light);
}

.accordion-container {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accordion-item {
    background: var(--bg-surface);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.accordion-header {
    width: 100%;
    padding: 18px 24px;
    background: var(--bg-surface);
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--navy-blue);
    cursor: pointer;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: #f1f5f9;
}

.accordion-icon {
    color: var(--primary);
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out;
    background: var(--bg-surface);
    border-top: 1px solid transparent;
}

.accordion-content ul {
    list-style: none;
    padding: 15px 24px 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.accordion-content li {
    font-size: 14px;
    color: var(--text-main);
    padding-left: 14px;
    border-left: 3px solid var(--primary-light);
}

/* ESTADO ACTIVO DEL ACORDEÓN */
.accordion-item.active .accordion-header {
    background: var(--primary-light);
    color: var(--primary);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-item.active .accordion-content {
    max-height: 400px;
    border-top-color: var(--border-color);
}

/* --- 6. PROCESO DE MATRÍCULA --- */
.enrollment-section {
    padding: 70px 0;
    background: var(--bg-surface);
}

.enrollment-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 40px;
    border: 1px solid var(--border-color);
}

.enrollment-card h2 {
    font-size: 20px;
    color: var(--navy-blue);
    margin-bottom: 20px;
}

.requirements-list {
    padding-left: 20px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.requirements-list li {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.6;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--primary);
    color: #ffffff;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn-download:hover {
    background: var(--navy-blue);
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .hero-container, .outcomes-grid {
        grid-template-columns: 1fr;
    }
    .facts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .fact-box-full {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .facts-grid {
        grid-template-columns: 1fr;
    }
    .fact-box-full {
        grid-column: span 1;
    }
}


/* =========================================================
   SECCIÓN ADMISIÓN Y VACANTES (UI/UX)
========================================================= */
.admission-section {
    padding: 90px 0;
    background-color: var(--bg-surface, #ffffff);
}

.subtitle-text {
    color: var(--text-muted, #8b6464);
    font-size: 15px;
    margin-top: 6px;
}

.admission-card {
    background: var(--bg-light, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 25px -5px rgba(15, 41, 66, 0.05);
}

/* Encabezado del Turno */
.shift-badge-header {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fef3c7;
    color: #b45309;
    padding: 8px 18px;
    border-radius: 30px;
    margin-bottom: 25px;
}

.shift-badge-header i {
    font-size: 18px;
}

.shift-badge-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
}

/* Tabla Adaptable */
.table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid  #03030364;
    background: #ffffff;
}

.vacancies-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 750px; /* Garantiza legibilidad en móviles con scroll horizontal */
    text-align: center;
}

/* Cabeceras de la Tabla */
.vacancies-table thead tr.row-years th {
    background: var(--primary, #420f0f);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    padding: 12px;
    border-right: 1px solid #03030364;
}

.vacancies-table thead tr.row-years th.col-detail {
    text-align: left;
    padding-left: 20px;
}

.vacancies-table thead tr.row-periods th {
    background: var(--primary-light, #fef3c7);
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 800;
    padding: 8px;
    border-bottom: 1px solid #03030364;
    border-right: 1px solid #03030364;
}

/* Cuerpo de la Tabla */
.vacancies-table tbody tr {
    transition: background 0.2s ease;
}

.vacancies-table tbody tr:hover {
    background: var(--primary-light, #fef3c7);
}

.vacancies-table tbody td {
    padding: 14px 10px;
    font-size: 14px;
    color: var(--text-main, #334155);
    border-bottom: 1px solid #03030364;
    border-right: 1px solid #03030364;
}

.vacancies-table tbody td.program-name {
    text-align: left;
    font-weight: 700;
    color: var(--navy-blue, #0f2942);
    padding-left: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vacancies-table tbody td.program-name i {
    color: var(--primary-dark);
}

/* Nota de Pie */
.table-footnote {
    margin-top: 18px;
    font-size: 13px;
    color: var(--text-muted, #64748b);
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-footnote i {
    color: var(--primary-blue, #0284c7);
}

@media (max-width: 768px) {
    .admission-card {
        padding: 20px 15px;
    }
}


/* =========================================================
   DIAGRAMA DE FLUJO DE MATRÍCULA
========================================================= */

.flowchart-section {
    padding: 80px 0;
    background-color: var(--light);
}

.section-header-flow {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-light);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-header-flow h2 {
    color: var(--dark);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
}

.section-header-flow p {
    color: #64748b;
    font-size: 16px;
}

/* Grilla de Actores Resumen */
.actors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.actor-card {
    background: var(--surface);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--border-dark);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.actor-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.actor-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.actor-ingresante .actor-icon { background: #dcfce7; color: #15803d; }
.actor-tesoreria .actor-icon { background: #fef9c3; color: #a16207; }
.actor-entidad .actor-icon { background: #e0f2fe; color: #0369a1; }
.actor-secretaria .actor-icon { background: #f3e8ff; color: #6b21a8; }

.actor-role {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
}

.actor-info h3 {
    margin: 2px 0 0 0;
    font-size: 16px;
    color: var(--dark);
    font-weight: 800;
}

/* Swimlanes Contenedor Vertical */
.swimlanes-wrapper {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.swimlane {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-dark);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

/* Colores de Borde Superior por Carril */
.lane-ingresante { border-top: 5px solid #22c55e; }
.lane-tesoreria { border-top: 5px solid #eab308; }
.lane-entidad { border-top: 5px solid #0284c7; }
.lane-secretaria { border-top: 5px solid #9333ea; }

.lane-header {
    padding: 20px 30px;
    background: #fafafa;
    border-bottom: 1px solid var(--border-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.lane-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lane-title h3 {
    margin: 0;
    font-size: 20px;
    color: var(--dark);
    font-weight: 800;
}

.lane-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.lane-ingresante .lane-dot, .lane-ingresante .lane-title i { color: #22c55e; }
.lane-ingresante .lane-dot { background-color: #22c55e; }

.lane-tesoreria .lane-dot, .lane-tesoreria .lane-title i { color: #eab308; }
.lane-tesoreria .lane-dot { background-color: #eab308; }

.lane-entidad .lane-dot, .lane-entidad .lane-title i { color: #0284c7; }
.lane-entidad .lane-dot { background-color: #0284c7; }

.lane-secretaria .lane-dot, .lane-secretaria .lane-title i { color: #9333ea; }
.lane-secretaria .lane-dot { background-color: #9333ea; }

.lane-badge {
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 20px;
    background: #f1f5f9;
    color: #64748b;
    font-weight: 600;
}

/* Timeline Secuencial Interna */
.steps-timeline {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    position: relative;
}

.step-card {
    background: var(--light);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    padding: 20px;
    position: relative;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.step-card:hover {
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.step-number {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary);
    background: var(--primary-light);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.step-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--dark-2);
}

/* Nodos Especiales: Inicio / Fin */
.node-start {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.node-start .step-tag {
    background: #22c55e;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 12px;
    width: fit-content;
    margin-bottom: 10px;
}

.node-end {
    background: #fef2f2;
    border-color: #fecaca;
}

.node-end .step-tag {
    background: var(--primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 12px;
    width: fit-content;
    margin-bottom: 10px;
}

/* Tarjetas de Entregables / Documentos */
.step-deliverables {
    grid-column: 1 / -1;
    background: #ffffff;
    border: 1.5px dashed var(--secondary);
}

.step-deliverables h4 {
    margin: 0 0 12px 0;
    font-size: 15px;
    color: var(--secondary);
    font-weight: 800;
}

.deliverables-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.deliverables-list li {
    font-size: 13px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--light);
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
}

.deliverables-list li i {
    color: var(--primary);
}

/* Tarjeta Condicional Decisión */
.step-decision {
    grid-column: 1 / -1;
    background: #fffbe3;
    border-color: #fef08a;
}

.decision-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.decision-header i {
    font-size: 22px;
    color: #ca8a04;
}

.decision-header p {
    font-weight: 700;
    color: #713f12;
    font-size: 15px;
}

.decision-paths {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.path-box {
    padding: 12px 15px;
    border-radius: var(--radius-sm);
}

.path-no {
    background: #fef2f2;
    border-left: 4px solid var(--primary);
}

.path-yes {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
}

.path-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 4px;
}

.path-no .path-label { color: var(--primary); }
.path-yes .path-label { color: #16a34a; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .steps-timeline {
        padding: 15px;
        grid-template-columns: 1fr;
    }
    
    .lane-header {
        padding: 15px 20px;
    }
}

/* =========================================================
   SECCIÓN BECAS Y CRÉDITOS
========================================================= */

.scholarships-section {
    padding: 80px 0;
    background-color: var(--surface);
}

.scholarships-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 40px auto;
}

.scholarships-header h2 {
    color: var(--dark);
    font-size: 32px;
    font-weight: 800;
    margin-top: 10px;
    margin-bottom: 12px;
}

.header-intro {
    color: var(--dark-2);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

/* Grilla de Políticas (6 tarjetas) */
.policy-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.policy-card {
    background: var(--light);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.policy-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    background: var(--surface);
    border-color: var(--primary-light);
}

.policy-icon {
    background: var(--primary-light);
    color: var(--primary);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.policy-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--dark-2);
}

/* Banner Titular */
.projection-banner {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--dark-2) 100%);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    color: var(--surface);
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
}

.projection-title h3 {
    margin: 0 0 6px 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--surface);
}

.projection-title span {
    text-transform: uppercase;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    letter-spacing: 1px;
}

/* Grilla de Programas */
.programs-scholarships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 25px;
}

.program-scholarship-card {
    background: var(--surface);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.program-scholarship-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.card-program-header {
    padding: 20px;
    background: var(--light);
    border-bottom: 1px solid var(--border-dark);
}

.modality-tag {
    display: inline-block;
    background: var(--primary);
    color: var(--surface);
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.card-program-header h3 {
    margin: 0;
    font-size: 15px;
    color: var(--dark);
    font-weight: 800;
    line-height: 1.4;
}

/* Tabla interna de Periodos */
.program-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.program-table th {
    background: #ffffff;
    font-size: 12px;
    text-transform: uppercase;
    color: #64748b;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-dark);
    font-weight: 700;
}

.program-table td {
    padding: 10px 16px;
    font-size: 13px;
    color: var(--dark-2);
    border-bottom: 1px solid var(--border-dark);
}

.program-table tbody tr:nth-child(even) {
    background: #fdfdfd;
}

.card-program-footer {
    padding: 14px 20px;
    background: var(--primary-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(227, 6, 19, 0.15);
}

.card-program-footer span {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-dark);
}

.card-program-footer strong {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
    background: var(--surface);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
    .policy-cards-grid,
    .programs-scholarships-grid {
        grid-template-columns: 1fr;
    }

    .projection-title h3 {
        font-size: 18px;
    }
}


/* =========================================================
   SECCIÓN FORMULARIO DE POSTULACIÓN
========================================================= */

.apply-section {
    padding: 95px 0;
    background: linear-gradient(180deg, var(--light) 0%, var(--surface) 100%);
}

.apply-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
}

/* Columna Izquierda */
.apply-info-side h2 {
    font-size: 34px;
    color: var(--dark);
    font-weight: 800;
    line-height: 1.25;
    margin: 12px 0;
}

.apply-info-side p {
    color: var(--dark-2);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.info-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 35px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.highlight-icon {
    width: 44px;
    height: 44px;
    background: var(--secondary);
    color: var(--surface);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.highlight-item h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    color: var(--dark);
    font-weight: 700;
}

.highlight-item p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

.requirements-box {
    background: var(--surface);
    border: 1px solid var(--border-dark);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.requirements-box h4 {
    margin: 0 0 12px 0;
    color: var(--dark);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.requirements-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.requirements-box li {
    font-size: 13px;
    color: var(--dark-2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.requirements-box li i {
    color: #22c55e;
}

/* Columna Derecha: Tarjeta Formulario */
.apply-form-side {
    background: var(--surface);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.form-header {
    margin-bottom: 25px;
}

.form-header h3 {
    margin: 0 0 4px 0;
    font-size: 22px;
    color: var(--dark);
    font-weight: 800;
}

.form-header p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

.form-row {
    margin-bottom: 18px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrapper i {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 15px;
    transition: color var(--transition-fast);
}

.input-icon-wrapper input,
.input-icon-wrapper select {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1.5px solid var(--border-dark);
    border-radius: var(--radius-sm);
    background: var(--light);
    font-size: 14px;
    color: var(--dark);
    outline: none;
    transition: all var(--transition-fast);
}

.input-icon-wrapper input:focus,
.input-icon-wrapper select:focus {
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.input-icon-wrapper input:focus + i,
.input-icon-wrapper select:focus + i,
.input-icon-wrapper input:focus ~ i {
    color: var(--primary);
}

/* Zona Drag & Drop */
.file-drop-zone {
    border: 2px dashed var(--border-dark);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
    background: var(--light);
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
}

.file-drop-zone:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.file-drop-zone i {
    font-size: 26px;
    color: var(--primary);
    margin-bottom: 6px;
}

.file-drop-zone p {
    margin: 0;
    font-size: 13px;
    color: var(--dark-2);
}

.file-drop-zone span {
    font-size: 11px;
    color: #94a3b8;
}

.file-drop-zone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Checkbox y Botón */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
}

.form-checkbox input {
    margin-top: 3px;
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.form-checkbox label {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
    cursor: pointer;
}

.btn-submit {
    width: 100%;
    background: var(--primary);
    color: var(--surface);
    border: none;
    padding: 15px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: var(--shadow-primary);
    transition: all var(--transition-base);
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(227, 6, 19, 0.35);
}

/* Responsivo */
@media (max-width: 992px) {
    .apply-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .apply-form-side {
        padding: 24px;
    }
}

/* Estilos específicos para Textarea en formularios */
.input-icon-wrapper.textarea-wrapper {
    align-items: flex-start; /* Alinea el icono en la parte superior */
}

.input-icon-wrapper.textarea-wrapper i {
    top: 14px; /* Posiciona el icono en la esquina superior izquierda */
}

.input-icon-wrapper textarea {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1.5px solid var(--border-dark);
    border-radius: var(--radius-sm);
    background: var(--light);
    font-size: 14px;
    font-family: inherit;
    color: var(--dark);
    outline: none;
    resize: vertical; /* Permite redimensionar solo en sentido vertical */
    min-height: 110px;
    transition: all var(--transition-fast);
}

.input-icon-wrapper textarea:focus {
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.input-icon-wrapper textarea:focus + i,
.input-icon-wrapper textarea:focus ~ i {
    color: var(--primary);
}














/* =========================================================
   BANNER COMPACTO & ELEGANTE (Efectos Chics & Hover Suave)
========================================================= */

.feria-mini-banner {
    padding: 5px 0;
    background: #ffffff;
    display: flex;
    justify-content: center;
}

.banner-glass-container {
    position: relative;
    width: 100%;
    max-width: 920px;
    background: #ffffff;
    border: 5px solid transparent; 
    border-radius: 100px ;
    background: 
        linear-gradient(#ffffff, #ffffff) padding-box, 
        linear-gradient(90deg, var(--primary), #7000ff, #00f0ff, var(--primary)) border-box;
    padding: 12px 20px 12px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
    overflow: hidden;
}
/* Borde Neón Animado Continuo */
.banner-glass-container::before {
    content: '';
    position: absolute;
    inset: -1.5px;
    border-radius: 100px;
    background: linear-gradient(90deg, var(--primary), #7000ff, #00f0ff, var(--primary));
    background-size: 300% 300%;
    z-index: -1;
    animation: smoothBorder 6s linear infinite;
    opacity: 0.75;
}

@keyframes smoothBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* HOVER CONTENEDOR: Resplandor refinado de sombra (Sin saltos bruscos) */
.banner-glass-container:hover {
    box-shadow: 0 12px 35px rgba(227, 6, 19, 0.12), 0 0 20px rgba(112, 0, 255, 0.08);
}

/* Info Principal */
.banner-main-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.live-indicator {
    font-size: 11px;
    font-weight: 800;
    color: var(--primary);
    background: rgba(227, 6, 19, 0.08);
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

.live-indicator .dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
    animation: blink 1.2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.85); }
}

.banner-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--dark);
    white-space: nowrap;
}

.rgb-gradient-text {
    background: linear-gradient(90deg, var(--primary), #7000ff, #00f0ff, var(--primary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    animation: textFlow 4s linear infinite;
}

@keyframes textFlow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Reloj Minimalista en Un Renglón */
.mini-clock-row {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--light);
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid var(--border-dark);
}

.clock-unit {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.clock-unit strong {
    font-size: 16px;
    font-weight: 900;
    color: var(--dark);
    font-variant-numeric: tabular-nums;
}

.clock-unit small {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: lowercase;
}

.clock-dots {
    font-size: 13px;
    font-weight: 800;
    color: var(--primary);
    animation: blink 1s infinite;
}

/* Botón Ultra Chic (Hover Magnético y Suave con Shimmer) */
.btn-ultra-chic {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--dark);
    color: #ffffff;
    padding: 11px 24px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    overflow: hidden;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.15);
    white-space: nowrap;
}

/* Destello de luz (Shimmer Effect) continuo en el botón */
.btn-ultra-chic::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(
        60deg, 
        transparent, 
        rgba(255, 255, 255, 0.25), 
        transparent
    );
    transform: rotate(25deg);
    animation: shimmer 3.5s infinite;
}

@keyframes shimmer {
    0% { left: -60%; }
    20% { left: 140%; }
    100% { left: 140%; }
}

/* HOVER BOTÓN: Suave cambio de color e icono flotante */
.btn-ultra-chic:hover {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(227, 6, 19, 0.35);
}

.btn-ultra-chic i {
    font-size: 11px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-ultra-chic:hover i {
    transform: translate(3px, -3px);
}

/* Adaptación Móvil */
@media (max-width: 768px) {
    .banner-glass-container {
        border-radius: 20px;
        flex-direction: column;
        padding: 18px;
        text-align: center;
    }
    
    .banner-glass-container::before {
        border-radius: 20px;
    }

    .banner-main-info {
        flex-direction: column;
        gap: 6px;
    }

    .btn-ultra-chic {
        width: 100%;
        justify-content: center;
    }
}