/* ==========================================================================
   1. REINICIO Y CONFIGURACIÓN GLOBAL
   ========================================================================== */
/* Reinicio básico: Elimina márgenes por defecto y ajusta el modelo de caja */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Configuración del cuerpo y scroll suave */
body, html {
  scroll-behavior: smooth; /* Desplazamiento elegante al usar anclas */
  height: 100%;
  font-family: 'Poppins', sans-serif;
  color: white;
  overflow-x: hidden; /* Evita el scroll horizontal indeseado */
  background-color: #000000;
}

/* Contenedor general: Centra el contenido y maneja los bordes laterales */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0% 2rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* ==========================================================================
   2. HEADER Y NAVEGACIÓN
   ========================================================================== */
header {
  display: flex;
  justify-content: space-between; /* Separa logo y menú a los extremos */
  align-items: center;
  padding: 1rem 5rem;
  z-index: 1000; /* Asegura que el menú esté siempre encima */
  position: relative;
  top: 0;
}

header .logo img {
  width: 200px;
  height: auto;
  margin-top: 5px;
}

header h1 {
  margin: 0;
  font-size: 3rem;
  font-weight: 300;
}

/* Barra de navegación centrada */
nav {
  display: flex;
  align-items: center;
  gap: 3rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%); /* Truco para centrado absoluto perfecto */
  margin-left: 0;
  z-index: 999;
}

nav a {
  font-size: 1rem;
  letter-spacing: 0.1rem;
  transition: color 0.2s ease;
  text-decoration: none;
  color: inherit;
}

nav a:hover {
  color: #a7a7a7;
}

/* Botón de Ingresar */
.btn-signing {
  background-color: #a7a7a7;
  color: black;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.btn-signing:hover {
  background-color: white;
}

/* ==========================================================================
   3. ESTILOS PARA 'index.html' (PORTADA)
   ========================================================================== */
main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(90vh - 6rem);
  align-items: center;
}

.content {
  max-width: 40rem;
  z-index: 999;
  top: 100;
  text-align: center;
}

/* Botón 'Explorar' con gradiente animado */
.tag-box {
  position: relative;
  width: 10rem;
  height: 2.5rem;
  border-radius: 50px;
  background: linear-gradient(to right, #080011, #b388ff, #080011);
  background-size: 200%;
  animation: animationGradient 2.5s linear infinite; /* Animación del borde */
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3); 
  margin-top: 3rem;
  margin-left: auto;
  margin-right: auto;
}

@keyframes animationGradient {
  to {
    background-position: 200%;
  }
}

.tag-box .tag {
  position: absolute;
  inset: 3px 3px 3px 3px; /* Borde interno */
  background-color: black;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.5 ease;
  cursor: pointer;
  text-decoration: none;
  color: white;
}

.tag-box .tag:hover {
  color: rgb(35, 28, 41);
}

.content h1 {
  font-size: 4rem;
  font-weight: 600;
  letter-spacing: 0.1rem;
  margin: 0rem 0;
  line-height: 1.2;
  text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.418);
}

.description {
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  max-width: 60rem;
  color: rgb(224, 224, 224);
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 3px 3px 3px #000000;
}

/* Canvas del fondo 3D (Spline) */
.spline-fondo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none; /* Permite clicks a través del fondo */
}



/* ==========================================================================
   4. ESTILOS PARA 'planetas.html' (VISUALIZACIÓN)
   ========================================================================== */

.back-vid {
  position: fixed;
  z-index: -1;
  mix-blend-mode: overlay; /* Fusiona el video con el fondo negro */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100vw;
  min-height: 100vh;
  width: auto;
  height: auto;
}

@media (max-aspect-ratio: 16/9){
  .back-vid{
    width: 100%;
    height: auto;
  }
}

/* --- Contenedor de Planetas --- */
.planet-container {
  position: relative !important;
  width: 100% !important;
  height: 100vh !important;
  max-width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: flex-end !important;
  overflow: visible !important;
  margin: 0 auto !important;
  padding-bottom: 8vh;
  z-index: 2;
  pointer-events: none !important; /* Fusionado */
}

/* --- CADA SLIDE (LA PARTE CLAVE) --- */
.planet-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  opacity: 0; /* Oculto por defecto */
  pointer-events: none;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
  visibility: hidden;
}

/* Clase 'active' controlada por JS o CSS para mostrar el planeta */
.planet-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 5;
  pointer-events: auto;
}

