/* Reset & Base Profesional */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ===== VARIABLES DE TEMA ===== */
:root {
    /* Modo Claro (por defecto) */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-hero: linear-gradient(135deg, #0056b3 0%, #007bff 50%, #0099ff 100%);
    --text-primary: #333;
    --text-secondary: #6c757d;
    --text-inverse: #ffffff;
    --navbar-bg: #ffffff;
    --card-bg: #ffffff;
    --shadow-sm: rgba(0, 0, 0, 0.1);
    --shadow-md: rgba(0, 0, 0, 0.15);
    --shadow-lg: rgba(0, 0, 0, 0.2);
    --border-color: #e9ecef;
    --accent-blue: #0056b3;
    --accent-blue-hover: #003d82;
    --modal-bg: rgba(0, 0, 0, 0.7);
    --input-bg: #f8f9fa;
    --intranet-bg: #f8f9fa;
}

[data-theme="dark"] {
    /* Modo Oscuro */
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-hero: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
    --text-primary: #eaeaea;
    --text-secondary: #a8a8a8;
    --text-inverse: #ffffff;
    --navbar-bg: #16213e;
    --card-bg: #0f3460;
    --shadow-sm: rgba(0, 0, 0, 0.4);
    --shadow-md: rgba(0, 0, 0, 0.5);
    --shadow-lg: rgba(0, 0, 0, 0.6);
    --border-color: #2d3748;
    --accent-blue: #4a90e2;
    --accent-blue-hover: #357abd;
    --modal-bg: rgba(0, 0, 0, 0.85);
    --input-bg: #1a1a2e;
    --intranet-bg: #0f3460;
}

body { 
    font-family: 'Roboto', sans-serif; 
    overflow-x: hidden; 
    background: var(--bg-secondary); 
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    cursor: pointer;
}

button {
    cursor: pointer;
    font-family: inherit;
}

/* Canvas partículas (sutil) */
#particles-canvas { 
    position: fixed; 
    top: 0; 
    left: 0; 
    z-index: -1; 
    opacity: 0.55;
}

/* Aumentar opacidad de partículas en modo oscuro para mejor visibilidad */
[data-theme="dark"] #particles-canvas {
    opacity: 0.75;
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #0056b3, #007bff, #28a745, #0056b3);
    background-size: 200% 100%;
    z-index: 10000;
    transition: width 0.2s ease;
    box-shadow: 0 2px 10px rgba(0,86,179,0.5);
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== NAV DROPDOWN ===== */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-dropdown-btn:hover {
    color: var(--accent-blue);
}

.nav-dropdown-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.nav-dropdown.open .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.8rem);
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow-md);
    list-style: none;
    padding: 0.5rem;
    min-width: 160px;
    z-index: 1100;
    animation: fadeInUp 0.2s ease;
}

.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1rem;
    color: var(--text-primary);
    border-radius: 7px;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-dropdown-menu li a:hover {
    background: rgba(0,86,179,0.08);
    color: var(--accent-blue);
}

.nav-dropdown-menu li a i {
    color: var(--accent-blue);
    font-size: 0.85rem;
    width: 16px;
}

/* ===== SKELETON LOADER ===== */
.skeleton-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.skeleton-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--border-color) 25%, var(--bg-secondary) 50%, var(--border-color) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    margin: 0 auto 1rem;
}

