/* ==========================================================================
   Funnel Premium — Paleta: #000000 | #FFFFFF | #FFD700
   Mobile-first · CSS puro
   ========================================================================== */

:root {
  --funnel-bg: #000000;
  --funnel-text: #ffffff;
  --funnel-gold: #ffd700;
  --funnel-gold-dark: #b8860b;
  --funnel-red: #8b0000;
  --funnel-red-bright: #c41e3a;
  --funnel-coral: #ff4757;
  --funnel-card: #f9f9f9;
  --funnel-dark-text: #1a1a1a;
  --funnel-muted: #6b7280;
  --funnel-radius: 16px;
  --funnel-radius-lg: 24px;
  --funnel-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --funnel-banner-h: 108px;
  --funnel-banner-collapsed-h: 62px;
  --funnel-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --funnel-safe-top: env(safe-area-inset-top, 0px);
  --funnel-safe-bottom: env(safe-area-inset-bottom, 0px);
  --funnel-safe-left: env(safe-area-inset-left, 0px);
  --funnel-safe-right: env(safe-area-inset-right, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.funnel-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  max-width: 100%;
  background: var(--funnel-bg);
  color: var(--funnel-text);
  font-family: var(--funnel-font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.funnel-page.has-countdown-bar {
  padding-bottom: calc(var(--funnel-banner-h) + var(--funnel-safe-bottom));
}

body.funnel-page.has-countdown-bar.is-bar-collapsed {
  padding-bottom: calc(var(--funnel-banner-collapsed-h) + var(--funnel-safe-bottom));
}

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

a {
  color: var(--funnel-gold);
}

.funnel-container {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 0 max(16px, var(--funnel-safe-left));
  padding-right: max(16px, var(--funnel-safe-right));
}

/* --------------------------------------------------------------------------
   Landing — Hero
   -------------------------------------------------------------------------- */

.funnel-hero {
  padding: 48px 0 32px;
  text-align: center;
}

.funnel-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 999px;
  background: rgba(255, 215, 0, 0.08);
  color: var(--funnel-gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.funnel-hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--funnel-gold);
  animation: funnel-pulse 1.6s ease-in-out infinite;
}

@keyframes funnel-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

.funnel-hero-title {
  margin: 0 0 14px;
  font-size: clamp(1.55rem, 5vw, 2.35rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.funnel-hero-title .gold {
  color: var(--funnel-gold);
}

.funnel-hero-subtitle {
  max-width: 680px;
  margin: 0 auto 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.95rem, 2.4vw, 1.05rem);
  line-height: 1.65;
}

.funnel-hero .funnel-btn {
  width: min(100%, 440px);
}

.funnel-cta-section .funnel-btn {
  width: min(100%, 440px);
}

.funnel-start-time {
  margin: 0 auto 24px;
  padding: 12px 18px;
  max-width: 520px;
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 12px;
  background: rgba(255, 215, 0, 0.06);
  color: var(--funnel-gold);
  font-size: 0.92rem;
  font-weight: 600;
}

.funnel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 14px 20px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: clamp(0.82rem, 2.8vw, 0.92rem);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  max-width: 100%;
}

.funnel-btn:hover {
  transform: translateY(-2px);
}

.funnel-btn-gold {
  color: #000000;
  background: linear-gradient(135deg, #ffe566, var(--funnel-gold));
  box-shadow: 0 12px 36px rgba(255, 215, 0, 0.28);
}

.funnel-btn-yellow {
  color: #000000;
  background: #ffea00;
  box-shadow: 0 8px 24px rgba(255, 234, 0, 0.25);
}

.funnel-btn-coral {
  color: #ffffff;
  background: linear-gradient(135deg, #ff6b81, var(--funnel-coral));
  box-shadow: 0 12px 32px rgba(255, 71, 87, 0.35);
}

.funnel-section {
  padding: 28px 0;
}

.funnel-section-title {
  margin: 0 0 20px;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 700;
  text-align: center;
}

.funnel-benefits {
  display: grid;
  gap: 14px;
}

.funnel-benefit {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--funnel-radius);
  background: rgba(255, 255, 255, 0.03);
}

.funnel-benefit-num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  background: rgba(255, 215, 0, 0.1);
  color: var(--funnel-gold);
  font-weight: 800;
  font-size: 0.85rem;
}

.funnel-benefit p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
  line-height: 1.6;
}

.funnel-footer {
  padding: 32px 0 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.funnel-footer p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  line-height: 1.55;
}

.funnel-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  margin-top: 12px;
}

