/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #e74c3c;
    --dark-color: #1a252f;
    --light-color: #ecf0f1;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(44, 62, 80, 0.12);
    --shadow-hover: 0 8px 25px rgba(44, 62, 80, 0.2);
    --gradient-primary: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --gradient-accent: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: #fafbfc;
    overflow-x: hidden;
    max-width: 100%;
}

html {
    scroll-behavior: auto;
    overflow-x: hidden;
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header y Navegación */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=1920&h=200&fit=crop') center/cover;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    animation: logoAppearDisappear 12s ease-in-out infinite;
    object-fit: contain;
    object-position: center;
}

.logo-image:hover {
    animation-play-state: paused;
}

@keyframes logoAppearDisappear {
    /* Aparece desde arriba */
    0% {
        opacity: 0;
        transform: translateY(-100px);
    }
    5% {
        opacity: 1;
        transform: translateY(0);
    }
    20% {
        opacity: 1;
        transform: translateY(0);
    }
    /* Se esconde por la izquierda */
    23% {
        opacity: 0;
        transform: translateX(-100px);
    }
    
    /* Aparece desde la derecha */
    26% {
        opacity: 0;
        transform: translateX(100px);
    }
    31% {
        opacity: 1;
        transform: translateX(0);
    }
    46% {
        opacity: 1;
        transform: translateX(0);
    }
    /* Se esconde por abajo */
    49% {
        opacity: 0;
        transform: translateY(100px);
    }
    
    /* Regresa desde arriba y se queda visible más tiempo */
    52% {
        opacity: 0;
        transform: translateY(-100px);
    }
    57% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.logo h1 {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.logo-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    position: relative;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--accent-color);
    transition: height 0.3s ease;
    border-radius: 8px 8px 0 0;
    z-index: -1;
}

/* Colores individuales para cada botón del menú */
.nav-btn-inicio::before {
    background: #3498db !important;
}

.nav-btn-inicio {
    color: var(--white);
    background: rgba(52, 152, 219, 0.3);
    backdrop-filter: blur(5px);
}

.nav-btn-sobre::before {
    background: #9b59b6 !important;
}

.nav-btn-sobre {
    color: var(--white);
    background: rgba(155, 89, 182, 0.3);
    backdrop-filter: blur(5px);
}

.nav-btn-proyectos::before {
    background: #e67e22 !important;
}

.nav-btn-proyectos {
    color: var(--white);
    background: rgba(230, 126, 34, 0.3);
    backdrop-filter: blur(5px);
}

.nav-btn-info::before {
    background: #1abc9c !important;
}

.nav-btn-info {
    color: var(--white);
    background: rgba(26, 188, 156, 0.3);
    backdrop-filter: blur(5px);
}

.nav-btn-contacto::before {
    background: #e74c3c !important;
}

.nav-btn-contacto {
    color: var(--white);
    background: rgba(231, 76, 60, 0.3);
    backdrop-filter: blur(5px);
}

.nav-menu a:hover::before {
    height: 100%;
}

.nav-menu a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.dropdown-toggle::after {
    content: '';
    display: inline-block;
    margin-left: 0.3rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.btn-registro {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: var(--white) !important;
    padding: 0.6rem 1.4rem;
    border-radius: 25px;
    position: relative;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
}

.btn-registro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #229954 0%, #27ae60 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-registro:hover::before {
    opacity: 1;
}

.btn-registro:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section con Slider */
.hero {
    margin-top: 0;
    position: relative;
    height: 600px;
    overflow: hidden;
    width: 100%;
    background: #000000;
    margin-bottom: 0;
    border-bottom: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: 25px;
    background: #ff0000;
    z-index: 10;
    animation: borderPulse 2s ease-in-out infinite;
}

#particles-canvas {
    display: none;
}

.hero-slider {
    height: 100%;
    position: relative;
    overflow: hidden;
    background: transparent;
    z-index: 2;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 3;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 4;
}

.slide:nth-child(1) .slide-content {
    background: var(--gradient-primary);
}

.slide:nth-child(2) .slide-content {
    background: linear-gradient(135deg, #34495e, #5d6d7e);
}

.slide:nth-child(3) .slide-content {
    background: linear-gradient(135deg, #1a252f, #2c3e50);
}

.slide-content {
    height: 100%;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.slide.active .slide-bg {
    animation: kenBurns 10s ease-out forwards;
}

.slide-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 1;
    pointer-events: none;
}

.slide-content .container {
    position: relative;
    z-index: 2;
}

.slide-subtitle {
    display: block;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.slide-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    background: var(--gradient-accent);
    color: var(--white);
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: var(--white);
    border: none;
    font-size: 3rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 100;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--white);
}

/* Contador Regresivo */
.countdown {
    background: #000000;
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
    margin-top: 0;
    border-top: none;
}

.countdown h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.time-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    min-width: 120px;
}

.time-box span {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: var(--accent-color);
}

.time-box p {
    margin-top: 0.5rem;
    font-size: 1rem;
}

