/**
 * Estilos principales - Universidad Latinoamericana de México (ULM)
 * Diseño premium, moderno y elegante
 */

/* ============================================
   VARIABLES Y CONFIGURACIÓN BASE
   ============================================ */
:root {
    /* Colores principales */
    --primary: #1a365d;
    --primary-dark: #0f2440;
    --primary-light: #2d4a7c;
    --secondary: #c9a227;
    --secondary-dark: #a8871f;
    --secondary-light: #dbb94a;
    
    /* Colores neutros */
    --dark: #0f172a;
    --gray-900: #1e293b;
    --gray-800: #334155;
    --gray-700: #475569;
    --gray-600: #64748b;
    --gray-500: #94a3b8;
    --gray-400: #cbd5e1;
    --gray-300: #e2e8f0;
    --gray-200: #f1f5f9;
    --gray-100: #f8fafc;
    --white: #ffffff;
    
    /* Colores de estado */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    /* Tipografía */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Espaciado */
    --section-padding: 100px;
    --section-padding-sm: 60px;
    
    /* Transiciones */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    
    /* Border radius */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
}

/* ============================================
   RESET Y BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--dark);
    line-height: 1.3;
}

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

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

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

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
	position: relative;
    z-index: 1001;
    background: var(--dark);
    padding: 8px 0;
    font-size: 0.875rem;
	
}

.top-bar-info {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
}

.top-bar-info li {
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-info a {
    color: var(--gray-400);
}

.top-bar-info a:hover {
    color: var(--secondary);
}

.top-bar-info i {
    color: var(--secondary);
    font-size: 0.75rem;
}

.top-bar-social {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 16px;
}

.top-bar-social a {
    color: var(--gray-400);
    font-size: 0.875rem;
}

.top-bar-social a:hover {
    color: var(--secondary);
}

/* ============================================
   HEADER PRINCIPAL
   ============================================ */
.main-header {
    position: fixed;
    top: 44px;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    padding: 20px 0;
    transition: var(--transition);
}

.main-header.scrolled {
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: 10px 0;
	top:0;
}

@media (min-width: 992px) {
    .main-header {
        top: 36px;
    }
    
    .main-header.scrolled {
        top: 0;
    }
}

.navbar {
    padding: 0;
}

.navbar-brand {
    padding: 0;
}

.navbar-brand img {
    height: 50px;
    transition: var(--transition);
}

.main-header.scrolled .navbar-brand img {
    height: 45px;
}

.logo-main {
    display: none;
}

.logo-white {
    display: block;
}

.main-header.scrolled .logo-main {
    display: block;
}

.main-header.scrolled .logo-white {
    display: none;
}

.navbar-nav .nav-link {
    color: var(--white);
    font-weight: 500;
    padding: 10px 16px;
    position: relative;
}

.main-header.scrolled .navbar-nav .nav-link {
    color: var(--dark);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--secondary);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--secondary);
    transform: scaleX(0);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover::after {
    transform: scaleX(1);
}

/* Mega Menu */
.dropdown-menu.mega-menu {
    width: 700px;
    padding: 30px;
    border: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-xl);
    background: var(--white);
}

.mega-menu .row {
    display: flex;
    flex-wrap: nowrap;
}

.mega-menu .col-md-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    padding: 0 15px;
}

.mega-menu-title {
    color: var(--primary);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--secondary);
    white-space: nowrap;
}

.mega-menu-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.mega-menu-list li {
    margin-bottom: 8px;
}

.mega-menu-list a {
    color: var(--gray-700);
    font-size: 0.85rem;
    display: block;
    line-height: 1.4;
}

.mega-menu-list a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.mega-menu-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Responsive mega menu */
@media (max-width: 991.98px) {
    .dropdown-menu.mega-menu {
        width: 100%;
        position: relative;
        box-shadow: none;
        padding: 15px;
    }
    
    .mega-menu .row {
        flex-wrap: wrap;
    }
    
    .mega-menu .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
}

/* CTA Button */
.btn-cta {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: var(--white) !important;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.4);
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary) 100%);
}

.navbar-toggler {
    border: none;
    padding: 8px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.main-header.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2815, 23, 42, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    margin-top: -100px;
}

@media (min-width: 992px) {
    .hero-section {
        margin-top: -136px;
    }
}