/* --- ANIMACIÓN DE ELEMENTOS INTERNOS --- */


.planet-slide.active .planet-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

/* ==== SPLINE EN CADA PLANETA ==== */
.planet-content {
  position: relative;
  width: min(80vw, 900px);
  height: min(80vh, 900px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.planet-content spline-viewer {
  width: 100%;
  height: 100%;
  display: block;
  margin: 0 auto;
  max-width: 900px;
  max-height: 90vh;
  transform-origin: center bottom;
  transition: transform 0.8s ease;
  pointer-events: auto !important;
  z-index: 10 !important;
}

.planet-slide.active spline-viewer {
  transform: scale(1.2);
}

.planet-slide.active .planet-content spline-viewer {
  transform: translateY(8%) scale(1.05);
}

/* ==== TEXTO SOBRE EL MODELO ==== */
.planet-title {
  order: 1;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 0.5rem;
  /* Estilos de animación base */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* GRADIENTES ESPECÍFICOS PARA CADA PLANETA */
.mercury-title {
color: #b5b5b5a4; 
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0) 60%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  display: inline-block;
  animation: shine 5s linear infinite;
  font-size: 100px;
}

.venus-title {
color: rgba(255, 168, 54, 0.643); 
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0) 60%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  display: inline-block;
  animation: shine 5s linear infinite;
  font-size: 100px;
}

.marte-title {
color: #c1440ea4; 
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0) 60%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  display: inline-block;
  animation: shine 5s linear infinite;
  font-size: 100px;
}

.jupiter-title {
color: #d5b77aa4; 
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0) 60%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  display: inline-block;
  animation: shine 5s linear infinite;
  font-size: 100px;
}

.saturno-title {
color: #d8c370a4; 
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0) 60%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  display: inline-block;
  animation: shine 5s linear infinite;
  font-size: 100px;
}

.urano-title {
color: #7fdbffa4; 
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0) 60%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  display: inline-block;
  animation: shine 5s linear infinite;
  font-size: 100px;
}

.neptuno-title {
color: #365bffa4; 
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0) 60%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  display: inline-block;
  animation: shine 5s linear infinite;
  font-size: 100px;
}


.tierra-title {
color: rgba(54, 118, 255, 0.643);
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0) 60%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  display: inline-block;
  animation: shine 5s linear infinite;
  font-size: 100px;
}


@keyframes shine {
  0% {
    background-position: 100%;
  }
  100% {
    background-position: -100%;
  }
}

/* Responsividad para móviles */
@media (max-width: 720px) {
  .planet-container { padding-bottom: 4vh; }
  .planet-content { width: 95vw; height: 60vh; }
  .planet-text { top: 44%; }
  .planet-content spline-viewer { transform: scale(0.95); }
}

/* ====== BARRA SECUNDARIA DE PLANETAS ====== */
.planet-nav {
  position: sticky;
  top: 100px; 
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  padding: 0.8rem 0;
  z-index: 100;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.planet-nav a {
  background: transparent;
  border: none;
  color: #cfcfcf;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.4rem 0.6rem;
  text-decoration: none;
  
}

.planet-nav a:hover,
.planet-nav a.active {
  color: #a084ff;
  text-shadow: 0 0 8px rgba(160, 132, 255, 0.8);
  transform: scale(1.1);
}

/* Ocultar logos de Spline */
spline-viewer::part(logo),
spline-viewer::part(branding),
spline-viewer::part(watermark) {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  height: 0 !important;
}

/* Fondo tenue detrás del planeta activo */
.planet-slide.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0.95) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Modelo visible encima del fondo tenue */
.planet-slide.active spline-viewer {
  position: relative;
  z-index: 2;
}

/* Texto encima del modelo */
.planet-text {
  position: absolute;
  bottom: 85%;
  left: 50%;
  transform: translateX(-50%) translateY(-40px);
  text-align: center;
  z-index: 10;
  pointer-events: none;
}

/* ==========================================================================
   5. SLIDER INFORMATIVO (EXTRA SECTION)
   ========================================================================== */

.extra-section {
  width: 100%;
  height: 100vh; /* ocupa toda la pantalla */
  background-color: #000; /* fondo negro */
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  z-index: 2;
  position: relative;
}

.extra-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.extra-section p {
  font-size: 1.2rem;
  max-width: 600px;
}

