@import url('https://fonts.googleapis.com/css2?family=Commissioner:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg-color: #000000;
  --bg-card: #0d0d0d;
  --text-main: #ffffff;
  --text-muted: #a1a1aa;
  --primary-red: #ff0000;
  --btn-red: #ff0000;
  --btn-purple: #7a00df;
  --accent-gold: #ffd700;
  --font-family: 'Commissioner', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Tipografías y Colores */
h1, h2, h3, h4, h5, h6, .titulos, .l-titulos {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.titulos, .l-titulos {
  font-size: 1.75rem;
  line-height: 1.25;
  color: #ffffff;
  text-align: center;
}

.titulos-morado {
  color: #9b51e0;
  font-weight: 800;
  text-transform: uppercase;
}

.texto-blanco { color: #ffffff; }
.texto-rojo { color: var(--primary-red); }
.texto-bold { font-weight: 700; }
.texto-gris-disclaimer {
  color: #71717a;
  font-size: 0.8rem;
  line-height: 1.6;
  text-align: center;
}

/* Espaciados */
.c-margin-bottom-xs { margin-bottom: 8px; }
.c-margin-bottom-s  { margin-bottom: 16px; }
.c-margin-bottom-m  { margin-bottom: 24px; }
.c-margin-bottom-l  { margin-bottom: 32px; }
.c-margin-bottom-xl { margin-bottom: 48px; }
.c-padding-s        { padding: 16px; }
.c-padding-m        { padding: 24px; }

/* Contenedores */
.ct-section {
  width: 100%;
  padding: 40px 16px;
  display: flex;
  justify-content: center;
}

.ct-section-inner-wrap {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Botones principales con animación crecerBajar */
.boton, .boton-morado, .ct-link-text.boton {
  display: inline-block;
  font-family: var(--font-family);
  font-weight: 800;
  font-size: 1.15rem;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  padding: 18px 32px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: crecerBajar 2s infinite ease-in-out;
  will-change: transform;
  border: none;
  outline: none;
}

.boton, .ct-link-text.boton {
  background-color: var(--btn-red);
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(249, 66, 58, 0.45);
}

.boton-morado {
  background-color: var(--btn-purple);
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(122, 0, 223, 0.45);
}

.boton:hover {
  background-color: #e02f27;
  transform: scale(1.05);
}

.boton-morado:hover {
  background-color: #6300b8;
  transform: scale(1.05);
}

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

/* Barra de progreso de video (25%, 50%, 75%, 99%) */
.progress-container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 24px auto;
  text-align: center;
}

.progress-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.progress-track {
  width: 100%;
  height: 12px;
  background-color: #27272a;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background-color: var(--primary-red);
  border-radius: 20px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Encabezado de clase */
.video-header-title {
  font-size: 1.35rem;
  font-weight: 800;
  text-align: center;
  max-width: 850px;
  margin: 0 auto 24px auto;
  line-height: 1.3;
}

.video-header-title span.tag {
  color: var(--primary-red);
}

/* Envoltorio de video */
.video-wrap {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  background-color: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.video-wrap iframe,
.video-wrap vturb-smartplayer {
  display: block;
  width: 100%;
}

/* Video Flotante / Stuck al Scrollear */
.video.stuck {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 320px;
  max-width: calc(100vw - 48px);
  z-index: 99990;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.9);
  border: 2px solid var(--primary-red);
  animation: stuckVideoIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes stuckVideoIn {
  from {
    transform: translateY(60px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Sticky Top Bar con Contador */
.sticky-top-bar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #09090b;
  border-bottom: 2px solid #ff0000;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.sticky-top-bar .timer-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sticky-top-bar .timer-text {
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1.25;
}

/* ==========================================================================
   Temporizador Evergreen 3D / Premium Countdown Box
   ========================================================================== */
.countdown-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: radial-gradient(circle at center, rgba(30, 30, 35, 0.8) 0%, rgba(10, 10, 12, 0.95) 100%);
  border: 1px solid rgba(255, 0, 0, 0.35);
  border-radius: 18px;
  padding: 14px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 0 20px rgba(255, 0, 0, 0.15);
  backdrop-filter: blur(8px);
  margin: 10px auto 16px auto;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #242429 0%, #16161a 50%, #0d0d10 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  min-width: 90px;
  padding: 10px 16px 8px 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 12px rgba(255, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

/* Efecto de hendidura horizontal central estilo flip-clock luxury */
.countdown-item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.countdown-digits {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.1;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 10px rgba(255, 255, 255, 0.3);
  z-index: 1;
}

.countdown-lbl {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ff3333;
  text-transform: uppercase;
  margin-top: 4px;
  z-index: 1;
  text-shadow: 0 0 8px rgba(255, 0, 0, 0.4);
}

.countdown-sep {
  font-size: 2.2rem;
  font-weight: 900;
  color: #ff0000;
  text-shadow: 0 0 12px rgba(255, 0, 0, 0.8);
  margin-top: -12px;
  animation: sepBlink 1s infinite;
}

@keyframes sepBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.92); }
}

@media (max-width: 600px) {
  .countdown-box {
    gap: 8px;
    padding: 10px 14px;
  }
  .countdown-item {
    min-width: 72px;
    padding: 8px 10px 6px 10px;
  }
  .countdown-digits {
    font-size: 1.9rem;
  }
  .countdown-lbl {
    font-size: 0.6rem;
    letter-spacing: 1px;
  }
  .countdown-sep {
    font-size: 1.6rem;
  }
}

/* Grilla Dinámica de Testimonios */
.proof-dynamic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: 100%;
  margin: 32px 0;
}

@media (max-width: 900px) {
  .proof-dynamic-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .proof-dynamic-grid {
    grid-template-columns: 1fr;
  }
}

.proof-card {
  background: #111113;
  border: 1px solid #27272a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.proof-card:hover {
  transform: translateY(-4px);
  border-color: #ff0000;
}

.proof-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* Grilla de Videos de Alumnos */
.video-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  margin: 28px 0;
}

@media (max-width: 960px) {
  .video-testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .video-testimonials-grid {
    grid-template-columns: 1fr;
  }
}

.video-card-item {
  background: #0e0e11;
  border: 1px solid #27272a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  aspect-ratio: 16/9;
}

.video-card-item iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Temporizador Countdown */
.countdown-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 12px 0 24px 0;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  min-width: 50px;
}

.countdown-digits {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  font-family: inherit;
  line-height: 1;
}

.countdown-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.countdown-sep {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
}

/* Cuadrículas Responsive */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
  align-items: center;
  text-align: left;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

/* Imágenes */
.ct-image {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Cajas y Tarjetas */
.card-box {
  background: #09090b;
  border: 1px solid #1f1f23;
  border-radius: 12px;
  padding: 24px;
  text-align: left;
}

.card-red-border {
  border: 2px solid var(--primary-red);
  background: rgba(255, 0, 0, 0.03);
}

/* Modales */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 16px;
  backdrop-filter: blur(4px);
}

.modal-content {
  background-color: #0c0c0e;
  border: 1px solid #27272a;
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  padding: 36px 24px;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.9);
  animation: modalFadeIn 0.3s ease-out;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: #71717a;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: #fff;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Notificación flotante de prueba social */
.sticky-alert {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: #ffffff;
  color: #18181b;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  max-width: 360px;
  animation: slideInLeft 0.5s ease-out;
  font-family: var(--font-family);
  position: fixed;
}

.sticky-alert img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.sticky-alert-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #18181b;
  margin-bottom: 2px;
}

.sticky-alert-text {
  font-size: 0.72rem;
  color: #52525b;
  line-height: 1.35;
}

.sticky-alert-close {
  position: absolute;
  top: 4px;
  right: 8px;
  color: #a1a1aa;
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
  font-weight: bold;
}
.sticky-alert-close:hover {
  color: #18181b;
}

@keyframes slideInLeft {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Media Queries para Móviles */
@media (max-width: 768px) {
  .titulos, .l-titulos {
    font-size: 1.35rem;
  }
  
  .video-header-title {
    font-size: 1.1rem;
  }
  
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .boton, .boton-morado, .ct-link-text.boton {
    font-size: 1rem;
    padding: 15px 22px;
    width: 100%;
  }
  
  .ct-section {
    padding: 24px 12px;
  }

  .sticky-alert {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
  }
}

/* Reproductor de Video Flotante / Stuck al hacer Scroll */
.video.stuck {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 320px;
  max-width: 85vw;
  height: 180px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.9), 0 0 0 2px #ff0000;
  border-radius: 12px;
  overflow: hidden;
  z-index: 99990;
  animation: fade-in-up 0.5s ease forwards;
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Formulario Conversacional Fluido (Estilo Fluent Forms) */
.ff-conv-container {
  max-width: 680px;
  width: 100%;
  margin: 30px auto;
  min-height: 480px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ff-conv-step {
  display: none;
  animation: ffFadeIn 0.4s ease-out;
  text-align: left;
}

.ff-conv-step.active {
  display: block;
}

@keyframes ffFadeIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.ff-step-number {
  font-size: 0.85rem;
  font-weight: 800;
  color: #ff0000;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.ff-step-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #ff0000;
  line-height: 1.3;
  margin-bottom: 24px;
}

.ff-option-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.ff-option-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 14px 18px;
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.ff-option-item:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ff0000;
}

.ff-option-item.selected {
  background: rgba(255, 0, 0, 0.25);
  border-color: #ff0000;
  font-weight: 700;
}

.ff-key-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.4);
}

.ff-option-item.selected .ff-key-badge {
  background: #ff0000;
  border-color: #ff0000;
  color: #ffffff;
}

.ff-input-text {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-size: 1.35rem;
  padding: 10px 0;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
  margin-bottom: 24px;
}

.ff-input-text:focus {
  border-bottom-color: #ff0000;
}

.ff-conv-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0d0d0d;
  border-top: 1px solid #1f1f23;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
}

.ff-progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  max-width: 320px;
}

.ff-progress-bar {
  flex: 1;
  height: 6px;
  background: #27272a;
  border-radius: 10px;
  overflow: hidden;
}

.ff-progress-fill {
  height: 100%;
  background: #f9423a;
  width: 12.5%;
  transition: width 0.3s ease;
}

/* Quick Nav Floating Dock */
.quick-nav-dock {
  display: none !important;
}

.quick-nav-dock a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.quick-nav-dock a:hover {
  background: #ff0000;
  color: #ffffff;
}

