/* ============================= */
/* CONFIGURACIÓN GENERAL Y FUENTES */
/* ============================= */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #0302137b; /* Fondo azul oscuro translúcido */
    color: #011215; /* Color base del texto */
}

/* Títulos principales y secundarios */
h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
}

/* Colores de los encabezados */
h1 {
    color: #2c3097;
}
h2 {
    color: #673072;
    border-bottom: 2px solid #673072;
    padding-bottom: 5px;
}
h3 {
    color: #022b32;
    border-bottom: 3px solid #2c3097;
    padding-bottom: 7px;
}

/* Párrafos */
p {
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Imagen principal del héroe (oculta por diseño) */
.TW-img {
    display: none;
}

/* ============================= */
/* BOTONES GENERALES */
/* ============================= */
.btn {
    display: inline-block;
    background-color: #673072;
    color: rgb(22, 21, 69);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-right: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.btn:hover {
    background-color: #2c3097;
    transform: scale(1.05);
}

/* ============================= */
/* LISTAS */
/* ============================= */
ul {
    list-style-type: circle;
    margin-left: 20px;
}
ol {
    list-style-type: decimal;
    margin-left: 20px;
}
li {
    margin-bottom: 5px;
}

/* ============================= */
/* NAVEGACIÓN PRINCIPAL */
/* ============================= */
.main-nav {
  position: fixed;           /* Fija la barra superior al hacer scroll */
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0px;
  z-index: 1000;            /* Siempre encima de otros elementos */
}

/* Ajuste del cuerpo para no quedar debajo del header fijo */
body {
    margin-top: 80px;
}

/* Estilo de logo (texto) */
.logo {
    color: #7afcff;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
}
.logo-text {
    color: #37b3b5;
    font-size: 1.6em;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}
.logo-text:hover {
     color: #373072;
}

/* Logo circular a la derecha */
.nav-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}
.nav-logo:hover {
    transform: scale(1,1);
}

/* Enlaces del menú */
.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 60px; /* Espaciado entre enlaces */
    flex: 1;
    justify-content: center;
    align-items: center;
}
.nav-links li a {
    color: #c7a2ff;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
}
.nav-links li a:hover {
    background-color: #555;
    border-radius: 4px;
}