.container1 {
 position: relative; 
 /* Lo centramos poniendo top y left en 0 */
 top: 0;
 left: 0;
 /* Hacemos que ocupe el 100% de la .extra-section */
 width: 100%;
 height: 100%; 
 /* Quitamos el fondo y la sombra para que sea invisible */
 background: transparent; 
 box-shadow: none;
}

.container1 .slider .item {
  width: 165px;
  height: 250px;
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
  border-radius: 20px;
  box-shadow: 0 30px 50px #505050;
  background-position: 50% 50%;
  background-size: cover;
  display: inline-block;
  transition: 0.5s;
  z-index: 1;
}

.slider .item:nth-child(1),
.slider .item:nth-child(2) {
  top: 0;
  left: 0;
  transform: translate(0, 0);
  border-radius: 5px;
  width: 100%;
  height: 100%;
  z-index: 0;
}


.slider .item:nth-child(3) {
  left: 50%
}

.slider .item:nth-child(4) {
  left: calc(50% + 210px)
}

.slider .item:nth-child(5) {
  left: calc(50% + 430px)
}

.slider .item:nth-child(6) {
  left: calc(50% + 650px);
}
*

.slider .item:nth-child(n+7) {
  display: none;
}

.item .content1 {
  position: absolute;
  top: 50%;
  left: 50px;
  width: 600px;
  text-align: left;
  color: #eee;
  transform: translate(0, -50%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  display: none;
}

.slider .item:nth-child(2) .content1 {
  display: block;
}

.content1 .name {
  font-size: 40px;
  text-transform: uppercase;
  font-weight: bold;
  opacity: 0;
  animation: animate 1s ease-in-out 1 forwards;
}

.content1 .description1 {
  margin-top: 10px;
  margin-bottom: 20px;
  opacity: 0;
  animation: animate 1s ease-in-out 0.3s 1 forwards;
  text-shadow: 2px 2px 2px #000;
}

.content1 button {
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  opacity: 0;
  animation: animate 1s ease-in-out 0.6s 1 forwards;
}

@keyframes animate {
  from {
    opacity: 0;
    transform: translate(0, 100px);
    filter: blur(33px);
  }
  to {
    opacity: 1;
    transform: translate(0, 0);
    filter: blur(0);
  }
}

.buttons {
  width: 100%;
  text-align: center;
  position: absolute;
  bottom: 20px;
  z-index: 10;
}

.buttons button {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  cursor: pointer;
  margin: 0 6px;
  font-size: 22px;
  font-weight: 300;
  color: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.25s ease;
}

.buttons button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  color: white;
}


.autoshow{
  animation: autoShowAnimation both;
  animation-timeline: view(70% 5%);
}

