:root{
  --container: 420px;
  --text: #111827;
  --muted: #6b7280;
  --bg: #ffffff;
  --alt: #f3f4f6;
  --brand: #ef4444;
  --radius: 16px;
  --shadow: 0 14px 30px rgba(0,0,0,.22);
  --headerH: 62px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.container{
  width: min(var(--container), calc(100% - 28px));
  margin: 0 auto;
}

/* HEADER / NAV */
.header{
  position: sticky;
  top:0;
  z-index: 50;
  background:#fff;
  border-bottom: 1px solid #e5e7eb;
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap: 14px;
}

.brand{
  font-weight: 900;
  text-decoration:none;
  color: var(--text);
  font-size: 18px;
  text-align: center;
  flex: 1;
}

.nav__toggle{
  display:block;
  border:0;
  background:transparent;
  font-size: 26px;
  cursor:pointer;
}

.nav__menu{
  position: absolute;
  top: var(--headerH);
  right: 0;
  left: 0;
  background:#fff;
  border-bottom: 1px solid #e5e7eb;
  display:none;
  flex-direction: column;
  align-items: stretch;
  padding: 12px 14px 16px;
  gap: 8px;
}
.nav__menu.open{ display:flex; }

.nav__link{
  text-decoration:none;
  color: var(--text);
  font-weight: 650;
  padding: 10px 10px;
  border-radius: 12px;
}
.nav__link.active{ color: var(--brand); }

/* Botón WhatsApp en header */
.nav__whatsapp{
  background: #25D366;
  color: #fff;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  box-shadow: 0 6px 14px rgba(37,211,102,.35);
  white-space: nowrap;
}

/* BUTTONS */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration:none;
  font-weight: 800;
  border: 1px solid transparent;
  cursor:pointer;
  user-select:none;
}

.btn--whatsapp{
  display: block;
  width: 100%;
  background-color: #25D366;
  margin-top: 20px;
  color: #000000;
  text-align: center;
  padding: 14px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}
.btn--whatsapp:hover { background-color: #1ebe5d; }

.btn--primary{
  background: #25D366;
  color:#000000;
}

.btn--ghost{
  background: transparent;
  border-color: rgba(255,255,255,.55);
  color: #fff;
}

/* HERO SPLIT */
.hero--split{
  min-height: calc(100vh - var(--headerH));
  display:flex;
  flex-direction: column;
}

/* ARRIBA: video */
.hero__top{
  position: relative;
  height: 55vh;
  min-height: 330px;
  overflow:hidden;
  color:#fff;
  display:flex;
  align-items:flex-end;
}

.hero__video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
  z-index: 0;
}

.hero__overlay{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.22);
  z-index: 1;
}

.hero__topContent{
  position: relative;
  z-index: 2;
  padding: 22px 0 18px;
}

