/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #000002, #0e1a47);
  color: rgb(255, 255, 255);
  min-height: 100vh;
  line-height: 1.6;
  padding-top: 120px;
  transition: background-color 0.3s ease;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow-x: hidden; /* Añadido para evitar el scroll horizontal */
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: moveBg 20s linear infinite;
  z-index: -1;
}

@keyframes moveBg {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(100px, 100px);
  }
}

section.container,
.anuncio,
nav,
.cookie-banner {
  position: relative;
  z-index: 1;
}
.anuncio {
  background: linear-gradient(135deg, #1e3a8a, #0e1a47);
  color: #ffffff;
  padding: 40px 30px;
  border-radius: 20px;
  margin: 50px auto;
  position: relative;
  text-align: center;
  max-width: 900px;
  box-shadow: 0 0 30px 10px rgba(30, 58, 138, 0.5);
  animation: slideDownFade 1s ease-out;
  overflow: hidden;
  margin-top: 100px;

}

@keyframes slideDownFade {
  0% {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.anuncio::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: moveBg 20s linear infinite;
  z-index: 0;
}

@keyframes moveBg {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(100px, 100px);
  }
}

.anuncio-contenido {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.anuncio strong {
  display: block;
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: #00b4d8;
  text-shadow: 2px 2px 8px #000;
  letter-spacing: 2px;
}

.anuncio p {
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: #ffffff;
  text-shadow: 1px 1px 4px #000;
}

.boton-anuncio {
  display: inline-block;
  padding: 16px 32px;
  background: linear-gradient(45deg, #00b4d8, #00e2a6);
  color: #1a1a1a;
  border-radius: 50px;
  font-size: 1.3rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 0 20px #00b4d880;
  transition: all 0.4s ease;
  animation: pulse 1.5s infinite;
}

.boton-anuncio:hover {
  background: linear-gradient(45deg, #00e2a6, #00b4d8);
  transform: scale(1.1) rotate(-1deg);
  box-shadow: 0 0 30px #00b4d8cc;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 10px #00b4d866;
  }
  50% {
    box-shadow: 0 0 25px #00b4d8cc;
  }
  100% {
    box-shadow: 0 0 10px #00b4d866;
  }
}

.cerrar-anuncio {
  position: absolute;
  top: 15px;
  right: 20px;
  background: transparent;
  border: none;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 3;
  text-shadow: 1px 1px 4px #000;
  transition: transform 0.2s ease;
}

.cerrar-anuncio:hover {
  transform: scale(1.3) rotate(90deg);
}


a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #3b82f6; /* Nuevo color azul más sutil */
}

/* Animaciones generales */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Títulos y textos */
.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lead {
  font-size: 1.25rem;
  font-weight: 600;
  color: #f1f1f1;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease-out;
}

h1.display-4 {
  animation: fadeInUp 1.2s ease-out;
}

/* Código */
code {
  color: #5a3ec8;
  background: #f1f1f1;
  padding: 0.2rem 0.4rem;
  border-radius: 0.3rem;
  font-family: 'Courier New', Courier, monospace;
}


/* Navbar Styles */
.navbar {
  background-color: #0d2538; /* Azul oscuro */
  padding: 15px 0;
}

.navbar-toggler {
  border-color: #00b4d8; /* Color del ícono de toggle */
}

.navbar-toggler-icon {
  background-color: #00b4d8; /* Color del ícono de toggle */
}

.nav-link {
  color: #e0e0e0 !important; /* Color de texto de los links */
  font-size: 1.1rem;
  text-transform: uppercase;
  padding: 10px 15px;
  transition: color 0.3s ease-in-out;
}

.nav-link:hover {
  color: #00b4d8 !important; /* Color cuando el link está en hover */
  text-decoration: underline;
}

.nav-item.active .nav-link {
  color: #00b4d8 !important; /* Color del link activo */
  font-weight: bold;
}

.navbar-light .navbar-nav .nav-link {
  color: #ffffff !important; /* Asegurar que los links sean blancos por defecto */
}

.bg-dark {
  background-color: #0d2538 !important; /* Color de fondo de la navbar */
}

/* Asegura que la navbar se vea bien en dispositivos móviles */
@media (max-width: 992px) {
  .navbar-nav {
    text-align: center;
  }
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #0f1a2b;
  padding: 10px;
  text-align: center;
  color: #cfd8dc;
}

.cookie-banner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.cookie-banner a {
  color: #00b4d8;
}

.cookie-banner button:hover {
  color: rgb(13, 71, 161);
}

.cookie-banner button {
  background-color: #00b4d8;
  border: none;
  color: #fff;
  padding: 10px;
  font-size: 14px;
  cursor: pointer;
}

.bg-scroll {
  transition: background-color 0.3s ease-in-out;
}

.bg-scroll.scrolled {
  background-color: rgba(255, 255, 255, 0.644);
}


.text-small {
  font-size: 0.9rem !important;
}

/* Section Animations */
section {
  animation: fadeInUp 1s ease-out;
}

/* Adding smooth hover effects for interactive elements */
a:hover, .navbar-nav .nav-link:hover, .cookie-banner a:hover {
  color: #3b82f6;
  text-decoration: underline;
  transition: color 0.3s ease;
}

/* Custom Buttons */
button {
  border-radius: 5px;
  padding: 12px 24px;
  font-size: 1rem;
  background-color: #3b82f6; /* Color más adecuado */
  color: white;
  transition: all 0.3s ease;
}

button:hover {
  background-color: #2563eb;
  transform: scale(1.05);
}

/* Mejorar visibilidad de textos en secciones con fondo claro */
section .text-white, .lead, h1, h2, p {
  color: #f1f1f1 !important; /* Asegura que el texto sea visible sobre el fondo claro */
}

section .text-left, ul {
  color: #f1f1f1 !important;
}