@keyframes autoShowAnimation {
  from{
    opacity: 0;
    transform: translateY(200px) scale(0.3);
  } to{
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  
}

:root {
  --orbit-speed2: 20s;
}

/* SISTEMA SOLAR DECORATIVO CSS */
.solar-system2 {
  position: relative;
  width: 350px;
  height: 350px;
  margin: 40px auto;
}

.sun2 {
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, #ffde7a, #ff8c00);
  border-radius: 50%;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.orbit2 {
  position: absolute;
  top: 50%; left: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: spin2 var(--orbit-speed2) linear infinite;
}

/* Tamaños de órbitas */
.orbit-mercury2 { width: 100px; height: 100px; }
.orbit-venus2   { width: 150px; height: 150px; }
.orbit-earth2   { width: 200px; height: 200px; }

/* Planetas */
.planet2 {
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.mercury2 { background: #b5b5b5; }
.venus2   { background: #d4a373; }
.earth2   { background: #2e86c1; }


@keyframes spin2 {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.controls2 {
  text-align: center;
  color: white;
  font-family: Arial;
  margin-top: 20px;
}

/* ESTILO DEL RELOJ */
#clock {
  position: absolute;
  top: 25px; 
  right: 25px;
  font-size: 1.5rem; 
  font-family: 'Orbitron', sans-serif; 
  font-weight: 300; 
  color: #E0E0E0;
  letter-spacing: 3px; 
  padding: 10px 22px; 
  background: rgba(26, 1, 34, 0.08); 
  border-radius: 12px; 
  backdrop-filter: blur(8px) brightness(1.1); 
  border: 1px solid rgba(255, 255, 255, 0.15); 
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); 
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.3); 
}


/* ==========================================================================
   6. SECCIÓN DE VIDEOS
   ========================================================================== */
.video-section {
  width: 100%;
  min-height: 50vh; 
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 0;
  position: relative;
  z-index: 5; 

}

.section-title {
  color: white;
  margin-bottom: 30px;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}


.card {
  box-sizing: border-box;
  width: 190px;
  height: 254px;
  background: rgba(217, 217, 217, 0.58);
  border: 1px solid white;
  box-shadow: 12px 17px 51px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(6px);
  border-radius: 17px;
  text-align: center;
  cursor: pointer;
  transition: all 0.5s;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  font-weight: bolder;
  color: black;
  

  overflow: hidden; 
  position: relative;
}

.card:hover {
  border: 1px solid black;
  transform: scale(1.05);
}

.card:active {
  transform: scale(0.95) rotateZ(1.7deg);
}


.card-video {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.card-overlay {
  position: relative;
  z-index: 2;
  color: white;
  font-size: 1.2rem;
  text-shadow: 0 2px 5px rgba(0,0,0,0.8);
  pointer-events: none;
}


.card.is-playing .card-overlay {
  opacity: 0;
  transition: opacity 0.3s ease;
}


.card video {
  transition: opacity 0.3s;
}


.card-container {
  display: flex;           /* Activa el modelo flexible (pone los hijos en fila) */
  flex-direction: row;     /* Asegura que vayan de izquierda a derecha */
  gap: 2rem;               /* Agrega espacio entre las tarjetas (32px aprox) */
  justify-content: center; /* Centra las tarjetas horizontalmente */
  flex-wrap: wrap;         /* Permite que bajen a la siguiente línea si no caben (útil en celulares) */
}

/* ==========================================================================
   7. BOTÓN DE AUDIO (SWITCH)
   ========================================================================== */
.audio-wrapper {
  position: absolute; 
  top: 200px;         
  left: 5%;           
  z-index: 1000;      
}


.toggleSwitch {
  width: 50px;
  height: 50px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(41, 0, 35); 
  border-radius: 50%;
  cursor: pointer;
  transition-duration: 0.3s;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.13);
  overflow: hidden;
}

/* Hide default HTML checkbox */
#checkboxInput {
  display: none;
}

.speaker {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition-duration: 0.3s;
}

.speaker svg {
  width: 18px;
}

.mute-speaker {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  z-index: 3;
  transition-duration: 0.3s;
}

.mute-speaker svg {
  width: 18px;
}

#checkboxInput:checked + .toggleSwitch .speaker {
  opacity: 0;
  transition-duration: 0.3s;
}

#checkboxInput:checked + .toggleSwitch .mute-speaker {
  opacity: 1;
  transition-duration: 0.3s;
  background-color: rgb(43, 0, 0);
}

#checkboxInput:active + .toggleSwitch {
  transform: scale(0.7);
}

#checkboxInput:hover + .toggleSwitch {
  background-color: rgb(61, 61, 61);
}

/* ==========================================================================
   8. BUSCADOR Y GRID DE DATOS
   ========================================================================== */
.search-container {
    width: 100%;
    max-width: 600px;
    margin: 120px auto 50px; /* Margen superior para bajarlo del nav */
    position: relative;
}

#searchInput {
    width: 100%;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #a084ff;
    border-radius: 30px;
    color: white;
    font-size: 1.2rem;
    font-family: 'Orbitron', sans-serif; /* O tu fuente actual */
    outline: none;
    backdrop-filter: blur(5px);
    transition: 0.3s;
}

#searchInput:focus {
    box-shadow: 0 0 15px #a084ff;
    background: rgba(0, 0, 0, 0.8);
}

/* Grid de Tarjetas */
.data-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 0 20px;
}