.hero-slide {
    height: 100vh;
    min-height: 700px;
    background-image: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?w=1920');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 36, 64, 0.9) 0%, rgba(26, 54, 93, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding-top: 120px;
}


.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--white);
    font-weight: 700;
    margin-bottom: 24px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: rgba(255,255,255,0.9);
    margin-bottom: 32px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-buttons .btn {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Hero Cards */
.hero-cards {
    position: relative;
    margin-top: -80px;
    z-index: 10;
    padding-bottom: 60px;
}

.hero-card {
    display: block;
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    text-decoration: none;
    height: 100%;
}

.hero-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.hero-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
    color: var(--white);
}

.hero-card h4 {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.hero-card span {
    color: var(--secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* ============================================
   SECCIONES GENERALES
   ============================================ */
.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.section-text {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 24px;
}

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

/* ============================================
   BUSCADOR DE PROGRAMAS
   ============================================ */
.programs-search-section {
    padding: var(--section-padding) 0;
    background: var(--gray-100);
}

.programs-filter {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    margin-bottom: 50px;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.program-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.program-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.program-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.program-card:hover .program-card-image img {
    transform: scale(1.05);
}

.program-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary);
    color: var(--white);
    padding: 6px 12px;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

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

.program-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.program-excerpt {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.program-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--gray-500);
}

.program-meta i {
    color: var(--secondary);
    margin-right: 4px;
}

.program-card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 12px;
}

.program-card-footer .btn {
    flex: 1;
    padding: 10px;
    font-size: 0.875rem;
}

/* ============================================
   POR QUÉ ULM
   ============================================ */
.why-ulm-section {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .reasons-grid {
        grid-template-columns: 1fr;
    }
}

.reason-card {
    background: var(--gray-100);
    padding: 30px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.reason-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.reason-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.reason-card h4 {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.reason-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin: 0;
}

/* Contadores */
.counters-row {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 80px;
    padding: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-xl);
}

.counter-item {
    text-align: center;
    color: var(--white);
}

.counter-number {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    display: inline;
}

.counter-suffix {
    font-size: 2rem;
    font-weight: 700;
}

.counter-label {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 8px;
}

/* ============================================
   BECAS Y FINANCIAMIENTO
   ============================================ */
.scholarships-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.scholarships-content .section-badge {
    background: rgba(255,255,255,0.2);
}

.scholarships-content .section-title {
    color: var(--white);
}

.scholarships-content .section-text {
    color: rgba(255,255,255,0.85);
}

.scholarships-list {
    margin: 30px 0;
}

.scholarship-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.scholarship-item i {
    color: var(--secondary);
    font-size: 1.25rem;
}

.scholarship-item strong {
    color: var(--white);
}

.scholarship-percent {
    background: var(--secondary);
    color: var(--dark);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 8px;
}

.scholarship-form-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.scholarship-form-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.scholarship-form-card p {
    color: var(--gray-600);
    margin-bottom: 24px;
}

/* ============================================
   VIDA UNIVERSITARIA
   ============================================ */
.campus-life-section {
    padding: var(--section-padding) 0;
    background: var(--gray-100);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 16px;
    margin-bottom: 60px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.gallery-item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: var(--white);
    font-weight: 500;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    
    .gallery-item-large {
        grid-column: span 2;
    }
}

/* Testimonios */
.testimonials-slider-container {
    margin-top: 60px;
}

.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    height: 100%;
}

