:root{
  --bg:#0b0b0b;
  --panel:#121212;
  --muted:#9aa1ac;
  --fg:#ffffff;
  --brand:#ff6b00;    /* naranja marca */
  --accent:#ffd166;   /* dorado */
  --danger:#ef4444;
  --radius:16px;
  --shadow:0 10px 30px rgba(0,0,0,.4);

  --c-blue:#1862a3;
  --c-red:#751616;
  --c-white:#DDE3EE;

  --sel-color: var(--c-blue);
  --pad: clamp(12px, 4vw, 22px);
  --header-h: 72px;
}

*{box-sizing:border-box}
html,body{height:100%;overflow-x:hidden}
body{
  margin:0;
  background:#000;
  color:var(--fg);
  font-family:"Poppins",sans-serif;
  position:relative;
  z-index:1
}

/* Container */
.container{
  width:min(1200px, 100%);
  margin-inline:auto;
  padding-inline: var(--pad);
  padding-block: 12px
}

/* ===== Countdown ===== */
.count-section{
  display:flex;
  flex-direction:row;
  justify-content:center;
  margin:0;background:url(../img/Promo.png) center/cover;
  gap:10px
}
.count-promo{
  display:flex;
  flex-direction:row;
  font-size:53px;
  gap:10px;
  margin:0
}
.count-promo p{
  margin:0;
  font-family:"Radley",serif;
  font-style:italic;
  font-weight:600
}
.prom1{
  color:#364a58;
  text-shadow: 1px 1px 2px rgb(0, 102, 0);
}
.prom2{
    color:#364a58;
    text-shadow: 1px 1px 2px rgb(0, 102, 0);
}
.count-badge{
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid rgb(131, 21, 21);
  border-radius:16px;
  padding:0 10px;
  margin:5px 0;
  background:transparent;
  box-shadow: inset 1px 0px 12px 1px rgba(172, 20, 20, 0.774);
}
.tb-text{
  font-size:15px;
  line-height:1;
  color:#fff
}
.cd{
  display:inline-flex;
  align-items:end;
  white-space:nowrap;
  border-radius:12px;
  padding:0 12px
}
.cd-box{
  display:grid;
  grid-template-rows:1fr auto;
  justify-items:center;
  width:55px;
  padding:4px
}
.cd-value{
  font-size:24px;
  font-weight:700;
  color:rgb(204, 0, 0);
}
.cd-label{
  font-size:10px;
  color:rgb(204, 0, 0);
  text-transform:uppercase;
  letter-spacing:.4px;
  font-weight:600
}
@media (max-width:850px){
  .count-section{
    background:url(../img/Promo2.png);
    background-size:cover;
    gap:10px
  }
  .count-promo{
    flex-direction:column;
    justify-content:center;
    align-items:center;
    font-size:23px;
    gap:0;
    margin:0
  }
  .cd-box{width:40px;padding:4px}
  .cd-value{font-size:18px}
  .cd-label{font-size:10px}
}

/* ===== Product ===== */
.product{
  margin:18px 0;
  position:relative;
  z-index:0
}
.product-grid{
  display:flex;
  flex-direction:row;
  gap:10px;
  align-items:center;
  justify-content:center
}
.thumbs.mobile{
  display:none
}
.thumbs{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:20px
}
.img-wrapper{
  width:100%;
  height:30%;
  border-radius:10px;
  cursor:pointer;
  object-fit:cover;
  background-color:black
}
.img-wrapper img{
  opacity:.5;
  border-radius:50%;
  border:2px solid #ebd99b;
  transition:opacity .2s
}
.thumbs img.is-active, .thumbs img:hover{opacity:1}

.gallery-main{
  grid-area:main;
  position:relative;
  background:#0f0f0fb0;
  border-radius:5px;
  overflow:hidden;
  transition:border-color .25s ease, box-shadow .25s ease
}
main img{
  width:100%;
  height:100%;
  object-fit:cover
}

.cardish{
  background:var(--panel);
  border:1px solid #1f1f1f;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:16px
}

.detail{
  grid-area:detail;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  background:rgba(0,0,0,0.808);
  padding:0 20px
}
.detail .title{
  margin:.2rem 0 6px;
  font-family:"Radley",serif;
  font-size:34px;
  font-weight:600;
  color:#fff
}