/* Tarjetas de Datos */
.data-card {
    background: rgba(20, 20, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #a084ff; /* Borde de color a la izquierda */
    width: 300px;
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s;
    backdrop-filter: blur(10px);
}

.data-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.card-header {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.card-body p {
    color: #ccc;
    margin-bottom: 10px;
    line-height: 1.4;
}

.sources small {
    display: block;
    color: #888;
    margin-top: 15px;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.sources ul {
    list-style: none;
    padding: 0;
}

.sources a {
    color: #a084ff;
    text-decoration: none;
    font-size: 0.85rem;
}

.sources a:hover {
    text-decoration: underline;
}

/* =========================================
   9. ESTILOS SECCIÓN DE COMENTARIOS
   ========================================= */

.database-container {
  padding-top: 120px; /* Espacio para el header */
  padding-bottom: 50px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 10;
  position: relative;
}

.search-header {
  text-align: center;
  margin-bottom: 60px;
  color: white;
}

.db-title {
  font-family: 'Orbitron', sans-serif; /* Si no carga, usa sans-serif */
  font-size: 2.5rem;
  letter-spacing: 4px;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  margin-bottom: 10px;
}

.db-subtitle {
  color: #ccc;
  font-size: 1rem;
  margin-bottom: 30px;
}

/* --- BARRA DE BÚSQUEDA --- */
.search-bar-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

#searchInput {
  width: 100%;
  padding: 15px 50px 15px 25px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: white;
  font-size: 1.1rem;
  outline: none;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

#searchInput:focus {
  border-color: #a084ff;
  box-shadow: 0 0 15px rgba(160, 132, 255, 0.4);
  background: rgba(0, 0, 0, 0.6);
}

.search-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  opacity: 0.7;
}

/* --- GRID DE TARJETAS --- */
.data-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 0 20px;
}

.data-card {
  background: rgba(20, 20, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  width: 280px;
  padding: 25px;
  backdrop-filter: blur(15px);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  display: block; 
}

.data-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Línea de color superior  */
.card-line {
  width: 40px;
  height: 4px;
  background: #a084ff;
  border-radius: 2px;
  margin-bottom: 15px;
}

/* Variaciones de color para la línea */
.line-mercury { background: #b5b5b5; }
.line-venus { background: #d4a373; }
.line-earth { background: #2e86c1; }
.line-mars { background: #c1440e; }
.line-jupiter { background: #d5b77a; }
.line-saturn { background: #d8c370; }
.line-uranus { background: #7fdbff; }
.line-neptune { background: #365bff; }

.data-card h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.card-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #aaa;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 10px;
}

.card-desc {
  font-size: 0.95rem;
  color: #e0e0e0;
  line-height: 1.5;
  margin-bottom: 20px;
  min-height: 60px;
}

/* Sección de Fuentes */
.card-sources {
  background: rgba(0, 0, 0, 0.3);
  padding: 10px;
  border-radius: 8px;
}

.card-sources small {
  display: block;
  color: #666;
  font-size: 0.7rem;
  margin-bottom: 5px;
  font-weight: bold;
}

.card-sources a {
  display: block;
  color: #a084ff; /* Color morado */
  font-size: 0.8rem;
  text-decoration: none;
  margin-bottom: 2px;
  transition: color 0.2s;
}

.card-sources a:hover {
  color: white;
  text-decoration: underline;
}

/* =========================================
   ESTILOS SECCIÓN DE COMENTARIOS
   ========================================= */

.comments-section {
  max-width: 800px;
  margin: 50px auto 100px;
  padding: 0 20px;
  color: white;
}

.comment-form {
  background: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.comment-form input,
.comment-form textarea {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #444;
  color: white;
  padding: 12px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  outline: none;
  transition: 0.3s;
  resize: none; /* Evita que estiren el area de texto */
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: #a084ff;
  box-shadow: 0 0 8px rgba(160, 132, 255, 0.3);
}

.comment-form button {
  background: linear-gradient(45deg, #a084ff, #6a4bff);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  align-self: flex-end; /* Pone el botón a la derecha */
  transition: transform 0.2s;
}

.comment-form button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #a084ff;
}

/* --- Estilo de cada comentario individual --- */
.single-comment {
  background: rgba(20, 20, 30, 0.8);
  border-left: 4px solid #a084ff;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 0 10px 10px 0;
  animation: slideIn 0.5s ease;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #ccc;
}

.user-name {
  font-weight: bold;
  color: #a084ff;
  text-transform: uppercase;
}

.comment-date {
  font-size: 0.75rem;
  opacity: 0.7;
}

.comment-text {
  font-size: 1rem;
  line-height: 1.4;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}


/* Configuración del Canvas 3D */
.spline-fondo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; 
  pointer-events: none; 
}

/* CUADRO NEGRO PARA OCULTAR CRÉDITOS DE SPLINE */
.spline-creditos-ocultar {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 180px; 
  height: 100px; 
  background-color: #080011; 
  z-index: 10000; 
  pointer-events: none; 
}