/* Secciones Generales */
section {
    padding: 2rem 0;
    overflow-x: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 0.5rem;
    margin-left: -2rem;
    margin-right: -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.expositores .section-header h2,
.expositores .section-header p {
    color: var(--white);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* Sobre la Feria */
.sobre {
    background: #ffffff;
    padding: 5rem 0 2rem 0;
    position: relative;
}

.sobre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: 25px;
    background: #0066ff;
    z-index: 10;
    animation: borderPulse 2s ease-in-out infinite;
}

#sobre-nosotros .section-header,
.sobre .section-header {
    position: relative;
    overflow: hidden;
    padding: 2rem 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Slider Background */
.slider-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide:nth-child(1) {
    background-image: url('imagenes/boletinescalifiaciones/1.jpg');
}

.slide:nth-child(2) {
    background-image: url('imagenes/boletinescalifiaciones/2.jpg');
}

.slide:nth-child(3) {
    background-image: url('imagenes/boletinescalifiaciones/3.jpg');
}

/* Asegurar que las imágenes se vean en el slider de nosotros */
.slider-background .slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slider-background .slide:nth-child(1) {
    background-image: url('imagenes/boletinescalifiaciones/1.jpg') !important;
}

.slider-background .slide:nth-child(2) {
    background-image: url('imagenes/boletinescalifiaciones/2.jpg') !important;
}

.slider-background .slide:nth-child(3) {
    background-image: url('imagenes/boletinescalifiaciones/3.jpg') !important;
}

/* Header Content */
.header-content {
    position: relative;
    z-index: 1;
}

.sobre .section-header h2 {
    color: #ffffff !important;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.sobre .section-header p {
    color: #ffffff !important;
    font-size: 1.2rem;
}

.sobre-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.sobre-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
    margin-top: 0;
}

.sobre-text p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
    text-align: justify;
    text-align-last: center;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem 2.5rem;
    background: var(--light-color);
    border-radius: 10px;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-item h4 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    line-height: 1;
}

.stat-item p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.3;
}

.sobre-image .placeholder-image {
    background: var(--gradient-primary);
    height: 100%;
    min-height: 600px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
    font-size: 1.5rem;
}

/* Expositores */
.expositores {
    background: #000000;
    position: relative;
}

.expositores::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: 25px;
    background: #ff00ff;
    z-index: 10;
    animation: borderPulse 2s ease-in-out infinite;
}

.expositores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.expositor-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.placeholder-logo {
    width: 120px;
    height: 120px;
    background: var(--light-color);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-weight: bold;
}

.expositor-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.expositor-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.stand {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Programa */
.programa {
    background: #000000;
    position: relative;
}

.programa::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: 25px;
    background: #ffcc00;
    z-index: 10;
    animation: borderPulse 2s ease-in-out infinite;
}

.programa .section-header h2,
.programa .section-header p {
    color: var(--white);
}

.programa-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    background: var(--light-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.tab-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.day-schedule {
    display: none;
}

.day-schedule.active {
    display: block;
}

.schedule-item {
    display: flex;
    gap: 2rem;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
}

.schedule-item .time {
    font-weight: bold;
    color: var(--primary-color);
    min-width: 150px;
    font-size: 1.1rem;
}

.event-info h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.event-info p {
    color: var(--text-light);
}

/* Galería */
.galeria {
    background: #000000;
    position: relative;
}

.galeria::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: 25px;
    background: #ff3333;
    z-index: 10;
    animation: borderPulse 2s ease-in-out infinite;
}

/* Colores específicos para cada sección galería */
#bachilleratos::before {
    background: #00ff66;
}

#instalaciones::before {
    background: #9933ff;
}

#actividades::before {
    background: #ff6600;
}

.galeria .section-header {
    padding: 1rem 2rem !important;
    margin-bottom: 2rem !important;
}

.galeria .section-header h2,
.galeria .section-header p {
    color: var(--white);
}

.galeria-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.galeria-tab {
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.galeria-tab.active {
    background: var(--primary-color);
    color: var(--white);
}

.galeria-grid {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.galeria-grid.active {
    display: grid;
}

.galeria-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    cursor: pointer;
}

.galeria-item:hover {
    transform: scale(1.05);
}

.galeria-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.placeholder-media {
    background: var(--gradient-primary);
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
}

.galeria-item.video .placeholder-media {
    background: var(--gradient-accent);
}

/* Testimonios */
.testimonios {
    background: #000000;
    position: relative;
}

.testimonios::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: 25px;
    background: #00ffff;
    z-index: 10;
    animation: borderPulse 2s ease-in-out infinite;
}

.testimonios .section-header h2,
.testimonios .section-header p {
    color: var(--white);
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.testimonio-card {
    background: var(--light-color);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.placeholder-avatar {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.5rem;
}

.testimonio-text {
    font-size: 1rem;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    text-align: justify;
    text-justify: inter-word;
}

.testimonio-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.testimonio-card span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Responsive para testimonios */
@media (max-width: 968px) {
    .testimonios-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Patrocinadores */
.patrocinadores {
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
}

.patrocinadores-tier {
    margin-bottom: 3rem;
}

.patrocinadores-tier h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.patrocinadores-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.patrocinador-logo {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.placeholder-logo-large {
    width: 200px;
    height: 100px;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-weight: bold;
    border-radius: 5px;
}

.placeholder-logo-medium {
    width: 150px;
    height: 80px;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-weight: bold;
    border-radius: 5px;
}

/* Ubicación */
.ubicacion {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.ubicacion-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.ubicacion-info h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.info-item {
    margin-bottom: 1.5rem;
}

.info-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.info-item p {
    color: var(--text-light);
}

.placeholder-map {
    background: var(--gradient-primary);
    height: 400px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

/* Registro */
.registro {
    background: #000000;
    position: relative;
}

.registro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: 25px;
    background: #3399ff;
    z-index: 10;
    animation: borderPulse 2s ease-in-out infinite;
}

.registro .section-header h2,
.registro .section-header p {
    color: var(--white);
}

.registro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.registro-info,
.registro-form {
    display: flex;
    flex-direction: column;
}

.registro-info > *:last-child,
.registro-form > form {
    flex: 1;
}

.registro-info h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.entrada-tipo {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.entrada-tipo.destacada {
    border: 3px solid var(--accent-color);
    transform: scale(1.05);
}

.entrada-tipo h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.precio {
    font-size: 2rem;
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 1rem;
}

.entrada-tipo ul {
    list-style: none;
}

.entrada-tipo li {
    padding: 0.5rem 0;
    color: var(--text-light);
}

.entrada-tipo li:before {
    content: "✓ ";
    color: var(--accent-color);
    font-weight: bold;
}

.registro-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--light-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Contacto */
.contacto {
    background: #000000;
    position: relative;
}

.contacto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: 25px;
    background: #ff0099;
    z-index: 10;
    animation: borderPulse 2s ease-in-out infinite;
}

.contacto .section-header h2,
.contacto .section-header p {
    color: var(--white);
}

.contacto-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contacto-item {
    margin-bottom: 2rem;
}

.contacto-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contacto-item p {
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.3s;
}

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

.contacto-form {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 15px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: var(--white);
    padding: 3rem 0 0;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: 25px;
    background: #00cc66;
    z-index: 10;
    animation: borderPulse 2s ease-in-out infinite;
}

/* Footer Map Section */
.footer-map-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-map-full h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Footer Content */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3,
.footer-col h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.2), rgba(255, 68, 68, 0.1));
    border-left: 2px solid var(--accent-color);
    font-size: 0.9rem;
}

/* Colores únicos para cada enlace en todas las columnas */
.footer-col:nth-child(1) ul li:nth-child(1) a {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.25), rgba(255, 68, 68, 0.1));
    border-left-color: #ff4444;
}

