:root {
  --bg: #0f0f0f;
  --accent: #00ffe1;
  --text: #f0f0f0;
  --card: #1a1a1a; /* ← fondo para modo oscuro */
}

body.modo-claro {
  --bg: #f9f9f9;
  --text: #ffffff; /* ← texto blanco */
  --accent: #0077ff;
  --card: #ffffff;
}
body.modo-claro h2,
body.modo-claro h3 {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

body.modo-claro {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); /* sombra negra suave */
}

body.modo-claro h2 + p,
body.modo-claro h3 + p,
body.modo-claro ul,
body.modo-claro footer {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.5s ease, color 0.5s ease;
  overflow-x: hidden;
}

body.modo-claro {
  --bg: #f9f9f9;
  --text: #111;
  --accent: #0077ff;
}

/* Loader */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loader.oculto {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Encabezado */
.encabezado {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  background: var(--bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.branding h1 {
  font-size: 2.5rem;
  margin: 0;
  color: var(--accent);
  letter-spacing: 2px;
}

.subtitulo {
  font-size: 1rem;
  color: var(--text);
  margin-top: 0.3rem;
}

.menu {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.menu a {
  text-decoration: none;
  color: var(--text);
  font-weight: bold;
  transition: color 0.3s ease;
}

.menu a:hover {
  color: var(--accent);
}

#modoToggle {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--accent);
}

/* Hero */
.hero {
  text-align: center;
  padding: 4rem 2rem;
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #000;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px var(--accent);
  transition: all 0.3s ease;
}

/* Animaciones */
.animar {
  opacity: 0;
  transform: translateY(30px);
}

/* Secciones */
section {
  padding: 2rem;
  max-width: 900px;
  margin: auto;
}

.card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08); /* borde sutil */
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  color: var(--text);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px var(--accent);
}

/* Responsive grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}


footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
}
@keyframes zoomFade {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.logo {
  animation: zoomFade 1.5s ease-out forwards;
}
.icono {
  font-size: 2rem;
  color: var(--accent);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("fondo.png") center/cover no-repeat;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.2); /* 20% de opacidad negra */
  z-index: -1;
}
body.modo-claro::after {
  background: rgba(255, 255, 255, 0.2); /* capa blanca suave */
}
.menu {
  position: relative;
  z-index: 1000;
}

.hamburguesa {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--accent);
  cursor: pointer;
  display: none;
}

.menu-lista {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-lista li a,
.menu-lista li button {
  text-decoration: none;
  color: var(--text);
  font-weight: bold;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.menu-lista li a:hover {
  color: var(--accent);
}
/*body {
  cursor: url("cursor.svg"), auto;
}

.cursor {
  position: fixed;
  width: 2px;
  height: 20px;
  background: var(--accent);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
}*/
.boton-wsp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: inline-block;
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.boton-wsp img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 4px var(--accent));
}

.boton-wsp:hover {
  transform: scale(1.2);
}
body {
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.6;
  max-width: 100vw;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
}

p {
  font-size: clamp(1rem, 4vw, 1.2rem);
}
.presentacion {
  max-width: 100%;
  padding: 2rem;
  box-sizing: border-box;
}

/* Responsive */
@media (max-width: 768px) {
  .hamburguesa {
    display: block;
    z-index: 1001;
  }

  .menu-lista {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    border-radius: 0;
    display: none;
    z-index: 1000;
  }

  .menu-lista.activo {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
@media (max-width: 480px) {
  .presentacion h1 {
    font-size: 1.8rem;
  }

  .presentacion p {
    font-size: 1rem;
  }

  .card {
    padding: 1rem;
  }
}
