/* =====================================================================
   ASAHI – Diseño C · Modular y moderno
   Bloques de color sobre gris claro, esquinas redondeadas.
   Tipografía: Sora (títulos) + DM Sans (textos).
   ===================================================================== */

:root {
  --rojo: #D0021B;
  --rojo-hover: #B0011A;
  --tinta: #0F1115;
  --grafito: #1F2329;
  --fondo: #EEF0F3;
  --blanco: #FFFFFF;
  --texto-2: #4D535C;
  --texto-claro: #C9CDD3;
  --linea: #D9DDE3;

  --radio-bloque: 24px;
  --radio-boton: 14px;
  --radio-chico: 10px;

  --ancho: 1180px;
  --separacion: 12px;

  --titulos: "Sora", system-ui, sans-serif;
  --textos: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--fondo);
  color: var(--tinta);
  font-family: var(--textos);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--titulos);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--rojo);
  outline-offset: 3px;
}

.contenedor {
  width: 100%;
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 0 24px;
}

.seccion {
  padding: var(--separacion) 0;
}

.seccion-titulo {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin: 40px 0 20px;
}

.seccion-titulo h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.seccion-titulo p {
  color: var(--texto-2);
  max-width: 560px;
}

.bloque {
  background: var(--blanco);
  border-radius: var(--radio-bloque);
  padding: 28px;
  min-width: 0;
}

.bloque-oscuro {
  background: var(--grafito);
  color: var(--blanco);
}

.bloque-negro {
  background: var(--tinta);
  color: var(--blanco);
}

.bloque-rojo {
  background: var(--rojo);
  color: var(--blanco);
}

.etiqueta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.18);
}

.texto-2 {
  color: var(--texto-2);
}

/* ---------- Botones ---------- */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radio-boton);
  font-family: var(--textos);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.boton:active {
  transform: scale(0.98);
}

.boton-negro {
  background: var(--tinta);
  color: var(--blanco);
}

.boton-negro:hover {
  background: #2A2E36;
}

.boton-rojo {
  background: var(--rojo);
  color: var(--blanco);
}

.boton-rojo:hover {
  background: var(--rojo-hover);
}

.boton-blanco {
  background: var(--blanco);
  color: var(--tinta);
}

.boton-blanco:hover {
  background: #F4F5F7;
}

.boton-gris {
  background: var(--fondo);
  color: var(--tinta);
}

.boton-gris:hover {
  background: #E2E5EA;
}

.boton-contorno {
  background: transparent;
  color: var(--blanco);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.6);
}

.boton-contorno:hover {
  box-shadow: inset 0 0 0 1.5px var(--blanco);
}

.boton-flecha {
  padding-right: 8px;
}

.boton-flecha .flecha {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radio-chico);
  background: var(--rojo);
}

.boton-blanco.boton-flecha .flecha {
  background: var(--tinta);
}

.flecha svg {
  width: 16px;
  height: 16px;
}

/* ---------- Barra superior ---------- */
.barra-superior {
  font-size: 13px;
  color: var(--texto-2);
  padding: 10px 0;
}

.barra-superior .contenedor {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 20px;
}

.barra-superior a {
  text-decoration: none;
}

.barra-superior a:hover {
  color: var(--tinta);
}

.contacto-rapido,
.redes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.contacto-rapido a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.redes a {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radio-chico);
  background: var(--blanco);
  color: var(--tinta);
}

.redes a:hover {
  background: var(--tinta);
  color: var(--blanco);
}

/* ---------- Menú ---------- */
.menu {
  position: sticky;
  top: 10px;
  z-index: 50;
  padding: 0 0 var(--separacion);
}

.menu-caja {
  background: var(--blanco);
  border-radius: 20px;
  padding: 12px 12px 12px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 6px 24px rgba(15, 17, 21, 0.06);
}

.menu-logo img {
  height: 30px;
  width: auto;
}