.footer-col:nth-child(2) ul li:nth-child(1) a {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.25), rgba(76, 175, 80, 0.1));
    border-left-color: #4caf50;
}

.footer-col:nth-child(2) ul li:nth-child(2) a {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.25), rgba(33, 150, 243, 0.1));
    border-left-color: #2196f3;
}

.footer-col:nth-child(2) ul li:nth-child(3) a {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.25), rgba(255, 152, 0, 0.1));
    border-left-color: #ff9800;
}

.footer-col:nth-child(2) ul li:nth-child(4) a {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.25), rgba(156, 39, 176, 0.1));
    border-left-color: #9c27b0;
}

.footer-col:nth-child(2) ul li:nth-child(5) a {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.25), rgba(0, 188, 212, 0.1));
    border-left-color: #00bcd4;
}

.footer-col:nth-child(3) ul li:nth-child(1) a {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.25), rgba(233, 30, 99, 0.1));
    border-left-color: #e91e63;
}

.footer-col:nth-child(3) ul li:nth-child(2) a {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.25), rgba(255, 193, 7, 0.1));
    border-left-color: #ffc107;
}

.footer-col:nth-child(3) ul li:nth-child(3) a {
    background: linear-gradient(135deg, rgba(103, 58, 183, 0.25), rgba(103, 58, 183, 0.1));
    border-left-color: #673ab7;
}

.footer-col:nth-child(3) ul li:nth-child(4) a {
    background: linear-gradient(135deg, rgba(0, 150, 136, 0.25), rgba(0, 150, 136, 0.1));
    border-left-color: #009688;
}

.footer-col:nth-child(3) ul li:nth-child(5) a {
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.25), rgba(255, 87, 34, 0.1));
    border-left-color: #ff5722;
}

.footer-col ul li a:hover {
    color: #ffffff;
    transform: translateX(6px) scale(1.03);
    box-shadow: 0 3px 12px rgba(255, 68, 68, 0.3);
}

/* Social Media Icons */
.social-media {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: nowrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 68, 68, 0.4);
}

.social-icon.facebook:hover {
    background: #1877f2;
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 5px 15px rgba(225, 48, 108, 0.4);
}

.social-icon.twitter:hover {
    background: #1da1f2;
    box-shadow: 0 5px 15px rgba(29, 161, 242, 0.4);
}

.social-icon.youtube:hover {
    background: #ff0000;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
}

.social-icon.tiktok:hover {
    background: #000000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
}

.social-icon svg {
    width: 22px;
    height: 22px;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-links span {
    color: rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
        align-items: stretch;
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .slide-content h2 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .countdown-timer {
        flex-wrap: wrap;
    }

    /* Footer Responsive */
    .footer-map-section {
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .sobre-content,
    .ubicacion-content,
    .registro-content,
    .contacto-content {
        grid-template-columns: 1fr;
    }

    .expositores-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .slider-btn {
        padding: 0.5rem 1rem;
        font-size: 2rem;
    }

    .dropdown-menu {
        position: relative;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        box-shadow: none;
        display: none;
        margin-top: 0;
        padding-left: 1rem;
    }

    .dropdown-menu a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .dropdown-menu a:hover {
        padding-left: 1.2rem;
    }
}


/* Proyectos */
.proyectos {
    background: var(--white);
}

.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.proyecto-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

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

.proyecto-image {
    height: 250px;
    overflow: hidden;
}

.placeholder-proyecto {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s;
}

.proyecto-card:hover .placeholder-proyecto {
    transform: scale(1.1);
}

.proyecto-content {
    padding: 2rem;
}

.proyecto-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.proyecto-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.btn-proyecto {
    display: inline-block;
    background: var(--gradient-accent);
    color: var(--white);
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-proyecto:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}


/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 240px;
    box-shadow: 0 10px 40px rgba(44, 62, 80, 0.15);
    border-radius: 12px;
    padding: 0.8rem 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 0.5rem;
    border: 1px solid rgba(44, 62, 80, 0.1);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.8rem 1.3rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.dropdown-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: var(--accent-color);
    transition: width 0.3s ease;
    z-index: -1;
}

/* Colores para items del dropdown de Proyectos */
.nav-btn-proyectos + .dropdown-menu a::before {
    background: #e67e22;
}

/* Colores para items del dropdown de Información */
.nav-btn-info + .dropdown-menu a::before {
    background: #1abc9c;
}

.dropdown-menu a:hover::before {
    width: 100%;
}

.dropdown-menu a:hover {
    color: var(--white);
    padding-left: 1.8rem;
}


/* Placeholder del Banner */
.slide-placeholder {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    color: var(--white);
    min-width: 280px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 300px;
}

.placeholder-icon {
    font-size: 4.5rem;
    opacity: 0.7;
}

.slide-placeholder span {
    font-size: 1.1rem;
    font-weight: bold;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .slide-placeholder {
        display: none;
    }
}

@media (max-width: 1024px) {
    .slide-placeholder {
        right: 3%;
        min-width: 220px;
        min-height: 220px;
        padding: 2rem;
    }
    
    .placeholder-icon {
        font-size: 3.5rem;
    }
}




/* Estilos para imágenes locales */
.galeria-item {
    position: relative;
}

.galeria-item.video {
    position: relative;
}

.proyecto-image img,
.galeria-item img,
.sobre-image img,
.mapa img {
    display: block;
}

/* Asegurar que las imágenes de proyectos se vean bien */
.proyecto-image {
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

/* Asegurar que los logos de patrocinadores se vean bien */
.patrocinador-logo {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.patrocinador-logo img {
    max-width: 100%;
    max-height: 100%;
}


/* Fallback para imágenes que no cargan */
.proyecto-image img,
.galeria-item img,
.sobre-image img,
.mapa img,
.patrocinador-logo img {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 200px;
}

.proyecto-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.galeria-item {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    min-height: 250px;
}

.sobre-image {
    background: transparent;
    min-height: 400px;
}

.mapa {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    min-height: 400px;
}

.patrocinador-logo {
    background: #f8f9fa;
    min-height: 150px;
}

/* Ocultar alt text de imágenes rotas */
img[alt]::after {
    content: attr(alt);
    display: block;
    text-align: center;
    padding: 2rem;
    color: white;
    font-weight: bold;
}


/* Sección de Calificaciones */
.calificaciones {
    background: #000000;
    padding: 5rem 0;
}

.calificaciones .section-header {
    margin-bottom: 0.5rem !important;
    padding: 0.5rem 2rem !important;
}

.calificaciones .section-header h2 {
    color: var(--white);
    margin: 0.2rem 0 !important;
    font-size: 2rem !important;
}

.calificaciones .section-header p {
    color: var(--white);
    margin: 0.2rem 0 !important;
    font-size: 1rem !important;
}

/* Sistema de Autenticación */
.auth-container {
    max-width: 1000px;
    margin: 0 auto 3rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 1));
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 123, 255, 0.4), 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    z-index: 10;
    border: 2px solid rgba(0, 123, 255, 0.3);
}

