/**
 * ClubEducativa - Estilos de Landing Page de Alta Conversión
 */

/* Barra Superior de Urgencia */
.club-top-urgency-bar {
  background: #0f172a;
  color: #ffffff;
  padding: 10px 15px;
  font-size: 13px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.club-urgency-timer {
  background: rgba(2, 132, 199, 0.25);
  border: 1px solid #0284c7;
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 800;
  color: #38bdf8;
  font-family: monospace;
  font-size: 15px;
  letter-spacing: 0.05em;
}

/* Header de Confianza en la Landing */
.club-landing-header {
  padding: 18px 0;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}

.club-trust-badges {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.club-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.club-trust-badge svg {
  color: #10b981;
  width: 16px;
  height: 16px;
}

/* Hero Section */
.club-landing-hero {
  padding: 40px 0 30px;
  text-align: center;
  background: radial-gradient(circle at 50% 20%, #e0f2fe 0%, #f8fafc 70%);
}

.club-hero-hook {
  display: inline-block;
  background: #fee2e2;
  color: #991b1b;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 9999px;
  text-transform: uppercase;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  border: 1px solid #fecaca;
}

/* Video Wrapper de Alta Atención (16:9) */
.club-video-container {
  max-width: 720px;
  margin: 20px auto 16px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 36px -12px rgba(2, 132, 199, 0.25), 0 0 0 1px rgba(2, 132, 199, 0.15);
  background: #0f172a;
}

.club-video-aspect {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 ratio */
  background: #0f172a;
}

.club-video-aspect iframe,
.club-video-aspect video {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  outline: none !important;
}

/* Secciones principales de la landing - Garantía de visibilidad y flujo normal */
.club-landing-section {
  display: block !important;
  clear: both !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Caja de Oferta Principal (Cierre de conversión rápida) */
.club-offer-box {
  background: #ffffff;
  border: 2px solid #0284c7;
  border-radius: 20px;
  padding: 35px 25px;
  max-width: 680px;
  margin: 35px auto 40px;
  box-shadow: 0 15px 35px -5px rgba(2, 132, 199, 0.18);
  position: relative;
  text-align: center;
}

.club-offer-badge-ribbon {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: #0284c7;
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  padding: 6px 20px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

.club-price-hero {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 15px;
  margin: 15px 0 20px;
}

.club-price-hero .old-price {
  font-size: 24px;
  color: #94a3b8;
  text-decoration: line-through;
}

.club-price-hero .current-price {
  font-size: clamp(38px, 6vw, 54px);
  font-weight: 900;
  color: #0284c7;
  letter-spacing: -0.03em;
}

.club-offer-guarantee-note {
  font-size: 13px;
  color: #64748b;
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Sección Dolor vs Solución */
.club-vs-section {
  padding: 50px 0;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.club-vs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
}

.club-vs-card {
  border-radius: 16px;
  padding: 30px;
}

.club-vs-card-pain {
  background: #fff5f5;
  border: 1px solid #fed7d7;
}

.club-vs-card-pain h3 {
  color: #c53030;
  margin-top: 0;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.club-vs-card-solution {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.club-vs-card-solution h3 {
  color: #166534;
  margin-top: 0;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.club-vs-list {
  list-style: none;
  padding: 0;
  margin: 15px 0 0 0;
}

.club-vs-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: #334155;
}

.club-vs-list li::before {
  position: absolute;
  left: 0;
  top: 2px;
  font-weight: bold;
}

.club-vs-card-pain .club-vs-list li::before {
  content: "✕";
  color: #ef4444;
}

.club-vs-card-solution .club-vs-list li::before {
  content: "✓";
  color: #10b981;
}

/* Beneficios Estructurados */
.club-benefits-section {
  padding: 60px 0;
}

.club-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 35px;
}

.club-benefit-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s;
}

.club-benefit-card:hover {
  transform: translateY(-3px);
  border-color: #0284c7;
}

.club-benefit-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.club-benefit-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px 0;
}

.club-benefit-desc {
  font-size: 14px;
  color: #64748b;
  margin: 0;
  line-height: 1.55;
}

/* Acordeón FAQ */
.club-faq-section {
  padding: 60px 0;
  background: #ffffff;
}

.club-faq-container {
  max-width: 780px;
  margin: 30px auto 0;
}

.club-faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  background: #ffffff;
  transition: border-color 0.2s;
}

.club-faq-item.active {
  border-color: #0284c7;
}

.club-faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  background: transparent;
  border: none;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.club-faq-toggle-icon {
  font-size: 20px;
  color: #0284c7;
  transition: transform 0.25s ease;
}

.club-faq-item.active .club-faq-toggle-icon {
  transform: rotate(45deg);
}

.club-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 20px;
  color: #475569;
  font-size: 15px;
  line-height: 1.6;
}

.club-faq-item.active .club-faq-answer {
  max-height: 500px;
  padding-bottom: 20px;
}

/* Sticky Floating Mobile Bar */
.club-mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 12px 20px;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
  z-index: 999;
}

@media (max-width: 768px) {
  .club-vs-grid {
    grid-template-columns: 1fr;
  }
  .club-mobile-sticky-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  body.club-has-mobile-bar {
    padding-bottom: 80px;
  }
}

/* ========================================================
   Galería de 4 Muestras Visuales del Material
   Desktop: 4 imágenes en 1 fila (una al lado de otra)
   Mobile: 4 imágenes en 2 filas (2 columnas x 2 filas)
======================================================== */
.club-gallery-wrapper {
  max-width: 100%;
  margin: 0 auto 35px;
  padding: 0;
}

.club-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.club-gallery-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.club-gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(2, 132, 199, 0.15);
  border-color: #38bdf8;
}

.club-gallery-aspect {
  position: relative;
  width: 100%;
  padding-top: 72%; /* Proporción 4:3 */
  background: #f1f5f9;
  overflow: hidden;
}

.club-gallery-aspect img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.club-gallery-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========================================================
   Contenido en Mobile: Cajas en 2 Filas
======================================================== */
.club-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

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

/* Tarjetas Modernas de Beneficios (Adiós cajas cuadradas y estilo pregunta/respuesta) */
.club-modern-benefit-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.club-modern-benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px -6px rgba(2, 132, 199, 0.12);
  border-color: #38bdf8;
}