.skeleton-line {
    height: 14px;
    border-radius: 7px;
    background: linear-gradient(90deg, var(--border-color) 25%, var(--bg-secondary) 50%, var(--border-color) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    margin: 0.6rem auto;
    width: 80%;
}

.skeleton-line.short {
    width: 50%;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== EMPRESAS COLABORADORAS ===== */
.empresas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
}

.empresa-card {
    text-decoration: none;
    cursor: pointer;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.8rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.empresa-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px var(--shadow-md);
    border-color: var(--accent-blue);
}

.empresa-card i, .empresa-card > *:first-child {
    font-size: 2.2rem;
    color: var(--accent-blue);
    transition: transform 0.3s ease;
}

.empresa-card:hover i {
    transform: scale(1.15);
}

.empresa-card span {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

/* ===== BOTÓN WHATSAPP ===== */
.whatsapp-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    animation: whatsappPulse 2.5s ease-in-out infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.15) translateY(-3px);
    box-shadow: 0 10px 35px rgba(37, 211, 102, 0.7);
    background: #20ba5a;
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: #25D366;
    color: #fff;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 3px 10px rgba(37,211,102,0.4);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right: none;
    border-left-color: #25D366;
}

.whatsapp-btn:hover .whatsapp-tooltip {
    opacity: 1;
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 5px 25px rgba(37, 211, 102, 0.5); }
    50% { box-shadow: 0 5px 25px rgba(37, 211, 102, 0.5), 0 0 0 10px rgba(37, 211, 102, 0.12); }
}

/* ===== FAQ SECTION ===== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 20px var(--shadow-sm);
}

.faq-item.active {
    border-color: var(--accent-blue);
    box-shadow: 0 5px 20px rgba(0, 86, 179, 0.15);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.3rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    text-align: left;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--accent-blue);
}

.faq-item.active .faq-question {
    color: var(--accent-blue);
}

.faq-icon {
    color: var(--accent-blue);
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer p, .faq-answer ul {
    padding: 0 1.5rem 1.3rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.faq-answer ul {
    padding-left: 2.5rem;
    padding-bottom: 1.3rem;
}

.faq-answer ul li {
    margin-bottom: 0.3rem;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0056b3, #007bff);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,86,179,0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    font-size: 1.2rem;
    opacity: 0;
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(0,86,179,0.6);
    background: linear-gradient(135deg, #003d82, #0056b3);
}

.scroll-to-top:active {
    transform: translateY(-2px) scale(1.05);
}

/* Loading Spinner */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255,255,255,0.1);
    border-top: 4px solid #0056b3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--card-bg);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 40px var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    animation: slideIn 0.3s ease;
    border-left: 4px solid var(--accent-blue);
}

