/* =========================================
   VARIABLES Y RESET
========================================= */
:root {
  --azul: #0066CC;
  --azul-claro: #4DA8FF;
  --morado: #7B5CFA;
  --cyan: #00D4FF;
  --verde: #00C853;
  --verde-claro: #00E676;
  --naranja: #FF6B35;
  --amarillo: #FFD23F;
  --rojo: #FF3B5C;

  --blanco: #FFFFFF;
  --bg-dark: #0B0B22;
  --bg-dark-alt: #13132E;
  --texto-secundario: rgba(255, 255, 255, 0.65);
  --borde-claro: rgba(255, 255, 255, 0.12);
  --texto-oscuro: #14142B;

  --font-titulos: 'Montserrat', sans-serif;
  --font-cuerpo: 'Open Sans', sans-serif;

  --radio: 18px;
  --sombra: 0 10px 30px rgba(0, 0, 0, 0.3);
  --sombra-hover: 0 18px 40px rgba(0, 0, 0, 0.45);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-cuerpo);
  color: var(--blanco);
  line-height: 1.6;
  background-color: var(--bg-dark);
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

img {
  max-width: 100%;
  display: block;
}

.hidden {
  display: none !important;
}

/* =========================================
   ANIMACIONES DE ENTRADA (scroll reveal)
========================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   NAVBAR
========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background-color: rgba(11, 11, 30, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 0;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-titulos);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 1px;
  color: var(--blanco);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a:not(.nav-cta) {
  font-family: var(--font-titulos);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--blanco);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.nav-links a:not(.nav-cta):hover {
  opacity: 1;
}

.nav-cta {
  font-family: var(--font-titulos);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--blanco);
  text-decoration: none;
  background: linear-gradient(135deg, var(--verde) 0%, var(--verde-claro) 100%);
  padding: 10px 22px;
  border-radius: 50px;
  box-shadow: 0 6px 18px rgba(0, 200, 83, 0.4);
  transition: transform 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
}

@media (max-width: 700px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }
}

/* =========================================
   HERO PANTALLA COMPLETA
========================================= */
.hero-full {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--blanco);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #0B0B22;
  background-image:
    radial-gradient(circle at 18% 28%, rgba(123, 92, 250, 0.55), transparent 42%),
    radial-gradient(circle at 82% 18%, rgba(0, 212, 255, 0.45), transparent 42%),
    radial-gradient(circle at 50% 85%, rgba(0, 200, 83, 0.35), transparent 45%),
    radial-gradient(circle at 90% 90%, rgba(255, 107, 53, 0.35), transparent 40%);
  filter: blur(70px);
  animation: meshMove 20s ease-in-out infinite alternate;
}

@keyframes meshMove {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.2) translate(-4%, 3%); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(11, 11, 34, 0.25) 0%, rgba(11, 11, 34, 0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-headline {
  font-family: var(--font-titulos);
  font-weight: 800;
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  max-width: 600px;
  opacity: 0.85;
  margin-bottom: 36px;
}

.hero-link {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-titulos);
  font-weight: 700;
  color: var(--blanco);
  text-decoration: underline;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.hero-link:hover {
  opacity: 1;
}

/* Indicador de scroll */
.scroll-down {
  position: absolute;
  bottom: 130px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounceArrow 2.2s ease-in-out infinite;
}

.scroll-down::before {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--blanco);
  border-bottom: 2px solid var(--blanco);
  transform: rotate(45deg) translate(-2px, -2px);
}

@keyframes bounceArrow {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Tarjetas que se asoman hacia la siguiente sección */
.hero-peek {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -60px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 700px) {
  .hero-peek {
    grid-template-columns: repeat(4, 1fr);
    bottom: -70px;
  }
}

.peek-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radio);
  padding: 20px 14px;
  text-align: center;
  color: var(--blanco);
  box-shadow: var(--sombra);
}

.peek-icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 8px;
}

