/**
 * Estilos Exclusivos de CRO (Optimización de Tasa de Conversión)
 * Para Landing Pages de Producto en Pago Contra Entrega (producto.html)
 */

/* ==========================================================================
   LAYOUT DEL HERO DE PRODUCTO
   ========================================================================== */
.product-landing-hero {
  padding-top: var(--space-8);
  padding-bottom: var(--space-12);
  background: white;
  border-bottom: 1px solid var(--color-border);
}

.product-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: var(--space-10);
  align-items: start;
}

/* Columna de Galería */
.product-gallery-col {
  position: sticky;
  top: 90px;
}

.product-main-image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--color-bg-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-4);
}

.product-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-discount-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--color-accent);
  color: white;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 10px rgba(225, 29, 72, 0.4);
  z-index: 2;
}

.product-thumbnails-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.thumb-btn {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border);
  overflow: hidden;
  padding: 0;
  background: white;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-btn:hover {
  border-color: var(--color-primary);
}

.thumb-btn.is-active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.3);
  transform: scale(0.96);
}

.hero-trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: var(--space-6);
  padding: var(--space-4);
  background: var(--color-bg-body);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-trust-item .trust-icon {
  font-size: 1.4rem;
}

.hero-trust-item strong {
  display: block;
  font-size: 0.78rem;
  color: var(--color-text-main);
  line-height: 1.2;
}

.hero-trust-item p {
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

/* Columna de Información y Conversión */
.product-info-col {
  display: flex;
  flex-direction: column;
}

.product-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-3);
}

.product-pill-badge {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
}

.product-hero-title {
  font-size: var(--font-2xl);
  font-weight: 800;
  color: var(--color-text-main);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.product-hero-tagline {
  font-size: var(--font-base);
  color: var(--color-text-body);
  line-height: 1.5;
  margin-bottom: var(--space-3);
}

.product-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-5);
}

.stars-stars {
  color: #fbbf24;
  font-size: 1rem;
}

.rating-number {
  font-weight: 800;
  color: var(--color-text-main);
  font-size: 0.9rem;
}

.rating-count {
  font-size: 0.82rem;
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
}

/* Barra de Urgencia de Stock */
.stock-urgency-box {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
}

.stock-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #9f1239;
  margin-bottom: 6px;
}

.stock-progress-bar {
  width: 100%;
  height: 8px;
  background: #fecdd3;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.stock-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f43f5e 0%, #e11d48 100%);
  border-radius: var(--radius-full);
  animation: pulseBar 2s infinite ease-in-out;
}

@keyframes pulseBar {
  0% { opacity: 0.85; }
  50% { opacity: 1; }
  100% { opacity: 0.85; }
}

.stock-flash {
  animation: stockJump 0.6s ease-in-out;
  display: inline-block;
  color: #e11d48;
}

@keyframes stockJump {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* Temporizador de Oferta Flash */
.deal-countdown-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: var(--space-5);
  font-size: 0.82rem;
}

.countdown-label {
  color: #92400e;
  font-weight: 700;
}

.countdown-timer {
  font-family: var(--font-family-mono);
  font-weight: 800;
  color: #b45309;
  display: flex;
  align-items: center;
  gap: 3px;
}

.timer-box {
  background: #78350f;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.82rem;
}

/* Lista de Beneficios Hero */
.hero-bullets-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: var(--space-6);
}

.hero-bullets-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--color-text-main);
  line-height: 1.4;
}

.bullet-check {
  color: var(--color-primary);
  font-weight: 900;
  font-size: 1rem;
  line-height: 1.2;
}

/* ==========================================================================
   SELECTOR DE PACKS (CRO BUNDLE CARDS)
   ========================================================================== */
.packs-selector-section {
  margin-bottom: var(--space-6);
}

.packs-header-title {
  font-size: 0.88rem;
  color: var(--color-text-main);
  margin-bottom: 10px;
  font-weight: 600;
}

