/* ==========================================================
   home.css — hero/carrusel, insignias, productos y modal
   ========================================================== */

main.home { max-width: 1200px; }

/* Desplazamiento suave al usar el menú (Productos / Creando) */
html { scroll-behavior: smooth; }

/* ---------- Carrusel (hero y modal) ---------- */
.car {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}
.car-track {
  display: flex;
  transition: transform .6s ease;
}
.slide {
  min-width: 100%;               /* cada slide ocupa todo el ancho */
  background-size: cover;
  background-position: center;
}
.car-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #0009;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}
.car-btn:hover { background: var(--a); }
.prev { left: 12px; }
.next { right: 12px; }
.dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: #fff6;
  cursor: pointer;
}
.dots button.on { background: #fff; }
.car.single .car-btn,
.car.single .dots { display: none; }  /* 1 sola foto: sin controles */

/* ---------- Hero ---------- */
.hero-car .slide {
  min-height: 60vh;
  display: flex;
  align-items: center;
}
.slide-grad { background: linear-gradient(120deg, #7c5cff, #ff7a59 60%, #22d3ee); }
.slide-txt {
  padding: 0 clamp(24px, 6vw, 80px);
  max-width: 640px;
}
.slide-txt h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 14px;
}
.slide-txt p {
  color: #e8ecf8;
  font-size: 1.15rem;
  margin-bottom: 24px;
}

/* ---------- Creando (presentación de la marca) ---------- */
.about {
  scroll-margin-top: 80px;        /* evita que el header tape el título */
  max-width: 820px;
  margin: 64px auto;
  text-align: center;
}
.about h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}
.about h3 {
  font-weight: 400;
  font-size: 1.35rem;
  margin-bottom: 16px;
}
.about p {
  color: var(--mut);
  line-height: 1.7;
  font-size: 1.08rem;
}

/* ---------- Insignias ---------- */
.badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 28px 0 56px;
  text-align: center;
}
.badges div {
  background: var(--card);
  border-radius: 14px;
  padding: 20px;
}
.badges h4 {
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
}
.badges p { color: var(--mut); }

/* ---------- Productos ---------- */
#productos {
  scroll-margin-top: 80px;        /* evita que el header tape el título */
  margin-top: 48px;
}
#productos h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}
.pcard {
  background: var(--card);
  border: 1px solid #ffffff14;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s, border-color .25s;
}
.pcard:hover,
.pcard:focus-visible {
  transform: translateY(-6px);
  border-color: var(--a);
  outline: none;
}
.pcard img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.pbody {
  padding: 16px;
  display: grid;
  gap: 8px;
}
.price {
  font-size: 1.2rem;
  color: var(--b);
}

/* ---------- Modal de producto ---------- */
.prod-box {
  width: min(94vw, 900px);
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-height: 92vh;
  overflow: auto;
}
.pimg img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #0b1020;
  display: block;
}
.prod-info {
  display: grid;
  gap: 10px;
  align-content: center;
}
.wa { background: #25d366; color: #06210f; text-align: center; }
.wa:hover { background: #1ebe5b; color: #06210f; }

/* ---------- Móvil ---------- */
@media (max-width: 720px) {
  .prod-box { grid-template-columns: 1fr; }
  .hero-car .slide { min-height: 50vh; }
}