.toast.success { border-left-color: #28a745; }
.toast.error { border-left-color: #dc3545; }
.toast.warning { border-left-color: #ffc107; }

.toast-icon {
    font-size: 1.5rem;
}

.toast.success .toast-icon { color: #28a745; }
.toast.error .toast-icon { color: #dc3545; }
.toast.warning .toast-icon { color: #ffc107; }

.toast-message {
    flex: 1;
    color: var(--text-primary);
    font-weight: 500;
}

.toast-close {
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.toast-close:hover {
    color: var(--text-primary);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Navbar Profesional */
.navbar { 
    background: var(--navbar-bg); 
    box-shadow: 0 2px 10px var(--shadow-sm);
    position: fixed; 
    width: 100%; 
    z-index: 1000; 
    padding: 1rem 0; 
    transition: all 0.3s ease;
}
.navbar.scrolled {
    padding: 0.7rem 0;
    box-shadow: 0 4px 20px var(--shadow-md);
}
.nav-container { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 2rem; gap: 1rem; }
.logo { 
    font-family: 'Roboto', sans-serif; 
    font-size: 1.6rem; 
    font-weight: 700;
    color: var(--accent-blue); 
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}
.logo:hover {
    color: var(--accent-blue-hover);
    transform: scale(1.05);
}
.logo img {
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 5px rgba(0,86,179,0.3));
}
.logo:hover img {
    transform: rotate(15deg) scale(1.1);
}
.nav-menu { display: flex; list-style: none; gap: 1.2rem; align-items: center; }
.nav-menu a { 
    color: var(--text-primary); 
    font-weight: 500; 
    transition: all 0.3s; 
    position: relative;
    text-decoration: none;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    white-space: nowrap;
}
.nav-menu a::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 0; 
    height: 3px; 
    background: var(--accent-blue); 
    transition: width 0.3s ease;
}
.nav-menu a:hover::after { width: 100%; }
.nav-menu a:hover { 
    color: var(--accent-blue); 
}
.btn-login { 
    background: linear-gradient(135deg, #0056b3, #007bff); 
    padding: 0.85rem 2rem; 
    border-radius: 25px; 
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(0,86,179,0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 1.05rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-login:hover::before {
    width: 300px;
    height: 300px;
}

.btn-login::after {
    display: none;
}
.btn-login:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,86,179,0.5);
    background: linear-gradient(135deg, #003d82, #0056b3);
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-left: 1rem;
}

.theme-toggle i {
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    border-color: var(--accent-blue);
    background: var(--accent-blue);
    color: #fff;
    box-shadow: 0 5px 15px var(--shadow-md);
}

.theme-toggle:active {
    transform: scale(0.95) rotate(15deg);
}

/* Hero Profesional */
.hero { 
    height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: var(--bg-hero); 
    position: relative; 
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></svg>');
    opacity: 0.3;
}
.hero-content { text-align: center; animation: fadeInUp 1s ease; z-index: 1; max-width: 900px; padding: 0 2rem; }
.typing { 
    font-family: 'Roboto', sans-serif; 
    font-size: 3.5rem; 
    font-weight: 700;
    color: #ffffff;
    position: relative; 
    display: inline-block;
    line-height: 1.2;
}
.btn-hero { 
    padding: 1rem 2.5rem; 
    border-radius: 30px; 
    font-weight: 600; 
    margin: 0.5rem; 
    transition: all 0.3s ease; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); 
    border: none; 
    color: #fff; 
    cursor: pointer; 
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.primary { background: linear-gradient(135deg, #28a745, #20c997); }
.secondary { background: linear-gradient(135deg, #ffffff, #f8f9fa); color: #0056b3 !important; border: 2px solid #fff; }
.btn-hero:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.3); }
.btn-hero:active { transform: translateY(-1px); }

/* Pulse animation for primary button */
.btn-hero.primary {
    animation: subtlePulse 3s ease-in-out infinite;
}

@keyframes subtlePulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
    50% { box-shadow: 0 6px 25px rgba(40,167,69,0.4); }
}

/* Secciones */
.section { padding: 5rem 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-title { 
    font-family: 'Roboto', sans-serif; 
    font-size: 2.5rem; 
    font-weight: 700;
    text-align: center; 
    margin-bottom: 3rem; 
    position: relative;
    color: var(--accent-blue);
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), #007bff);
    border-radius: 2px;
}
.glitch { color: var(--accent-blue); }
.bg-dark { background: var(--bg-primary); }
.white { color: var(--accent-blue) !important; }

/* Cards 3D Profesionales */
.grid-oferta { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.card-flip { 
    perspective: 1000px; 
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-inner { 
    position: relative; 
    width: 100%; 
    height: 320px; 
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); 
    transform-style: preserve-3d; 
}
.card-flip:hover .card-inner { transform: rotateY(180deg); }
.card-front, .card-back { 
    position: absolute; 
    width: 100%; 
    height: 100%; 
    backface-visibility: hidden; 
    border-radius: 15px; 
    padding: 2rem; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    box-shadow: 0 10px 30px var(--shadow-md);
    background: var(--card-bg);
    transition: box-shadow 0.3s ease;
}
.card-flip:hover .card-front,
.card-flip:hover .card-back {
    box-shadow: 0 20px 60px rgba(0,86,179,0.4);
}
.card-front { 
    border: 1px solid var(--border-color);
}
.card-front h3 {
    color: var(--accent-blue);
    margin: 1rem 0;
    font-size: 1.3rem;
    font-weight: 600;
}
.card-front p {
    color: var(--text-secondary);
    text-align: center;
}
.card-back { 
    background: linear-gradient(135deg, #0056b3, #007bff); 
    transform: rotateY(180deg);
    color: #fff;
}
.card-back h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.card-flip:hover { 
    transform: translateY(-10px) scale(1.02); 
}
.icon { 
    font-size: 3.5rem; 
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}
.card-front:hover .icon {
    transform: scale(1.1) rotateY(360deg);
    filter: drop-shadow(0 0 15px rgba(0,86,179,0.5));
}

/* Efecto especial para iconos en dark mode */
[data-theme="dark"] .icon {
    filter: drop-shadow(0 0 10px rgba(74, 144, 226, 0.3));
}

.btn-more { 
    margin-top: 1rem; 
    color: #fff; 
    padding: 0.7rem 1.5rem; 
    border-radius: 25px; 
    background: rgba(255,255,255,0.2); 
    border: 2px solid #fff; 
    cursor: pointer; 
    transition: all 0.3s;
    font-weight: 500;
}
.btn-more:hover { 
    background: #fff; 
    color: #0056b3; 
    transform: scale(1.05); 
}

/* Dark mode - ajustar color del hover del botón More */
[data-theme="dark"] .btn-more:hover {
    color: var(--accent-blue);
}

/* Profesores Grid Profesional */
.lista-profesores { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.profe-item { 
    background: var(--card-bg); 
    padding: 2rem; 
    border-radius: 15px; 
    text-align: center; 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px var(--shadow-sm);
}
.profe-item:hover { 
    transform: translateY(-15px) scale(1.03); 
    box-shadow: 0 25px 50px rgba(0,86,179,0.3);
    border-color: var(--accent-blue);
}
.profe-item h4 {
    color: var(--accent-blue);
    margin: 1rem 0 0.5rem 0;
    font-weight: 600;
}
.profe-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.profe-item small {
    color: var(--text-secondary);
}

/* Modal Login Profesional */
.modal { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: var(--modal-bg); 
    display: none; 
    align-items: center; 
    justify-content: center; 
    z-index: 2000; 
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.login-box { 
    background: var(--card-bg); 
    padding: 3rem; 
    border-radius: 15px; 
    box-shadow: 0 20px 60px var(--shadow-lg); 
    max-width: 450px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hamburger:hover {
    transform: scale(1.1);
}

.hamburger i {
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-size: 1.5rem;
}

/* Input Effects */
input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,86,179,0.2) !important;
    border-color: var(--accent-blue) !important;
}

input {
    background: var(--input-bg) !important;
    color: var(--text-primary) !important;
    border: 2px solid var(--border-color) !important;
}

#intranet {
    background: var(--intranet-bg) !important;
}

/* Responsive */
@media (max-width: 768px) { 
    .typing { font-size: 2rem; }
    .grid-oferta { grid-template-columns: 1fr; }
    .lista-profesores { grid-template-columns: 1fr; }
    
    .hamburger {
        display: block !important;
        z-index: 1001;
    }
    
    .nav-menu { 
        flex-direction: column; 
        gap: 1.5rem;
        position: fixed;
        top: 70px;
        right: -100%;
        background: var(--navbar-bg);
        padding: 2rem;
        border-radius: 0 0 0 20px;
        transition: right 0.3s ease;
        box-shadow: -5px 5px 20px var(--shadow-md);
        width: 250px;
    }
    .nav-menu.active {
        right: 0;
    }
    .hero-content {
        padding: 0 1rem;
    }
    .btn-hero {
        display: block;
        margin: 0.5rem auto;
        width: 90%;
        max-width: 300px;
    }
    .section-title {
        font-size: 2rem;
    }
    .card-flip {
        min-height: 320px;
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-left: 0.5rem;
    }
    
    /* Contacto grid en móvil */
    #contacto > .container > div {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.3rem;
    }
    .logo img {
        height: 32px;
        width: 32px;
    }
    .typing {
        font-size: 1.6rem;
    }
    .hero {
        height: 80vh;
    }
    .section {
        padding: 3rem 0;
    }
    .section-title {
        font-size: 1.75rem;
    }
}

/* Animaciones profesionales */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}
.section { animation: fadeInUp 0.8s ease; }

/* Scroll suave */
html { 
    scroll-behavior: smooth;
    transition: background-color 0.3s ease;
}

/* Ajustes adicionales para modo oscuro */
[data-theme="dark"] .hero::before {
    opacity: 0.15;
}

[data-theme="dark"] .card-back {
    background: linear-gradient(135deg, var(--accent-blue), #16213e);
}

[data-theme="dark"] .section-title {
    text-shadow: 0 0 15px rgba(74, 144, 226, 0.3);
}

/* ===== ESTADÍSTICAS ===== */
.stats-section {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #007bff 100%);
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 1rem;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    display: inline-block;
}

.stat-suffix {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    display: inline-block;
    margin-left: 0.2rem;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 1rem;
    font-weight: 500;
}

.stats-section .section-title {
    color: #fff;
}

.stats-section .section-title::after {
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.5));
}

/* ===== TESTIMONIOS ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    align-items: stretch;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 8rem;
    color: var(--accent-blue);
    opacity: 0.1;
    font-family: Georgia, serif;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px var(--shadow-md);
    border-color: var(--accent-blue);
}

.testimonial-stars {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.3rem;
}

.testimonial-text {
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.author-avatar-cm {
    background: linear-gradient(135deg, #0056b3, #007bff);
    box-shadow: 0 4px 12px rgba(0,86,179,0.35);
}

.author-avatar-ag {
    background: linear-gradient(135deg, #20c997, #28a745);
    box-shadow: 0 4px 12px rgba(40,167,69,0.35);
}

.author-avatar-ms {
    background: linear-gradient(135deg, #e83e8c, #dc3545);
    box-shadow: 0 4px 12px rgba(220,53,69,0.35);
}

.author-info h4 {
    color: var(--accent-blue);
    margin: 0;
    font-size: 1.1rem;
}

.author-info p {
    color: var(--text-secondary);
    margin: 0.3rem 0 0 0;
    font-size: 0.9rem;
}

/* ===== MODAL POLÍTICA DE PRIVACIDAD ===== */
.privacy-modal-box {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 20px 60px var(--shadow-lg);
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.privacy-modal-box::-webkit-scrollbar {
    width: 6px;
}
.privacy-modal-box::-webkit-scrollbar-track {
    background: transparent;
}
.privacy-modal-box::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.privacy-content h3 {
    color: var(--accent-blue);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.6rem 0;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border-color);
}

.privacy-content h3:first-child {
    margin-top: 0;
}

.privacy-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.8rem;
}

.privacy-content ul {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
}

.privacy-content ul li {
    margin-bottom: 0.3rem;
}

.privacy-content a {
    color: var(--accent-blue);
    text-decoration: underline;
}

/* ===== FORMULARIO DE CONTACTO ===== */
.contact-form-box {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-sm);
}

.contact-form-title {
    color: var(--accent-blue);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.form-label i {
    color: var(--accent-blue);
    font-size: 0.85rem;
}

.form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    border: 2px solid var(--border-color) !important;
    background: var(--input-bg) !important;
    color: var(--text-primary) !important;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-blue) !important;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15) !important;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    padding-right: 2.5rem;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-check-group {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
}

.form-check-group input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    border: 2px solid var(--border-color) !important;
    accent-color: var(--accent-blue);
    cursor: pointer;
    flex-shrink: 0;
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1.4;
}

.form-submit-btn {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #0056b3, #007bff);
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
    transition: all 0.3s ease;
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.45);
    background: linear-gradient(135deg, #003d82, #0056b3);
}

.form-submit-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 0 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--accent-blue);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section h4 {
    color: var(--accent-blue);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.footer-social a:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #fff;
    transform: translateY(-5px);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--accent-blue);
    padding-left: 0.5rem;
}

.footer-links i {
    font-size: 0.7rem;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.footer-contact i {
    color: var(--accent-blue);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.footer-bottom {
    background: var(--card-bg);
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-secondary);
    margin: 0.5rem 0;
}

.footer-dev {
    font-size: 0.9rem;
}

.footer-dev i {
    color: #dc3545;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Badge especial para profesores destacados */
.professor-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    animation: badgePulse 2s ease-in-out infinite;
}

.professor-badge i {
    color: #000;
}

.professor-badge.ambassador {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.professor-badge.ambassador i {
    color: #fff;
}

@keyframes badgePulse {
    0%, 100% { 
        transform: scale(1);
    }
    50% { 
        transform: scale(1.05);
    }
}

.professor-badge.ambassador {
    animation: badgePulseAmbassador 2s ease-in-out infinite;
}

@keyframes badgePulseAmbassador {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 8px 20px rgba(102, 126, 234, 0.6);
    }
}

/* Ajuste de colores en dark mode para profesores */
[data-theme="dark"] .profe-item h4 {
    filter: brightness(1.3);
}

[data-theme="dark"] .profe-item p {
    color: var(--accent-blue) !important;
}

[data-theme="dark"] .profe-item small {
    color: var(--text-secondary) !important;
}

/* ===== SOBRE NOSOTROS ===== */

/* ===== COUNTDOWN BAR ===== */
.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}
.countdown-num {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    min-width: 2.2ch;
    text-align: center;
}
.countdown-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* ===== PROCESO DE MATRÍCULA ===== */
.matricula-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 2rem;
}
.matricula-timeline::before {
    content: '';
    position: absolute;
    left: 2.9rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent-blue), #007bff, #28a745, #ffc107, #e83e8c, #6610f2);
    border-radius: 3px;
}
.timeline-step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 3rem;
    position: relative;
}
.timeline-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
    border: 4px solid var(--bg-primary);
}
.timeline-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.8rem 2rem;
    flex: 1;
    box-shadow: 0 5px 20px var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}
