/* =========================
   Banner video
   ========================= */
:root {
  --max-content-width: 1100px; /* ancho máximo en pantallas grandes */
  --radius: 16px;
}

.full-bleed {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
}

/* Layout base */
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell,
    "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  background: #f7f7f8;
  color: #111;
}
.container {
  width: min(92vw, var(--max-content-width));
  margin: 32px auto;
}

/* Tarjeta/section del video */
section#video-demo {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  padding: clamp(16px, 2.5vw, 28px);
}

section#video-demo header h1 {
  margin: 0 0 10px;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-weight: 700;
}
section#video-demo p.lead {
  margin: 0 0 18px;
  color: #555;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
}

/* Contenedor responsivo para video o iframe */
.video-responsive {
  position: relative;
  width: 100%;
  /* Mantiene relación 16:9; ajusta a 4/3, 1/1, etc. si lo prefieres */
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: calc(var(--radius) - 4px);
  background: #000;
  isolation: isolate;
}

/* Video nativo */
.video-responsive > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* o "contain" si no quieres recorte */
  display: block;
}

/* Iframe (YouTube/Vimeo) – se comporta igual */
.video-responsive > iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Pequeños detalles responsivos extra */
@media (max-width: 480px) {
  .container {
    width: 94vw;
  }
}
/* =========================
   Botón "Comprar ahora" — minimal
   ========================= */
.hero-content{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;                 /* abajo */
  justify-content: center;               /* centrado */
  padding-bottom: clamp(14px, 6vw, 56px);
  z-index: 3;
  pointer-events: none;
}
.hero-content > .btn-cta{ pointer-events: auto; }

/* Estado base: pill transparente + borde blanco sutil */
.btn-cta{
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.8rem 1.4rem;
  border-radius:999px;
  background: hsl(0 0% 100% / .06);      /* casi transparente */
  color:#fff;
  border: 1.5px solid hsl(0 0% 100% / .55);
  text-decoration:none; font-weight:800; letter-spacing:.2px;

  backdrop-filter: blur(6px) saturate(140%);
  -webkit-backdrop-filter: blur(6px) saturate(140%);

  box-shadow: 0 6px 20px hsl(0 0% 0% / .28);
  transition:
    background-color .18s ease,
    color .18s ease,
    border-color .18s ease,
    transform .16s ease,
    box-shadow .18s ease;
}

/* Hover: fondo negro sólido, tipografía blanca */
.btn-cta:hover{
  background:#000;
  color:#fff;
  border-color:#000;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px hsl(0 0% 0% / .40);
}

/* Focus accesible (sin crecer demasiado) */
.btn-cta:focus-visible{
  outline:none;
  box-shadow:
    0 0 0 3px hsl(0 0% 100% / .70),
    0 12px 28px hsl(0 0% 0% / .40);
}

/* Active */
.btn-cta:active{ transform: translateY(-1px) scale(.99); }

/* Ícono (si lo usas) con micro-animación */
.btn-cta__icon{ transform: translateX(0); transition: transform .18s ease; }
.btn-cta:hover .btn-cta__icon{ transform: translateX(2px); }

/* Tamaño en móvil */
@media (max-width: 768px){
  .btn-cta{ padding:.7rem 1.2rem; font-weight:800; }
}


/* === HERO BANNER=== */
.hero-banner {
  position: relative;
  width: 100%;
  height: clamp(220px, 28vw, 480px);
  overflow: hidden;
  background: #000;
  isolation: isolate;
  border-radius: 0;
}

.hero-banner > .hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 40%;
  pointer-events: none;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* =========================
   Secciones generales
   ========================= */
.featured h2,
.categories h2 {
  font-weight: bold;
  text-align: center;
  margin-bottom: 2rem;
}
.card {
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}
.card:hover {
  transform: translateY(-5px);
}
.card-img-top {
  height: 180px;
  object-fit: contain;
  padding: 1rem;
}

/* Modal promo */
.promo-modal .modal-dialog {
  max-width: min(95vw, 900px);
}
.promo-modal .modal-content {
  background: transparent;
  border: 0;
  box-shadow: none;
  position: relative;
  padding: 0;
}
.promo-modal .promo-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 14px;
}
.promo-modal .promo-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.promo-modal .promo-close:hover {
  background: rgba(0, 0, 0, 0.7);
}
/* =========================
   Banner inferior
   ========================= */

.banner-foto {
  position: relative;
}

.banner-foto .banner-title {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  z-index: 2;
  font-size: clamp(28px, 5vw, 2.4rem);
  font-weight: 800;
  color: #0ec517;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.banner-foto .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

@media (max-width: 768px) {
  .banner-foto .banner-title {
    top: 22%;
  }
}

/* Banner con imagen de fondo */
.banner-foto {
  position: relative;
  background-image: url("../assets/foto_banner.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Oscurecer un poco para mejor contraste */
.banner-foto::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

/* Que el texto esté por encima */
.banner-foto .container {
  position: relative;
  z-index: 2;
}
/* Responsivo */
@media (max-width: 991px) {
  .hero-kenburns {
    min-height: 62vh;
  }

  .hero-title {
    font-size: clamp(28px, 5vw, 40px);
    letter-spacing: -0.5px;
  }

  .hero-subtitle {
    padding: 0 12px;
  }
}

.featured h2,
.categories h2 {
  font-weight: bold;
  text-align: center;
  margin-bottom: 2rem;
}

.card {
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card-img-top {
  height: 180px;
  object-fit: contain;
  padding: 1rem;
}

.sale-banner {
  background-color: #6c757d;
  color: white;
  text-align: center;
  padding: 60px 20px;
}

.sale-banner h3 {
  font-size: 2.2rem;
  color: #0ec517ff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.sale-banner a.btn {
  font-weight: bold;
  padding: 10px 25px;
}

/* ===== Modal promo genérico ===== */
.promo-modal .modal-dialog {
  max-width: min(95vw, 900px);
}

.promo-modal .modal-content {
  background: transparent;
  border: 0;
  box-shadow: none;
  position: relative;
  padding: 0;
}

.promo-modal .promo-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 14px;
}

/* Botón cerrar con SVG y z-index alto */
.promo-modal .promo-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  /* color del SVG */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.promo-modal .promo-close:hover {
  background: rgba(0, 0, 0, 0.7);
}
