:root {
  --color-primary: #2d9bce;
  --color-light: #f3f8ff;
  --color-accent: #d62828;
  --color-text: #222;
  --color-note: #666;
  --font-sans: 'Geist', sans-serif;
  --font-script: 'Condiment', cursive;
  --page-bg: #f5f5f5;
  --color-border: #ebebeb;
}

html {
  scroll-behavior: smooth;
}

body {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--page-bg);
  font-family: var(--font-sans);
}


.site-header {
  font-family: var(--font-sans);
}

.top-bar {
  background: var(--color-primary);
  text-align: center;
  padding: .5em 1em;
}

.top-bar p {
  margin: 0;
  font-size: .7em;
  color: #fff;
  font-weight: 600;
}

.banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-light) 0, #fff 100%);
  padding: 1em;
  text-align: center;
}

.banner-subtitle {
  margin: .2em 0;
  font-size: 2.5em;
  color: var(--color-text);
  font-weight: 600;
}

.banner-title {
  margin: .1em 0;
  font-size: 5em;
  font-family: var(--font-script);
  color: var(--color-accent);
}

.banner-divider {
  margin: .6em auto;
  width: 60%;
  border: none;
  border-top: 1px solid rgba(0, 0, 0, .1);
}

.banner-note {
  margin: .4em 0 .8em;
  font-size: .9em;
  color: var(--color-note);
  font-weight: 500;
}

.instruccion-deslizar {
  text-align: center;
  font-size: .9em;
  font-weight: 500;
  color: rgba(102, 102, 102, .6);
  margin: 1.5em 0 1em;
  animation: fadeSlide .8s ease-out .3s both;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.swiper {
  position: relative;
  overflow: hidden;
}

.mySwiper>.swiper-pagination {
  position: absolute;
  top: 10px;
  bottom: auto !important;
  width: 100%;
  left: 0;
  text-align: center;
  z-index: 10;
}

.swiper-wrapper {
  display: flex;
}

.swiper-slide {
  flex: 0 0 100%;
  box-sizing: border-box;
}

/* PRODUCTO */
.swiper {
  position: relative;
}

.mySwiper>.swiper-pagination {
  position: absolute;
  top: 10px;
  bottom: auto !important;
  width: 100%;
  left: 0;
  text-align: center;
  z-index: 10;
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #bbb;
  opacity: 1;
  margin: 0 5px;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: #222;
}

.swiper-slide {
  padding: 2em 0.5em 0em;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}


.swiper-container-wrapper {
  position: relative;
  overflow: hidden;
}


.nombre-producto {
  font-size: 1.5em;
  margin: 1em 0 1em;
  text-align: center;
  color: #222;
}

/* Hacer el contenedor del video full-width (menos padding del slide) */
.video-wrapper {
  position: relative;
  /* elemento padre para posicionar overlay */
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
}

/* El video ocupa todo el wrapper */
.video-wrapper video {
  display: block;
  width: 100%;
  height: auto;
}

/* El overlay cubre TODO el vídeo y está encima */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  /* asegúrate de que esté por encima */
}

/* Botón circular encima del vídeo */
.play-button {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  z-index: 3;
  /* por encima incluso del overlay */
}

/* Triángulo “play” */
.play-button::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 16px;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #333;
}

.play-button:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.video-producto {
  width: 95%;
  max-width: none;
  /* elimina límite de 320px */
  margin: 0 auto 1em;
}

/* Que el video llene todo ese contenedor */
.video-producto video {
  width: 100%;
  /* ocupa todo el ancho disponible */
  height: auto;
  /* mantiene proporción */
  border-radius: 10px;
  background: #000;
}

.img-producto {
  width: 100%;
  max-width: 320px;
  border-radius: 10px;
  margin: 1em 0;
}