.timeline-content:hover {
    box-shadow: 0 10px 35px var(--shadow-md);
}
.timeline-step-num {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-blue), #007bff);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.timeline-content h3 {
    color: var(--accent-blue);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}
.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.8;
}
.timeline-docs {
    list-style: none;
    padding: 0;
    margin-top: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.timeline-docs li {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}
.timeline-docs li i {
    color: #28a745;
    flex-shrink: 0;
}
.timeline-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.8rem;
}
.timeline-date-item {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    border-left: 3px solid var(--accent-blue);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.timeline-date-item strong {
    color: var(--accent-blue);
    font-size: 0.9rem;
}
.timeline-date-item span {
    color: var(--text-secondary);
    font-size: 0.85rem;
}
.timeline-prices {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.8rem;
}
.price-item {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 0.8rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
    min-width: 140px;
    text-align: center;
    border: 1px solid var(--border-color);
}
.price-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-blue);
    font-family: 'Orbitron', sans-serif;
}
.price-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
}
@media (max-width: 768px) {
    .matricula-timeline { padding-left: 0; }
    .matricula-timeline::before { display: none; }
    .timeline-step { flex-direction: column; gap: 1rem; }
    .timeline-dates { grid-template-columns: 1fr; }
}

/* ===== NOTICIAS Y EVENTOS ===== */
.noticias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.noticia-card {
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.noticia-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px var(--shadow-md);
    border-color: var(--accent-blue);
}
.noticia-img {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #fff;
    background-size: cover !important;
    background-position: center !important;
    position: relative;
}
.noticia-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.38);
}
.noticia-img i {
    position: relative;
    z-index: 1;
}