.peek-card p {
  font-family: var(--font-titulos);
  font-weight: 700;
  font-size: 0.85rem;
}

@media (max-width: 700px) {
  .scroll-down {
    display: none;
  }

  .hero-sub {
    margin-bottom: 24px;
  }

  .hero-link {
    margin-top: 12px;
  }

  .hero-peek {
    bottom: -40px;
    gap: 10px;
  }

  .peek-card {
    padding: 12px 8px;
  }

  .peek-icon {
    font-size: 1.5rem;
    margin-bottom: 4px;
  }

  .peek-card p {
    font-size: 0.72rem;
  }
}

/* =========================================
   HERO / OPCIONES
========================================= */
.hero {
  padding: 130px 0 70px;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-alt) 100%);
  position: relative;
  scroll-margin-top: 80px;
}

@media (min-width: 700px) {
  .hero {
    padding-top: 150px;
  }
}

.badge-urgencia {
  display: block;
  width: fit-content;
  margin: -45px auto 30px;
  background: linear-gradient(90deg, var(--naranja), var(--rojo));
  color: var(--blanco);
  font-family: var(--font-titulos);
  font-weight: 700;
  font-size: clamp(0.8rem, 2.5vw, 0.95rem);
  padding: 12px 26px;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
  text-align: center;
  animation: pulseBadge 2.4s ease-in-out infinite;
}

@keyframes pulseBadge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.hero-title {
  font-family: var(--font-titulos);
  font-weight: 800;
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  text-align: center;
  max-width: 850px;
  margin: 0 auto 36px;
  color: var(--blanco);
}

.highlight {
  background: linear-gradient(90deg, var(--cyan), var(--verde-claro));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========================================
   OPCIONES (formulario / whatsapp)
========================================= */
.options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 900px) {
  .options-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: stretch;
  }
}

.option-card {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 38px 30px 34px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.option-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--azul), var(--morado));
}

.option-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sombra-hover);
}

.option-title {
  font-family: var(--font-titulos);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--azul-claro);
  margin-bottom: 20px;
}

.option-card-whatsapp {
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, rgba(0, 200, 83, 0.10) 0%, rgba(0, 212, 255, 0.05) 100%);
  border-color: rgba(0, 200, 83, 0.18);
}

.option-card-whatsapp::before {
  background: linear-gradient(90deg, var(--verde), var(--cyan));
}

.whatsapp-pulse {
  font-size: 2.4rem;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--verde), var(--verde-claro));
  box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.5);
  margin-bottom: 16px;
  animation: pulseRing 2.2s ease-out infinite;
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.45); }
  70% { box-shadow: 0 0 0 18px rgba(0, 200, 83, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 200, 83, 0); }
}

.option-text {
  color: var(--texto-secundario);
  margin-bottom: 30px;
}

/* =========================================
   FORMULARIO
========================================= */
.form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form label {
  font-family: var(--font-titulos);
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 14px;
  color: var(--blanco);
}

.form input,
.form select,
.form textarea {
  font-family: var(--font-cuerpo);
  font-size: 1rem;
  padding: 13px 16px;
  border: 2px solid var(--borde-claro);
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--blanco);
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.form input::placeholder,
.form textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--morado);
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 4px rgba(123, 92, 250, 0.15);
}

.form textarea {
  resize: vertical;
  min-height: 80px;
}

.char-counter {
  align-self: flex-end;
  font-size: 0.8rem;
  color: var(--texto-secundario);
  margin-top: -2px;
}

.form-message {
  margin-top: 16px;
  font-weight: 700;
  text-align: center;
  font-family: var(--font-titulos);
  min-height: 1.2em;
}

.form-message.success {
  color: var(--verde);
}

.form-message.error {
  color: var(--rojo);
}

