/* Paleta de Colores UPRIT */
:root {
    --uprit-maroon: #931c36;
    --uprit-maroon-dark: #701328;
    --text-primary: #333333;
    --text-secondary: #666666;
    --bg-white: #ffffff;
    --bg-light-gray: #f8f9fa;
    --shadow-light: 0 5px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Open Sans', Arial, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-light-gray);
    padding-top: 80px; /* Espacio para el menú fijo */
    position: relative;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.section-padding { padding: 60px 0; }

/* EFECTO: Iconos Matemáticos Flotantes de Fondo */
.math-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1; /* Se mantiene detrás de todo el contenido */
    overflow: hidden;
    pointer-events: none; /* No interrumpe los clics del usuario */
}
.math-icon {
    position: absolute;
    /* Subimos la opacidad a 0.25 para que el color guinda de UPRIT se note más */
    color: rgba(147, 28, 54, 0.25); 
    animation: floatAnimation 22s infinite linear;
    bottom: -60px;
}
/* Variación de posiciones, tamaños y tiempos para naturalidad */
.math-icon:nth-child(1) { left: 5%; font-size: 3.5rem; animation-duration: 18s; animation-delay: 0s; }
.math-icon:nth-child(2) { left: 20%; font-size: 2.2rem; animation-duration: 25s; animation-delay: 3s; }
.math-icon:nth-child(3) { left: 38%; font-size: 4rem; animation-duration: 21s; animation-delay: 1s; }
.math-icon:nth-child(4) { left: 55%; font-size: 1.8rem; animation-duration: 28s; animation-delay: 5s; }
.math-icon:nth-child(5) { left: 72%; font-size: 3.2rem; animation-duration: 19s; animation-delay: 2s; }
.math-icon:nth-child(6) { left: 88%; font-size: 2.5rem; animation-duration: 24s; animation-delay: 4s; }
.math-icon:nth-child(7) { left: 94%; font-size: 2rem; animation-duration: 16s; animation-delay: 6s; }

@keyframes floatAnimation {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-115vh) rotate(360deg); opacity: 0; }
}

/* Menú Superior (Navbar) */
.navbar {
    background-color: var(--bg-white);
    position: fixed;
    top: 0; width: 100%; z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo-img { height: 50px; width: auto; }
.nav-menu ul { list-style: none; display: flex; gap: 20px; }
.nav-menu a { text-decoration: none; color: var(--text-primary); font-weight: 600; font-size: 0.9rem; transition: var(--transition); }
.nav-menu a:hover, .nav-menu a.active { color: var(--uprit-maroon); }

/* Menú Desglosable */
.dropdown { position: relative; }
.dropdown-content { 
    display: none; position: absolute; background-color: var(--bg-white); 
    min-width: 150px; box-shadow: var(--shadow-light); top: 100%; left: 0; border-radius: 5px; overflow: hidden;
}
.dropdown-content a { display: block; padding: 12px 16px; border-bottom: 1px solid #eee; }
.dropdown:hover .dropdown-content { display: block; }


.hero h1 { font-size: 3.2rem; text-transform: uppercase; margin-bottom: 15px; font-weight: 800; letter-spacing: 1px; }
.hero h2 { color: #f0f0f0; font-size: 1.6rem; font-weight: 300; }

/* Sección de Integrantes */
.team-section { text-align: center; }
.team-title { color: var(--uprit-maroon); margin-bottom: 40px; font-size: 2rem; position: relative; display: inline-block; }
.team-title::after { content: ''; width: 60px; height: 3px; background: var(--uprit-maroon); position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }
.member-card { background: var(--bg-white); padding: 30px 20px; border-radius: 10px; box-shadow: var(--shadow-light); border-top: 4px solid var(--uprit-maroon); }
.member-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid var(--uprit-maroon); margin-bottom: 15px; transition: var(--transition); }
.member-card:hover .member-photo { transform: scale(1.08); }

/* Nueva Sección: Resumen y Experiencias */
.course-info-section { background: transparent; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
@media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; } }

/* Secciones Semanales */
/* ==========================================
   CABECERAS DE LAS SEMANAS (.page-header)
   CON ÍCONOS FLOTANTES GRANDES
   ========================================== */
.page-header { 
    background-color: var(--uprit-maroon); 
    color: var(--bg-white); 
    padding: 50px 0; 
    text-align: center; 
    
    /* Reglas para contener los íconos */
    position: relative; 
    overflow: hidden; 
}

/* Forzamos que el texto quede por encima de los íconos */
.page-header .container {
    position: relative;
    z-index: 3;
}

/* Contenedor de los íconos */
.header-math-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Estilo base de los íconos en el encabezado */
.header-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.15); /* Blanco con 15% de opacidad para no tapar el texto */
    bottom: -100px;
    animation: headerFloatAnimation 12s infinite linear;
}

/* Tamaños MUCHO MÁS GRANDES según lo solicitado */
.header-icon:nth-child(1) { left: 10%; font-size: 4rem; animation-duration: 10s; animation-delay: 0s; }
.header-icon:nth-child(2) { left: 25%; font-size: 3.5rem; animation-duration: 14s; animation-delay: 2s; }
.header-icon:nth-child(3) { left: 45%; font-size: 5rem; animation-duration: 12s; animation-delay: 1s; }
.header-icon:nth-child(4) { left: 65%; font-size: 4.2rem; animation-duration: 16s; animation-delay: 4s; }
.header-icon:nth-child(5) { left: 80%; font-size: 4.8rem; animation-duration: 11s; animation-delay: 3s; }
.header-icon:nth-child(6) { left: 90%; font-size: 3.8rem; animation-duration: 15s; animation-delay: 5s; }