/* Rating fraccional */
.rating{display:flex;align-items:center;gap:10px;margin:6px 0 12px}
.stars{position:relative;display:inline-block;line-height:1;font-size:20px;letter-spacing:5px; width:max-content}
.stars-bg{color:#5f5f5f}
.stars-fill{color:rgb(216,184,128);position:absolute;left:0;top:0;white-space:nowrap;overflow:hidden;width:0%}
.rating-num{color:#fff;font-size:13px}

.price-wrap{display:flex;align-items:end;gap:10px}
.price-current{
  font-size:30px;
  font-weight:700;
  color:white;
  font-size: 17px;
}
.price-old{
  color: var(--danger);
  text-decoration:line-through;
  font-size:14px
}
.save-line{
  background:white;
  color:var(--c-red);
  margin:8px 0 2px;
  font-weight:500;
  padding:5px 8px;
  font-size:12px;
  border-radius:5px}

/* Colors */
.colors{
  margin:12px 0
}
.colors .label{
  color:#fff;
  margin-bottom:8px;
  display:block;
  font-size:14px;
  font-weight:600
}
.color-list{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  justify-items:center;
  padding:0 5px 0 0;
  gap:10px
}
.color{
  border:1px solid #2c2c2c;
  background:#0a0a0a;
  border-radius:999px;
  cursor:pointer;
  width:84px;
  height:84px;
  display:grid;
  place-items:center;
  position:relative;
  overflow:hidden
}
.color .swatch-img{
  width:100%;
  height:100%;
  object-fit:cover;
  filter:saturate(1) brightness(.95)
}
.color .ring{
  position:absolute;
  inset:0;
  border-radius:inherit;
  box-shadow:inset 0 0 0 2px transparent;
  transition:.25s
}
.color.is-active{
  border:1px solid var(--sel-color);
  box-shadow:3px 0px 25px 1px color-mix(in srgb, var(--sel-color) 40%, transparent)
}
.color.is-active .ring{
  box-shadow:inset 3px 0px 25px 1px var(--sel-color);
}

/* Gallery dots */
.gallery-dots{
  display:none;
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  bottom:4px;
  gap:8px;
  z-index:3
}
.gallery-dots .dot{
  width:10px;height:10px;
  border-radius:50%;
  border:1px solid var(--sel-color);
  background:#000;
  opacity:.7
}
.gallery-dots .dot.is-active{
  transform:scale(1.2);
  background:var(--sel-color);
  opacity:1
}

/* Buy */
.buy-row{display:grid;grid-template-columns:0.5fr 1.5fr;gap:12px;align-items:center;margin:0 0 10px;padding:6px 0;flex-wrap:wrap}
.qty{
  display:flex;
  align-items:center;
  background:#fff;
  border:1px solid var(--c-red);
  border-radius:10px;
  font-weight: 900;
}
.qty .step{
  background:transparent;
  border:none;
  color:#000;
  width:35px;
  height:40px;
  font-size:20px;
  cursor:pointer;
  
}
.qty input{
  font-family:"Poppins",sans-serif;
  width:38px;
  background:transparent;
  border:none;
  color:#000;
  text-align:center;
  font-size:16px;
  appearance:textfield;
}
.qty input::-webkit-outer-spin-button,.qty input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.btn-add{
  font-family:"Poppins",sans-serif;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  background:var(--c-red);
  color:#fff;
  border:none;
  border-radius:10px;
  padding:10px 15px;
  font-size:15px;
  font-weight:600;
  cursor:pointer;
  box-shadow: 3px 0px 25px 1px var(--c-red);
}
.btn-add .ico{width:20px;height:20px;fill:#fff}

/* Trust */
.trust{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:15px;
  padding:0;
  list-style:none;
  color:#fff
}
.trust li{
  display:flex;
  gap:12px;
  align-items:center;
  padding:12px 14px;
  border-radius:12px;
  background:rgba(255,255,255,0.04);
  border:1px solid #2a2a2a;
  box-shadow:0 2px 14px rgba(0,0,0,.25);
  font-size:14px;
}
.trust svg{width:25px;height:25px;fill:#ffd166;color:#ffd166}

/* Promos (con box shadow visible) */
.promos{margin-top:28px}
.promos h3{
  margin:25px 0 0;
  text-align:center;
  color:#fff;
  font-size: 22px;
}
.promo-card{display:flex;flex-direction:row;gap:20px;justify-content:center;margin:20px 30px}
.promo{
  display:flex;
  flex-direction:column;
  justify-content:center;
  width:100%;height:fit-content;
  border-radius:12px;
  padding:12px;
  margin:10px 0;
  color:#fff;
  box-shadow:0 0 0 1px #2a2a2a, 0 14px 34px rgba(0,0,0,.35);
  box-shadow: 3px 0px 25px 1px var(--brand);
}
.promo label{color:#fff;font-size:15px}
.bundle-colors{display:flex;gap:10px;margin:12px 0 0;flex-wrap:wrap;justify-content:center}
.promo select{background:#0e0e0e;color:#fff;border:1px solid #2a2a2a;border-radius:10px;padding:8px;font-family:"Poppins",sans-serif}
.bundle-preview{display:flex;gap:15px;justify-content:center;align-items:center;margin-top:10px}
.bundle-preview img{width:70px;height:70px;object-fit:cover;border-radius:8px;border:1px solid #333;background:#000}
.btn-bundle{background:var(--brand);color:white;font-family:"Poppins",sans-serif;font-weight:600;border:none;border-radius:10px;margin:12px 42px 5px;padding:10px 14px;cursor:pointer}
@media (max-width:850px){ .promo{width:280px} }

/* Videos APILADOS */

.videos{
  margin:20px 
}
.videos h2{
  text-align: center;
}
.videos-stack{display:block}
.pv{display:block;width:100%;max-width:100%;aspect-ratio:9/16;object-fit:cover;border-radius:14px;border:1px solid #1f1f1f;background:#000;margin-bottom:14px}

/* Description */
.desc{margin:10px 0}
.desc h2{margin:0 0 10px;color:#fff;text-align:center}
.desc p{
  color:#cfd6e1;
  text-align:justify;
  font-size: 13px;
}
.grid2{
  display:flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap:14px
}
.desc .media-carousel,.desc .grid2
{max-width:min(1200px,96vw);
  margin-left:auto;
  margin-right:auto
}
.desc .media-carousel img,.desc .grid2 img{
  width:100%;
  height:auto;
  object-fit:contain;
  max-height:min(70vh,760px)
}
.media-carousel{position:relative;margin:12px 0;border-radius:14px;overflow:hidden;background:#0f0f0f;border:1px solid #1f1f1f}
.media-carousel .track{display:grid;grid-template-columns:repeat(3,100%);transition:transform .35s ease;will-change:transform}
.media-carousel figure{margin:0}
.media-carousel figcaption{text-align:center;color:#cfd6e1;font-size:14px;padding:6px 0}
.media-carousel .nav{position:absolute;top:50%;transform:translateY(-50%);background:#000a;color:#fff;border:none;width:36px;height:36px;border-radius:50%;cursor:pointer}
.media-carousel .prev{left:8px}.media-carousel .next{right:8px}

/* Reseñas */
.reviews{
  margin:24px 0
}
.reviews h2{
  margin:12px 0 5px;
}
.reviews-carousel{
  position:relative;
  overflow:hidden;
  border-radius:14px
}
.reviews-track{
  display:flex;
  gap:14px;
  transition:transform .35s ease;
  will-change:transform;
}
.review{
  background:var(--panel);
  border:1px solid #1f1f1f;
  border-radius:14px;
  padding:14px;
  min-height:120px;
  box-shadow:0 0 0 1px black;
  flex:0 0 100%; /* 1 por vista en móvil por defecto */
}
.review .r-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.review .r-stars{color:#ffd166}
.review p {font-size:13px}

/* Contenedor de imagen de reseña: tamaño fijo tipo "pantalla de celular" */
.review .r-img{
  margin-top:8px;
  border-radius:10px;
  overflow:hidden;
  border:1px solid #232323;

  width:100%;
  max-width:260px;       /* tamaño cómodo en desktop */
  aspect-ratio: 9 / 16;  /* proporción vertical de teléfono */
  margin-left:auto;
  margin-right:auto;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#000;
}

.review .r-img img{
  width:100%;
  height:100%;
  object-fit:cover;      /* llena el contenedor, recortando si hace falta */
  display:block;
}

.rnav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:36px;
  height:36px;
  border-radius:50%;
  border:1px solid #333;
  background:#000a;
  color:#fff;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:5;             /* por encima de las cards */
}
.rnav.prev{left:8px}
.rnav.next{right:8px}

.review-form{
  margin-top:18px;
  box-shadow: 3px 0px 25px 1px var(--brand);
}
.review-form h3{
  margin:0 0 10px
}
.review label{
  font-size: 14px;
}
.review-form input,.review-form textarea{
  width:100%;
  background:#0e0e0e;
  color:#fff;
  border:1px solid #2a2a2a;
  border-radius:10px;
  padding:10px;
  margin:6px 0;
  font-family:"Poppins",sans-serif;
  font-size: 14px;
}
.star-input{
  display:flex;gap:4px
}
.star-input button{background:transparent;border:1px solid #333;color:#777;border-radius:8px;width:36px;height:36px;font-size:18px;cursor:pointer}
.star-input button.active{color:#ffd166;border-color:#ffd166}
.btn-file{
  display:inline-block;
  background:#222;
  border:1px solid #333;
  color:#fff;
  border-radius:10px;
  padding:8px 12px;
  cursor:pointer;
  font-size: 14px;
}
.preview{width:96px;height:96px;object-fit:cover;border-radius:10px;border:1px solid #333;margin-left:10px}
.finalbtn{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}
.btn-submit{
  background:var(--brand);
  margin-top: 15px;
  color:#fff;
  border:none;
  border-radius:10px;
  padding:10px 14px;
  cursor:pointer;
  font-family:"Poppins",sans-serif;
  font-weight: 600;
  font-size: 15px;
}
.hint{color:#93a0b2;font-size:12px}

/* Desktop sizing */
@media (min-width:850px){
  :root{ --prod-h: min(clamp(560px,44vw,660px), calc(100vh - var(--header-h) - (2 * var(--pad)) - 2px))}
  .product{margin-top:18px;margin-bottom:12px}
  .product-grid{align-items:stretch}
  .gallery-main,.thumbs,.detail{height:var(--prod-h)}
  .detail{overflow:hidden}

  /* 3 reseñas visibles en desktop, ajustando el ancho para incluir el gap */
  .review{
    flex:0 0 calc((100% - 28px)/3); /* 3 cards + 2 gaps de 14px = 100% */
  }
}

/* Responsive */
@media (max-width:850px){
  .container{padding:0}

  .product{margin:0}
  .product-grid{flex-direction:column;gap:5px}
  .thumbs{display:none}
  .thumbs.mobile{display:none}
  .gallery-dots{
    display:flex
  }

  .detail .title{
    font-size:27px;
    font-weight:500
  }
  .rating{margin:0 0 5px}
  .stars{font-size:17px}
  .rating-num{font-size:12px}
  .price-current{font-size:22px;font-weight:700}
  .save-line{
    font-size:12px;
    font-weight:600
  }
  .promos{
    margin:5px 10px;
    padding:5px
  }
  .videos{
    margin:25px 30px;
  }
  .promo-card{flex-direction:column;gap:15px;align-items:center}
  .grid2{grid-template-columns:1fr}

  .desc{margin:10px 30px}

  /* carruseles de imágenes en móvil pasan a swipe nativo */
  .media-carousel .track{display:flex;overflow:hidden;scroll-snap-type:x mandatory}
  .media-carousel .track > *{min-width:100%;scroll-snap-align:center}
  .media-carousel .nav{display:none}

  /* Videos apilados ya están con .pv */
  .reviews{margin:40px 30px}
  .reviews h2{text-align:center}

  /* Imagen de reseña un poco más grande en móvil */
  .review .r-img{
    max-width:70vw;
    max-height:65vh;
  }
}

/* Background twinkles canvas */
#lightsCanvas{position:fixed;inset:0;z-index:0;pointer-events:none}

/* Petals inside main */
#petalsInMain{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none}
.petal-phrase{
  position:absolute;
  inset:auto 10% 7% 10%;
  text-align:center;
  color:white;
  font-family:"Radley",serif;
  font-size:20px;
  opacity:0;transition:opacity .6s ease;
  text-shadow:
    -1px -1px var(--sel-color),
    -1px  1px var(--sel-color);
  z-index:3;
  pointer-events:none
}
.petal-phrase.show{opacity:1}

/* --- VIDEOS GRID EN DESKTOP --- */
@media (min-width: 851px) {
  .videos-stack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .pv {
    width: 100%;
    height: auto;
    aspect-ratio: 9/16;
    border-radius: 14px;
  }
}

/* --- CARRUSEL EN MÓVIL --- */
@media (max-width: 850px) {
  .videos-stack {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
  }
  .pv {
    flex: 0 0 100%;
    scroll-snap-align: center;
  }
  .videos-stack::-webkit-scrollbar {
    display: none;
  }
}
