/* ===========================
   RESET Y ESTILOS BASE
=========================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #0b0f14;
  color: #eee;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #00ffcc;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover,
a:focus {
  color: #00d9b1;
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===========================
   NAVBAR
=========================== */

.nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: #05080c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.3rem;
  color: #00ffcc;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.menu a {
  font-weight: 600;
  font-size: 1rem;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.menu a:hover,
.menu a:focus {
  background-color: rgba(0, 255, 204, 0.15);
  outline: none;
}

.cta-mini {
  background-color: #00ffcc;
  color: #0b0f14;
  padding: 8px 14px;
  font-weight: 700;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,255,204,0.5);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.cta-mini:hover,
.cta-mini:focus {
  background-color: #00d9b1;
  box-shadow: 0 6px 16px rgba(0,217,177,0.7);
  outline: none;
}

/* Burger menú (solo visible en móvil) */
.burger {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: #00ffcc;
  cursor: pointer;
  padding: 8px;
  display: none;
  transition: color 0.3s ease;
}

.burger:hover,
.burger:focus {
  color: #00d9b1;
  outline: none;
}

/* Drawer menú lateral */
.drawer {
  position: fixed;
  top: 0;
  right: -260px;
  width: 260px;
  height: 100vh;
  background-color: #0b0f14;
  box-shadow: -4px 0 12px rgba(0,0,0,0.6);
  transition: right 0.3s ease;
  z-index: 1100;
}

.drawer.open {
  right: 0;
}

.drawer .panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.drawer .close {
  align-self: flex-end;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: #00ffcc;
  cursor: pointer;
  margin-bottom: 18px;
  transition: color 0.3s ease;
}

.drawer .close:hover,
.drawer .close:focus {
  color: #00d9b1;
  outline: none;
}

.drawer a {
  font-weight: 600;
  font-size: 1.1rem;
  color: #00ffcc;
  padding: 10px 6px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.drawer a:hover,
.drawer a:focus {
  background-color: rgba(0, 255, 204, 0.15);
  outline: none;
}

/* Mostrar burger y ocultar menu normal en pantallas pequeñas */
@media (max-width: 768px) {
  .menu {
    display: none;
  }
  .burger {
    display: block;
  }
}

/* ===========================
   HERO
=========================== */

.hero {
  position: relative;
  min-height: 100svh; /* mejor que 100vh en móviles */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(0,0,0,0.45), rgba(0,0,0,0.85)),
    linear-gradient(180deg, rgba(11,15,20,0.6), rgba(11,15,20,0.95));
  z-index: 1;
  opacity: 0;
  animation: fadeInOverlay 1s forwards ease-in-out;
}

@keyframes fadeInOverlay {
  to { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 920px;
  padding: 24px;
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-content h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  margin: 14px 0;
  color: #ffffff;
}

.hero-content p {
  max-width: 720px;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: rgba(245,247,251,0.75);
  line-height: 1.7;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #00ffcc;
}

.kicker .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ffcc;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  padding: 0.75em 1.6em;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  color: #eee;
  background-color: transparent;
}

.btn:hover,
.btn:focus {
  outline: none;
  border-color: #00ffcc;
}

.btn.primary {
  background-color: #00ffcc;
  color: #0b0f14;
  font-weight: 700;
  padding: 0.75em 1.6em;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0, 255, 204, 0.4);
  border: none;
}

.btn.primary:hover,
.btn.primary:focus {
  background-color: #00d9b1;
  box-shadow: 0 6px 14px rgba(0, 217, 177, 0.7);
  outline: none;
}

/* Responsive hero */
@media (max-width: 1024px) {
  .hero-content {
    padding: 20px;
  }
}

@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 2.1rem;
  }

  .hero-actions {
    gap: 10px;
  }
}

@media (min-width: 1600px) {
  .hero-content {
    max-width: 1100px;
  }
}

/* ===========================
   SECCIONES
=========================== */

.section {
  background: #0b0f14;
  padding: 40px 24px;
}

.section.dark {
  background: #05080c;
  padding: 40px 24px;
}

.section h2 {
  color: #00ffcc;
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 24px;
  text-align: center;
}

/* GRID para tarjetas */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 0 12px;
}

/* TARJETAS */
.card {
  background: #121721;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 16px rgb(0 0 0 / 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #eee;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: default;
}

.card:hover,
.card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0, 255, 204, 0.5);
  outline: none;
}

.card h3 {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: #00ffcc;
}

.card p {
  flex-grow: 1;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #ccc;
  margin-bottom: 12px;
}

.card span {
  font-weight: 800;
  font-size: 1.1rem;
  color: #00ffcc;
  align-self: flex-end;
}

/* ===========================
   ANIMACIONES REVEAL
=========================== */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   MEDIA QUERIES ADICIONALES
=========================== */

@media (max-width: 400px) {
  .card h3 {
    font-size: 1.1rem;
  }
  .card p {
    font-size: 0.85rem;
  }
  .card span {
    font-size: 1rem;
  }
}