/* ===== ESTILOS DE IMPRESIÓN ===== */
@media print {
    /* Ocultar elementos de navegación y UI que no aportan en papel */
    .navbar, .whatsapp-btn, #chatbot-container, #cookie-banner,
    #scroll-to-top, #scroll-progress, #loading-overlay,
    .btn-hero, .countdown-bar, footer, .cta-section,
    .form-submit-btn, .gallery-section, #galeria { display: none !important; }

    /* Fondo blanco, texto negro */
    body, .section, .card-flip, .testimonial-card,
    .noticia-card, .empresa-card, .faq-item {
        background: #fff !important;
        color: #000 !important;
        box-shadow: none !important;
    }

    /* Secciones sin padding excesivo */
    .section { padding: 1rem 0 !important; }
    .container { max-width: 100% !important; padding: 0 1cm !important; }

    /* Títulos en negro */
    .section-title, h1, h2, h3, h4, h5 {
        color: #000 !important;
    }
    .section-title::after { display: none; }

    /* Hero compacto */
    .hero {
        height: auto !important;
        padding: 2rem 1rem !important;
        background: #0056b3 !important;
        color: #fff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Links: mostrar URL */
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.75rem;
        color: #555;
    }
    a[href^="#"]::after,
    a[href^="javascript"]::after { content: ""; }

    /* Evitar cortes en medio de tarjetas */
    .testimonial-card, .noticia-card, .timeline-step,
    .faq-item, .profe-item { page-break-inside: avoid; }

    /* Columnas en una sola */
    .stats-grid, .testimonials-grid, .noticias-grid,
    .lista-profesores { grid-template-columns: 1fr 1fr !important; }
}
.noticia-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.noticia-body h3 {
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0.3rem 0;
}
.noticia-body p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    flex: 1;
}
.noticia-tag {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: fit-content;
}
.tag-logro   { background: rgba(0,86,179,0.12); color: var(--accent-blue); }
.tag-convenio { background: rgba(40,167,69,0.12); color: #28a745; }
.tag-evento  { background: rgba(232,62,140,0.12); color: #e83e8c; }
.noticia-fecha {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.noticia-footer {
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
@media (max-width: 900px) {
    #sobre-nosotros .container > div:first-of-type {
        grid-template-columns: 1fr !important;
    }
    #sobre-nosotros .container > div:last-of-type {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    #sobre-nosotros [style*="grid-template-columns: 1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    #sobre-nosotros [style*="grid-template-columns: 1fr 1fr; gap:1.5rem"] {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* ===== CALL TO ACTION BANNER ===== */
.cta-section {
    padding: 0;
    margin: 4rem 0;
    overflow: hidden;
}

.cta-container {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #007bff 50%, #0099ff 100%);
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.cta-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 2.5rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.cta-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 1.2rem 3rem;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cta-btn.primary {
    background: #fff;
    color: var(--accent-blue);
}

.cta-btn.primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    background: #f0f0f0;
}

.cta-btn.secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.cta-btn.secondary:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.cta-features {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
}

.cta-feature i {
    color: #28a745;
    font-size: 1.2rem;
}

.cta-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.1;
}

.cta-circle {
    position: absolute;
    border-radius: 50%;
    background: #fff;
}

.cta-circle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
    animation: float 6s ease-in-out infinite;
}

.cta-circle:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
    animation: float 8s ease-in-out infinite reverse;
}

.cta-circle:nth-child(3) {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 10%;
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* ===== GALERÍA DE INSTALACIONES ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px var(--shadow-md);
}

.gallery-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    position: relative;
}

