:root {
  --amarillo: #FDB813;
  --negro: #111111;
  --gris-claro: #F7F7F7;
  --gris-borde: #E5E5E5;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--negro);
  background: #fff;
  overflow-x: hidden;
  max-width: 100%;
}

img {
  max-width: 100%;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  border-bottom: 1px solid var(--gris-borde);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.header__logo {
  height: 48px;
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.nav a, .nav button {
  background: none;
  border: none;
  font-size: 15px;
  font-weight: bold;
  color: var(--negro);
  cursor: pointer;
  padding: 6px 0;
  font-family: inherit;
}

.nav a.activo, .nav button.activo {
  color: var(--amarillo);
  border-bottom: 3px solid var(--amarillo);
}

/* Hero */
.hero {
  background: var(--negro);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.hero--mini {
  padding: 22px 20px;
}

.hero--mini h1 {
  font-size: 20px;
  margin: 0 0 14px;
}

.hero h1 {
  font-size: 34px;
  margin: 0 0 16px;
  line-height: 1.25;
  overflow-wrap: break-word;
}

.hero h1 span {
  color: var(--amarillo);
}

.hero p {
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 28px;
  opacity: .9;
}

/* ── Producto Destacado ─────────────────────────── */
.destacado {
  background: linear-gradient(135deg, #111 0%, #2a2a2a 100%);
  padding: 40px 20px 30px;
}

.destacado__wrap {
  transition: opacity 0.25s ease;
}

.destacado__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* Altura fija para que todos los productos tengan el mismo tamaño */
.destacado__imagen-wrap {
  position: relative;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  height: 380px;
}

.destacado__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.destacado__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #e53e3e;
  color: #fff;
  font-weight: bold;
  font-size: 15px;
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: .5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 2;
}

/* Flechas de navegación */
.dest-flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  font-size: 36px;
  line-height: 1;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 8px;
  z-index: 3;
  transition: background 0.2s;
}
.dest-flecha:hover { background: rgba(0,0,0,0.75); }
.dest-flecha--prev { left: 10px; }
.dest-flecha--next { right: 10px; }

.destacado__info {
  color: #fff;
}

.destacado__etiqueta {
  font-size: 13px;
  color: var(--amarillo);
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.destacado__nombre {
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 14px;
  color: #fff;
}

.destacado__descripcion {
  font-size: 16px;
  color: #ccc;
  line-height: 1.6;
  margin: 0 0 22px;
}

.destacado__precios {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 24px;
}

.destacado__antes {
  font-size: 16px;
  color: #888;
  text-decoration: line-through;
}

.destacado__precio {
  font-size: 34px;
  font-weight: bold;
  color: var(--amarillo);
}

.destacado__btn {
  font-size: 17px;
  padding: 16px 34px;
  border-radius: 10px;
}

/* Dots centrados debajo del grid */
.destacado__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}
.destacado__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.destacado__dot.activo,
.destacado__dot:hover {
  background: #fff;
  transform: scale(1.25);
}

@media (max-width: 700px) {
  .destacado__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .destacado__imagen-wrap { height: 260px; }
  .destacado__nombre { font-size: 22px; }
  .destacado__precio { font-size: 26px; }
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: bold;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 16px;
}

.btn--whatsapp {
  background: var(--amarillo);
  color: var(--negro);
}

/* Catalogo */
.catalogo {
  padding: 50px 0;
}

.catalogo__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
}

.tarjeta {
  border: 1px solid var(--gris-borde);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s ease;
}

.tarjeta:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.tarjeta img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--gris-claro);
}

.tarjeta__info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.tarjeta__nombre {
  font-weight: bold;
  font-size: 16px;
  margin: 0;
}

.tarjeta__descripcion {
  font-size: 13px;
  color: #555;
  margin: 0;
  flex: 1;
}

.tarjeta__precio {
  font-size: 18px;
  font-weight: bold;
  color: var(--negro);
  margin: 0;
}

.tarjeta__boton {
  margin-top: 4px;
  text-align: center;
  background: var(--negro);
  color: #fff;
  text-decoration: none;
  padding: 10px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 14px;
}

.tarjeta__boton:hover {
  background: var(--amarillo);
  color: var(--negro);
}

/* Como comprar */
.como-comprar {
  background: var(--gris-claro);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 60px;
}

.como-comprar h2 {
  margin-top: 0;
}

.como-comprar ol {
  padding-left: 20px;
  line-height: 1.8;
}

/* Footer */
.footer {
  background: var(--negro);
  color: #fff;
  padding: 40px 20px;
}

.footer__inner {
  text-align: center;
}

.footer__icono {
  height: 48px;
  margin-bottom: 12px;
}