/* Animación corta para el alto del encabezado */
@keyframes headerFloatAnimation {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { transform: translateY(-350px) rotate(360deg); opacity: 0; }
}

.content-card { background: var(--bg-white); padding: 40px; border-radius: 10px; box-shadow: var(--shadow-light); margin-bottom: 40px; }
.content-card h3 { color: var(--uprit-maroon); margin-bottom: 20px; border-bottom: 2px solid #eee; padding-bottom: 10px; display: flex; align-items: center; gap: 10px; }

/* Visor amplio de PDF */


/* ==========================================
   VISOR DE PDF DE ANCHO COMPLETO
   ========================================== */
.pdf-full-width {
    width: 100%;
    height: 100vh; /* Ocupa el 100% del alto de la pantalla */
    margin: 0;
    padding: 0;
    background-color: #ffffff; /* Evita fondos negros del contenedor */
    display: block;
}

.pdf-full-width iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    margin: 0;
    padding: 0;
}

/* Pie de Página */
.footer { background-color: var(--uprit-maroon-dark); color: var(--bg-white); text-align: center; padding: 40px 0; margin-top: 40px; }
.footer img { height: 60px; margin-bottom: 15px; filter: brightness(0) invert(1); }

/* ==========================================
   ESTILOS PARA LA TABLA DE CONTENIDOS (TOC)
   DISEÑO GRID MODERNO CON MARCA DE AGUA
   ========================================== */
.toc-section {
    text-align: center;
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}

.toc-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 35px 30px;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    z-index: 1;
}

/* Número como marca de agua gigante de fondo */
.toc-number {
    position: absolute;
    top: -15px;
    right: -10px;
    font-size: 6rem;
    font-weight: 900;
    color: rgba(147, 28, 54, 0.04);
    z-index: -1;
    transition: var(--transition);
    line-height: 1;
}

.toc-content h3 {
    font-size: 1.4rem;
    color: var(--uprit-maroon);
    margin-bottom: 15px;
    font-weight: 700;
}

.toc-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Flecha dentro de un círculo moderno */
.toc-arrow {
    align-self: flex-end;
    width: 45px;
    height: 45px;
    background: rgba(147, 28, 54, 0.08);
    color: var(--uprit-maroon);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

/* Efectos Hover */
.toc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(147, 28, 54, 0.12);
    border-color: rgba(147, 28, 54, 0.2);
}

.toc-card:hover .toc-number {
    color: rgba(147, 28, 54, 0.08);
    transform: scale(1.05) translate(-10px, 10px);
}

.toc-card:hover .toc-arrow {
    background: var(--uprit-maroon);
    color: var(--bg-white);
    transform: translateX(5px);
}


/* ==========================================
   ICONOS FLOTANTES BLANCOS EN LA PORTADA
   ========================================== */
.hero { 
    text-align: center; 
    min-height: 70vh; /* Ajusta la altura a tu preferencia */
    display: flex;
    align-items: center; 
    justify-content: center; 
    
    background: linear-gradient(135deg, rgba(147, 28, 54, 0.88), rgba(40, 5, 12, 0.92)), url('./img/campus.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--bg-white);
    border-radius: 0 0 30px 30px;
    box-shadow: var(--shadow-light);
    
    /* ESTOS DOS CONTROLES SON CRUCIALES */
    position: relative; 
    overflow: hidden; 
}

/* Forzamos a que el texto siempre se mantenga al frente */
.hero .container {
    position: relative;
    z-index: 3;
}

/* Contenedor interno para los iconos de la portada */
.hero-math-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1; /* Se ubica detrás del texto pero sobre la imagen de fondo */
}

.hero-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.25); /* Blanco con un 25% de opacidad para elegancia */
    bottom: -150px;
    animation: heroFloatAnimation 16s infinite linear;
}

/* Variaciones de posición, tamaño y velocidad para dinamismo */
.hero-icon:nth-child(1) { left: 8%; font-size: 5.8rem; animation-duration: 12s; animation-delay: 0s; }
.hero-icon:nth-child(2) { left: 23%; font-size: 6.8rem; animation-duration: 18s; animation-delay: 3s; }
.hero-icon:nth-child(3) { left: 45%; font-size: 8.5rem; animation-duration: 14s; animation-delay: 1s; }
.hero-icon:nth-child(4) { left: 68%; font-size: 9.5rem; animation-duration: 20s; animation-delay: 5s; }
.hero-icon:nth-child(5) { left: 82%; font-size: 7.5rem; animation-duration: 13s; animation-delay: 2s; }
.hero-icon:nth-child(6) { left: 92%; font-size: 9rem; animation-duration: 16s; animation-delay: 4s; }

/* Animación ajustada para el contenedor de la portada */
@keyframes heroFloatAnimation {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { transform: translateY(-70vh) rotate(360deg); opacity: 0; }
}