.hero__title{
  margin:0 0 10px;
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero__rating{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 800;
  margin-bottom: 6px;
}

.hero__sub{
  margin: 0 0 14px;
  color: rgba(255,255,255,.85);
}

.hero__cta{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__title, .hero__sub, .hero__rating{
  text-shadow: 0 6px 16px rgba(0,0,0,.55);
}

/* ABAJO: slider */
.hero__bottom{
  background: rgba(0,0,0,.70);
  flex: 1;
  display:flex;
  align-items:flex-start;
  padding: 16px 0 22px;
}

.hero__bottomContent{
  display:flex;
  justify-content:center;
}

/* SLIDER */
.slider{
  position: relative;
  width: 90vw;
  max-width: 520px;
  height: 320px;
  overflow: hidden;
  border-radius: var(--radius);
}

.slider--big{
  width: 90vw;
  max-width: 520px;
  height: 320px;
}

.slider .product-card{
  position:absolute;
  inset:0;
  opacity:0;
  transform: translateX(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.slider .product-card.active{
  opacity:1;
  transform: translateX(0);
  z-index: 1;
}

/* PRODUCT CARD */
.product-card{
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow:hidden;
  height: 100%;
}

.product-card img{
  width: 100%;
  height: 77%;
  object-fit: contain;
  object-position: top center;
  display: block;
}

.product-card__meta{
  padding: 6px 10px;
  color:#fff;
}
.product-card__meta h3{
  margin: 0 0 0.5px;
  font-size: 22px;
}
.meta-line{
  margin: 0;
  opacity: .9;
  font-size: 13px;
  font-weight: 700;
}

/* HEADINGS */
h1{
  margin: 0 0 14px;
  font-size: 28px;
  letter-spacing: -0.02em;
  text-align: left;
}

h2{
  margin: 20px 0 10px;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-align: center;
}

/* SECTIONS */
.section{
  padding: 60px 0;
  background: #fff;
  color: var(--text);
  position: relative;
  z-index: 2;
}

.section--alt{
  background: var(--alt);
  position: relative;
  z-index: 2;
}

.section__title{
  margin: 0 0 24px;
  font-size: 30px;
  letter-spacing: -0.02em;
}
.section__text{
  margin:0;
  color: var(--muted);
  max-width: 70ch;
}

.products__title{
  text-align: center;
  margin: 20px 0 32px;
  font-size: 2rem;
  font-weight: 900;
}

.pricing-title{
  text-align: center;
  text-decoration: underline;
}

/* FORM */
.form{
  margin-top: 18px;
  display:grid;
  gap: 14px;
  max-width: 520px;
}
.form__row label{
  display:block;
  font-weight:800;
  margin-bottom: 6px;
}
.form input, .form textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  outline: none;
  font: inherit;
}
.form__hint{
  margin: 4px 0 0;
  color: var(--muted);
}

/* FOOTER */
.footer{
  padding: 22px 0;
  border-top: 1px solid #e5e7eb;
  color: var(--muted);
}
.footer__inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 16px;
}
.footer__link{
  color: var(--muted);
  text-decoration:none;
}

/* GALERIA */
.chips{
  display:flex;
  gap:10px;
  flex-wrap: wrap;
  margin: 10px 0 18px;
}

.chip{
  border: 1px solid #e5e7eb;
  background:#fff;
  color:#111827;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  cursor:pointer;
}
.chip.active{
  border-color: transparent;
  background: #111827;
  color:#fff;
}

.gallery{
  display:grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card{
  background:#fff;
  border-radius: 16px;
  overflow:hidden;
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
  border: 1px solid #f1f5f9;
}

.card__media{
  position: relative;
  aspect-ratio: 1 / 1;
  overflow:hidden;
}

.card__media img{
  width:100%;
  height:100%;
  object-fit: cover;
  object-position: center;
  display:block;
}

.card__tag{
  position:absolute;
  top: 12px;
  right: 12px;
  background: #fbbf24;
  color:#111827;
  font-weight: 900;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 10px;
}

.card__body{ padding: 14px 14px 16px; }

.card__title{
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.card__row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}

.rating{
  display:flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 800;
}
.rating small{
  color: var(--muted);
  font-weight: 700;
}

.stars{ letter-spacing: 2px; }

.price-pill{
  background:#fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
  color: #f59e0b;
}
.hide-price .price-pill{ display:none; }

/* BG IMAGE (si lo usas en otra parte) */
.BgImage{
  min-height: 100vh;
  width: 100%;
  background-image: url("../images/slide/puente.webp");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
@media (max-width: 768px){
  .BgImage{ background-attachment: scroll; }
}

/* BLOQUES (si los usas) */
.bloque{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  padding: 80px 24px;
}
.foto{
  position: relative;
  top: 80px;
  margin-bottom: 24px;
  height: fit-content;
}
.foto img{
  width: 100%;
  max-height: 65vh;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
}

/* ✅ PUENTE FULLSCREEN STICKY (foto estatica entre secciones) */
.foto-full{
  height: 180vh; /* ajusta: 150-220vh */
  position: relative;

  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  z-index: 0;
}

.foto-full__sticky{
  position: sticky;
  top: var(--headerH);
  height: calc(100vh - var(--headerH));
  width: 100%;

  background-image: url("../images/slide/puente.webp");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;

  z-index: 0;
}



/* ✅ EFECTO: la sección de productos entra ENCIMA del puente (la foto se va ocultando por detrás) */
.products-block{
  position: relative;
  z-index: 2;
  background: var(--alt);
  margin-top: calc(-100vh + var(--headerH));
  padding-top: 60px;
}
/* ACCORDION CARDS */
.cards-accordion{
  width: 100%;
  padding: 0 6px;
  box-sizing: border-box;
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.acc-card{
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

.acc-head{
  position: relative;
}

.acc-link{
  display:block;
  text-decoration: none;
  color: inherit;
}

.acc-hero{
  position: relative;
  height: 260px;
  border-radius: 18px;
  overflow: hidden;
}

.acc-hero__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(.85);
}

.acc-badge{
  position: absolute;
  left: 14px;
  bottom: 56px;
  background: #e53935;
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.acc-toggle{
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: rgba(255,255,255,.9);
  display:grid;
  place-items:center;
  z-index: 2;
}

.acc-icon{
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
}

.acc-panel{
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.acc-panel__inner{
  padding: 14px 14px 16px;
}

.acc-detail__img{
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.acc-detail__title{
  margin: 12px 0 6px;
  font-size: 20px;
  font-weight: 900;
  color: #0a0a0a;
}

.acc-detail__text{
  margin: 0 0 10px;
  color: #444;
  line-height: 1.55;
  font-size: 15px;
}

.acc-list{
  margin: 0;
  padding-left: 18px;
  color: #222;
  line-height: 1.6;
  font-size: 15px;
}

.acc-card.is-open .acc-panel{
  max-height: 999px; /* fallback si JS no setea scrollHeight */
}

.acc-card.is-open .acc-icon{
  transform: rotate(45deg);
  transition: transform .2s ease;
}

/* Carousel pages (polos.html etc) */
.page-hero { padding: 24px 0; }
.page-hero__title { margin: 0 0 8px; }
.page-hero__sub { margin: 0; opacity: .9; }

.carousel{
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}
.carousel__track{
  display: flex;
  transition: transform .35s ease;
  will-change: transform;
}
.carousel__slide{
  min-width: 100%;
  flex: 0 0 100%;
}
.carousel__img{
  width: 100%;
  height: auto;
  display: block;
}
.carousel__btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(0,0,0,.55);
  color: #fff;
  z-index: 2;
}
.carousel__btn--prev{ left: 10px; }
.carousel__btn--next{ right: 10px; }

.carousel__dots{
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}
.carousel__dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  opacity: .35;
}
.carousel__dot.is-active{ opacity: 1; }

.backlink{
  display: inline-block;
  margin: 10px 0 0;
  text-decoration: none;
}

@media (max-width: 768px){
  .foto-full{ height: 150vh; }
  .bloque{ grid-template-columns: 1fr; }
  .foto{ top: 0; }
}