/* Galería refinada */
.image-gallery {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 1.5em;
  margin: 1.5em auto;
  max-width: 700px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.thumbnails {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin-left: 0.5em;
}

.thumbnails img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  filter: grayscale(60%);
  transition: filter 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.thumbnails img:hover {
  transform: scale(1.1);
  filter: grayscale(0%);
}

.thumbnails img.active {
  filter: grayscale(0%);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
}

.main-image {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.purchase-box {
  background: #fff;
  border: 2px solid #A855F7;
  /* borde morado */
  border-radius: 16px;
  padding: 1.5em;
  max-width: 400px;
  margin: 1.5em auto;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.purchase-header {
  font-family: 'Geist', sans-serif;
  font-size: 1.3em;
  font-weight: 700;
  margin: 0 0 0.8em;
  color: #111;
}

.price-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 0.4em;
}

.original-price {
  font-size: 1em;
  color: #777;
  text-decoration: line-through;
}

.savings-pill {
  background-color: #A855F7;
  color: #fff;
  font-size: 0.85em;
  font-weight: 600;
  padding: 0.25em 0.8em;
  border-radius: 9999px;
}

.final-price {
  font-family: 'Geist', sans-serif;
  font-size: 2em;
  font-weight: 700;
  color: #000;
  margin: 0.3em 0 1em;
}

.btn-wsp {
  display: block;
  width: 100%;
  background-color: #FBBF24;
  /* amarillo */
  color: #111;
  font-family: 'Geist', sans-serif;
  font-size: 1.1em;
  font-weight: 600;
  padding: 0.75em 0;
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-wsp:hover {
  background-color: #f9ab1a;
}

.divider {
  border: none;
  border-top: 1px solid #E5E7EB;
  margin: 1em 0;
}

.garantia-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8em;
}

.icon-garantia {
  width: 24px;
  height: auto;
}

.garantia-text {
  font-size: 0.9em;
  color: #555;
  margin: 0;
  text-align: left;
}

/* Product Details Card */
.product-details {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 2em 1.5em;
  margin: 2em auto;
  max-width: 800px;
}

/* grid de 1 columna en móvil, 2 en desktop */
.details-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2em;
}

@media (min-width: 768px) {
  .details-card {
    grid-template-columns: 1fr 1fr;
  }
}

/* Encabezados seccionados */
.product-details h3 {
  position: relative;
  font-size: 1.2em;
  color: #d62828;
  margin-bottom: 1em;
  padding-left: 0.8em;
}

.product-details h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 4px;
  height: 1.2em;
  background: #d62828;
}

.product-details p {
  color: var(--color-note)
}

/* “¿Por qué esperar?” y subtítulo */
.why {
  font-size: 0.9em;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5em;
}

.subtitle {
  color: var(--color-text) !important;
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 1.5em;
}

/* Lista de características con check */
.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features-list li {
  color: var(--color-note);
  position: relative;
  padding-left: 1.6em;
  margin-bottom: 0.8em;
  line-height: 1.4;
}

.features-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #009900;
  font-size: 1em;
}

/* Botones de descarga */
.downloads {
  display: flex;
  gap: 1em;
  justify-content: center;
  margin-top: 2em;
}

.btn-download {
  background: #3E75FF;
  color: #fff;
  padding: 0.75em 1.5em;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  transition: background 0.3s ease;
}

.btn-download:hover {
  background: #315FDB;
}

