/* =========================
   CONFIGURACIÓN GENERAL
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

html, body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  background: transparent;
}

body {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 0;
}

/* =========================
   FONDO GIF (SIEMPRE VISIBLE)
========================= */
.bg-gif {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("imagenes/gif.gif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}

/* Oscurecer un poco el fondo */
.bg-gif::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: -1;
}

/* =========================
   NAVBAR
========================= */
.nav-link {
  color: #94A3B8;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: 0.2s;
  text-decoration: none;
  display: inline-block;
}

.nav-link:hover {
  color: white;
  background: rgba(255,255,255,0.05);
}

/* =========================
   SEARCH
========================= */
.search-input {
  width: 14rem;
  padding: 0.5rem 0.75rem;
  background-color: #18181b;
  border: 1px solid #27272a;
  border-radius: 0.5rem;
  color: #E2E8F0;
  font-size: 0.875rem;
}

.search-input::placeholder {
  color: #94A3B8;
}

.search-input:focus {
  outline: none;
  border-color: #38BDF8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.4);
}

textarea.search-input {
  resize: none;
  height: 120px;
}

/* =========================
   SEARCH RESULTS
========================= */
.search-results {
  position: absolute;
  top: 110%;
  right: 0;
  width: 100%;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 0.75rem;
  padding: 0.5rem;
  z-index: 50;
  max-height: 300px;
  overflow-y: auto;
}

.search-results.hidden {
  display: none;
}

.search-results .link-item {
  list-style: none;
}

.search-results a {
  display: block;
  padding: 0.75rem;
  border-radius: 0.5rem;
  color: #E2E8F0;
  font-size: 0.875rem;
  text-decoration: none;
}

.search-results a:hover {
  background: #0a0a0a;
}

/* =========================
   BADGE
========================= */
.badge {
  display: inline-block;
  background: #18181b;
  color: #34D399;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* =========================
   HERO
========================= */
.title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: white;
  margin-top: 1.5rem;
  text-align: center;
}

.gradient-text {
  background: linear-gradient(to right, #38BDF8, #34D399);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  max-width: 42rem;
  margin: 1.5rem auto 0;
  color: #94A3B8;
  text-align: center;
}

/* =========================
   FEATURE CARDS
========================= */
.feature-card {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 1rem;
  padding: 1.5rem;
}

.feature-card h3 {
  font-weight: 700;
  color: white;
}

.feature-card p {
  color: #94A3B8;
  font-size: 0.875rem;
}

span.highlight {
  color: #38BDF8;
  font-weight: 600;
}

/* =========================
   BOTONES
========================= */
.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  margin-top: 2rem;
}

.btn {
  min-width: 200px;
  text-align: center;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  height: 54px;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: 0.3s;
  text-decoration: none;
}

.btn-primary {
  background-color: #38bdf8;
  color: #000;
  border: none;
  box-shadow: 0 0 20px rgba(56,189,248,0.3);
  padding: 0.75rem 2rem;
}

.btn-primary:hover {
  background-color: #0ea5e9;
  box-shadow: 0 0 30px rgba(14,165,233,0.4);
}

.btn-secondary {
  background-color: #ff1f02;
  color: #94a3b8;
  border: none;
  padding: 0.75rem 2rem;
}

.btn-secondary svg {
  margin-right: 0.5rem;
}

/* =========================
   RESPONSIVE (SIN APAGAR EL FONDO)
========================= */
@media (max-width: 768px) {
  .bg-gif {
    background-size: cover;
    background-position: center;
  }

  .button-container {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}
footer {
  background-color: #000;
}

/* estilos.css */

:root {
  --color-blue: #38BDF8;
  --color-teal: #2DD4BF;
}

/* Contenedor del fondo */
.bg-mesh {
    background-color: #000000;
    position: fixed;
    inset: 0;
    z-index: -10;
    overflow: hidden;
    /* Rejilla sutil opcional */
    background-image: radial-gradient(rgba(39, 39, 42, 0.3) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Esferas de gradiente animadas */
.bg-mesh::before, 
.bg-mesh::after {
    content: "";
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.12;
    z-index: -1;
    animation: meshFlow 25s infinite alternate ease-in-out;
}

.bg-mesh::before {
    background: var(--color-blue);
    top: -10%;
    left: -10%;
}

.bg-mesh::after {
    background: var(--color-teal);
    bottom: -10%;
    right: -10%;
    animation-delay: -12s;
}

@keyframes meshFlow {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(10%, 20%) scale(1.1); }
    66% { transform: translate(-5%, 15%) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Estilos para el Menú Móvil Corregido */
    #mobileMenu {
      transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      transform: translateX(100%);
      background-color: #18181b; /* Color sólido para evitar transparencia */
      box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    #mobileMenu.active {
      transform: translateX(0);
    }
    .mobile-overlay {
      position: fixed; inset: 0; background: rgba(0,0,0,0.6);
      backdrop-filter: blur(4px); z-index: 55; display: none;
    }
    .mobile-overlay.active { display: block; }