.auth-tabs {
    display: flex;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.6), rgba(0, 86, 210, 0.6));
    position: relative;
    z-index: 20;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
    box-shadow: 0 -2px 10px rgba(0, 123, 255, 0.3);
}


/* Bot�n de Inicio Flotante (solo en calificaciones) */
.btn-inicio-calificaciones {
    position: fixed;
    top: 20px;
    right: 20px;
    display: none; /* Oculto por defecto, JavaScript lo mostrar� si no hay sesi�n */
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
    z-index: 9999;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.btn-inicio-calificaciones:hover {
    background: linear-gradient(135deg, #42A5F5 0%, #2196F3 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(33, 150, 243, 0.6);
}

.btn-inicio-calificaciones svg {
    width: 28px;
    height: 28px;
}

.auth-tab-btn {
    flex: 1;
    padding: 0.8rem 0.3rem;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    font-size: 0.85rem;
    font-weight: bold;
    color: #e0f2fe;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
    z-index: 30;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    border-radius: 10px 10px 0 0;
    margin: 0 2px;
}

.auth-tab-btn:first-child {
    margin-left: 0;
}

.auth-tab-btn:last-child {
    border-right: none;
    margin-right: 0;
}

/* Bordes de colores entre pestañas */
.auth-tab-btn[data-tab="login"] {
    border-right: 3px solid #2196F3;
    border-top: 4px solid #2196F3;
}

.auth-tab-btn[data-tab="registro"] {
    border-right: 3px solid #4CAF50;
    border-top: 4px solid #4CAF50;
}

.auth-tab-btn[data-tab="docentes"] {
    border-right: 3px solid #9C27B0;
    border-top: 4px solid #9C27B0;
}

.auth-tab-btn[data-tab="admin"] {
    border-right: 3px solid #F44336;
    border-top: 4px solid #F44336;
}

.auth-tab-btn[data-tab="coordinacion-primer"] {
    border-right: 3px solid #FF9800;
    border-top: 4px solid #FF9800;
}

.auth-tab-btn[data-tab="coordinacion-segundo"] {
    border-right: 3px solid #FFC107;
    border-top: 4px solid #FFC107;
}

.auth-tab-btn[data-tab="psicologia-primer"] {
    border-right: 3px solid #00BCD4;
    border-top: 4px solid #00BCD4;
}

.auth-tab-btn[data-tab="psicologia-segundo"] {
    border-right: none;
    border-top: 4px solid #3F51B5;
}

.auth-tab-btn:hover {
    background: rgba(0, 123, 255, 0.5);
    color: #ffffff;
    transform: translateY(-2px);
}

.auth-tab-btn.active {
    color: #007bff;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 1));
    border-bottom-color: #007bff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.auth-form-container {
    display: none;
    padding: 2.5rem;
    animation: fadeIn 0.5s ease;
    background: rgba(20, 20, 30, 0.95);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-form-container.active {
    display: block;
}

.auth-form-container h3 {
    color: #00d4ff;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.auth-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.auth-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #00d4ff;
    font-weight: 600;
}

.auth-form .form-group input,
.auth-form .form-group select {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    background: rgba(0, 0, 0, 0.4);
    color: #ffffff;
}

.auth-form .form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.auth-form .form-group input:focus,
.auth-form .form-group select:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    background: rgba(0, 0, 0, 0.6);
}

.auth-form .form-group small {
    display: block;
    margin-top: 0.3rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.btn-full {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

/* Botones en formularios de autenticación - Tema Gradiente */
.auth-form .btn-primary {
    background: linear-gradient(135deg, #00d4ff, #0099ff) !important;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: #ffffff !important;
    border: none;
}

.auth-form .btn-primary:hover {
    background: linear-gradient(135deg, #00e6ff, #00aaff) !important;
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.6);
    transform: translateY(-3px);
    color: #ffffff !important;
}

.auth-help {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-light);
}

.auth-help a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.auth-help a:hover {
    text-decoration: underline;
}

/* ============================================
   TABS DE PREFERENCIAS - DISEÑO MEJORADO
   ============================================ */

.preferencia-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.pref-tab {
    flex: 1;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(0, 86, 210, 0.05));
    border: 2px solid rgba(0, 123, 255, 0.3);
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #007bff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pref-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.pref-tab:hover::before {
    left: 100%;
}

.pref-tab:hover {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.2), rgba(0, 86, 210, 0.15));
    border-color: rgba(0, 123, 255, 0.6);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.pref-tab.active {
    background: linear-gradient(135deg, #007bff, #0056d2);
    color: #ffffff;
    border-color: #0056d2;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.5), 
                0 0 0 3px rgba(0, 123, 255, 0.1);
    transform: translateY(-2px);
}

.pref-tab.active::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    animation: checkmark 0.3s ease;
}

@keyframes checkmark {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(0deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* ============================================
   OPCIONES DE PREFERENCIAS - DISEÑO MEJORADO
   ============================================ */

.preferencia-opciones {
    display: none;
    animation: slideDown 0.4s ease;
}

.preferencia-opciones.active {
    display: block;
}

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

.preferencia-opciones label {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    color: #00d4ff;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 212, 255, 0.3);
}

.preferencia-opciones select {
    width: 100%;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    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='%2300d4ff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.preferencia-opciones select:hover {
    border-color: rgba(0, 212, 255, 0.6);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.preferencia-opciones select:focus {
    outline: none;
    border-color: #00d4ff;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.2),
                0 6px 20px rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}

.preferencia-opciones select option {
    background: #1a1a2e;
    color: #ffffff;
    padding: 0.75rem;
    font-weight: 600;
}

.preferencia-opciones select option:hover {
    background: #007bff;
}

/* Responsive para tablets y móviles */
@media (max-width: 768px) {
    .preferencia-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .pref-tab {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .preferencia-opciones select {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
}

/* Código Generado */
.codigo-generado-container {
    display: none;
    padding: 2.5rem;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.codigo-generado-container.active {
    display: block;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: var(--white);
    font-size: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.codigo-generado-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.codigo-display {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border: 2px dashed var(--primary-color);
}

.codigo-display span {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
}

.btn-copiar {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.btn-copiar:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.codigo-info {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    text-align: left;
    border: 1px solid var(--light-color);
}

.codigo-info p {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.codigo-info strong {
    color: var(--primary-color);
}

.email-confirmacion {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: var(--white);
    padding: 1rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    font-weight: 500;
    animation: slideIn 0.5s ease;
}

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

.codigo-warning {
    background: linear-gradient(135deg, #f39c12, #f1c40f);
    color: var(--white);
    padding: 1rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    font-weight: 500;
}

/* Usuario Info */
.usuario-info {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.usuario-datos h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.usuario-datos p {
    color: var(--text-light);
    font-size: 0.95rem;
}

#btn-cerrar-sesion {
    padding: 0.7rem 1.5rem;
}

.calificaciones-content {
    animation: fadeIn 0.5s ease;
}

/* Responsive Auth */
@media (max-width: 768px) {
    .auth-container {
        margin: 0 1rem 3rem;
    }
    
    .auth-form-container {
        padding: 1.5rem;
    }
    
    .auth-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .preferencia-tabs {
        flex-direction: column;
    }
    
    .codigo-display {
        flex-direction: column;
    }
    
    .codigo-display span {
        font-size: 1.3rem;
    }
    
    .usuario-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}


.calificaciones-filtros {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    box-shadow: var(--shadow);
}

.filtro-group {
    flex: 1;
    min-width: 200px;
}

.filtro-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.9rem;
}

.filtro-group select,
.filtro-group input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--light-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.filtro-group select:focus,
.filtro-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

#btn-buscar-calificaciones {
    padding: 0.8rem 2rem;
    margin-top: 0;
}

.btn-secondary {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

.calificaciones-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.cal-tab-btn {
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s;
    min-width: 100px;
}

/* Colores únicos para cada grado */
.cal-tab-btn[data-grado="1ro"] {
    background: #e8f4f8;
    border-color: #3498db;
    color: #2c3e50;
}

.cal-tab-btn[data-grado="2do"] {
    background: #f0e8f8;
    border-color: #9b59b6;
    color: #2c3e50;
}

.cal-tab-btn[data-grado="3ro"] {
    background: #f8f0e8;
    border-color: #e67e22;
    color: #2c3e50;
}

.cal-tab-btn[data-grado="4to"] {
    background: #e8f8f0;
    border-color: #1abc9c;
    color: #2c3e50;
}

.cal-tab-btn[data-grado="5to"] {
    background: #f8e8e8;
    border-color: #e74c3c;
    color: #2c3e50;
}

.cal-tab-btn[data-grado="6to"] {
    background: #f8f8e8;
    border-color: #f39c12;
    color: #2c3e50;
}

.cal-tab-btn.active {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.cal-tab-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.calificaciones-contenedor {
    position: relative;
    min-height: 400px;
}

.calificaciones-grado {
    display: none;
    animation: fadeIn 0.5s ease;
}

.calificaciones-grado.active {
    display: block;
}

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

@keyframes borderPulse {
    0%, 100% {
        height: 25px;
    }
    10% {
        height: 20px;
    }
    20% {
        height: 25px;
    }
    30% {
        height: 20px;
    }
    40%, 100% {
        height: 25px;
    }
}

@keyframes kenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    50% {
        transform: scale(1.08) translate(-1.5%, -1.5%);
    }
    100% {
        transform: scale(1) translate(0, 0);
    }
}

.calificaciones-grado h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
}

.mensaje-info {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: var(--white);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.tabla-responsive {
    overflow-x: hidden;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.tabla-calificaciones {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
}

.tabla-calificaciones thead {
    background: var(--gradient-primary);
    color: var(--white);
}

.tabla-calificaciones th {
    padding: 1.2rem 1rem;
    text-align: left;
    font-weight: bold;
    font-size: 0.95rem;
    white-space: nowrap;
}

.tabla-calificaciones tbody tr {
    border-bottom: 1px solid var(--light-color);
    transition: background 0.3s;
}

/* Colores alternados para filas (materias) */
.tabla-calificaciones tbody tr:nth-child(odd) {
    background: #f8f9fa;
}

.tabla-calificaciones tbody tr:nth-child(even) {
    background: #e8f4f8;
}

.tabla-calificaciones tbody tr:hover {
    background: rgba(52, 152, 219, 0.15) !important;
}

.tabla-calificaciones td {
    padding: 1rem;
    font-size: 0.95rem;
}

.tabla-calificaciones td:first-child {
    font-weight: bold;
    color: var(--primary-color);
}

.tabla-calificaciones td:nth-child(2) {
    font-weight: 500;
    min-width: 180px;
}

/* Colores de notas */
.nota-alta {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: var(--white);
    font-weight: bold;
    text-align: center;
    padding: 0.5rem;
    border-radius: 5px;
}

.nota-media {
    background: linear-gradient(135deg, #f39c12, #f1c40f);
    color: var(--white);
    font-weight: bold;
    text-align: center;
    padding: 0.5rem;
    border-radius: 5px;
}

.nota-baja {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: var(--white);
    font-weight: bold;
    text-align: center;
    padding: 0.5rem;
    border-radius: 5px;
}

.nota-reprobado {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: var(--white);
    font-weight: bold;
    text-align: center;
    padding: 0.5rem;
    border-radius: 5px;
}

.promedio {
    background: var(--primary-color);
    color: var(--white);
    font-weight: bold;
    font-size: 1.1rem;
    text-align: center;
    padding: 0.5rem;
    border-radius: 5px;
}

.estado-aprobado {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
    display: inline-block;
}

.estado-reprobado {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
    display: inline-block;
}

.estadisticas-grado {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-box {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-box h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.stat-box p {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-color);
}

.text-success {
    color: #27ae60 !important;
}

.text-danger {
    color: #e74c3c !important;
}

.calificaciones-nota {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
    box-shadow: var(--shadow);
}

.calificaciones-nota p {
    color: var(--text-light);
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

.calificaciones-nota strong {
    color: var(--primary-color);
}

/* Responsive para calificaciones */
@media (max-width: 768px) {
    .calificaciones-filtros {
        flex-direction: column;
    }
    
    .filtro-group {
        width: 100%;
    }
    
    .calificaciones-tabs {
        gap: 0.5rem;
    }
    
    .cal-tab-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        min-width: 80px;
    }
    
    .tabla-responsive {
        border-radius: 10px;
    }
    
    .tabla-calificaciones th,
    .tabla-calificaciones td {
        padding: 0.8rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .estadisticas-grado {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Notificación de Email */
.notificacion-email {
    position: fixed;
    top: 100px;
    right: -400px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: var(--white);
    padding: 1.2rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transition: right 0.3s ease;
    min-width: 350px;
    max-width: 400px;
}

.notificacion-email.show {
    right: 20px;
}

.notificacion-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notificacion-icon {
    font-size: 1.8rem;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notificacion-texto {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .notificacion-email {
        min-width: 300px;
        max-width: calc(100% - 40px);
        right: -100%;
    }
    
    .notificacion-email.show {
        right: 20px;
    }
}


/* Mensaje de Período */
.mensaje-periodo {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: var(--white);
    padding: 1.2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    animation: slideDown 0.5s ease;
}

.mensaje-periodo-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mensaje-periodo-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.mensaje-periodo-texto {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
}

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

/* Mensaje de No Resultados */
.mensaje-no-resultados {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    margin-top: 2rem;
    box-shadow: var(--shadow);
    animation: fadeIn 0.5s ease;
}

.mensaje-no-resultados-content {
    max-width: 500px;
    margin: 0 auto;
}

.mensaje-no-resultados .mensaje-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.mensaje-no-resultados h4 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.mensaje-no-resultados p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.btn-limpiar-busqueda {
    padding: 0.8rem 2rem;
    font-size: 1rem;
}

/* Mensaje de Período No Disponible */
.mensaje-periodo.no-disponible {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

@media (max-width: 768px) {
    .mensaje-periodo-content {
        flex-direction: column;
        text-align: center;
    }
    
    .mensaje-no-resultados {
        padding: 2rem 1rem;
    }
    
    .mensaje-no-resultados .mensaje-icon {
        font-size: 3rem;
    }
}


/* Panel de Docentes */
.panel-docentes {
    animation: fadeIn 0.5s ease;
}

.docente-info {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.docente-datos h4 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.docente-datos p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.docente-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.docente-tab-btn {
    flex: 1;
    min-width: 200px;
    padding: 1rem 1.5rem;
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.docente-tab-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.docente-tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.docente-content {
    display: none;
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.docente-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.docente-content h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.form-calificaciones .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-calificaciones h4 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    font-size: 1.3rem;
}

.materias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.materias-grid .form-group input {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.promedio-calculado {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 2rem;
}

.promedio-calculado h4 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--white);
}

#promedio-display {
    font-size: 2rem;
    font-weight: bold;
}

.auth-help-docente {
    text-align: center;
    margin-top: 1.5rem;
    color: #e67e22;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Responsive Panel Docentes */
@media (max-width: 768px) {
    .docente-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .docente-tabs {
        flex-direction: column;
    }
    
    .docente-tab-btn {
        min-width: 100%;
    }
    
    .materias-grid {
        grid-template-columns: 1fr;
    }
    
    .docente-content {
        padding: 1.5rem;
    }
}


/* Mensaje de Privacidad */
.mensaje-privacidad {
    background: #1e3a8a;
    color: var(--white);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    animation: slideDown 0.5s ease;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.mensaje-privacidad-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.mensaje-privacidad-icon {
    font-size: 1.5rem;
}

.mensaje-privacidad-texto {
    font-size: 1rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .mensaje-privacidad-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Mensaje Sin Boletín */
.mensaje-sin-boletin {
    background: #1e3a8a;
    color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem auto;
    max-width: 600px;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
    text-align: center;
    animation: slideDown 0.5s ease;
}

.mensaje-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.mensaje-icon {
    font-size: 3rem;
}

.mensaje-info h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.mensaje-info p {
    margin: 0.5rem 0;
    font-size: 1rem;
    opacity: 0.95;
}

/* ============================================
   FILOSOFÍA, VISIÓN Y MISIÓN
   ============================================ */

.filosofia-section {
    padding: 40px 0 20px 0;
    background: #000000;
    position: relative;
}

.filosofia-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: 25px;
    background: #8a2be2;
    z-index: 10;
    animation: borderPulse 2s ease-in-out infinite;
}

.filosofia-section .container {
    position: relative;
    z-index: 2;
}

.filosofia-section .section-header h2 {
    color: white;
}

.bible-verse {
    font-style: italic;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 1rem;
}

.filosofia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.filosofia-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-align: center;
}

.filosofia-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.filosofia-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.filosofia-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: white;
    text-align: center;
}

.filosofia-card p {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    text-align: justify;
    text-align-last: center;
}

.valores-section {
    margin-top: 1rem;
}

.valores-section h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: white;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.valor-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.valor-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.valor-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.valor-item h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: white;
    text-align: center;
}

.valor-item p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    text-align: center;
}

/* Responsive para Filosofía */
@media (max-width: 768px) {
    .filosofia-grid {
        grid-template-columns: 1fr;
    }
    
    .valores-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================
   ANIMACIONES DE SCROLL
   ============================================ */

/* Elementos ocultos inicialmente */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Animación desde la izquierda */
.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s ease-out;
}

.scroll-reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

/* Animación desde la derecha */
.scroll-reveal-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s ease-out;
}

.scroll-reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Animación de zoom */
.scroll-reveal-zoom {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s ease-out;
}

.scroll-reveal-zoom.active {
    opacity: 1;
    transform: scale(1);
}

/* Animación de fade simple */
.scroll-reveal-fade {
    opacity: 0;
    transition: all 1s ease-out;
}

.scroll-reveal-fade.active {
    opacity: 1;
}

/* Delay para animaciones en cascada */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

.delay-6 {
    transition-delay: 0.6s;
}

/* Animación para cards */
.expositor-card,
.filosofia-card,
.valor-item,
.proyecto-card,
.schedule-item {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.4s ease-out;
}

.galeria-item {
    opacity: 0;
    transform: scale(0.8) translateY(30px);
    transition: all 0.5s ease-out;
}

.stat-item,
.time-box,
.sobre-text,
.sobre-image {
    opacity: 1;
    transform: translateY(0);
}

.expositor-card.active,
.filosofia-card.active,
.valor-item.active,
.stat-item.active,
.time-box.active,
.proyecto-card.active,
.schedule-item.active,
.sobre-text.active,
.sobre-image.active {
    opacity: 1;
    transform: translateY(0);
}

.galeria-item.active {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Animación para títulos de sección */
.section-header {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease-out;
}

.section-header.active {
    opacity: 1;
    transform: translateY(0);
}


/* Galería del Politécnico en Sobre Nosotros */
.sobre-image {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.galeria-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.galeria-mini:first-child {
    margin-bottom: 1.5rem;
}

.galeria-mini:last-child {
    margin-top: 1.5rem;
}

.imagen-mini {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 140px;
}

.imagen-mini:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.imagen-mini:hover img {
    transform: scale(1.1);
}

.sobre-image > img {
    flex: 1;
    min-height: 350px;
    max-height: 400px;
    object-fit: cover !important;
    border-radius: 15px !important;
}

/* Responsive para galería */
@media (max-width: 768px) {
    .galeria-mini {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .imagen-mini {
        height: 180px;
    }
    
    .sobre-image > img {
        min-height: 300px;
    }
}


/* Responsive para galería mosaico */
@media (max-width: 768px) {
    .galeria-grid {
        grid-template-columns: 1fr !important;
    }
}


/* Pasos de Admisión */
.pasos-admision {
    display: none;
}

.registro-info h3 {
    color: #ff4444;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.entrada-tipo {
    background: rgba(20, 20, 30, 0.8);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 68, 68, 0.2);
    height: 100%;
}

.entrada-tipo:last-child {
    margin-bottom: 0;
}

.entrada-tipo h4 {
    color: #ff4444;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.entrada-tipo ul {
    list-style: none;
    padding-left: 0;
}

.entrada-tipo li {
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    padding-left: 1.5rem;
}

.entrada-tipo li:before {
    content: "✓";
    color: #ff4444;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.entrada-tipo.destacada {
    background: rgba(255, 68, 68, 0.1);
    border: 2px solid #ff4444;
}

.precio {
    font-size: 2rem;
    color: #ff4444;
    font-weight: bold;
    margin: 1rem 0;
}

.registro-form {
    background: rgba(20, 20, 30, 0.8);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 68, 68, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.registro-form form {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.registro-form form button[type="submit"] {
    margin-top: auto;
}

.registro-form h3 {
    color: #ff4444;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.registro-form .form-group label {
    color: rgba(255, 255, 255, 0.9);
}

.registro-form input,
.registro-form select,
.registro-form textarea {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: white;
}

.registro-form input:focus,
.registro-form select:focus,
.registro-form textarea:focus {
    border-color: #ff4444;
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.1);
}

/* Responsive para pasos */
@media (max-width: 768px) {
    .pasos-admision {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}


/* Contacto Directo en Admisiones */
.contacto-directo {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 68, 68, 0.3);
}

.contacto-directo h4 {
    color: #ff4444;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.contacto-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.contacto-item-admision {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(255, 68, 68, 0.2);
    transition: all 0.3s ease;
}

.contacto-item-admision:hover {
    background: rgba(255, 68, 68, 0.1);
    border-color: #ff4444;
    transform: translateY(-3px);
}

.contacto-item-admision .icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contacto-item-admision strong {
    display: block;
    color: #ff4444;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.contacto-item-admision p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .contacto-items {
        grid-template-columns: 1fr;
    }
}


/* Sección del Director */
.director-section {
    padding: 2rem 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.director-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.director-image {
    position: relative;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(255, 68, 68, 0.3);
    margin: 0 auto;
}

.director-image img {
    transition: transform 0.5s ease;
}

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

.director-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.director-info {
    text-align: center;
}

.director-info h3 {
    color: #ff4444;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.director-title {
    color: #999;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.director-bio {
    margin-bottom: 2rem;
}

.director-bio p {
    color: #cccccc;
    line-height: 1.8;
    margin-bottom: 1rem;
    text-align: justify;
    text-justify: inter-word;
}

.director-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: rgba(255, 68, 68, 0.05);
    border-radius: 10px;
    border-left: 4px solid #ff4444;
}

.director-stat {
    text-align: center;
}

.director-stat h4 {
    color: #ff4444;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.director-stat p {
    color: #ffffff;
    font-size: 1.1rem;
}

.director-quote {
    position: relative;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border-left: 4px solid #ff4444;
}

.director-quote svg {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.3;
}

.director-quote p {
    color: #ffffff;
    font-style: italic;
    line-height: 1.8;
    text-align: center;
    padding-top: 30px;
}

/* Responsive */
@media (max-width: 968px) {
    .director-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .director-image {
        height: 400px;
    }
    
    .director-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .director-info h3 {
        font-size: 2rem;
    }
    
    .director-bio p {
        text-align: justify;
    }
}


/* ============================================
   PILLS DE SECCIÓN - DISEÑO MODERNO
   ============================================ */

.seccion-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.seccion-pill {
    position: relative;
}

.seccion-pill input[type="checkbox"] {
    display: none;
}

.seccion-pill label {
    display: inline-block;
    padding: 10px 18px;
    background: #f0f0f0;
    color: #333;
    border: 2px solid #ddd;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    user-select: none;
    white-space: nowrap;
}

.seccion-pill label:hover {
    background: #e8e8e8;
    border-color: #007bff;
    color: #007bff;
}

.seccion-pill input[type="checkbox"]:checked + label {
    background: #007bff;
    color: #ffffff;
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.seccion-pill input[type="checkbox"]:focus + label {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}


/* ============================================
   PILLS DE SECCIÓN PARA DOCENTES
   ============================================ */

.secciones-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.seccion-pill-docente {
    position: relative;
}

.seccion-pill-docente input[type="checkbox"] {
    display: none;
}

.seccion-pill-docente label {
    display: inline-block;
    padding: 8px 16px;
    background: #f0f0f0;
    color: #333;
    border: 2px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    user-select: none;
    white-space: nowrap;
}

.seccion-pill-docente label:hover {
    background: #e8e8e8;
    border-color: #007bff;
    color: #007bff;
}

.seccion-pill-docente input[type="checkbox"]:checked + label {
    background: #007bff;
    color: #ffffff;
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.seccion-pill-docente input[type="checkbox"]:focus + label {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

/* ============================================
   PILLS DE FILTRO (ADMIN)
   ============================================ */

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.filter-pill {
    position: relative;
}

.filter-pill input[type="checkbox"] {
    display: none;
}

.filter-pill label {
    display: inline-block;
    padding: 10px 18px;
    background: #f0f0f0;
    color: #333;
    border: 2px solid #ddd;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    user-select: none;
    white-space: nowrap;
}

.filter-pill label:hover {
    background: #e8e8e8;
    border-color: #007bff;
    color: #007bff;
}

.filter-pill input[type="checkbox"]:checked + label {
    background: #007bff;
    color: #ffffff;
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.filter-pill input[type="checkbox"]:focus + label {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

/* ============================================
   PILLS DE SECCIÓN PARA MODAL
   ============================================ */

.seccion-pill input[type="radio"] {
    display: none;
}

.seccion-pill input[type="radio"] + label {
    display: inline-block;
    padding: 10px 18px;
    background: #f0f0f0;
    color: #333;
    border: 2px solid #ddd;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    user-select: none;
    white-space: nowrap;
}

.seccion-pill input[type="radio"] + label:hover {
    background: #e8e8e8;
    border-color: #007bff;
    color: #007bff;
}

.seccion-pill input[type="radio"]:checked + label {
    background: #007bff;
    color: #ffffff;
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.seccion-pill input[type="radio"]:focus + label {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

/* ============================================
   PILLS DE SECCIÓN PARA BOLETÍN
   ============================================ */

.seccion-display .seccion-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.seccion-display .seccion-pill input[type="radio"] {
    display: none;
}

.seccion-display .seccion-pill label {
    display: inline-block;
    padding: 10px 18px;
    background: #f0f0f0;
    color: #333;
    border: 2px solid #ddd;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    user-select: none;
    white-space: nowrap;
}

.seccion-display .seccion-pill label:hover {
    background: #e8e8e8;
    border-color: #007bff;
    color: #007bff;
}

.seccion-display .seccion-pill input[type="radio"]:checked + label {
    background: #007bff;
    color: #ffffff;
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.seccion-display .seccion-pill input[type="radio"]:focus + label {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

/* Botón Volver al Inicio */
.btn-volver-inicio {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    transition: all 0.3s ease;
    z-index: 999;
}

.btn-volver-inicio.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-volver-inicio:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.4);
}

.btn-volver-inicio:active {
    transform: translateY(-2px) scale(1.05);
}

.btn-volver-inicio svg {
    width: 24px;
    height: 24px;
}

/* Responsive para el botón */
@media (max-width: 768px) {
    .btn-volver-inicio {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
    
    .btn-volver-inicio svg {
        width: 20px;
        height: 20px;
    }
}