/* Botones principales */
.btn-wsp,
.btn-download {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-wsp:hover,
.btn-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* Cartas de detalles */
.details-card>div {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.details-card>div:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}


/* Footer de conversión */
.cta-footer {
  background: #f7f7f7;
  padding: 2em 1em 1em;
  text-align: center;
  font-family: 'Geist', sans-serif;
  color: #333;
}

.cta-container h4 {
  font-size: 1.2em;
  margin-bottom: 0.8em;
}

.btn-cta {
  display: inline-block;
  background-color: #25D366;
  color: #fff;
  font-size: 1.1em;
  font-weight: 600;
  padding: 0.75em 1.5em;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-cta:hover {
  background-color: #1ebe5d;
}

.trust-container {
  display: flex;
  justify-content: center;
  gap: 2em;
  margin: 2em 0;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.9em;
}

.trust-item img {
  width: 24px;
  height: auto;
}

.footer-links {
  margin: 1.5em 0;
}

.footer-links a {
  margin: 0 1em;
  font-size: 0.85em;
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #333;
}

.footer-bottom {
  border-top: 1px solid #ddd;
  padding-top: 1em;
  font-size: 0.8em;
  color: #999;
}

/* Ocultamos inicialmente */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Cuando entra en viewport */
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.faq-section {
  background: #fff;
  padding: 2em 1.5em;
  font-family: var(--font-sans);
}

.faq-title {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1em;
  text-align: center;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 0.8em 0;
}

.faq-question {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 1em;
  font-weight: 500;
  color: var(--color-text);
  padding: 0.5em 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-toggle-icon {
  font-weight: bold;
  font-size: 1.2em;
  color: #315FDB;
  transition: transform 0.3s ease, color 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  font-size: 0.95em;
  color: #444;
  transition: max-height 0.4s ease, opacity 0.3s ease-in-out;
  opacity: 0;
  padding-left: 0.5em;
  will-change: max-height, opacity;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  opacity: 1;
  margin-top: 0.5em;
}

.faq-item.open .faq-toggle-icon {
  transform: rotate(45deg);
  /* se convierte en una "–" visual */
}

.timer-box {
  background-color: #faeeee;
  border: 1px solid #ffd1d1;
  border-radius: 1em;
  padding: 0.7em 1em;
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-family: 'Geist', 'Inter', sans-serif;
  font-size: 0.95em;
  color: #c62828;
  margin-bottom: 1em;
  box-shadow: 0 2px 6px rgba(198, 40, 40, 0.08);
  transition: background 0.3s;
}

.countdown {
  font-weight: 700;
  font-size: 1.1em;
  background-color: #fff;
  padding: 0.3em 0.7em;
  border-radius: 0.5em;
  border: 1px solid #ffcdd2;
}

.countdown.expired {
  color: #777;
  background-color: #eee;
  border-color: #ddd;
}

/* =============================
   🌐 Tablet (≥ 768px)
   ============================= */
@media (min-width: 768px) {

  .swiper-slide {
    flex-direction: row;
    justify-content: center;
    gap: 2em;
    align-items: flex-start;
    padding: 3em 2em;
  }

  .purchase-box {
    max-width: 320px;
    flex-shrink: 0;
  }

  .image-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2em;
    overflow-x: hidden;
  }

  .thumbnails {
    flex-direction: row;
    margin-left: 0;
    gap: 1em;
    justify-content: center;
  }

  .thumbnails img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
  }

  .main-image {
    max-width: 450px;
  }

  .faq-section {
    padding: 3em 4em;
  }

  .product-details {
    padding: 3em;
  }

  .trust-container {
    flex-wrap: nowrap;
  }

  .nombre-producto {
    font-size: 2em;
  }

  .purchase-header {
    font-size: 1.5em;
  }

  .final-price {
    font-size: 2.2em;
  }

  .btn-wsp {
    font-size: 1.15em;
  }
}

/* =============================
   🖥 Desktop (≥ 1024px)
   ============================= */
@media (min-width: 1024px) {
  body {
    max-width: 1200px;
    margin: auto;
  }

  .banner-title {
    font-size: 4em;
  }

  .banner-subtitle {
    font-size: 2em;
  }

  .cta-footer {
    padding: 3em 2em;
  }

  .footer-links a {
    font-size: 1em;
  }

  .trust-container {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }

  .product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: flex-start;
    gap: 2em;
  }

  .product-left {
    flex-direction: column;
    gap: 1em;
    align-items: center;
    text-align: center;
  }

  .product-right {
    grid-column: 1 / -1;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }

  .swiper-slide {
    overflow: hidden;
  }

  .image-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
  }

  .thumbnails {
    display: flex;
    justify-content: center;
    gap: 1em;
  }

  .thumbnails img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    filter: grayscale(60%);
    transition: filter 0.3s ease, transform 0.2s ease;
  }

  .thumbnails img.active {
    filter: grayscale(0%);
    transform: scale(1.05);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
  }

  .main-image {
    max-width: 350px;
  }

}

.purchase-box,
.product-details,
.faq-section,
.cta-footer {
  margin-bottom: 3em;
}