.packs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pack-card {
  position: relative;
  background: white;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pack-card:hover {
  border-color: #cbd5e1;
}

.pack-card.is-selected {
  border-color: var(--color-primary);
  background: #f0fdf4;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
}

.pack-floating-badge {
  position: absolute;
  top: -10px;
  right: 14px;
  background: #d97706;
  color: white;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.35);
}

.pack-radio-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.pack-card.is-selected .pack-radio-circle {
  border-color: var(--color-primary);
}

.pack-radio-inner {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0;
  transform: scale(0);
  transition: all var(--transition-fast);
}

.pack-card.is-selected .pack-radio-inner {
  opacity: 1;
  transform: scale(1);
}

.pack-info {
  flex-grow: 1;
}

.pack-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pack-name {
  font-size: 0.95rem;
  color: var(--color-text-main);
}

.pack-discount-pill {
  background: #fee2e2;
  color: #b91c1c;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.pack-desc {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.pack-gift-pill {
  font-size: 0.72rem;
  color: #065f46;
  font-weight: 700;
  margin-top: 4px;
}

.pack-price-box {
  text-align: right;
  flex-shrink: 0;
}

.pack-current-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text-main);
  letter-spacing: -0.02em;
}

.pack-card.is-selected .pack-current-price {
  color: var(--color-primary);
}

.pack-old-price {
  font-size: 0.8rem;
  color: var(--color-text-light);
  text-decoration: line-through;
}

/* ==========================================================================
   BOTÓN CTA AGRESIVO & TRUST BADGES
   ========================================================================== */
.hero-cta-wrapper {
  margin-bottom: var(--space-6);
}

.btn-primary-cro {
  width: 100%;
  padding: 16px 20px;
  flex-direction: column;
  gap: 4px;
  border-radius: var(--radius-md);
  font-size: 1.15rem;
  cursor: pointer;
}

.btn-cro-top {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.btn-cro-sub {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.92;
}

.cta-micro-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.76rem;
  color: var(--color-text-muted);
  margin-top: 8px;
  text-align: center;
}

/* Tarjeta de Garantía de Envío */
.shipping-guarantee-card {
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  padding: var(--space-4);
  border-radius: var(--radius-md);
}

.shipping-logo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-text-main);
  margin-bottom: 6px;
}

.carrier-sep {
  color: var(--color-border);
}

.shipping-desc {
  font-size: 0.78rem;
  color: var(--color-text-body);
  line-height: 1.4;
}

/* ==========================================================================
   SECCIONES PERSUASIVAS: BENEFICIOS, COMPARATIVA Y CÓMO FUNCIONA
   ========================================================================== */
.cro-section {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--color-border);
}

.cro-section-header {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-8);
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.section-title {
  font-size: var(--font-2xl);
  font-weight: 800;
  color: var(--color-text-main);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: var(--font-base);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Beneficios Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.benefit-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.benefit-card:hover {
  transform: translateY(-3px);
}

.benefit-icon-wrap {
  width: 52px;
  height: 52px;
  background: #ecfdf5;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: var(--space-4);
}

.benefit-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-text-main);
  margin-bottom: 8px;
}

.benefit-card-desc {
  font-size: 0.88rem;
  color: var(--color-text-body);
  line-height: 1.5;
}

/* Storytelling Box */
.product-storytelling-box {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow-sm);
}

.storytelling-content h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-text-main);
  margin-bottom: var(--space-4);
}