.gallery-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-image::before {
    background: rgba(0, 0, 0, 0.2);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    transform: translateY(0);
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    padding-bottom: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.3));
}

.gallery-overlay h3 {
    color: #fff;
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 0.95rem;
}

/* GIFs con efecto hover */

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    box-shadow: 0 -5px 30px var(--shadow-lg);
    z-index: 10000;
    animation: slideInUp 0.5s ease;
    border-top: 3px solid var(--accent-blue);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
}

.cookie-icon {
    font-size: 3rem;
    color: var(--accent-blue);
    animation: spin 20s linear infinite;
}

.cookie-text h3 {
    color: var(--accent-blue);
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.cookie-text p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.cookie-btn-reject {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: #fff;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.cookie-btn-reject:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.cookie-btn-secondary {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.cookie-btn-secondary:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    transform: translateY(-2px);
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== CHATBOT WIDGET ===== */
.chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 90px;
    z-index: 9998;
}

.chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), #007bff);
    color: #fff;
    border: none;
    box-shadow: 0 5px 25px rgba(0, 86, 179, 0.4);
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: pulse 2s infinite;
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 35px rgba(0, 86, 179, 0.6);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 5px 25px rgba(0, 86, 179, 0.4);
    }
    50% {
        box-shadow: 0 5px 25px rgba(0, 86, 179, 0.4), 0 0 0 10px rgba(0, 86, 179, 0.1);
    }
}

