/* pegato.com.mx · sitio estático (kit Estudio Veintidós). Medidas y colores tomados del Elementor de 2023. */
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url(/fonts/poppins-500.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url(/fonts/poppins-600.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url(/fonts/poppins-700.woff2) format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 100 900; font-display: swap; src: url(/fonts/roboto.woff2) format("woff2"); }

:root {
  --azul-claro: #00aeef;   /* degradado 1 del kit de Elementor */
  --azul-oscuro: #00335c;  /* degradado 2 */
  --azul-boton: #046bd2;   /* botón del formulario */
  --texto: #7a7a7a;
  --negro: #000;
  --ancho: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: "Roboto", system-ui, sans-serif; color: var(--texto); background: #fff; line-height: 1.5; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
p { overflow-wrap: break-word; }
ul { list-style: none; margin: 0; padding: 0; }
.contenedor { width: min(100% - 32px, var(--ancho)); margin-inline: auto; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.titulo {
  font-family: "Poppins", sans-serif; font-weight: 700; color: var(--negro); text-transform: uppercase;
  text-align: center; font-size: clamp(32px, 4.2vw, 54px); line-height: 1.2; margin: 0 0 16px;
}
.subtitulo { font-family: "Poppins", sans-serif; font-weight: 500; color: var(--negro); font-size: clamp(24px, 2.6vw, 32px); margin: 0 0 12px; }

/* Portada (antes Slider Revolution, que en 2026 ya no se mostraba) */
.hero {
  position: relative; overflow: hidden; text-align: center;
  background: var(--azul-claro) url(/img/hero-fondo-960.webp) center / cover no-repeat;
  padding-top: clamp(24px, 5vw, 64px);
}
@media (min-width: 961px) { .hero { background-image: url(/img/hero-fondo.webp); } }
.hero h1 {
  position: relative; z-index: 1; margin: 0 auto; width: min(100% - 32px, 900px);
  font-family: "Poppins", sans-serif; font-weight: 700; color: #fff; text-transform: uppercase;
  font-size: clamp(22px, 3.4vw, 44px); line-height: 1.15; text-shadow: 0 2px 12px rgb(0 51 92 / .45);
}
.hero h1 span { display: block; font-size: 1.6em; }
/* Botón «Comprar ahora»: el degradado del botón de Elementor que estaba oculto */
.hero .boton--comprar {   /* .hero sube la especificidad: .boton se define más abajo */
  position: relative; z-index: 1; margin-top: clamp(12px, 2vw, 24px);
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: clamp(18px, 2.2vw, 28px);
  background: linear-gradient(158deg, var(--azul-claro), var(--azul-oscuro));
  padding: 10px 32px; border-radius: 40px; box-shadow: 0 6px 18px rgb(0 51 92 / .35);
}
/* La imagen trae un tercio superior transparente: se sube para que el producto quede bajo el título */
.hero__producto { width: 100%; margin-top: clamp(-150px, -12vw, -40px); }

/* Carrusel de usos */
.usos { padding-top: 32px; }
.carrusel {
  position: relative; background: linear-gradient(180deg, var(--azul-claro), var(--azul-oscuro));
  padding: 16px clamp(44px, 5vw, 64px) 28px;
}
.carrusel__pista {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 16px) / 5); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
  max-width: var(--ancho); margin-inline: auto;
}
.carrusel__pista::-webkit-scrollbar { display: none; }
.carrusel__pista li { scroll-snap-align: start; }
.carrusel__pista img { width: 100%; max-width: 220px; margin-inline: auto; }
@media (max-width: 1024px) { .carrusel__pista { grid-auto-columns: calc((100% - 16px) / 2); } }
@media (max-width: 767px) { .carrusel__pista { grid-auto-columns: 100%; } }
.carrusel__flecha {
  position: absolute; top: 50%; translate: 0 -60%; width: 40px; height: 40px; padding: 6px;
  border: 0; background: none; cursor: pointer; color: #fff;
}
.carrusel__flecha svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.5; }
.carrusel__flecha--prev { left: 4px; }
.carrusel__flecha--next { right: 4px; }
.carrusel__puntos { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.carrusel__puntos span { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.carrusel__puntos span[data-activo] { background: #595959; }

.intro p { text-align: center; font-size: clamp(18px, 2.2vw, 29px); line-height: 1.38; margin: 32px auto; }

/* Venta */
.venta__banner { width: 100%; margin-bottom: 24px; }
.tiendas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: center; margin-block: 8px 48px; }
.tiendas img { margin-inline: auto; transition: transform .2s; }
.tiendas a:hover img, .tiendas a:focus-visible img { transform: scale(1.04); }
@media (max-width: 767px) { .tiendas { grid-template-columns: 1fr; width: min(100% - 64px, 320px); } }

.video video { width: 100%; aspect-ratio: 16 / 9; background: #000; margin-block: 32px; }

.descargas { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; text-align: center; margin-block: 32px; }
.boton {
  display: inline-block; font-family: "Roboto", sans-serif; font-weight: 500; font-size: clamp(22px, 2.4vw, 34px);
  text-transform: uppercase; text-decoration: none; color: #fff; background: var(--azul-claro);
  padding: 8px 28px; border: 0; border-radius: 3px; cursor: pointer; transition: filter .2s;
}
.boton:hover, .boton:focus-visible { filter: brightness(1.1); }

.tabla { margin-block: 32px; }

/* Registro */
.registro { margin-block: 48px 64px; max-width: 800px; }
.titulo--registro { font-size: clamp(26px, 3vw, 36px); text-transform: none; font-weight: 600; }
.formulario { display: grid; gap: 12px; }
.formulario input {
  font: inherit; font-size: 15px; color: #333; width: 100%; padding: 8px 18px;
  border: 1px solid #818a91; border-radius: 30px; background: #fff;
}
.formulario .trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.boton--registro {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  background: var(--azul-boton); border-radius: 30px; font-size: clamp(20px, 2vw, 26px); text-transform: uppercase;
}
.boton--registro svg { width: 1em; height: 1em; fill: currentColor; }
.boton--registro:disabled { opacity: .6; cursor: wait; }
.estado { margin: 0; text-align: center; font-size: 16px; }
.estado[data-tipo="ok"] { color: #146c2e; }
.estado[data-tipo="error"] { color: #b3261e; }

.pie { text-align: center; font-size: 14px; padding: 24px 16px; background: #f4f4f4; }
.pie p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html, .carrusel__pista { scroll-behavior: auto; }
  .tiendas img { transition: none; }
}