.funnel-footer-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
  text-decoration: none;
}

.funnel-footer-links a:hover {
  color: var(--funnel-gold);
}

/* --------------------------------------------------------------------------
   Contador flotante inferior
   -------------------------------------------------------------------------- */

.funnel-countdown-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 999;
}

.funnel-bar-corner-btn {
  position: absolute;
  top: -12px;
  right: 18px;
  z-index: 1001;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.62rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.funnel-bar-corner-btn:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.55);
}

.funnel-countdown-bar.is-collapsed #countdown-expanded {
  display: none;
}

.funnel-countdown-bar:not(.is-collapsed) #countdown-collapsed {
  display: none;
}

.funnel-countdown-panel {
  background: linear-gradient(180deg, #6b0000 0%, var(--funnel-red) 100%);
  border-top: 2px solid rgba(255, 215, 0, 0.25);
  padding: 12px 16px 10px;
  transition: padding 0.35s ease;
}

.funnel-countdown-panel--collapsed {
  padding: 10px 14px;
  min-height: var(--funnel-banner-collapsed-h);
  cursor: pointer;
}

.funnel-countdown-inner {
  display: grid;
  gap: 12px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.funnel-countdown-inner--expanded {
  grid-template-columns: 1fr auto;
}

.funnel-countdown-center {
  text-align: center;
}

.funnel-countdown-inner--collapsed {
  grid-template-columns: auto 1fr;
  gap: 14px;
}

.funnel-countdown-digits--compact .funnel-countdown-unit {
  min-width: 42px;
}

.funnel-countdown-digits--compact .value {
  font-size: 1.15rem !important;
}

.funnel-collapsed-pitch {
  margin: 0;
  width: 100%;
  color: #ffffff;
  font-size: clamp(0.78rem, 2.8vw, 0.9rem);
  line-height: 1.35;
  text-align: center;
  padding: 4px 8px;
}

.funnel-collapsed-pitch strong {
  color: var(--funnel-gold);
}

.funnel-cta-section {
  text-align: center;
  margin-top: 28px;
  scroll-margin-bottom: calc(var(--funnel-banner-h) + 24px);
}

.funnel-seo-geo {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.funnel-seo-geo-text {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
  line-height: 1.65;
  text-align: left;
}

.funnel-seo-geo-text:last-child {
  margin-bottom: 0;
}

.funnel-seo-geo-text strong {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

.funnel-countdown-meta {
  text-align: center;
}

.funnel-countdown-date {
  margin: 0 0 4px;
  font-size: 0.82rem;
  font-weight: 600;
}

.funnel-countdown-tz {
  margin: 0;
  font-size: 0.72rem;
  opacity: 0.85;
}

.funnel-countdown-digits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
}

.funnel-countdown-unit {
  text-align: center;
  min-width: 58px;
}

.funnel-countdown-unit .value {
  display: block;
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
}

.funnel-countdown-unit .label {
  display: block;
  margin-top: 4px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0.8;
}

.funnel-countdown-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

@media (min-width: 768px) {
  .funnel-countdown-meta {
    text-align: center;
  }

  .funnel-countdown-actions {
    justify-self: end;
  }
}

/* --------------------------------------------------------------------------
   Modal de registro
   -------------------------------------------------------------------------- */

.funnel-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.funnel-modal.is-open {
  display: flex;
}

.funnel-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
}

.funnel-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 24px 22px;
  border-radius: var(--funnel-radius-lg);
  box-shadow: var(--funnel-shadow);
}

.funnel-modal-card--dark {
  background: linear-gradient(160deg, #121212 0%, #000000 100%);
  color: var(--funnel-text);
  border: 1px solid rgba(255, 215, 0, 0.22);
}

.funnel-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.funnel-modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-right: 0;
  text-align: center;
}

.funnel-modal-logo {
  width: auto;
  max-width: 180px;
  height: 44px;
  object-fit: contain;
}

.funnel-modal-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: contain;
  background: #ffffff;
  padding: 8px;
  border: 3px solid var(--funnel-gold);
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.25);
}