.chat-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border: 2px solid var(--bg-primary);
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 550px;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 10px 60px var(--shadow-lg);
    display: flex;
    flex-direction: column;
    animation: slideInUp 0.3s ease;
    border: 1px solid var(--border-color);
}

.chat-header {
    background: linear-gradient(135deg, var(--accent-blue), #007bff);
    padding: 1.2rem 1.5rem;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.chat-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.chat-status {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.9;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28a745;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.close-chat-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s;
    border-radius: 50%;
}

.close-chat-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--bg-secondary);
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.chat-message {
    display: flex;
    gap: 0.8rem;
    animation: fadeInUp 0.3s ease;
}

.chat-message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.message-avatar.bot {
    background: linear-gradient(135deg, var(--accent-blue), #007bff);
    color: #fff;
}

.message-avatar.user {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
}

.message-bubble {
    max-width: 75%;
    padding: 0.8rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.message-bubble.bot {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 5px;
}

.message-bubble.user {
    background: linear-gradient(135deg, var(--accent-blue), #007bff);
    color: #fff;
    border-bottom-right-radius: 5px;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.6;
    margin-top: 0.3rem;
}

.typing-indicator {
    display: flex;
    gap: 0.4rem;
    padding: 0.8rem 1rem;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-blue);
    animation: typingAnimation 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingAnimation {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-8px);
    }
}

.chat-quick-replies {
    padding: 0.8rem 1.5rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.quick-reply-btn {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--accent-blue);
    background: transparent;
    color: var(--accent-blue);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.quick-reply-btn:hover {
    background: var(--accent-blue);
    color: #fff;
    transform: translateY(-2px);
}

.chat-input-container {
    padding: 1rem 1.5rem;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.8rem;
    border-radius: 0 0 15px 15px;
}

.chat-input {
    flex: 1;
    padding: 0.8rem 1rem;
    border-radius: 25px;
    border: 1px solid var(--border-color);
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s;
}

.chat-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.send-message-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--accent-blue), #007bff);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-message-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.4);
}

.send-message-btn:active {
    transform: scale(0.95);
}

/* Chatbot Responsive */
@media (max-width: 768px) {
    .chatbot-container {
        right: 20px;
        bottom: 20px;
    }
    
    .chat-window {
        width: calc(100vw - 40px);
        right: -30px;
        height: 500px;
    }
}

@media (max-width: 480px) {
    .chat-window {
        bottom: 70px;
        height: calc(100vh - 150px);
        max-height: 600px;
    }
    
    .quick-reply-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Cookie Banner Responsive */
@media (max-width: 768px) {
    .cookie-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .cookie-icon {
        display: none;
    }
    
    .cookie-actions {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .cookie-actions {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
}

/* Responsive Estadísticas */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .stat-icon {
        font-size: 2.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-text {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .footer-section h3 {
        font-size: 1.2rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-features {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .floating-circle {
        display: none;
    }
}