.club-modern-benefit-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.club-modern-benefit-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.15);
}

.club-modern-benefit-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
}

.club-modern-benefit-desc {
  margin: 0 0 14px 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 450;
  flex-grow: 1;
}

.club-modern-benefit-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  width: fit-content;
}

@media (max-width: 768px) {
  /* Galería en Mobile: 2 Filas (2 columnas x 2 filas) */
  .club-gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .club-gallery-aspect {
    padding-top: 80% !important;
  }
  .club-gallery-badge {
    font-size: 10px !important;
    padding: 3px 6px !important;
    bottom: 6px !important;
    left: 6px !important;
    right: 6px !important;
  }

  /* Cajas de pasos de acceso en Mobile: 2 Filas (2 columnas x 2 filas) */
  .club-steps-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .club-steps-grid .club-card {
    padding: 16px 10px !important;
  }
  .club-steps-grid .club-card h4 {
    font-size: 13.5px !important;
    margin-bottom: 4px !important;
  }
  .club-steps-grid .club-card p {
    font-size: 11.5px !important;
    line-height: 1.4 !important;
  }

  /* Cajas de beneficios en Mobile: 1 columna cómoda y moderna (sin cajas cuadradas apretadas) */
  .club-objeciones-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .club-modern-benefit-card {
    padding: 20px 18px !important;
    border-radius: 16px !important;
  }
  .club-modern-benefit-title {
    font-size: 15px !important;
  }
  .club-modern-benefit-desc {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  /* En tablets medianas, 3 cajas horizontales con espaciado optimizado */
  .club-objeciones-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px !important;
  }
  .club-modern-benefit-card {
    padding: 18px 14px !important;
  }
  .club-modern-benefit-title {
    font-size: 14px !important;
  }
  .club-modern-benefit-desc {
    font-size: 12.5px !important;
  }
}