/* Contenedor derecho del nav */
.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* ============================= */
/* SECCIÓN HERO / PRINCIPAL */
/* ============================= */
.hero-section {
    background: linear-gradient(to right, #007bff, #00d4ff); /* Degradado azul */
    color: rgb(255, 255, 255);
    text-align: center;
    padding: 80px 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* ============================= */
/* SECCIÓN DE PROYECTOS */
/* ============================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Diseño adaptable */
    gap: 20px;
    padding: 20px;
}

/* Tarjetas individuales */
.project-card {
    background-color: rgb(31, 21, 82);
    border: 1px solid #2a104d;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}
.project-card img {
    width: 50%;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* ============================= */
/* SECCIÓN PARALLAX */
/* ============================= */
.parallax {
    background-image: url('img/tdah.jpg');
    background-attachment: fixed; /* Efecto parallax */
    background-size: cover;
    background-position: center;
    text-align: center;
    color: white;
    padding: 100px 20px;
    margin: 40px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.parallax h2 {
    font-size: 2.2em;
    margin-bottom: 10px;
}
.parallax p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

/* ============================= */
/* PIE DE PÁGINA */
/* ============================= */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 30px 10px;
    margin-top: 40px;
}

/* Íconos sociales */
.social-icons a {
    color: white;
    margin: 0 10px;
    font-size: 1.6em;
    transition: color 0.3s ease;
}
.social-icons a:hover {
    color: #7afcff;
}

/* ============================= */
/* DISEÑO RESPONSIVO */
/* ============================= */

/* Ajustes para pantallas medianas (tabletas) */
@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-links {
        margin-top: 10px;
        flex-direction: column;
    }
    .nav-links li {
        margin-bottom: 5px;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Ajustes para pantallas pequeñas (celulares) */
@media (max-width: 480px) {
    h1 {
        font-size: 1.8em;
    }
    .hero-section {
        padding: 40px 10px;
    }
    .parallax {
        padding: 60px 15px;
    }
}

/* ===== MENÚ DESPLEGABLE ===== */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    margin-left: 20px;
}
.hamburger span {
    background: #fff;
    width: 30px;
    height: 3px;
    margin: 4px 0;
    border-radius: 5px;
    transition: 0.3s;
}

.side-menu {
    position: fixed;
    top: 0;
    left: -260px;
    width: 240px;
    height: 100%;
    background-color: #222;
    color: #fff;
    padding: 20px;
    transition: left 0.3s ease;
    z-index: 1200;
    transform: translateX(-20px);
    opacity: 0;

}
.side-menu.active {
  left: 0;
  transform: translateX(0);
  opacity: 1;
  transition: all 0.4s ease;
}

.side-menu .menu-options {
  list-style: none;
  padding: 0;
}
.side-menu .menu-options li {
  margin: 15px 0;
}
.side-menu .menu-options a {
  color: #c7a2ff;
  text-decoration: none;
  font-size: 1.1em;
}
.side-menu .menu-options a:hover {
  color: #7afcff;
}

/* ===== SWITCH MODO OSCURO ===== */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #555;
  transition: .4s;
  border-radius: 24px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #673072;
}
input:checked + .slider:before {
  transform: translateX(26px);
}
.toggle-text {
  margin-left: 10px;
  vertical-align: middle;
}

/* ===== SECCIONES DE EQUIPO ===== */
.team-section {
  padding: 40px;
  background-color: #fff;
  border-radius: 10px;
  margin: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.team-section ul {
  list-style: none;
  padding: 0;
}
.team-section li {
  margin: 8px 0;
  color: #333;
}

/* ===== FONDOS PARA MODO OSCURO Y CLARO ===== */
body.modo-oscuro {
  background: linear-gradient(180deg, #010a26 0%, #0a2a66 100%);
  color: #ffffff;
}


body.modo-claro {
  background-color: #ffffff;
  color: #111;
}

/* Hero en modo oscuro con azules */
.modo-oscuro .hero-section {
  background: linear-gradient(to right, #001f3f, #005f99);
}
.modo-claro .hero-section {
  background: linear-gradient(to right, #ffffff, #f3f3f3);
  color: #000;
}

/* Transiciones suaves */
body {
  transition: background 0.5s ease, color 0.5s ease;
}
.hero-section, .team-section {
  transition: background 0.5s ease, color 0.5s ease;
}

/* ===== ESTILOS DE PROJECT CARDS ===== */

/* --- MODO OSCURO --- */
body.modo-oscuro .project-card {
  background-color: #1b1b2f; /* Azul muy oscuro */
  color: #ffffff; /* Texto blanco */
  border: 1px solid #2c3097; /* Borde azul */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* --- MODO CLARO --- */
body.modo-claro .project-card {
  background-color: #ffffff; /* Fondo blanco */
  color: #000000; /* Texto negro */
  border: 1px solid #ccc; /* Borde suave gris */
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* ===== AJUSTES GLOBALES ===== */

/* Fondo y texto general */
body.modo-claro {
  background-color: #ffffff !important; /* Todo blanco */
  color: #000000 !important; /* Texto negro */
}

body.modo-oscuro {
  background: radial-gradient(circle at center, #020617 0%, #01010a 100%);
  color: #ffffff;
}

/* Hero section */
body.modo-claro .hero-section {
  background: #ffffff !important;
  color: #000000 !important;
  box-shadow: none;
}

body.modo-oscuro .hero-section {
  background: linear-gradient(to right, #001f3f, #005f99);
  color: #ffffff;
}

/* Team section */
body.modo-claro .team-section {
  background-color: #ffffff;
  color: #000000;
}

body.modo-oscuro .team-section {
  background-color: #111122;
  color: #ffffff;
}

/* ===== AJUSTE FINAL DE COLORES PARA MODO OSCURO Y CLARO ===== */

/* --- PROJECT CARDS --- */
body.modo-oscuro .project-card {
  background-color: #1b1b2f;
  color: #ffffff;
  border: 1px solid #2c3097;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

body.modo-claro .project-card {
  background-color: #ffffff;
  color: #000000;
  border: 1px solid #cccccc;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* --- TEXTOS DENTRO DE LAS TARJETAS (TÍTULOS, PÁRRAFOS, ETC.) --- */
body.modo-oscuro .project-card h3,
body.modo-oscuro .project-card p {
  color: #ffffff; /* texto blanco en modo oscuro */
}

body.modo-claro .project-card h3,
body.modo-claro .project-card p {
  color: #000000; /* texto negro en modo claro */
}

/* --- HERO SECTION --- */
body.modo-oscuro .hero-section {
  background: linear-gradient(to right, #001f3f, #005f99);
  color: #ffffff;
}

body.modo-claro .hero-section {
  background: #ffffff;
  color: #000000;
}

/* --- NAV Y LINKS --- */
body.modo-oscuro .main-nav {
  background-color: #111122;
}
body.modo-claro .main-nav {
  background-color: #ffffff;
}

body.modo-oscuro .nav-links a,
body.modo-oscuro .logo-text {
  color: #ffffff;
}
body.modo-claro .nav-links a,
body.modo-claro .logo-text {
  color: #000000;
}

/* --- FOOTER --- */
body.modo-oscuro footer {
  background-color: #111122;
  color: #ffffff;
}
body.modo-claro footer {
  background-color: #ffffff;
  color: #000000;
}

/* --- TEXTOS GENERALES (títulos, párrafos, etc.) --- */
body.modo-oscuro h1,
body.modo-oscuro h2,
body.modo-oscuro h3,
body.modo-oscuro p,
body.modo-oscuro li {
  color: #ffffff;
}

body.modo-claro h1,
body.modo-claro h2,
body.modo-claro h3,
body.modo-claro p,
body.modo-claro li {
  color: #000000;
}

/* ===== COLOR DE HAMBURGER SEGÚN MODO ===== */
body.modo-oscuro .hamburger span {
  background: #fff; /* Blanco para fondo oscuro */
}

body.modo-claro .hamburger span {
  background: #000; /* Negro para fondo claro */
}

/* ===== MENÚ DESPLEGABLE (SIDEMENU) ADAPTADO A LOS MODOS ===== */
body.modo-oscuro .side-menu {
  background-color: #111122;
  color: #fff;
}

body.modo-claro .side-menu {
  background-color: #f7f7f7;
  color: #000;
  border-right: 1px solid #ccc;
}

body.modo-oscuro .side-menu .menu-options a {
  color: #c7a2ff;
}

body.modo-claro .side-menu .menu-options a {
  color: #000;
}

body.modo-claro .side-menu .menu-options a:hover {
  color: #673072;
}
/* ===== BOTÓN DE CIERRE (X) ===== */
.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.8em;
  cursor: pointer;
  transition: color 0.3s ease;
}

body.modo-oscuro .close-btn {
  color: #fff;
}

body.modo-claro .close-btn {
  color: #000;
}

.close-btn:hover {
  transform: scale(1.1);
}

/* ===== BARRA DE OPCIONES (NAVBAR) ===== */
.navbar {
  background: linear-gradient(90deg, #0a0f3c, #3b0a65); /* azul oscuro a morado */
  color: white;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 0.3s ease;
}

/* ===== MODO CLARO: aún más brillante ===== */
body.modo-claro .navbar {
  background: linear-gradient(90deg, #4c00ff, #d000ff); /* azul eléctrico a fucsia */
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* ===== SIDE MENU ===== */
.side-menu {
  background: linear-gradient(180deg, #0a0f3c, #3b0a65);
  color: #fff;
  position: fixed;
  top: 0;
  left: -260px;
  width: 260px;
  height: 100%;
  transition: all 0.3s ease;
  padding: 2rem 1rem;
  z-index: 2000;
  box-shadow: 4px 0 10px rgba(0,0,0,0.4);
}

.side-menu.active {
  left: 0;
}

/* ===== MODO CLARO ===== */
body.modo-claro .side-menu {
  background: linear-gradient(180deg, #4c00ff, #d000ff);
  color: #fff;
}

/* ====== ESTILOS DE THOUSAND WINTERS ====== */
.tw-banner {
  background: linear-gradient(135deg, #243b55, #141e30);
  color: white;
  text-align: center;
  padding: 60px 20px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.tw-logo-banner {
  width: 150px;
  height: auto;
  margin-bottom: 10px;
}

/* ====== ESTILOS DE NEBULA STARLIGHT ====== */
.ns-banner {
  background: linear-gradient(135deg, #32004f, #1a0130);
  color: white;
  text-align: center;
  padding: 60px 20px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.ns-logo-banner {
  width: 150px;
  height: auto;
  margin-bottom: 10px;
}

/* ====== LISTA DE JUGADORES ====== */
.player-list {
  list-style: none;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: left;
  margin: 0 auto;
  max-width: 400px;
}

/* ====== ANIMACIÓN DE TRANSICIÓN ====== */
.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================= */
/* TARJETAS DE INTEGRANTES TW */
/* ============================= */

.team-cards {
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding: 40px 20px;
  align-items: center;
}

.player-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 900px;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  background: linear-gradient(135deg, #101035, #2b0b57);
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.8s ease;
}

.player-card.from-right {
  flex-direction: row;
  transform: translateX(100px);
}
.player-card.from-left {
  flex-direction: row-reverse;
  transform: translateX(-100px);
}

.player-card.visible {
  opacity: 1;
  transform: translateX(0);
}

.player-card img {
  width: 220px;
  height: 220px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.player-info {
  flex: 1;
  padding: 20px;
}

.player-info h3 {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: #7afcff;
}

.player-info p {
  font-size: 1.1em;
  line-height: 1.4;
}

/* Responsivo */
@media (max-width: 768px) {
  .player-card {
    flex-direction: column !important;
    text-align: center;
  }
  .player-card img {
    width: 180px;
    height: 180px;
    margin-bottom: 15px;
  }
}

/* ===== CORRECCIÓN: MINI ICONOS DE ARMAS ===== */
.weapons-line {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  vertical-align: middle;
}

.weapon-mini {
  width: 50px !important;
  height: 50px !important;
  object-fit: contain;
  vertical-align: middle;
  margin-bottom: 2px;
  transform: none !important;
}

/* === DEGRADADO VISUAL CLARO Y VISIBLE PARA MODO OSCURO === */
body.modo-oscuro {
  background: linear-gradient(180deg, #000428 0%, #410972 100%) !important;
  color: #ffffff !important;
  background-attachment: fixed; /* Hace que el fondo no se mueva al hacer scroll */
}

/* Opcional: mejora contraste en secciones */
body.modo-oscuro .team-section,
body.modo-oscuro .hero-section {
  background: transparent !important;
  box-shadow: none !important;
}