/* =========================================
   BOTONES
========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-titulos);
  font-weight: 800;
  text-decoration: none;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  text-align: center;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.05);
}

.btn:active {
  transform: translateY(0) scale(0.99);
}

.btn-green {
  background: linear-gradient(135deg, var(--verde) 0%, var(--verde-claro) 100%);
  color: var(--blanco);
  box-shadow: 0 10px 24px rgba(0, 200, 83, 0.4);
}

.btn-large {
  font-size: 1.1rem;
  padding: 17px 32px;
  margin-top: 24px;
  width: 100%;
}

.btn-whatsapp {
  font-size: 1.15rem;
}

.btn-xxl {
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  padding: 24px 50px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.btn.pulse {
  animation: pulseBtn 2.4s ease-in-out infinite;
}

@keyframes pulseBtn {
  0%, 100% { box-shadow: 0 10px 24px rgba(0, 200, 83, 0.4); }
  50% { box-shadow: 0 10px 36px rgba(0, 200, 83, 0.7); }
}

/* =========================================
   VIDEOS
========================================= */
.videos {
  padding: 70px 0;
  background-color: var(--bg-dark);
  scroll-margin-top: 80px;
}

.section-title {
  font-family: var(--font-titulos);
  font-weight: 800;
  font-size: clamp(1.5rem, 4.5vw, 2.2rem);
  text-align: center;
  color: var(--blanco);
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  color: var(--texto-secundario);
  font-weight: 600;
  margin-bottom: 40px;
}

.videos-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 24px;
}

@media (min-width: 700px) {
  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .videos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Recorta la barra de herramientas que añade Google Drive en su preview */
.video-drive iframe {
  top: -56px;
  height: calc(100% + 56px);
}

/* Tarjetas "próximamente" mientras no hay video */
.video-placeholder {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: var(--blanco);
  background: linear-gradient(135deg, var(--azul) 0%, var(--morado) 100%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-placeholder:nth-child(2) {
  background: linear-gradient(135deg, var(--verde) 0%, var(--cyan) 100%);
}

.video-placeholder:nth-child(3) {
  background: linear-gradient(135deg, var(--naranja) 0%, var(--amarillo) 100%);
}

.video-placeholder:nth-child(4) {
  background: linear-gradient(135deg, var(--morado) 0%, var(--rojo) 100%);
}

.video-placeholder:nth-child(5) {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--azul) 100%);
}

.video-placeholder:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--sombra-hover);
}

.video-icon {
  font-size: 2.6rem;
  margin-bottom: 12px;
}

.video-placeholder h3 {
  font-family: var(--font-titulos);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.video-placeholder p {
  font-size: 0.85rem;
  opacity: 0.9;
  max-width: 240px;
}

.video-tag {
  margin-top: 14px;
  font-family: var(--font-titulos);
  font-weight: 700;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.25);
  padding: 6px 14px;
  border-radius: 50px;
  letter-spacing: 1px;
}

/* =========================================
   CTA FINAL
========================================= */
.cta-final {
  position: relative;
  background: linear-gradient(180deg, var(--bg-dark-alt) 0%, var(--bg-dark) 100%);
  color: var(--blanco);
  text-align: center;
  padding: 80px 20px;
  overflow: hidden;
  scroll-margin-top: 80px;
}

.cta-shapes {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(123, 92, 250, 0.35) 0%, transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(0, 212, 255, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(0, 200, 83, 0.25) 0%, transparent 45%);
  filter: blur(60px);
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-titulos);
  font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  margin-bottom: 14px;
  position: relative;
}

.cta-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  opacity: 0.9;
  margin-bottom: 32px;
  position: relative;
}

/* =========================================
   FOOTER
========================================= */
.footer {
  background-color: var(--texto-oscuro);
  color: var(--blanco);
  text-align: center;
  padding: 34px 20px;
  font-family: var(--font-titulos);
  font-weight: 700;
}

.footer p {
  margin: 4px 0;
}

.copyright {
  font-family: var(--font-cuerpo);
  font-weight: 400;
  font-size: 0.85rem;
  opacity: 0.6;
}