.funnel-modal-host {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--funnel-gold);
}

.funnel-form-group {
  margin-bottom: 14px;
}

.funnel-form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.funnel-modal-card--dark .funnel-form-group label {
  color: rgba(255, 255, 255, 0.88);
}

.funnel-field-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}

.funnel-input-wrap {
  position: relative;
}

.funnel-input-wrap .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  opacity: 0.55;
  color: rgba(255, 255, 255, 0.65);
  pointer-events: none;
}

.funnel-input-wrap input {
  padding-left: 40px;
}

.funnel-form-group input[type="text"],
.funnel-form-group input[type="email"],
.funnel-form-group input[type="datetime-local"],
.funnel-form-group select {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.92rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.funnel-form-group input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.funnel-form-group input[type="datetime-local"] {
  color-scheme: dark;
  cursor: pointer;
}

.funnel-form-group select {
  cursor: pointer;
  color-scheme: dark;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffd700' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.funnel-form-group select option {
  background: #1a1a1a;
  color: #ffffff;
}

.funnel-form-group input:focus,
.funnel-form-group select:focus {
  outline: none;
  border-color: rgba(255, 215, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.12);
}

.funnel-checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}

.funnel-checkbox-row input {
  margin-top: 3px;
  flex-shrink: 0;
}

.funnel-checkbox-row a {
  color: var(--funnel-gold);
  font-weight: 600;
}

.funnel-form-error {
  display: none;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 71, 87, 0.15);
  border: 1px solid rgba(255, 71, 87, 0.35);
  color: #ffb4bc;
  font-size: 0.82rem;
}

.funnel-form-error.is-visible {
  display: block;
}

.funnel-modal .funnel-btn-coral {
  width: 100%;
  margin-top: 6px;
}

