/* ==========================================================================
   MANYIWEBSOFT — EXTRACTO DE ESTILOS: TIENDA ONLINE / E-COMMERCE
   ========================================================================== */

:root {
  --primary-dark: #0f172a;
  --primary-slate: #1e293b;
  --aqua: #2dd4bf;
  --aqua-hover: #14b8a6;
  --aqua-light: rgba(45, 212, 191, 0.1);
  --text-main: #334155;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --white: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --font-title: 'Montserrat', sans-serif;
  --font-body: 'Lato', sans-serif;
}

/* ════════════════════════════════
   HERO ESTANDARIZADO
════════════════════════════════ */
.premium-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 121px;
  background-color: var(--primary-dark);
  color: var(--white);
}

.hero-bg-photo {
  position: absolute;
  inset: 0;
  background-image: url('/assets/img/tienda-online.webp');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none; 
}

.hero-bg-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(13, 21, 32, 0.92) 0%,
    rgba(13, 21, 32, 0.75) 45%,
    rgba(13, 21, 32, 0.25) 100%
  );
}

.premium-hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.premium-hero .hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0; 
  padding: 4rem 5% 4rem 6%; 
  display: grid;
  grid-template-columns: 520px 1fr;
  align-items: center;
  gap: 3rem;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--aqua);
  width: fit-content;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--aqua);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%        { opacity: 0.5; transform: scale(0.7); }
}

.title-main {
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--white);
  margin: 0;
}

.title-main .highlight {
  color: var(--aqua);
}

.subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.7;
  color: #c8d8e8;
  font-weight: 300;
  max-width: 480px;
  margin: 0;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  padding: 1.2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-n {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  color: var(--aqua);
  line-height: 1;
}

.stat-n sup {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  vertical-align: super;
}

.stat-l {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-top: 0.3rem;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--aqua);
  color: #000;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 0.85rem 1.8rem;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-hero:hover {
  background-color: var(--aqua-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(45, 212, 191, 0.4);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 0.85rem 1.8rem;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

/* ════════════════════════════════
   SECCIÓN DE COTIZACIÓN Y BENEFICIOS
════════════════════════════════ */
.section-premium {
  background-color: var(--white);
  padding: 6rem 2rem;
}

.container-premium {
  max-width: 1200px;
  margin: 0 auto;
}

.section-divider {
  text-align: center;
  margin-bottom: 4rem;
}

.divider-label {
  font-family: var(--font-title);
  color: var(--aqua-hover);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}

.divider-title {
  font-family: var(--font-title);
  color: var(--primary-dark);
  font-size: 2.2rem;
  font-weight: 800;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.3;
}

.divider-title .aq {
  color: var(--aqua-hover);
}

.como-texto {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--text-main);
  max-width: 750px;
  margin: 1.25rem auto 0 auto;
}

.divider-line {
  width: 60px;
  height: 4px;
  background-color: var(--aqua);
  margin: 2rem auto 0 auto;
  border-radius: 2px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: start;
}

.benefits-col {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.porque-titulo {
  font-family: var(--font-title);
  color: var(--primary-dark);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.porque-titulo .aq {
  color: var(--aqua-hover);
}

.porque-sub {
  font-family: var(--font-body);
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.benefit-item {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 1.75rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-3px);
  border-color: var(--aqua);
  box-shadow: var(--shadow-lg);
}

.icon-wrap {
  width: 46px;
  height: 46px;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.icon-wrap svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary-dark);
}

.benefit-item h4 {
  font-family: var(--font-title);
  color: var(--primary-dark);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.benefit-item p {
  font-family: var(--font-body);
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.5;
}

.garantia-card {
  display: flex;
  gap: 1.5rem;
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  align-items: flex-start;
  box-shadow: var(--shadow-lg);
}

.garantia-icon {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.6rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.garantia-titulo {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.garantia-texto {
  font-family: var(--font-body);
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.6;
}

.pricing-card {
  background-color: var(--white);
  border: 2px solid var(--primary-dark);
  border-radius: 16px;
  padding: 3rem 2rem;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 130px;
}

.price-header {
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.badge-detalle {
  background-color: var(--primary-dark);
  color: var(--white);
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.4rem 1.5rem;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 1rem;
}

.price-fecha {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.25rem;
}

.price-cuotas {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-main);
  font-weight: 600;
}

.price {
  font-family: var(--font-title);
  font-size: 3.4rem;
  font-weight: 900;
  color: var(--primary-dark);
  line-height: 1;
  margin-top: 0.35rem;
}

.price .currency {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 600;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
  list-style: none;
  padding: 0;
}

.feature-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.4;
}

.feature-list li .check {
  color: var(--aqua-hover);
  font-weight: bold;
  font-size: 1.1rem;
  line-height: 1;
}

.pagos-wrap {
  background-color: var(--bg-light);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 2.5rem;
  border: 1px dashed var(--border-color);
}

.pagos-titulo {
  font-family: var(--font-title);
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 0.85rem;
}

.pagos-list {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pago-pill {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--primary-slate);
}

.btn-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background-color: var(--primary-dark);
  color: var(--white);
  width: 100%;
  padding: 1.1rem;
  border-radius: 8px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-card:hover {
  background-color: var(--aqua-hover);
  color: var(--primary-dark);
  box-shadow: 0 6px 18px rgba(20, 184, 166, 0.25);
}

/* ════════════════════════════════
   MEDIA QUERIES (Centrado Móvil Absoluto)
════════════════════════════════ */
@media (max-width: 992px) {
  .premium-hero .hero-inner {
    grid-template-columns: 1fr;
    padding: 3rem 5%;
  }

  .premium-hero .hero-inner > div:last-child {
    display: none;
  }

  .hero-copy {
    align-items: center;
    text-align: center;
  }

  .hero-copy nav {
    justify-content: center;
    width: 100%;
  }

  .title-main {
    font-size: clamp(2rem, 8vw, 3rem);
    text-align: center;
  }

  .subtitle {
    margin: 0 auto;
    text-align: center;
  }

  .hero-stats {
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  .hero-actions {
    justify-content: center;
    width: 100%;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
}

@media (max-width: 768px) {
  .hero-bg-photo {
    background-image: url('/assets/img/tienda-online-movil.webp'); 
    background-position: center center;
  }

  .hero-bg-photo::after {
    background: linear-gradient(
      180deg,
      rgba(13, 21, 32, 0.95) 0%,
      rgba(13, 21, 32, 0.85) 100%
    );
  }

  /* Reducción de márgenes laterales para maximizar espacio en el Galaxy S8 */
  .section-premium {
    padding: 3.5rem 1.25rem;
  }

  /* Centrado forzado de los títulos en móvil */
  .porque-titulo,
  .porque-sub {
    text-align: center;
  }

  .icon-wrap {
    margin: 0 auto 1.25rem auto;
  }

  .benefit-item {
    text-align: center;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .stat-n {
    font-size: 1.6rem;
  }
  
  /* Botones apilados al 100% del ancho para no romper la pantalla */
  .hero-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .btn-hero, 
  .btn-ghost {
    width: 100%;
    justify-content: center;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  /* Tarjeta de garantía completamente centrada y prolija */
  .garantia-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
  }

  .garantia-icon {
    margin-bottom: 0.5rem;
  }

  /* Ajuste de la caja de precios para pantallas muy angostas (360px del S8) */
  .pricing-card {
    padding: 2.5rem 1.25rem;
  }

  /* Escala dinámica del precio para evitar saltos de línea con números grandes */
  .price {
    font-size: clamp(2.2rem, 10vw, 3.4rem);
  }

  .feature-list li {
    align-items: center; 
  }
}