.storytelling-content p {
  font-size: 0.95rem;
  color: var(--color-text-body);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.storytelling-content p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   TABLA DE COMPARACIÓN CRO
   ========================================================================== */
.comparison-table-wrapper {
  overflow-x: auto;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.cro-comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.cro-comparison-table th,
.cro-comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
}

.cro-comparison-table th {
  background: var(--color-bg-subtle);
  font-weight: 800;
  color: var(--color-text-main);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cro-comparison-table th.th-highlight {
  background: #ecfdf5;
  color: #065f46;
  border-bottom: 2px solid var(--color-primary);
}

.td-feature {
  font-weight: 700;
  color: var(--color-text-main);
}

.td-us {
  background: #f0fdf4;
  color: #065f46;
  font-weight: 700;
}

.td-other {
  color: var(--color-text-muted);
}

/* ==========================================================================
   PASOS: CÓMO FUNCIONA EL PAGO CONTRA ENTREGA
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.step-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.step-number-bubble {
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-4);
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.3);
}

.step-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-text-main);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--color-text-body);
  line-height: 1.5;
}

.inter-cta-banner {
  text-align: center;
}

.inter-cta-banner .btn-primary-cro {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ACORDEÓN FAQ INTERACTIVO
   ========================================================================== */
.accordion-list {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.accordion-item {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.accordion-item.is-open {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  text-align: left;
  font-weight: 700;
  color: var(--color-text-main);
  font-size: 0.95rem;
  cursor: pointer;
  background: white;
}

.accordion-header:hover {
  background: var(--color-bg-subtle);
}

.accordion-icon {
  font-size: 1.3rem;
  color: var(--color-primary);
  font-weight: 800;
  transition: transform var(--transition-fast);
  margin-left: 12px;
}

.accordion-item.is-open .accordion-icon {
  transform: rotate(45deg);
}

.accordion-body {
  display: none;
  padding: 0 20px 16px 20px;
  font-size: 0.88rem;
  color: var(--color-text-body);
  line-height: 1.6;
}

.accordion-item.is-open .accordion-body {
  display: block;
}

/* ==========================================================================
   MURO DE RESEÑAS VERIFICADAS EN CHILE
   ========================================================================== */
.reviews-summary-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: var(--space-4);
}

.score-big {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-text-main);
  line-height: 1;
}

.score-stars {
  color: #fbbf24;
  font-size: 1.2rem;
}

.score-sub {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.review-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

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

.reviewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.reviewer-name {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.reviewer-name strong {
  font-size: 0.88rem;
  color: var(--color-text-main);
}

.verified-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: #065f46;
  background: #d1fae5;
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

.reviewer-city {
  font-size: 0.74rem;
  color: var(--color-text-muted);
}

.review-stars-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.review-stars {
  color: #fbbf24;
  font-size: 0.85rem;
}

.review-date {
  font-size: 0.72rem;
  color: var(--color-text-light);
}

.review-text {
  font-size: 0.85rem;
  color: var(--color-text-body);
  line-height: 1.5;
  font-style: italic;
}

/* Caja de Garantía */
.guarantee-box {
  background: #ecfdf5;
  border: 2px dashed #059669;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.guarantee-shield-wrap {
  font-size: 3rem;
  flex-shrink: 0;
}

.guarantee-text h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #065f46;
  margin-bottom: 6px;
}

.guarantee-text p {
  font-size: 0.85rem;
  color: #064e3b;
  line-height: 1.5;
}

/* ==========================================================================
   STICKY CTA FLOTANTE MÓVIL
   ========================================================================== */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--color-border);
  padding: 10px 14px;
  z-index: var(--z-sticky-cta);
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-sticky-cta.is-visible {
  transform: translateY(0);
}

.sticky-cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.sticky-cta-price-box {
  display: flex;
  flex-direction: column;
}

.sticky-label {
  font-size: 0.68rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.sticky-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.1;
}

.sticky-shipping {
  font-size: 0.65rem;
  font-weight: 700;
  color: #065f46;
}

.sticky-cta-button {
  flex-grow: 1;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
}

.sticky-cta-button span {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.1;
}

.sticky-cta-button small {
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.9;
}

@media (max-width: 860px) {
  .product-hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .product-gallery-col {
    position: static;
  }
  .desktop-only {
    display: none;
  }
  .mobile-sticky-cta {
    display: block;
  }
}