body.funnel-modal-open {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Confirmación
   -------------------------------------------------------------------------- */

body.funnel-confirm {
  background: linear-gradient(180deg, #111111 0%, #000000 100%);
}

.funnel-confirm-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(24px, var(--funnel-safe-top)) max(16px, var(--funnel-safe-right)) max(24px, var(--funnel-safe-bottom)) max(16px, var(--funnel-safe-left));
}

.funnel-confirm-card {
  width: min(100%, 580px);
  border-radius: var(--funnel-radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, #141414 0%, #050505 100%);
  color: var(--funnel-text);
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: var(--funnel-shadow);
}

.funnel-confirm-card .gold {
  color: var(--funnel-gold);
}

.funnel-confirm-card--minimal {
  padding: 28px 24px 32px;
  text-align: center;
}

.funnel-confirm-card--minimal .funnel-confirm-title {
  margin-bottom: 18px;
}

.funnel-confirm-card--minimal .funnel-confirm-countdown {
  margin-bottom: 22px;
}

.funnel-confirm-cta {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.funnel-confirm-body {
  padding: 28px 24px 24px;
  text-align: center;
}

.funnel-confirm-title {
  margin: 0 0 10px;
  font-size: clamp(1.15rem, 4vw, 1.45rem);
  font-weight: 800;
  line-height: 1.25;
}

.funnel-confirm-pain {
  margin: 0 0 16px;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.funnel-confirm-organizer {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
}

.funnel-confirm-datetime {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--funnel-gold);
}

.funnel-confirm-tz {
  margin: 0 0 16px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.funnel-confirm-countdown {
  margin: 0 0 16px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(139, 0, 0, 0.35);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.funnel-confirm-countdown-label {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.funnel-confirm-reminder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 999px;
  background: rgba(255, 215, 0, 0.08);
  color: var(--funnel-gold);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.funnel-confirm-reminder:hover {
  background: rgba(255, 215, 0, 0.16);
}

.funnel-confirm-access {
  padding: 22px 20px;
  background: linear-gradient(135deg, #8b0000, var(--funnel-red-bright));
  text-align: center;
}

.funnel-confirm-access p {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1.5;
}

.funnel-confirm-access .funnel-btn,
.funnel-confirm-access .funnel-btn-gold {
  width: 100%;
  max-width: 420px;
  font-size: 0.82rem;
}

/* --------------------------------------------------------------------------
   Sala de espera
   -------------------------------------------------------------------------- */

body.funnel-wait {
  background: var(--funnel-bg);
  color: var(--funnel-text);
}

.funnel-wait-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(24px, var(--funnel-safe-top)) max(16px, var(--funnel-safe-right)) calc(var(--funnel-banner-h) + 24px + var(--funnel-safe-bottom)) max(16px, var(--funnel-safe-left));
}

.funnel-wait-card {
  width: min(100%, 640px);
  padding: 28px 22px;
  border-radius: var(--funnel-radius-lg);
  background: linear-gradient(160deg, #121212 0%, #000000 100%);
  border: 1px solid rgba(255, 215, 0, 0.18);
  box-shadow: var(--funnel-shadow);
}

.funnel-wait-card .gold {
  color: var(--funnel-gold);
}

.funnel-wait-start {
  margin: 0 0 16px;
  font-size: clamp(1rem, 3.5vw, 1.2rem);
  font-weight: 700;
  text-align: center;
}

.funnel-wait-title {
  margin: 0 0 14px;
  font-size: clamp(1.1rem, 4vw, 1.45rem);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.funnel-wait-subtitle {
  margin: 0 0 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.funnel-wait-desc {
  margin: 0 0 22px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  line-height: 1.6;
}

.funnel-wait-card--minimal {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.funnel-presenter {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--funnel-radius);
  background: rgba(255, 255, 255, 0.04);
}

.funnel-presenter-photo {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: contain;
  flex-shrink: 0;
  background: #ffffff;
  padding: 6px;
}

.funnel-presenter-photo--logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: contain;
  padding: 10px;
  margin: 0 auto 18px;
  border: 3px solid var(--funnel-gold);
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
  background: #111111;
}

.funnel-presenter-name {
  margin: 0 0 4px;
  font-size: 0.98rem;
  font-weight: 700;
}

.funnel-presenter-role {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
}

.funnel-wait-countdown-label {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.funnel-wait-countdown {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  padding: 16px;
  background: linear-gradient(180deg, #a00000, var(--funnel-red-bright));
  color: #ffffff;
  text-align: center;
}

.funnel-wait-countdown .funnel-countdown-digits {
  margin-top: 6px;
}

.funnel-wait-countdown .funnel-countdown-unit .value {
  font-size: clamp(1.35rem, 4.5vw, 2rem);
}

/* --------------------------------------------------------------------------
   Webinar en vivo
   -------------------------------------------------------------------------- */

body.funnel-live {
  background: #0a0a0a;
}

.funnel-live-header {
  padding: max(12px, var(--funnel-safe-top)) max(16px, var(--funnel-safe-right)) 14px max(16px, var(--funnel-safe-left));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.funnel-live-header h1 {
  margin: 0 0 8px;
  font-size: clamp(0.95rem, 3vw, 1.2rem);
  font-weight: 800;
}

.funnel-live-header .gold {
  color: var(--funnel-gold);
}

.funnel-live-subtitle {
  margin: 0;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.68);
}

.funnel-live-main {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px max(12px, var(--funnel-safe-right)) calc(20px + var(--funnel-safe-bottom)) max(12px, var(--funnel-safe-left));
}

.funnel-player-shell {
  position: relative;
  border-radius: var(--funnel-radius);
  overflow: hidden;
  background: #000000;
  box-shadow: var(--funnel-shadow);
}

.funnel-player-ratio {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
}

.funnel-player-ratio iframe,
.funnel-player-ratio #webinar-yt-host,
.funnel-player-ratio #webinar-yt-host iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

body.funnel-live .funnel-player-ratio iframe,
body.funnel-live .funnel-player-ratio #webinar-yt-host,
body.funnel-live .funnel-player-ratio #webinar-yt-host iframe {
  pointer-events: none;
}

.funnel-player-shield {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
  cursor: default;
  pointer-events: auto;
}

.funnel-player-fullscreen {
  position: absolute;
  right: 10px;
  bottom: 10px;
  top: auto;
  z-index: 5;
  pointer-events: auto;
  min-height: 40px;
  min-width: 44px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.funnel-live-status {
  display: flex;
  justify-content: center;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.funnel-live-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.funnel-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff0000;
  box-shadow: 0 0 8px #ff0000;
  animation: funnel-blink 1.2s ease-in-out infinite;
}

@keyframes funnel-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.funnel-progress-bar {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.funnel-progress-msg {
  margin: 0 0 10px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}

.funnel-progress-track-wrap {
  margin-bottom: 8px;
}

.funnel-progress-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: visible;
}

.funnel-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--funnel-red-bright), var(--funnel-gold));
  transition: width 0.25s ease;
}

.funnel-progress-marker {
  position: absolute;
  top: 50%;
  width: 3px;
  height: 16px;
  background: var(--funnel-gold);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.funnel-progress-marker--bonus {
  background: #ffffff;
}

.funnel-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

.funnel-progress-labels #progress-pct {
  color: var(--funnel-gold);
  font-weight: 700;
}

.funnel-cta-block {
  display: none;
  margin-top: 14px;
  text-align: center;
}

.funnel-cta-block.is-visible {
  display: block;
}

.funnel-cta-block .funnel-btn-gold {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  font-size: clamp(0.78rem, 3.2vw, 0.9rem);
  line-height: 1.35;
  word-break: break-word;
  hyphens: auto;
}

.funnel-bonus-countdown {
  display: none;
  margin-top: 16px;
  padding: 20px 16px;
  text-align: center;
  border-radius: 14px;
  border: 2px solid rgba(255, 215, 0, 0.45);
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.12) 0%, rgba(139, 0, 0, 0.25) 100%);
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.15);
}

.funnel-bonus-countdown.is-active {
  display: block;
  animation: funnel-bonus-glow 1.2s ease-in-out infinite alternate;
}

.funnel-bonus-countdown-label {
  margin: 0 0 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.funnel-bonus-countdown-digit {
  display: block;
  margin: 0 auto 6px;
  font-size: clamp(3rem, 12vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  color: var(--funnel-gold);
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.55);
}

.funnel-bonus-countdown-digit.is-tick {
  animation: funnel-bonus-tick 0.45s ease;
}

.funnel-bonus-countdown-hint {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
}

@keyframes funnel-bonus-tick {
  0% { transform: scale(1.35); opacity: 0.65; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes funnel-bonus-glow {
  from { box-shadow: 0 0 16px rgba(255, 215, 0, 0.12); }
  to { box-shadow: 0 0 28px rgba(255, 215, 0, 0.28); }
}

.funnel-wait-redirect {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--funnel-gold);
}

.funnel-live-stats-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 0;
  background: rgba(255, 255, 255, 0.07);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.funnel-live-stats-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  min-height: 52px;
}

.funnel-live-stats-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.55);
}

.funnel-live-stats-value {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  font-variant-numeric: tabular-nums;
}

.funnel-live-stats-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.14);
}

.funnel-live-stats-cell--timer .funnel-live-stats-value {
  font-size: 1.2rem;
}

.funnel-offer-countdown .funnel-bonus-countdown-digit {
  color: #ffffff;
  text-shadow: 0 0 18px rgba(255, 215, 0, 0.65);
}

.funnel-conversion-stack .funnel-btn-gray {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.funnel-tabs {
  margin-top: 24px;
}

.funnel-tab-nav {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.funnel-tab-btn {
  flex: 1;
  padding: 12px 10px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.funnel-tab-btn.is-active {
  color: var(--funnel-gold);
  border-bottom-color: var(--funnel-gold);
}

.funnel-tab-panel {
  display: none;
  padding: 18px 0;
}

.funnel-tab-panel.is-active {
  display: block;
}

.funnel-chat-locked {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 16px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
}

.funnel-chat-locked .warn-icon {
  font-size: 1.5rem;
}

.funnel-chat-input {
  width: 100%;
  margin-top: 14px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.35);
  font-family: inherit;
}

.funnel-faq {
  display: grid;
  gap: 10px;
}

.funnel-faq-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.funnel-faq-q {
  width: 100%;
  padding: 14px 16px;
  border: none;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.funnel-faq-q::after {
  content: "+";
  color: var(--funnel-gold);
  font-weight: 700;
}

.funnel-faq-item.is-open .funnel-faq-q::after {
  content: "−";
}

.funnel-faq-a {
  display: none;
  padding: 0 16px 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  line-height: 1.6;
}

.funnel-faq-item.is-open .funnel-faq-a {
  display: block;
}

.funnel-faq--compact {
  gap: 6px;
}

.funnel-faq--compact .funnel-faq-q {
  padding: 10px 12px;
  font-size: 0.8rem;
}

.funnel-faq--compact .funnel-faq-a {
  padding: 0 12px 10px;
  font-size: 0.78rem;
  line-height: 1.45;
}

.funnel-faq-panel {
  max-height: min(52vh, 420px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.funnel-conversion-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ==========================================================================
   Responsive — móvil, tablet y escritorio
   ========================================================================== */

/* Móvil pequeño (hasta 380px) */
@media (max-width: 380px) {
  :root {
    --funnel-banner-h: 172px;
  }

  .funnel-hero {
    padding: 36px 0 24px;
  }

  .funnel-hero-badge {
    font-size: 0.68rem;
    padding: 6px 12px;
  }

  .funnel-start-time {
    font-size: 0.84rem;
    padding: 10px 12px;
  }

  .funnel-countdown-unit {
    min-width: 48px;
  }

  .funnel-countdown-unit .value {
    font-size: 1.35rem !important;
  }

  .funnel-collapsed-pitch {
    font-size: 0.72rem;
    padding: 2px 4px;
  }

  .funnel-live-stats-cell {
    padding: 12px 10px;
    gap: 8px;
  }

  .funnel-live-stats-value {
    font-size: 1.15rem;
  }

  .funnel-live-stats-cell--timer .funnel-live-stats-value {
    font-size: 1.05rem;
  }

  .funnel-live-stats-icon {
    width: 18px;
    height: 18px;
  }

  .funnel-player-fullscreen {
    padding: 6px 10px;
    font-size: 0.65rem;
  }

  .funnel-bonus-countdown-digit {
    font-size: 2.75rem;
  }

  .funnel-confirm-card--minimal {
    padding: 22px 16px 26px;
  }

  .funnel-wait-card {
    padding: 22px 16px;
  }

  .funnel-presenter-photo--logo {
    width: 72px;
    height: 72px;
  }
}

/* Móvil (hasta 560px) */
@media (max-width: 560px) {
  .funnel-live-subtitle {
    font-size: 0.82rem;
    padding: 0 4px;
  }

  .funnel-progress-bar {
    padding: 12px;
  }

  .funnel-progress-msg {
    font-size: 0.78rem;
  }

  .funnel-tab-btn {
    min-height: 44px;
    font-size: 0.84rem;
  }

  .funnel-faq-q {
    min-height: 44px;
    font-size: 0.82rem;
  }

  .funnel-bar-corner-btn {
    right: 12px;
    width: 32px;
    height: 32px;
  }
}

/* Móvil / barra contador apilada (hasta 720px) */
@media (max-width: 720px) {
  :root {
    --funnel-banner-h: 168px;
  }

  .funnel-countdown-inner--expanded {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .funnel-countdown-actions {
    width: 100%;
  }

  .funnel-countdown-actions .funnel-btn {
    width: 100%;
    max-width: 100%;
  }

  .funnel-countdown-meta .funnel-countdown-tz {
    font-size: 0.68rem;
    line-height: 1.4;
  }

  .funnel-countdown-inner--collapsed {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .funnel-countdown-digits--compact {
    justify-content: center;
  }

  .funnel-modal {
    align-items: flex-end;
    padding: 0;
  }

  .funnel-modal-card {
    width: 100%;
    max-width: 100%;
    max-height: min(92dvh, 92vh);
    margin: 0;
    border-radius: 20px 20px 0 0;
    padding: 22px 18px calc(18px + var(--funnel-safe-bottom));
  }

  .funnel-modal-close {
    top: max(10px, var(--funnel-safe-top));
    right: max(10px, var(--funnel-safe-right));
  }

  .funnel-form-group input[type="text"],
  .funnel-form-group input[type="email"],
  .funnel-form-group input[type="datetime-local"],
  .funnel-form-group select {
    font-size: 16px;
  }

  .funnel-confirm-wrap,
  .funnel-wait-wrap {
    padding-left: max(12px, var(--funnel-safe-left));
    padding-right: max(12px, var(--funnel-safe-right));
  }

  .funnel-wait-wrap {
    padding-bottom: calc(var(--funnel-banner-h) + 20px + var(--funnel-safe-bottom));
    align-items: flex-start;
    padding-top: max(20px, var(--funnel-safe-top));
  }

  .funnel-wait-countdown {
    padding-bottom: calc(12px + var(--funnel-safe-bottom));
  }

  .funnel-player-shell {
    border-radius: 12px;
  }

  .funnel-live-stats-bar {
    grid-template-columns: 1fr auto 1fr;
  }
}

/* Tablet (561px – 1023px) */
@media (min-width: 561px) and (max-width: 1023px) {
  .funnel-container {
    padding-left: max(20px, var(--funnel-safe-left));
    padding-right: max(20px, var(--funnel-safe-right));
  }

  .funnel-hero {
    padding: 56px 0 36px;
  }

  .funnel-benefits {
    gap: 12px;
  }

  .funnel-live-main {
    padding: 16px 20px 24px;
  }

  .funnel-wait-card {
    padding: 32px 28px;
  }

  .funnel-confirm-card--minimal {
    padding: 32px 28px 36px;
  }

  .funnel-countdown-inner--expanded {
    gap: 16px;
  }
}

/* Tablet horizontal / escritorio pequeño (768px+) */
@media (min-width: 768px) {
  .funnel-hero {
    padding: 72px 0 40px;
  }

  .funnel-live-main {
    padding: 20px 24px 28px;
  }

  .funnel-live-stats-value {
    font-size: 1.4rem;
  }

  .funnel-player-fullscreen {
    right: 12px;
    bottom: 12px;
    top: auto;
    font-size: 0.78rem;
    padding: 8px 14px;
  }
}

/* Escritorio (1024px+) */
@media (min-width: 1024px) {
  :root {
    --funnel-banner-h: 112px;
  }

  .funnel-container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .funnel-live-header h1 {
    font-size: 1.2rem;
  }

  .funnel-live-subtitle {
    font-size: 0.9rem;
  }

  .funnel-cta-block .funnel-btn-gold {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }

  .funnel-conversion-stack .funnel-btn-gray {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Pantalla muy ancha */
@media (min-width: 1280px) {
  .funnel-live-main {
    padding: 24px 32px 32px;
  }

  .funnel-player-shell {
    border-radius: 20px;
  }
}

/* Landscape móvil — webinar y espera */
@media (max-height: 500px) and (orientation: landscape) {
  .funnel-live-header {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .funnel-live-header h1 {
    margin-bottom: 4px;
    font-size: 0.9rem;
  }

  .funnel-live-subtitle {
    display: none;
  }

  .funnel-live-main {
    padding-top: 8px;
  }

  .funnel-faq-panel {
    max-height: 35vh;
  }

  .funnel-wait-wrap {
    align-items: center;
    padding-top: 12px;
  }

  .funnel-confirm-wrap {
    padding: 16px;
  }
}

/* Evitar desbordes en textos largos */
.funnel-hero-title,
.funnel-wait-title,
.funnel-confirm-title,
.funnel-live-header h1 {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.funnel-progress-track-wrap {
  overflow: hidden;
}

/* Hover solo en dispositivos con puntero fino */
@media (hover: hover) and (pointer: fine) {
  .funnel-btn:hover {
    transform: translateY(-2px);
  }
}

@media (hover: none) {
  .funnel-btn:active {
    transform: scale(0.98);
    opacity: 0.95;
  }
}