.testimonial-quote {
    color: var(--secondary);
    font-size: 2rem;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 1.05rem;
    color: var(--gray-700);
    font-style: italic;
    margin-bottom: 24px;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-author img,
.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-avatar {
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.testimonial-author strong {
    display: block;
    color: var(--dark);
}

.testimonial-author span {
    color: var(--secondary);
    font-size: 0.9rem;
}

.testimonial-author small {
    display: block;
    color: var(--gray-500);
    font-size: 0.85rem;
}

/* ============================================
   CONVENIOS
   ============================================ */
.partners-section {
    padding: var(--section-padding-sm) 0;
    background: var(--white);
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    padding: 20px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.partner-item:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-item img {
    max-height: 60px;
    max-width: 100%;
    object-fit: contain;
}

.partner-name {
    font-weight: 600;
    color: var(--gray-600);
    text-align: center;
}

/* ============================================
   NOTICIAS Y EVENTOS
   ============================================ */
.news-events-section {
    padding: var(--section-padding) 0;
    background: var(--gray-100);
}

.news-grid {
    display: grid;
    gap: 24px;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    box-shadow: var(--shadow-md);
}

.news-card-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
    .news-card-featured {
        grid-template-columns: 1fr;
    }
}

.news-card-image {
    position: relative;
    height: 200px;
}

.news-card-featured .news-card-image {
    height: 100%;
    min-height: 250px;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-date {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: var(--secondary);
    color: var(--dark);
    padding: 6px 12px;
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 600;
}

.news-card-body {
    padding: 24px;
}

.news-card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.news-card-body h3 a {
    color: var(--dark);
}

.news-card-body h3 a:hover {
    color: var(--secondary);
}

.news-card-body p {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin: 0;
}

/* Eventos */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-item {
    display: flex;
    gap: 20px;
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.event-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.event-date-box {
    min-width: 60px;
    text-align: center;
    padding: 10px;
    background: var(--gray-100);
    border-radius: var(--radius);
}

.event-day {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.event-month {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
}

.event-info h4 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.event-info p {
    color: var(--gray-500);
    font-size: 0.85rem;
    margin: 0;
}

.event-info i {
    color: var(--secondary);
}

/* ============================================
   CTA FINAL
   ============================================ */
.final-cta-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
    text-align: center;
}

.final-cta-content h2 {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.final-cta-content p {
    color: rgba(255,255,255,0.8);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.final-cta-form {
    max-width: 900px;
    margin: 0 auto 30px;
}

.final-cta-form .form-control {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
}

.final-cta-form .form-control::placeholder {
    color: rgba(255,255,255,0.6);
}

.final-cta-form .form-control:focus {
    background: rgba(255,255,255,0.15);
    border-color: var(--secondary);
    color: var(--white);
}

.final-cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.final-cta-buttons span {
    color: rgba(255,255,255,0.6);
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background: var(--dark);
    color: var(--gray-400);
}

.footer-top {
    padding: 80px 0 60px;
}

.footer-logo {
    max-width: 180px;
    margin-bottom: 16px;
}

.footer-slogan {
    color: var(--secondary);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 16px;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--secondary);
    color: var(--dark);
}

.footer-title {
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--secondary);
    margin-top: 4px;
}

.footer-contact a {
    color: var(--gray-400);
}

.footer-contact a:hover {
    color: var(--secondary);
}

.footer-newsletter h6 {
    color: var(--white);
    font-family: var(--font-sans);
    font-weight: 600;
    margin-bottom: 12px;
}

.newsletter-form .input-group {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius);
    overflow: hidden;
}

.newsletter-form .form-control {
    background: transparent;
    border: none;
    color: var(--white);
    padding: 12px 16px;
}

.newsletter-form .form-control::placeholder {
    color: var(--gray-500);
}

.newsletter-form .btn {
    border-radius: 0;
    padding: 12px 20px;
}

.footer-bottom {
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.copyright {
    margin: 0;
    font-size: 0.9rem;
}

.footer-legal a {
    color: var(--gray-400);
    font-size: 0.9rem;
}

.footer-legal a:hover {
    color: var(--secondary);
}

/* ============================================
   WHATSAPP FLOTANTE
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: var(--white);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

/* ============================================
   CTA STICKY MOBILE
   ============================================ */
.mobile-cta-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 998;
}

.mobile-cta-sticky .btn {
    padding: 14px;
}

/* ============================================
   PÁGINAS INTERNAS
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 160px 0 80px;
    text-align: center;
    margin-top: -100px;
}

@media (min-width: 992px) {
    .page-header {
        margin-top: -136px;
    }
}

.page-header h1 {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.page-header p {
    color: rgba(255,255,255,0.8);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    justify-content: center;
    margin-top: 24px;
}

.breadcrumb-item a {
    color: rgba(255,255,255,0.7);
}

.breadcrumb-item.active {
    color: var(--secondary);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

/* ============================================
   FORMULARIOS
   ============================================ */
.form-control,
.form-select {
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
}

.form-control-lg,
.form-select-lg {
    padding: 14px 20px;
    font-size: 1rem;
}

/* ============================================
   BOTONES
   ============================================ */
.btn {
    padding: 10px 20px;
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

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

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

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

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

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

/* ============================================
   UTILIDADES
   ============================================ */
.text-primary {
    color: var(--primary) !important;
}

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

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

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--white);
        padding: 20px;
        border-radius: var(--radius-lg);
        margin-top: 16px;
        box-shadow: var(--shadow-lg);
    }
    
    .navbar-nav .nav-link {
        color: var(--dark);
        padding: 12px 0;
    }
    
    .btn-cta {
        width: 100%;
        margin-top: 16px;
    }
    
    .hero-slide {
        min-height: 600px;
    }
    
    .hero-cards {
        margin-top: -60px;
    }
    
    :root {
        --section-padding: 60px;
    }
}

@media (max-width: 767.98px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .counters-row {
        padding: 30px 20px;
    }
    
    .counter-number {
        font-size: 2.5rem;
    }
    
    .scholarship-form-card {
        padding: 30px 20px;
    }
    
    .whatsapp-float {
        bottom: 80px;
        right: 16px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* ============================================
   ANIMACIONES
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* Swiper customization */
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--white);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--secondary);
    opacity: 1;
}