.menu-enlaces {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-enlaces a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radio-chico);
  font-weight: 500;
  text-decoration: none;
}

.menu-enlaces a:hover,
.menu-enlaces a[aria-current="page"] {
  background: var(--fondo);
}

.menu-boton {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radio-chico);
  background: var(--fondo);
  color: var(--tinta);
  cursor: pointer;
  place-items: center;
}

@media (max-width: 900px) {
  .menu-boton {
    display: inline-grid;
  }

  .menu-acciones .boton {
    display: none;
  }

  .menu-enlaces {
    display: none;
    order: 3;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 4px 0 4px;
  }

  .menu.abierto .menu-enlaces {
    display: flex;
  }

  .menu-enlaces a {
    width: 100%;
  }
}

.menu-acciones {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Portada en bloques ---------- */
.portada {
  display: flex;
  flex-wrap: wrap;
  gap: var(--separacion);
}

.portada-principal {
  flex: 2 1 560px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 40px;
}

.portada-titulo {
  font-family: var(--titulos);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
  font-size: clamp(30px, 4vw, 48px);
  max-width: 640px;
}

.portada-bajada {
  font-size: 18px;
  max-width: 540px;
  margin-top: 16px;
}

.portada-botones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.portada-producto {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 16px;
}

.portada-producto .slider {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portada-producto .slider-track {
  flex: 1;
}

.portada-producto .slide {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.portada-producto img {
  width: 100%;
  height: 260px;
  object-fit: contain;
}

.portada-producto .nombre {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 0 4px;
}

.portada-producto .nombre strong {
  font-family: var(--titulos);
  font-weight: 600;
  font-size: 18px;
}

/* ---------- Portada: presentación y cifras ---------- */
.portada-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: var(--separacion);
  align-items: center;
  margin-bottom: var(--separacion);
}

.portada-intro-texto {
  padding: 12px 8px;
}

.portada-intro h1 {
  font-size: clamp(30px, 3.6vw, 48px);
  max-width: 760px;
  text-wrap: balance;
}

.portada-cifras {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
  overflow: hidden;
}

.dato {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 24px;
}

.dato:nth-child(odd) {
  border-right: 1px solid var(--linea);
}

.dato:nth-child(-n+2) {
  border-bottom: 1px solid var(--linea);
}

.dato strong {
  font-family: var(--titulos);
  font-weight: 700;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.dato span {
  color: var(--texto-2);
  font-size: 14px;
}

@media (max-width: 900px) {
  .portada-intro {
    grid-template-columns: 1fr;
  }
}

/* ---------- Marcas ---------- */
.marcas {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px 36px;
  padding: 28px 32px;
}

.marcas img {
  height: 30px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

.marcas img.logo-blanco {
  filter: brightness(0);
}

.marcas img.logo-nothing {
  height: 16px;
}

@media (max-width: 600px) {
  .marcas {
    justify-content: center;
  }

  .marcas img {
    height: 24px;
  }
}

/* ---------- Nosotros ---------- */
.nosotros {
  display: flex;
  flex-wrap: wrap;
  gap: var(--separacion);
}

.nosotros-texto {
  flex: 3 1 520px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 36px;
}

.nosotros-texto h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.nosotros-texto p {
  color: var(--texto-2);
  font-size: 17px;
}

.nosotros-cifras {
  flex: 2 1 340px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--separacion);
}

.nosotros-cifras .bloque {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: 22px;
  min-height: 130px;
}

.nosotros-cifras strong {
  font-family: var(--titulos);
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.nosotros-cifras span {
  font-size: 14px;
  color: var(--texto-2);
}

.nosotros-cifras .bloque-negro span {
  color: var(--texto-claro);
}

/* ---------- Filtros ---------- */
.filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filtro {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: var(--blanco);
  color: var(--tinta);
  font-family: var(--textos);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.filtro:hover {
  background: #E2E5EA;
}

.filtro[aria-pressed="true"] {
  background: var(--tinta);
  color: var(--blanco);
}

/* ---------- Carrusel ---------- */
.slider {
  position: relative;
}

.slider-track {
  display: flex;
  gap: var(--separacion);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.slider-track::-webkit-scrollbar {
  display: none;
}

.slide {
  flex: 0 0 calc((100% - (var(--por-vista-sm, 1) - 1) * var(--separacion)) / var(--por-vista-sm, 1));
  min-width: 0;
  scroll-snap-align: start;
}

.slide[hidden] {
  display: none;
}

@media (min-width: 700px) {
  .slide {
    flex-basis: calc((100% - (var(--por-vista-md, 2) - 1) * var(--separacion)) / var(--por-vista-md, 2));
  }
}

@media (min-width: 1000px) {
  .slide {
    flex-basis: calc((100% - (var(--por-vista-lg, 4) - 1) * var(--separacion)) / var(--por-vista-lg, 4));
  }
}

.slider-controles {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.slider-flechas {
  display: flex;
  gap: 8px;
}

.slider-btn {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: var(--radio-boton);
  background: var(--blanco);
  color: var(--tinta);
  cursor: pointer;
}

.slider-btn:hover {
  background: var(--tinta);
  color: var(--blanco);
}

.slider-btn svg {
  width: 18px;
  height: 18px;
}

.slider-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #C3C8D0;
  cursor: pointer;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.slider-dots button.active {
  width: 26px;
  background: var(--rojo);
}

.slider-dots[hidden],
.slider-flechas[hidden] {
  display: none;
}

.portada-producto .slider-controles {
  margin-top: 8px;
}

.portada-producto .slider-btn {
  width: 40px;
  height: 40px;
  background: var(--fondo);
}

/* ---------- Tarjetas de producto ---------- */
.producto {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
}

.producto img {
  width: 100%;
  height: 180px;
  object-fit: contain;
}

.producto .marca {
  font-size: 13px;
  color: var(--texto-2);
}

.producto h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ---------- Videos ---------- */
.video {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px 12px 18px;
  height: 100%;
}

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: var(--grafito);
}

.video-container iframe,
.video-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-facade {
  padding: 0;
  cursor: pointer;
  background: var(--grafito);
}

.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-facade::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%);
  border-radius: var(--radio-boton);
  background: var(--rojo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 24px no-repeat;
  transition: transform 0.2s ease;
}

.video-facade:hover::after,
.video-facade:focus-visible::after {
  transform: translate(-50%, -50%) scale(1.08);
}

.video h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0 6px;
}

/* ---------- ¿Por qué elegirnos? ---------- */
.elegirnos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 40px;
}

.elegirnos > div {
  flex: 1 1 520px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.elegirnos h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.elegirnos p {
  color: var(--texto-claro);
  font-size: 17px;
  max-width: 720px;
}

/* ---------- Mercado Libre ---------- */
.reputacion {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: var(--separacion);
}

.reputacion-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 32px;
}

.reputacion-intro h2 {
  font-size: clamp(26px, 3vw, 32px);
}

.reputacion-intro p {
  color: var(--texto-claro);
}

.ml {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ml-cabecera {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ml-icono {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radio-chico);
  background: var(--fondo);
  color: var(--tinta);
}

.ml-cuenta {
  font-size: 13px;
  color: var(--texto-2);
}

.ml-categoria {
  font-family: var(--titulos);
  font-weight: 600;
  font-size: 17px;
}

.ml-ventas {
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  margin-top: 6px;
}

.ml-termometro {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin-top: 4px;
}

.ml-termometro span {
  height: 8px;
  border-radius: 4px;
}

.ml-termometro span:nth-child(1) { background: #F3D3D3; }
.ml-termometro span:nth-child(2) { background: #F6E2C6; }
.ml-termometro span:nth-child(3) { background: #F4EDC3; }
.ml-termometro span:nth-child(4) { background: #DDEFC9; }
.ml-termometro span:nth-child(5) { background: #2E9E46; }

.ml .boton {
  align-self: flex-start;
  margin-top: auto;
}

/* ---------- Soporte ---------- */
.soporte-cabecera {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 40px;
}

.soporte-cabecera h1 {
  font-size: clamp(34px, 5vw, 52px);
}

.soporte-cabecera p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  max-width: 620px;
}

.manuales {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--separacion);
  margin-top: var(--separacion);
}

.manual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.manual-icono {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radio-boton);
  background: var(--fondo);
  color: var(--rojo);
}

.manual h2 {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.manual p {
  color: var(--texto-2);
  font-size: 15px;
}

.manual-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

/* ---------- Contacto ---------- */
.contacto {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  gap: var(--separacion);
}

.contacto-intro {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 36px;
}

.contacto-intro h2 {
  font-size: clamp(30px, 4vw, 44px);
}

.contacto-intro p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
}

.contacto-opcion {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  min-height: 200px;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

.contacto-opcion .manual-icono {
  margin-bottom: auto;
}

.contacto-opcion strong {
  font-family: var(--titulos);
  font-size: 16px;
  letter-spacing: -0.01em;
  overflow-wrap: normal;
  word-break: normal;
}

.contacto-tipo {
  font-size: 14px;
  color: var(--texto-2);
}

.contacto-opcion:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(15, 17, 21, 0.10);
}

@media (max-width: 1000px) {
  .contacto {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contacto-intro {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .contacto {
    grid-template-columns: 1fr;
  }

  .contacto-opcion {
    min-height: 0;
  }
}

/* ---------- Pie ---------- */
.pie {
  margin-top: 40px;
  background: var(--tinta);
  color: var(--texto-claro);
  padding: 56px 0 28px;
}

.pie-grilla {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.pie img {
  height: 30px;
  width: auto;
  margin-bottom: 16px;
}

.pie h2 {
  font-size: 13px;
  font-family: var(--textos);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blanco);
  margin-bottom: 14px;
}

.pie ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pie a {
  color: var(--texto-claro);
  text-decoration: none;
}

.pie a:hover {
  color: var(--blanco);
}

.pie .redes a {
  background: var(--grafito);
  color: var(--blanco);
}

.pie .redes a:hover {
  background: var(--rojo);
}

.pie-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #2A2E36;
  font-size: 14px;
}

@media (max-width: 800px) {
  .pie-grilla {
    grid-template-columns: 1fr;
  }
}

/* ---------- Portada por rubro (cambia con el carrusel) ---------- */
.portada-principal {
  position: relative;
  color: var(--blanco);
  background: var(--rojo);
  transition: background-color 0.7s ease;
}

.portada-principal[data-categoria-activa="relojes"] {
  background: var(--grafito);
}

.portada-principal[data-categoria-activa="tecnologia"] {
  background: var(--tinta);
}

.portada-textos {
  display: grid;
  flex: 1;
}

.portada-texto {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 28px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s linear 0.5s;
}

.portada-texto.activo {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.6s ease 0.15s, transform 0.6s ease 0.15s, visibility 0s;
}

.portada-principal[data-categoria-activa="relojes"] .boton-blanco.boton-flecha .flecha,
.portada-principal[data-categoria-activa="tecnologia"] .boton-blanco.boton-flecha .flecha {
  background: var(--rojo);
}

/* ---------- Pantallas grandes (monitores anchos) ---------- */
@media (min-width: 1500px) {
  :root {
    --ancho: 1400px;
    --separacion: 14px;
  }

  body {
    font-size: 17px;
  }

  .portada-principal {
    min-height: 420px;
    padding: 52px;
  }

  .portada-intro h1 {
    font-size: 58px;
    max-width: 900px;
  }

  .portada-titulo {
    font-size: 56px;
  }

  .portada-bajada {
    font-size: 20px;
    max-width: 620px;
  }

  .portada-producto img {
    height: 320px;
  }

  .slide {
    flex-basis: calc((100% - (var(--por-vista-xl, var(--por-vista-lg, 4)) - 1) * var(--separacion)) / var(--por-vista-xl, var(--por-vista-lg, 4)));
  }

  .producto img {
    height: 200px;
  }
}

@media (min-width: 1900px) {
  :root {
    --ancho: 1560px;
  }

  .portada-intro h1 {
    font-size: 64px;
  }

  .portada-titulo {
    font-size: 60px;
  }
}

/* =====================================================================
   Movimiento: hover, aparición al hacer scroll, cinta de marcas
   ===================================================================== */

/* Menú: subrayado rojo que crece desde el centro */
.menu-enlaces a {
  position: relative;
  transition: color 0.2s ease;
}

.menu-enlaces a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--rojo);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.menu-enlaces a:hover,
.menu-enlaces a[aria-current="page"] {
  background: transparent;
  color: var(--rojo);
}

.menu-enlaces a:hover::after,
.menu-enlaces a[aria-current="page"]::after {
  transform: scaleX(1);
}

.menu-caja {
  transition: box-shadow 0.3s ease;
}

.menu.con-sombra .menu-caja {
  box-shadow: 0 10px 30px rgba(15, 17, 21, 0.12);
}

/* Botones: se elevan y la flecha avanza */
.boton {
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.boton:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 17, 21, 0.14);
}

.boton-rojo:hover {
  box-shadow: 0 10px 24px rgba(208, 2, 27, 0.32);
}

.boton:active {
  transform: translateY(0) scale(0.98);
}

.boton-flecha .flecha {
  transition: transform 0.25s ease;
}

.boton-flecha:hover .flecha {
  transform: translateX(4px);
}

.redes a {
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.redes a:hover {
  transform: translateY(-2px);
}

/* Tarjetas: se elevan y la foto se acerca */
.slider-track {
  padding: 10px 2px 26px;
  margin: -10px -2px -26px;
}

.producto,
.video,
.manual {
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

.producto:hover,
.video:hover,
.manual:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(15, 17, 21, 0.10);
}


.producto img,
.video-facade img,
.portada-producto img {
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.producto:hover img {
  transform: scale(1.07);
}

.video:hover .video-facade img {
  transform: scale(1.05);
}

.portada-producto:hover img {
  transform: scale(1.04);
}

/* Aparición suave al hacer scroll (la clase la agrega sitio.js) */
.revelar {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.revelar.visible {
  opacity: 1;
  transform: none;
}

/* Cinta de marcas en movimiento (la arma sitio.js) */
.marcas.en-cinta {
  display: block;
  overflow: hidden;
  padding: 28px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marcas-pista {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: cinta 32s linear infinite;
}

.marcas.en-cinta:hover .marcas-pista {
  animation-play-state: paused;
}

.marcas-pista img {
  transition: transform 0.25s ease;
}

.marcas-pista img:hover {
  transform: scale(1.12);
}

@keyframes cinta {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 32px)); }
}

@media (prefers-reduced-motion: reduce) {
  .revelar {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .marcas-pista {
    animation: none;
  }
}

/* ---------- Ajustes para celulares ---------- */
@media (max-width: 600px) {
  .contenedor {
    padding: 0 14px;
  }

  .bloque {
    padding: 22px;
  }

  .portada-principal,
  .nosotros-texto,
  .elegirnos,
  .soporte-cabecera {
    padding: 26px;
  }

  .portada-principal {
    min-height: 0;
  }

  .menu-caja {
    padding-left: 16px;
  }

  .portada-intro-texto {
    padding: 12px 4px 4px;
  }

  .portada-cifras {
    padding: 0;
  }

  .dato {
    padding: 16px 18px;
  }
}

.solo-lectores {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  html,
  .slider-track {
    scroll-behavior: auto;
  }
}
