/* =========================================
   1. RESET & GENERAL SETUP
   ========================================= */
html { scroll-behavior: smooth; }
body, html {
    margin: 0; padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    background-color: #050505; 
}

/* =========================================
   2. FONDO GLOBAL (CANVAS FIJO)
   ========================================= */
#circuit-canvas {
    position: fixed; 
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 0; 
    background: radial-gradient(circle at center, #111827 0%, #000000 100%);
}
.site-content { position: relative; z-index: 1; width: 100%; }

/* =========================================
   3. HEADER Y LOGOS
   ========================================= */
.header-top {
    position: relative; width: 100%; display: flex; justify-content: space-between;
    align-items: center; padding: 30px 50px 0 50px; box-sizing: border-box; z-index: 10;
}
.logo-img {
    max-width: 212px; max-height: 107px; width: auto; object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 140, 0, 0.4)); transition: transform 0.3s ease, opacity 0.4s ease;
}
.logo-img:hover { transform: scale(1.08); }
.logo-hidden { opacity: 0; pointer-events: none; }

.menu-trigger { cursor: pointer; z-index: 11; position: absolute; left: 50%; transform: translateX(-50%); transition: transform 0.3s ease; }
.menu-trigger:hover { transform: translateX(-50%) scale(1.05); }

.logo-text-uat {
    font-size: 2.5rem; font-weight: 900; letter-spacing: 3px; margin: 0;
    display: flex; align-items: center; gap: 10px; cursor: pointer;
    background: linear-gradient(to right, #b35900, #ff8c00, #ffd700, #ff8c00, #b35900);
    background-size: 200% auto; color: transparent; -webkit-background-clip: text; background-clip: text;
    animation: shine 3s linear infinite;
}
.menu-icon { font-size: 1.8rem; color: #ff8c00; -webkit-text-fill-color: #ff8c00; transition: transform 0.3s ease;}
.menu-trigger:hover .menu-icon { transform: scale(1.2); }
@keyframes shine { to { background-position: 200% center; } }

/* =========================================
   4. ANIMACIÓN DE TÍTULOS INICIAL 
   ========================================= */
.title-section {
    text-align: center; padding: 0 20px;
    transform: translateY(35vh);
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.title-section h1 { font-size: 4rem; margin: 0; text-shadow: 0 0 20px rgba(0, 229, 255, 0.4); }
.title-section h2 { font-size: 1.8rem; font-weight: 300; color: #00e5ff; margin-top: 20px; opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s; }

.title-section.move-up {
    transform: translateY(20px); 
    margin-bottom: 30px; 
}
.title-section.move-up h2 { opacity: 1; transform: translateY(0); }

/* =========================================
   5. CONTENIDO RETRASADO
   ========================================= */
.hidden-at-start { opacity: 0; transform: translateY(40px); transition: opacity 1s ease, transform 1s ease; pointer-events: none; }
.hidden-at-start.show-content { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* =========================================
   6. PANELES TRANSLÚCIDOS (GLASSMORPHISM)
   ========================================= */
.glass-panel {
    background: rgba(10, 10, 10, 0.75); /* Fondo oscuro semitransparente */
    backdrop-filter: blur(8px); /* Desenfoca las partículas que pasan por detrás */
    -webkit-backdrop-filter: blur(8px);
    padding: 30px 40px;
    border-radius: 15px;
    border: 1px solid rgba(0, 229, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

/* =========================================
   7. SECCIÓN "WHAT IS XR-UAT"
   ========================================= */
.content-section { padding: 40px 20px; width: 100%; background: transparent; }

.section-title-large {
    font-size: 3.5rem; color: #ff8c00; margin-bottom: 40px; text-transform: uppercase;
    text-align: center; letter-spacing: 3px; text-shadow: 0 0 15px rgba(255, 140, 0, 0.4);
}

.video-layout-pyramid { display: flex; flex-direction: column; gap: 60px; width: 100%; max-width: 1200px; margin: 0 auto; }

.project-split-container { display: flex; align-items: center; gap: 40px; width: 100%; }

.project-text { flex: 1; text-align: left; }
.project-text h4 { color: #00e5ff; font-size: 2.2rem; margin-top: 0; margin-bottom: 20px; letter-spacing: 1px; }
.project-text p { font-size: 1.2rem; line-height: 1.8; color: #e0e0e0; margin-bottom: 20px; }

.project-video { flex: 1; }

.video-thumbnail {
    position: relative; background-color: #111; border: 1px solid #333; border-radius: 12px; overflow: hidden;
    cursor: pointer; display: flex; align-items: flex-end; justify-content: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.video-thumbnail.featured { width: 100%; aspect-ratio: 16/9; }
.video-thumbnail img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; transition: opacity 0.3s ease, transform 0.5s ease; }
.video-thumbnail:hover { transform: translateY(-5px); border-color: #00e5ff; box-shadow: 0 10px 25px rgba(0, 229, 255, 0.3); }
.video-thumbnail:hover img { opacity: 0.8; transform: scale(1.05); }

.play-overlay {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 3rem; color: white; text-shadow: 0 0 20px rgba(0, 229, 255, 0.9); z-index: 2;
    opacity: 0; transition: opacity 0.3s ease, transform 0.3s ease;
}
.video-thumbnail:hover .play-overlay, .carousel-item:hover .play-overlay { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }

/* =========================================
   8. CARRUSEL "BARRA TRANSPORTADORA" 3D
   ========================================= */
.carousel-container { position: relative; width: 100%; height: 380px; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.carousel-track { position: relative; width: 100%; max-width: 900px; height: 100%; display: flex; justify-content: center; align-items: center; }

.carousel-item {
    position: absolute; width: 55%; aspect-ratio: 16/9; background-color: #111; border: 2px solid #333; border-radius: 12px; overflow: hidden;
    cursor: pointer; display: flex; align-items: flex-start; justify-content: center;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease, filter 0.6s ease, border-color 0.3s ease;
}
.carousel-item img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; transition: opacity 0.4s ease; }
.carousel-item h4 { position: relative; z-index: 2; width: 100%; margin: 0; padding: 15px 10px; background: linear-gradient(rgba(0,0,0,0.95), transparent); color: white; font-size: 1.4rem; text-align: center; text-shadow: 0 2px 4px black; opacity: 0; transition: opacity 0.6s ease; }

.carousel-item.active { transform: translateX(0) scale(1.1); z-index: 3; opacity: 1; filter: brightness(1.2); border-color: #00e5ff; box-shadow: 0 15px 35px rgba(0, 229, 255, 0.3); }
.carousel-item.active img { opacity: 0.8; }
.carousel-item.active h4 { opacity: 1; }
.carousel-item.prev { transform: translateX(-55%) scale(0.8); z-index: 1; opacity: 0.4; filter: brightness(0.5); }
.carousel-item.next { transform: translateX(55%) scale(0.8); z-index: 1; opacity: 0.4; filter: brightness(0.5); }
.carousel-item.prev:hover, .carousel-item.next:hover { opacity: 0.7; filter: brightness(0.8); border-color: #ff8c00; }

.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, 0.6); border: 1px solid #00e5ff;
    color: #00e5ff; font-size: 2rem; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; z-index: 5; transition: all 0.3s ease; display: flex; justify-content: center; align-items: center;
}
.carousel-btn:hover { background: #00e5ff; color: black; box-shadow: 0 0 15px #00e5ff; }
.carousel-btn.left { left: 10px; }
.carousel-btn.right { right: 10px; }

/* =========================================
   9. REINOS (Realms Container)
   ========================================= */
.realms-container { display: flex; flex-direction: row; justify-content: space-between; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; gap: 40px; }
.realms-aside { display: flex; flex-direction: column; gap: 20px; flex: 1; }
.intro-text { flex: 2; text-align: center; } /* El padding ahora lo maneja .glass-panel */
.intro-text h3 { color: #ff8c00; font-size: 2.5rem; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 2px; }
.intro-text p { font-size: 1.3rem; line-height: 1.8; color: #cccccc; margin: 0 auto; }

.realm-btn {
    display: flex; justify-content: center; align-items: center; position: relative; width: 100%; height: 120px;
    background-color: #111; border: 1px solid #333; border-radius: 8px; overflow: hidden; text-decoration: none; color: white;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.realm-btn:hover { transform: scale(1.05); border-color: #ff8c00; box-shadow: 0 0 15px rgba(255, 140, 0, 0.4); }
.realm-btn img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.4; transition: opacity 0.3s ease, transform 0.5s ease; }
.realm-btn:hover img { opacity: 0.7; transform: scale(1.1); }
.realm-btn span { position: relative; z-index: 1; font-size: 1.5rem; font-weight: bold; text-transform: uppercase; letter-spacing: 3px; text-shadow: 0 4px 6px rgba(0, 0, 0, 0.9); }

/* =========================================
   10. FOOTER PLATEADO
   ========================================= */
.site-footer { background-color: #1a1e24; border-top: 2px solid #333c4a; padding: 60px 20px 20px 20px; margin-top: 50px; position: relative; z-index: 2; }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; gap: 30px; }
.footer-column { flex: 1; min-width: 250px; display: flex; flex-direction: column; gap: 10px; }
.footer-column p { color: #a0aec0; line-height: 1.6; margin: 0; }
.footer-title { font-size: 1.3rem; margin: 0 0 15px 0; letter-spacing: 1px; color: #ff8c00; text-shadow: 0px 1px 2px rgba(0,0,0,0.8); }
.footer-link { color: #c0c8d1; text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.2); text-decoration: none; font-size: 1.1rem; transition: color 0.3s ease, transform 0.3s ease; }
.footer-link:hover { color: #00e5ff; transform: translateX(5px); }
.footer-bottom { text-align: center; border-top: 1px solid #333c4a; margin-top: 40px; padding-top: 20px; color: #718096; font-size: 0.9rem; }

/* =========================================
   11. MODAL & OVERLAY NAV 
   ========================================= */
.nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 0; background-color: rgba(5, 5, 5, 0.98); backdrop-filter: blur(10px); z-index: 100; display: flex; flex-direction: column; justify-content: center; align-items: center; overflow: hidden; transition: height 0.6s cubic-bezier(0.77, 0, 0.175, 1); }
.nav-overlay.open { height: 100vh; }
.close-menu { position: absolute; top: 30px; right: 50px; font-size: 4rem; color: #c0c8d1; cursor: pointer; transition: color 0.3s ease; z-index: 101; }
.close-menu:hover { color: #ff8c00; }
.nav-links { list-style: none; padding: 0; text-align: center; margin-top: 50px; }
.nav-links li { margin: 20px 0; opacity: 0; transform: translateY(20px); transition: opacity 0.4s ease, transform 0.4s ease; }
.nav-overlay.open .nav-links li { opacity: 1; transform: translateY(0); }
.nav-overlay.open .nav-links li:nth-child(1) { transition-delay: 0.2s; }
.nav-overlay.open .nav-links li:nth-child(2) { transition-delay: 0.3s; }
.nav-overlay.open .nav-links li:nth-child(3) { transition-delay: 0.4s; }
.nav-overlay.open .nav-links li:nth-child(4) { transition-delay: 0.5s; }
.nav-links a { text-decoration: none; color: white; font-size: 2rem; font-weight: 300; letter-spacing: 2px; position: relative; transition: color 0.3s; }
.nav-links a:hover { color: #00e5ff; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: rgba(0, 0, 0, 0.95); backdrop-filter: blur(15px); z-index: 1000; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity 0.6s ease; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content { display: flex; flex-direction: row; width: 90%; max-width: 1200px; height: 70vh; background-color: #050505; border: 1px solid #00e5ff; border-radius: 15px; box-shadow: 0 0 40px rgba(0, 229, 255, 0.2); position: relative; overflow: hidden; transform: scale(0.9); transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.modal-overlay.active .modal-content { transform: scale(1); }
.close-modal { position: absolute; top: 15px; right: 25px; font-size: 3rem; color: #4a5568; cursor: pointer; z-index: 10; transition: color 0.3s ease; }
.close-modal:hover { color: #ff8c00; }
.modal-video-container { flex: 2; background-color: #000; display: flex; justify-content: center; align-items: center; border-right: 1px solid #1a1a1a; }
.modal-text-container { flex: 1; padding: 50px 40px; display: flex; flex-direction: column; justify-content: center; }
.glowing-text { font-size: 2.5rem; color: #00e5ff; margin-top: 0; margin-bottom: 20px; text-shadow: 0 0 10px rgba(0, 229, 255, 0.5), 0 0 20px rgba(0, 229, 255, 0.3); }
.glowing-text-p { font-size: 1.2rem; line-height: 1.8; color: #e0e0e0; text-shadow: 0 0 8px rgba(255, 255, 255, 0.2); }

/* --- SPINNER DE CARGA DE VIDEO --- */
.video-loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 229, 255, 0.2);
    border-top-color: #00e5ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* =========================================
   12. TRANSICIONES (FADE-IN SCROLL) Y RESPONSIVE
   ========================================= */
.fade-in-element { opacity: 0; transform: translateY(30px); transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1); }
.fade-in-element.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1000px) {
    .project-split-container { flex-direction: column; }
    .carousel-item { width: 80%; }
    .carousel-item.prev { transform: translateX(-40%) scale(0.8); }
    .carousel-item.next { transform: translateX(40%) scale(0.8); }
    .carousel-item h4 { font-size: 1rem; }
    .modal-content { flex-direction: column; height: 85vh; }
    .modal-video-container { flex: 1.5; border-right: none; border-bottom: 1px solid #1a1a1a; }
    .modal-text-container { flex: 1; padding: 25px; }
    .realms-container { flex-direction: column; }
    .intro-text { order: -1; margin-bottom: 30px; }
    .footer-content { flex-direction: column; text-align: center; }
}

/* =========================================
   13. ESTILOS ESPECÍFICOS: ABOUT US PAGE
   ========================================= */

/* Botón de volver arriba a la izquierda */
.inner-page-header {
    justify-content: flex-start; /* Alinea a la izquierda en lugar de espacio entre elementos */
    padding: 20px 50px;
}
.back-home-btn {
    color: #c0c8d1;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
    width: 150px; /* Ancho fijo para balancear con el logo central */
    transition: color 0.3s ease, transform 0.3s ease;
}
.back-home-btn:hover {
    color: #00e5ff;
    transform: translateX(-5px); /* Se mueve levemente a la izquierda indicando retroceso */
}

/* Contenedor principal del About Us */
.about-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 80px !important; /* Espacio extra para el botón de Meet the Team */
}
.about-desc {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #e0e0e0;
    text-align: center;
    margin-bottom: 50px;
}

/* --- SISTEMA DE ACORDEÓN (Misión, Visión, Valores) --- */
.accordion-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.accordion-item {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    background: transparent;
    border: none;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    outline: none;
    transition: background 0.3s ease;
}
.accordion-header:hover {
    background: rgba(0, 229, 255, 0.05); /* Leve iluminación cyan al pasar el mouse */
}

/* El texto plateado metálico por defecto */
.silver-text {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(to right, #8a95a5, #e2e8f0, #ffffff, #e2e8f0, #8a95a5);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine 3s linear infinite;
    transition: all 0.4s ease;
}

.accordion-icon {
    font-size: 2.5rem;
    color: #c0c8d1;
    font-weight: 300;
    transition: transform 0.4s ease, color 0.4s ease;
}

/* EL CAMBIO A NARANJA XR-UAT CUANDO ESTÁ ACTIVO (CLIC) */
.accordion-header.active .silver-text {
    background: linear-gradient(to right, #b35900, #ff8c00, #ffd700, #ff8c00, #b35900);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}
.accordion-header.active .accordion-icon {
    transform: rotate(45deg); /* Convierte el + en una X */
    color: #ff8c00;
}

/* Contenedor del texto oculto (Altura dinámica) */
.accordion-content {
    padding: 0 30px;
    background: rgba(0, 0, 0, 0.2);
    max-height: 0; /* Oculto por defecto */
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.accordion-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #cccccc;
    padding: 20px 0;
    margin: 0;
}

/* --- BOTÓN DE MEET THE TEAM EN LA ESQUINA --- */
.corner-btn-container {
    position: absolute;
    bottom: 30px;
    right: 40px;
}
.corner-team-btn {
    display: inline-block;
    color: #00e5ff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
    border: 1px solid #00e5ff;
    padding: 10px 20px;
    border-radius: 30px;
    background: rgba(0, 229, 255, 0.05);
    transition: all 0.3s ease;
}
.corner-team-btn:hover {
    background: #00e5ff;
    color: black;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.6);
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .inner-page-header { padding: 20px; flex-direction: column; gap: 15px; }
    .back-home-btn { width: auto; }
    .corner-btn-container { position: relative; bottom: 0; right: 0; text-align: center; margin-top: 30px; }
}

/* =========================================
   14. PÁGINA DEL EQUIPO (Jerarquía y Tarjetas)
   ========================================= */

.team-tree-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 50px;
}

/* Las Líneas que conectan al equipo como un circuito */
.tree-connection-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, #ff8c00, #4a5568);
    margin: 10px 0;
}
.root-line {
    background: linear-gradient(to bottom, #4a5568, #facc15); /* Termina en oro */
    height: 60px;
}

/* Contenedores de Niveles */
.team-tier {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* El Grid de 3 columnas para los colaboradores */
.collaborators-tier {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

/* Texto de tributo para el Maestro Enrique */
.mentor-tribute-text {
    text-align: center;
    color: #facc15;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.4);
}
.mentor-tier {
    flex-direction: column; /* Para apilar el título y la tarjeta */
    align-items: center;
}

/* --- DISEÑO DE LAS BARRAS (TARJETAS) --- */
.team-card {
    display: flex;
    align-items: center;
    background-color: #1a1e24;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    width: 100%;
    max-width: 380px; /* Tamaño máximo de la barra */
    margin: 0 auto;
}

.team-card:hover {
    transform: translateY(-5px);
    filter: brightness(1.1);
}

/* Los 3 Metales (Plata, Naranja, Oro) */
.card-silver {
    background: linear-gradient(145deg, #2b323a 0%, #1a1e24 100%);
    border: 1px solid #4a5568;
}
.card-silver:hover { box-shadow: 0 8px 20px rgba(74, 85, 104, 0.5); border-color: #00e5ff; }

.card-orange {
    background: linear-gradient(145deg, #7a3000 0%, #3d1800 100%);
    border: 1px solid #ff8c00;
}
.card-orange:hover { box-shadow: 0 8px 20px rgba(255, 140, 0, 0.5); }

.card-gold {
    background: linear-gradient(145deg, #856100 0%, #423000 100%);
    border: 1px solid #facc15;
}
.card-gold:hover { box-shadow: 0 8px 25px rgba(250, 204, 21, 0.6); }

/* Interiores de la tarjeta */
.tc-img-container {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
}
.tc-img-container img { width: 100%; height: 100%; object-fit: cover; }

.tc-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 15px;
    flex-grow: 1;
}

.tc-name { margin: 0 0 4px 0; font-size: 1.1rem; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 250px; }
.tc-degree { margin: 0 0 6px 0; font-size: 0.85rem; color: #a0aec0; }
.tc-role { 
    font-size: 0.75rem; font-weight: bold; text-transform: uppercase; letter-spacing: 1px;
    display: inline-block; padding: 3px 8px; border-radius: 4px; width: fit-content;
    background: rgba(0, 0, 0, 0.5);
}

.card-silver .tc-role { color: #00e5ff; }
.card-orange .tc-role { color: #ffbc00; }
.card-gold .tc-role { color: #fef08a; }


/* =========================================
   15. MODAL DEL EQUIPO (Diseño Dividido)
   ========================================= */
.team-modal-content {
    flex-direction: row; /* Dividido en Izq/Der */
    padding: 0;
    max-width: 900px;
    height: 60vh;
}

.team-modal-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.1);
}

/* Colores de fondo dinámicos del lado izquierdo según el rango */
.bg-silver { background: radial-gradient(circle at top left, #2b323a, #050505); }
.bg-orange { background: radial-gradient(circle at top left, #7a3000, #050505); }
.bg-gold { background: radial-gradient(circle at top left, #856100, #050505); }

.tm-profile-pic {
    width: 150px; height: 150px; border-radius: 50%; object-fit: cover;
    border: 4px solid rgba(255,255,255,0.2); margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.tm-name { font-size: 1.8rem; margin: 0 0 10px 0; color: white; }
.tm-degree { font-size: 1.1rem; color: #cbd5e1; margin: 0 0 15px 0; font-weight: 300; }
.tm-role-badge { 
    background: rgba(0,0,0,0.6); padding: 5px 15px; border-radius: 20px; 
    font-weight: bold; letter-spacing: 1px; text-transform: uppercase; font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.bg-silver .tm-role-badge { color: #00e5ff; }
.bg-orange .tm-role-badge { color: #ffbc00; }
.bg-gold .tm-role-badge { color: #fef08a; }

.team-modal-right {
    flex: 1.5;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #0a0a0a;
}

.tm-section-title { color: #4a5568; font-size: 1rem; text-transform: uppercase; letter-spacing: 2px; margin-top: 0; border-bottom: 1px solid #1a1a1a; padding-bottom: 10px; }
.tm-desc-text { font-size: 1.1rem; line-height: 1.7; color: #e2e8f0; }

.tm-quote-block {
    position: relative;
    background: rgba(255,255,255,0.03);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #ff8c00;
}
.quote-mark { position: absolute; top: -10px; left: 10px; font-size: 4rem; color: rgba(255, 140, 0, 0.2); font-family: serif; line-height: 1; }
.tm-quote-text { font-size: 1.2rem; font-style: italic; color: #f8fafc; margin: 0; position: relative; z-index: 2; }


/* Responsivo Team Page */
@media (max-width: 1000px) {
    .collaborators-tier { grid-template-columns: repeat(2, 1fr); }
    .team-modal-content { flex-direction: column; height: 85vh; overflow-y: auto; }
    .team-modal-left { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 30px; }
    .team-modal-right { padding: 30px; }
}

@media (max-width: 600px) {
    .collaborators-tier { grid-template-columns: 1fr; }
    .tc-name { max-width: 200px; }
}

/* =========================================
   16. ESTILOS ESPECÍFICOS: FAQ & FORMULARIO
   ========================================= */

/* Variación del texto plateado para preguntas largas */
.faq-question-text {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: left;
    background: linear-gradient(to right, #8a95a5, #e2e8f0, #ffffff, #e2e8f0, #8a95a5);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine 3s linear infinite;
    transition: all 0.4s ease;
}

/* El cambio a naranja al estar activo */
.accordion-header.active .faq-question-text {
    background: linear-gradient(to right, #b35900, #ff8c00, #ffd700, #ff8c00, #b35900);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

/* --- SECCIÓN DEL FORMULARIO --- */
.faq-form-container {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-form-title {
    color: #00e5ff;
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
    letter-spacing: 1px;
}

.faq-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.faq-input-group {
    display: flex;
    gap: 20px;
}

.faq-input, .faq-textarea {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #4a5568;
    border-radius: 8px;
    padding: 15px 20px;
    color: white;
    font-family: inherit;
    font-size: 1.1rem;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.faq-input::placeholder, .faq-textarea::placeholder {
    color: #718096;
}

.faq-input:focus, .faq-textarea:focus {
    outline: none;
    border-color: #ff8c00;
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.3);
}

.faq-textarea {
    resize: vertical;
    min-height: 150px;
}

.faq-submit-btn {
    background: linear-gradient(to right, #b35900, #ff8c00);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    align-self: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.5);
}

/* Responsivo para el formulario */
@media (max-width: 768px) {
    .faq-input-group {
        flex-direction: column;
        gap: 20px;
    }
    .faq-question-text {
        font-size: 1.1rem; /* Más pequeño en celulares */
    }
}

/* Estilo para el menú desplegable de contacto */
.custom-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%2300e5ff" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position-x: 95%;
    background-position-y: 50%;
    cursor: pointer;
}
.custom-select option {
    background-color: #050505; /* Fondo oscuro para las opciones */
    color: white;
}