.hero-slider .swiper-pagination {
    bottom: 120px;
}

@media (max-width: 768px) {
    .hero-slider .swiper-pagination {
        bottom: 100px;
    }
}


/* ============================================
   PANEL DE ADMINISTRACIÓN
   ============================================ */

/* Layout principal */
.wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--white);
}

.sidebar-logo:hover {
    color: var(--white);
}

.sidebar-logo img {
    height: 40px;
    width: auto;
}

.sidebar-logo-text {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

.sidebar-logo-text span {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 400;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-toggle {
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-toggle:hover {
    background: rgba(255,255,255,0.2);
}

.sidebar.collapsed .sidebar-toggle i {
    transform: rotate(180deg);
}

.sidebar.collapsed .sidebar-logo-text,
.sidebar.collapsed .menu-section,
.sidebar.collapsed .sidebar-nav .nav-link span,
.sidebar.collapsed .sidebar-profile {
    display: none;
}

/* Sidebar Menu */
.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.menu-section {
    padding: 16px 20px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.4);
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav .nav-item {
    margin: 2px 8px;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: rgba(255,255,255,0.7);
    border-radius: var(--radius);
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 400;
    text-decoration: none;
}

.sidebar-nav .nav-link:hover {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

.sidebar-nav .nav-link.active {
    color: var(--white);
    background: rgba(255,255,255,0.15);
    font-weight: 500;
}

.sidebar-nav .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: var(--secondary);
    border-radius: 0 3px 3px 0;
}

.sidebar-nav .nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

/* Sidebar Profile */
.sidebar-profile {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 0.85rem;
}

.profile-details {
    flex: 1;
    min-width: 0;
}

.profile-name {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-role {
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    background: var(--gray-100);
    transition: var(--transition);
}

.sidebar.collapsed ~ .main-content {
    margin-left: 70px;
}

/* Header del Admin */
.header {
    background: var(--white);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-title {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: var(--dark);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--gray-600);
    transition: var(--transition);
    position: relative;
    text-decoration: none;
}

.header-icon:hover {
    background: var(--gray-200);
    color: var(--primary);
}

.header-icon .badge {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 0.6rem;
    padding: 2px 5px;
    background: var(--danger);
    border-radius: 50px;
}

/* Content Wrapper */
.content-wrapper {
    padding: 24px;
}

/* Stat Cards */
.stat-card {
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

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

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Event Date */
.event-date {
    min-width: 50px;
}

.event-day {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.event-month {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
}

/* Mobile Toggle */
.mobile-toggle {
    color: var(--gray-700);
    font-size: 1.25rem;
    padding: 0;
}

/* Overlay para mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1035;
}

.sidebar-overlay.active {
    display: block;
}

/* Admin Breadcrumb */
.header .breadcrumb {
    justify-content: flex-start;
    margin: 0;
}

.header .breadcrumb-item a {
    color: var(--gray-600);
}

.header .breadcrumb-item.active {
    color: var(--dark);
}

/* Admin Tables */
.table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-600);
}

/* Admin Cards */
.card {
    border-radius: var(--radius-lg);
}

.card-header {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
}

/* ============================================
   ADMIN RESPONSIVE
   ============================================ */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar.collapsed ~ .main-content {
        margin-left: 0;
    }
    
    .content-wrapper {
        padding: 16px;
    }
}

@media (max-width: 767.98px) {
    .header {
        padding: 12px 16px;
    }
    
    .content-wrapper {
        padding: 12px;
    }
}