.footer__redes {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.footer__redes a {
  color: var(--amarillo);
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
}

/* Boton flotante whatsapp */
.whatsapp-flotante {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: #25D366;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 20;
}

@media (max-width: 600px) {
  .hero h1 { font-size: 26px; }
  .hero--mini h1 { font-size: 16px; }
  .header__logo { height: 38px; }
}

/* ── Modal de producto ─────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

.modal-overlay.abierto {
  display: flex;
}

.modal-card {
  background: #fff;
  border-radius: 18px;
  max-width: 860px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
  animation: modalEntrada .22s ease;
}

@keyframes modalEntrada {
  from { opacity: 0; transform: scale(.95) translateY(12px); }
  to   { opacity: 1; transform: scale(1)  translateY(0); }
}

.modal-cerrar {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(0,0,0,.12);
  border: none;
  border-radius: 50%;
  width: 36px; height: 36px;
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
  transition: background .15s;
}
.modal-cerrar:hover { background: rgba(0,0,0,.25); }

.modal-imagen-wrap {
  background: var(--gris-claro);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}

.modal-imagen-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-info {
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  max-height: 90vh;
}

.modal-estrellas {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.modal-estrellas .estrellas {
  color: #f5a623;
  font-size: 18px;
  letter-spacing: 1px;
}

.modal-estrellas .rating-num {
  font-weight: bold;
  color: #222;
}

.modal-estrellas .rating-count {
  color: #888;
}

.modal-nombre {
  font-size: 22px;
  font-weight: bold;
  margin: 0;
  line-height: 1.25;
  color: var(--negro);
}

.modal-precios {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.modal-precio-actual {
  font-size: 30px;
  font-weight: bold;
  color: var(--negro);
}

.modal-precio-antes {
  font-size: 15px;
  color: #999;
  text-decoration: line-through;
}

.modal-descripcion {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

.modal-specs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--gris-borde);
  padding-top: 12px;
}

.modal-specs li {
  display: flex;
  font-size: 13px;
  gap: 6px;
}

.modal-specs li .spec-label {
  font-weight: bold;
  color: #444;
  min-width: 110px;
}

.modal-specs li .spec-val {
  color: #666;
}

.modal-precio-badge {
  background: #e53e3e;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  padding: 3px 10px;
  border-radius: 20px;
}

.modal-btn {
  margin-top: auto;
  text-align: center;
  font-size: 16px;
  padding: 14px;
  border-radius: 10px;
}

/* Tarjeta clickable */
.tarjeta { cursor: pointer; }

@media (max-width: 640px) {
  .modal-card {
    grid-template-columns: 1fr;
    max-height: 92vh;
    overflow-y: auto;
  }
  .modal-imagen-wrap { min-height: 260px; max-height: 300px; }
  .modal-info { padding: 20px 18px 18px; max-height: none; }
  .modal-nombre { font-size: 18px; }
  .modal-precio-actual { font-size: 24px; }
}

/* ── Modal producto ─────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}
.modal-overlay.activo {
  display: flex;
}
.modal-card {
  background: #fff;
  border-radius: 18px;
  max-width: 860px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  max-height: 92vh;
}
.modal-cerrar {
  position: absolute;
  top: 14px; right: 16px;
  background: rgba(0,0,0,0.08);
  border: none;
  font-size: 18px;
  width: 34px; height: 34px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  display: flex; align-items: center; justify-content: center;
  color: #333;
  transition: background .15s;
}
.modal-cerrar:hover { background: rgba(0,0,0,0.18); }

.modal-imagen-wrap {
  background: var(--gris-claro);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.modal-imagen-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.modal-info {
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

/* Estrellas */
.modal-estrellas {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.modal-estrellas .stars { color: #FDB813; font-size: 18px; letter-spacing: 2px; }
.modal-estrellas .rating-num { font-weight: bold; font-size: 15px; }
.modal-estrellas .rating-count { color: #888; }

.modal-nombre {
  font-size: 22px;
  font-weight: bold;
  margin: 0;
  line-height: 1.25;
  color: var(--negro);
}
.modal-precios {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.modal-precio-actual {
  font-size: 28px;
  font-weight: bold;
  color: var(--negro);
}
.modal-precio-antes {
  font-size: 15px;
  color: #999;
  text-decoration: line-through;
}
.modal-precio-badge {
  background: #e53e3e;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 3px 10px;
  border-radius: 20px;
}
.modal-descripcion {
  font-size: 14px;
  color: #555;
  margin: 0;
  line-height: 1.6;
}

/* Especificaciones */
.modal-specs {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #eee;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.modal-specs li {
  font-size: 14px;
  display: flex;
  gap: 6px;
}
.modal-specs li .spec-label {
  font-weight: bold;
  color: var(--negro);
  min-width: 110px;
  flex-shrink: 0;
}
.modal-specs li .spec-val { color: #444; }

.modal-btn {
  margin-top: auto;
  text-align: center;
  font-size: 16px;
  padding: 14px 20px;
  border-radius: 10px;
}

/* Tarjeta clickable */
.tarjeta { cursor: pointer; }

@media (max-width: 660px) {
  .modal-card {
    grid-template-columns: 1fr;
    max-height: 95vh;
  }
  .modal-imagen-wrap { min-height: 220px; max-height: 260px; }
  .modal-info { padding: 20px 18px 18px; }
  .modal-nombre { font-size: 18px; }
  .modal-precio-actual { font-size: 22px; }
}
