/* Crown Tires & Wheels · propuesta de KAMU STUDIO
   Estructura y medidas de stampedeauto.com (Mulish, barra oscura, bandas de color, tarjetas con borde),
   con la paleta del negocio: el rojo de su letrero, el carbón de "TIRE & WHEEL" y blanco. */

@font-face {
  font-family: "Mulish";
  src: url("fuentes/mulish-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --noche: #0F1217;
  --carbon: #1C2028;
  --tinta: #1F232B;
  --texto-2: #4A4F58;
  --gris: #EEEEEE;
  --gris-azul: #F1F4F9;
  --linea: #D5D8DE;
  --rojo: #D7262E;
  --rojo-hondo: #A50E14;
  --rojo-vivo: #E01E27;
  --rojo-claro: #FF6B70;
  --oro: #F5B301;
  --verde: #22C55E;
  --sombra: 0 18px 40px -18px rgb(15 18 23 / .35);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --contenedor: 1140px;
  --alto-barra: 54px;
  --alto-nav: 86px;

  /* kamu-ui con los colores de Crown */
  --radius: .5rem;
  --background: #FFFFFF;
  --foreground: var(--tinta);
  --card: #FFFFFF;
  --card-foreground: var(--tinta);
  --primary: var(--rojo);
  --primary-foreground: #FFFFFF;
  --secondary: var(--gris-azul);
  --secondary-foreground: var(--tinta);
  --muted: var(--gris-azul);
  --muted-foreground: var(--texto-2);
  --border: #E2E5EB;
  --input: #7A808B;
  --ring: var(--rojo);

  /* logo: en fondo oscuro la llanta va blanca */
  --logo-rojo: #E1262F;
  --logo-tinta: #FFFFFF;
  --logo-papel: var(--noche);
  --logo-rin: #9AA1AB;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: #FFFFFF;
  color: var(--tinta);
  font-family: "Mulish", Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--rojo); outline-offset: 2px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1em; height: 1em; flex: none; fill: currentColor; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.saltar { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 6px; background: #FFFFFF; color: var(--tinta); font-weight: 700; }
.saltar:focus { top: 12px; }
.contenedor { width: 100%; max-width: calc(var(--contenedor) + 40px); margin-inline: auto; padding-inline: 20px; }
.centrado { text-align: center; }
.titulo-seccion { font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.25rem); font-weight: 800; line-height: 1.22; letter-spacing: -.01em; color: #000000; text-wrap: balance; }
.titulo-seccion em { font-style: normal; color: var(--rojo); }

/* ---------- botones (kamu-ui pone la base; esto es el look de Stampede) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 25px;
  border: 0;
  border-radius: 5px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn .ico { font-size: 1.15em; }
.btn--grande { min-height: 53px; padding: 16px 25px; }
.btn--blanco { background: #FFFFFF; color: #3F434B; }
.btn--naranja { background: var(--rojo-vivo); color: #FFFFFF; }
.btn--rojo { background: var(--rojo-vivo); color: #FFFFFF; border-radius: 8px; }
.btn--oscuro { background: var(--tinta); color: #FFFFFF; border-radius: 30px; }
.btn--whatsapp { background: #0F7A45; color: #FFFFFF; border-radius: 8px; }
.btn--mayus { text-transform: uppercase; font-weight: 800; font-size: 17px; border-radius: 10px; padding: 13px 28px; }
.btn--blanco:hover { background: #F1F1F1; }
.btn--naranja:hover, .btn--rojo:hover { background: var(--rojo-hondo); }
.btn--oscuro:hover { background: #000000; }
.btn--whatsapp:hover { background: #0B6438; }

/* texto que rueda al pasar el mouse: la copia vive en data-copia (main.js) */
.rueda { display: inline-grid; overflow: hidden; vertical-align: top; }
.rueda > span { grid-area: 1 / 1; transition: transform .45s var(--ease); }
.rueda > span::after { content: attr(data-copia); position: absolute; left: 0; top: 100%; width: 100%; }
.rueda > span { position: relative; }
a:hover .rueda > span, button:hover .rueda > span { transform: translateY(-100%); }

/* ---------- cabecera ---------- */
.cabecera { position: relative; z-index: 40; height: calc(var(--alto-barra) + var(--alto-nav)); background: var(--noche); color: #FFFFFF; }
.barra-sup { height: var(--alto-barra); overflow: hidden; background: #0A0C10; }
.barra-sup__fila { display: flex; align-items: center; justify-content: flex-end; gap: 32px; height: 100%; }
.barra-sup__dato { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; text-decoration: none; white-space: nowrap; }
.barra-sup .corto { display: none; }
.barra-sup__dato .ico { color: var(--rojo-claro); font-size: 19px; }
a.barra-sup__dato:hover span { text-decoration: underline; text-underline-offset: 4px; }
.idioma { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 30px; background: rgb(255 255 255 / .12); font-size: 14px; font-weight: 800; letter-spacing: .06em; cursor: pointer; }
.idioma:hover { background: rgb(255 255 255 / .22); }
.idioma .ico { font-size: 17px; }

.nav { height: var(--alto-nav); background: var(--noche); color: #FFFFFF; }
.nav__fila { display: flex; align-items: center; gap: 24px; height: 100%; max-width: 1440px; padding-inline: 40px; }
.nav__logo { display: block; flex: none; margin-right: auto; }
.logo { width: auto; height: 54px; }
.nav__menu { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 50px); margin-right: auto; }
.nav__item { position: relative; }
.nav__link { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 17px; font-weight: 600; text-decoration: none; }
.nav__link::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 2px; background: var(--rojo-vivo); transform: scaleX(0); transition: transform .35s var(--ease); }
.nav__item:hover > .nav__link::before, .nav__item:focus-within > .nav__link::before, .nav__link.activo::before { transform: scaleX(1); }
.nav.fija .nav__link.activo { color: var(--rojo); }
.flecha { color: var(--rojo-vivo); font-size: 22px; transition: rotate .3s var(--ease); }
.nav__item:hover .flecha, .nav__item:focus-within .flecha { rotate: 180deg; }
.sub {
  position: absolute; left: -24px; top: calc(100% + 12px); min-width: 250px; padding: 12px 0;
  border-radius: 8px; background: #FFFFFF; color: var(--tinta); box-shadow: var(--sombra); /* taste-skill-ignore: submenú desplegable, flota sobre la página */
  visibility: hidden; opacity: 0; translate: 0 8px; transition: opacity .25s, translate .35s var(--ease), visibility 0s .35s;
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav__item:hover .sub, .nav__item:focus-within .sub { visibility: visible; opacity: 1; translate: 0 0; transition-delay: 0s; }
.sub a { display: block; padding: 10px 24px; font-size: 16px; font-weight: 600; text-decoration: none; }
.sub a:hover { background: var(--gris-azul); color: var(--rojo); }
.nav__cta { font-size: 19px; padding: 11px 20px; }
.nav__hamburguesa { display: none; place-items: center; width: 48px; height: 48px; margin-right: -8px; border: 0; background: transparent; cursor: pointer; }
.nav__hamburguesa .ico { font-size: 30px; }

/* al bajar: barra blanca fija de 70 px, como Stampede */
.nav.fija {
  position: fixed; top: 0; left: 0; right: 0; z-index: 45; height: 70px;
  background: #FFFFFF; color: var(--noche);
  box-shadow: 0 2px 7px 0 rgb(196 196 196 / .34); /* taste-skill-ignore: sombra exacta de la barra fija de Stampede */
  --logo-tinta: var(--tinta); --logo-papel: #FFFFFF; --logo-rin: #8A9099;
}
.nav.fija .logo { height: 46px; }
.nav.fija .nav__link::before { top: -13px; }

/* ---------- menú del celular (hermano de la cabecera, para que no lo recorte) ---------- */
.menu-movil { position: fixed; inset: 0; z-index: 60; overflow-y: auto; background: var(--noche); color: #FFFFFF; padding: 96px 24px 40px; }
.menu-movil[hidden] { display: none; }
.menu-movil ul { display: grid; gap: 4px; }
.menu-movil li a { display: block; padding: 10px 0; font-size: 24px; font-weight: 800; text-decoration: none; }
.menu-movil__acciones { display: grid; gap: 12px; margin-top: 32px; }
.menu-abierto .cabecera { z-index: 70; }
.menu-abierto .nav { position: fixed; top: 0; left: 0; right: 0; z-index: 70; background: var(--noche); color: #FFFFFF; --logo-tinta: #FFFFFF; --logo-papel: var(--noche); }

/* ---------- inicio ---------- */
.hero { position: relative; z-index: 1; min-height: 760px; overflow: hidden; background: var(--carbon); color: #FFFFFF; isolation: isolate; }
.hero__fondo { position: absolute; inset: 0; z-index: -1; will-change: transform; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__velo { position: absolute; inset: 0; background:
  radial-gradient(62% 58% at 50% 42%, rgb(15 18 23 / .42), rgb(15 18 23 / .7) 72%), /* taste-skill-ignore: velo neutro sobre el video */
  linear-gradient(180deg, rgb(15 18 23 / .5), rgb(15 18 23 / .12) 45%, rgb(15 18 23 / .8)); } /* taste-skill-ignore: velo neutro sobre el video */
.hero__contenido { display: flex; flex-direction: column; align-items: center; padding-top: 96px; padding-bottom: 92px; text-align: center; }
.hero__titulo { max-width: 1100px; font-size: clamp(2.35rem, 1.2rem + 3.7vw, 3.82rem); font-weight: 900; line-height: 1.08; letter-spacing: -.005em; text-wrap: balance; }
.hero__texto { max-width: 900px; margin-top: 22px; font-size: 17px; line-height: 1.62; color: rgb(255 255 255 / .92); }
.hero__texto a { color: var(--rojo-claro); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.hero__botones { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 20px; margin-top: 34px; }
.hero__o { font-size: 24px; font-weight: 700; }
.categorias { display: grid; grid-template-columns: repeat(4, 220px); gap: 58px; margin-top: 82px; }
.categoria {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  height: 187px; padding: 22px 16px 16px; border: 1px solid rgb(255 255 255 / .82); border-radius: 5px; /* taste-skill-ignore: las tarjetas Car/Truck/SUV/Van de Stampede son cajas con borde blanco */
  text-decoration: none; background: rgb(15 18 23 / .18);
}
.categoria__foto { position: relative; display: grid; place-items: center; width: 100%; height: 108px; transition: transform .5s var(--ease); }
.categoria__foto::before { content: ""; position: absolute; inset: 8% 4% -6%; border-radius: 50%; background: radial-gradient(closest-side, rgb(255 255 255 / .2), transparent); } /* taste-skill-ignore: luz de estudio para que las llantas negras se lean sobre el fondo oscuro */
.categoria__foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 14px rgb(0 0 0 / .55)); } /* taste-skill-ignore: sombra de piso de los recortes, como los autos de Stampede */
.categoria__nombre { font-size: 19px; line-height: 1.2; }
.categoria--alta .categoria__foto img { inset: -40px 0 0; height: calc(100% + 40px); }
.categoria:hover { border-color: var(--rojo-claro); }
.categoria:hover .categoria__foto { transform: translateY(-6px) scale(1.06); }
.hero__pausa { position: absolute; right: 22px; bottom: 22px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgb(15 18 23 / .62); cursor: pointer; }
.hero__pausa svg { width: 18px; height: 18px; fill: #FFFFFF; }
.hero__pausa .p-play, .hero__pausa.pausado .p-pausa { display: none; }
.hero__pausa.pausado .p-play { display: block; }

/* ---------- banda roja: cotizar ---------- */
.cotiza { background: var(--rojo); color: #FFFFFF; padding: 30px 0 26px; }
.cotiza__caja { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cotiza__titulo { font-size: 24px; font-weight: 800; line-height: 1.3; }
.cotiza__texto { margin-top: 8px; font-size: 16px; font-weight: 600; }
.cotiza__form { position: relative; display: flex; align-items: center; width: min(600px, 100%); height: 52px; margin-top: 18px; padding: 4px 4px 4px 22px; border: 2px solid var(--tinta); border-radius: 30px; background: #FFFFFF; }
.cotiza__campo { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--tinta); font: inherit; font-size: 16px; }
.cotiza__campo::placeholder { color: #6B717C; }
.cotiza__campo:focus { outline: none; }
.cotiza__form:focus-within { outline: 3px solid #FFFFFF; outline-offset: 3px; }
.cotiza__form.error { border-color: #FFD34D; }
.cotiza__enviar { display: grid; place-items: center; width: 44px; height: 40px; border: 0; border-radius: 22px; background: var(--rojo); color: #FFFFFF; cursor: pointer; }
.cotiza__enviar .ico { font-size: 20px; }
.cotiza__enviar:hover { background: var(--rojo-hondo); }
.cotiza__ayuda { margin-top: 10px; font-size: 14px; font-weight: 600; }
.cotiza__ayuda a { color: #FFFFFF; text-underline-offset: 3px; }

.presupuesto { background: #B8161D; color: #FFFFFF; padding: 22px 0; }
.presupuesto__fila { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; }
.presupuesto__titulo { font-size: 24px; font-weight: 600; line-height: 1.25; }
.presupuesto__texto { font-size: 14px; font-weight: 600; }
.presupuesto__form { display: flex; align-items: center; flex: 0 1 600px; height: 50px; padding: 3px 3px 3px 20px; border-radius: 30px; background: #FFFFFF; color: var(--tinta); }
.presupuesto__form:focus-within { outline: 3px solid #FFFFFF; outline-offset: 3px; }
.presupuesto__form.error { box-shadow: 0 0 0 3px #FFD34D; } /* taste-skill-ignore: aviso de campo vacío */
.presupuesto__signo { font-weight: 700; margin-right: 6px; }
.presupuesto__campo { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--tinta); }
.presupuesto__campo::placeholder { color: #6B717C; }
.presupuesto__campo:focus { outline: none; }
.presupuesto__btn { min-height: 44px; padding: 8px 26px; }

/* ---------- por qué elegirnos ---------- */
.porque { padding: 104px 0 110px; }
.porque__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 52px; margin-top: 62px; }
.porque__ico { width: 58px; height: 58px; color: var(--rojo); }
.porque__item h3 { margin-top: 20px; font-size: 19px; font-weight: 800; line-height: 1.32; color: #000000; }
.porque__item p { margin-top: 6px; font-size: 17px; line-height: 1.8; color: var(--texto-2); }

/* ---------- gris: calidad + aviso oscuro ---------- */
.calidad { position: relative; padding-top: 92px; overflow-x: clip; background: var(--gris); isolation: isolate; }
.calidad::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; height: var(--blanco-abajo, 145px); background: #FFFFFF; } /* el aviso queda a caballo entre gris y blanco, como en Stampede */
.calidad__fila { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.calidad__texto p { margin-top: 26px; font-size: 17px; line-height: 1.85; color: var(--texto-2); }
.calidad__texto a { color: var(--rojo-hondo); text-underline-offset: 3px; }
.calidad__texto p:has(.pal) a { text-decoration: none; }
.calidad__texto a .pal { text-decoration: underline; text-underline-offset: 3px; }
.calidad__lista li { --lx: 1; position: relative; display: flex; align-items: center; gap: 24px; padding: 24px 0; font-size: 19px; font-weight: 800; line-height: 1.35; color: #000000; }
.calidad__lista li:first-child { padding-top: 6px; }
.calidad__lista li:not(:last-child)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--linea); transform: scaleX(var(--lx)); transform-origin: left; } /* taste-skill-ignore: la lista de Stampede separa con líneas; aquí se dibujan al entrar */
.calidad__lista .ico { font-size: 38px; color: var(--rojo); }
.aviso { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 290px; margin-top: 96px; padding: 48px 24px; overflow: hidden; background: var(--carbon); color: #FFFFFF; text-align: center; isolation: isolate; }
.aviso__fondo { position: absolute; inset: -12% 0; z-index: -1; }
.aviso__fondo img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.aviso::after { content: ""; position: absolute; inset: 0; z-index: -1; /* taste-skill-ignore: velo neutro sobre la foto */ background: linear-gradient(180deg, rgb(28 32 40 / .45), rgb(28 32 40 / .7)); }
.aviso__titulo { font-size: clamp(2.1rem, 1rem + 3.9vw, 3.82rem); font-weight: 900; line-height: 1.08; text-wrap: balance; }
.aviso__texto { margin: 14px 0 22px; font-size: 24px; }

/* ---------- servicios: texto + foto a la orilla ---------- */
.servicios { padding: 120px 0 70px; overflow: hidden; }
.servicios__fila { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 72px; align-items: center; padding-left: max(20px, calc((100% - var(--contenedor)) / 2)); }
.servicios__texto p { margin: 26px 0 30px; font-size: 17px; line-height: 1.85; color: var(--texto-2); }
.servicios__foto { height: 540px; overflow: hidden; }
.servicios__foto img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }

/* ---------- precios (tarjetas de kamu-ui) ---------- */
.precios { padding: 56px 0 120px; }
.precios__nota { margin-top: 10px; text-align: center; font-size: 16px; color: var(--texto-2); }
.precios__lista { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin-top: 46px; }
.precio { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; padding: 22px 24px; border-radius: 10px; background: var(--gris-azul); }
.precio:hover { background: #E8ECF3; }
.precio h3 { font-size: 19px; font-weight: 800; line-height: 1.3; color: #000000; }
.precio p { margin-top: 2px; font-size: 16px; line-height: 1.5; color: var(--texto-2); }
.precio__monto.ui-badge { padding: 6px 14px; border: 0; background: var(--rojo); color: #FFFFFF; font-size: 14px; font-weight: 800; text-align: center; white-space: normal; max-width: 140px; }
.ui-card.resena, .ui-btn--outline { box-shadow: none; } /* taste-skill-ignore: kamu-ui trae sombra en tarjeta y botón; aquí van planos */

/* ---------- visita: foto a la orilla + texto ---------- */
.visita { padding: 30px 0 120px; overflow: hidden; }
.visita__fila { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 72px; align-items: center; padding-right: max(20px, calc((100% - var(--contenedor)) / 2)); }
.visita__foto { height: 470px; overflow: hidden; }
.visita__foto img { width: 100%; height: 118%; object-fit: cover; object-position: 78% 40%; will-change: transform; }
.visita__texto p { margin: 24px 0 30px; font-size: 17px; line-height: 1.85; color: var(--texto-2); }

/* ---------- galería: se fija y corre de lado ---------- */
.galeria { background: var(--noche); color: #FFFFFF; overflow: hidden; }
.galeria__pin { display: flex; align-items: center; min-height: 100svh; }
.galeria__pista { display: flex; align-items: center; gap: 36px; padding: 80px max(20px, calc((100% - var(--contenedor)) / 2)); will-change: transform; }
.galeria__pista:focus-visible { outline-offset: -6px; }
.galeria__cabeza { flex: 0 0 340px; scroll-snap-align: start; }
.galeria .titulo-seccion { color: #FFFFFF; }
.galeria__cabeza p { margin-top: 16px; color: rgb(255 255 255 / .78); }
.galeria__flecha { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-top: 28px; border-radius: 50%; background: var(--rojo); font-size: 26px; }
.galeria__item { flex: 0 0 min(56vw, 760px); }
.galeria__marco { display: block; height: min(64vh, 560px); overflow: hidden; border-radius: 8px; }
.galeria__marco img { width: 116%; max-width: none; height: 100%; object-fit: cover; will-change: transform; }
.galeria__item figcaption { margin-top: 14px; font-size: 16px; font-weight: 700; color: rgb(255 255 255 / .85); }

/* ---------- reseñas ---------- */
.resenas { position: relative; padding: 96px 0 70px; overflow: hidden; background: var(--carbon); color: #FFFFFF; isolation: isolate; }
.resenas__fondo { position: absolute; inset: 0; z-index: -1; }
.resenas__fondo img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.resenas__fondo::after { content: ""; position: absolute; inset: 0; background: rgb(28 32 40 / .72); }
.resenas .titulo-seccion { color: #FFFFFF; }
.resenas__nota { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; margin-top: 18px; font-size: 19px; font-weight: 700; }
.resenas__nota strong { font-size: 36px; font-weight: 900; line-height: 1; }
.resenas__estrellas { display: inline-flex; gap: 3px; }
.resenas__estrellas .estrella { width: 24px; height: 23px; background: var(--oro); }
.resenas__sub { margin-top: 6px; text-align: center; font-size: 14px; color: rgb(255 255 255 / .75); }
.resenas__carrusel { margin-top: 40px; }
.resenas__pista { display: flex; gap: 22px; padding: 6px 0 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.resenas__pista::-webkit-scrollbar { display: none; }
.ui-card.resena { display: block; flex: 0 0 calc((100% - 44px) / 3); scroll-snap-align: start; padding: 22px 22px 26px; overflow: visible; border-radius: 6px; background: #FFFFFF; color: var(--tinta); }
.resena__cabeza { display: flex; align-items: center; gap: 14px; }
.resena__avatar { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--c); color: #FFFFFF; font-size: 22px; font-weight: 700; }
.resena__nombre { font-size: 17px; font-weight: 700; color: #1A56B8; line-height: 1.25; }
.resena__fecha { font-size: 14px; color: #6B717C; }
.resena__estrellas { display: flex; gap: 3px; margin-top: 14px; }
.estrella { width: 21px; height: 20px; background: #F59E0B; clip-path: polygon(50% 0, 61.8% 35%, 98% 35.4%, 68.6% 57.3%, 79.4% 91.6%, 50% 70.8%, 20.6% 91.6%, 31.4% 57.3%, 2% 35.4%, 38.2% 35%); }
.resena__texto { margin-top: 12px; font-size: 16px; line-height: 1.65; }
.resenas__control { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; }
.resenas__flecha { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #FFFFFF; color: var(--tinta); font-size: 26px; cursor: pointer; }
.resenas__flecha:hover { background: var(--rojo); color: #FFFFFF; }
.resenas__puntos { display: flex; gap: 8px; }
.resenas__puntos span { width: 9px; height: 9px; border-radius: 50%; background: rgb(255 255 255 / .45); }
.resenas__puntos span.activo { background: var(--rojo-claro); }

/* ---------- contacto ---------- */
.contacto { padding: 100px 0 70px; }
.contacto__intro { max-width: 1060px; margin: 20px auto 0; text-align: center; font-size: 17px; line-height: 1.85; color: var(--texto-2); }
.contacto__fila { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 60px; }
.contacto__datos { font-size: 17px; line-height: 1.95; }
.contacto__nombre { font-weight: 800; font-size: 19px; }
.contacto__datos p a[href^="tel"] { color: var(--rojo); }
.contacto__horas-titulo { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 26px; }
.abierto { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 20px; background: #E7F8EE; color: #116B37; font-size: 14px; font-weight: 800; line-height: 1.3; }
.abierto i { width: 8px; height: 8px; border-radius: 50%; background: var(--verde); }
.horas { margin-top: 10px; }
.horas li { line-height: 1.95; }
.contacto__como { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--rojo); font-weight: 700; text-underline-offset: 4px; }
.contacto__como .ico { font-size: 22px; }
.contacto__botones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.contacto__mapa { min-height: 530px; overflow: hidden; border-radius: 8px; background: var(--gris-azul); }
.lenis.lenis-smooth .contacto__mapa iframe { pointer-events: auto; }
.contacto__mapa iframe { display: block; width: 100%; height: 100%; min-height: 530px; border: 0; }

/* ---------- escríbanos: formulario del molde con los colores de Crown ---------- */
:root { --kamu-texto: var(--tinta); --kamu-fondo: #FFFFFF; --kamu-acento: var(--rojo); --kamu-error: #B3261E; --kamu-borde: #6B6B6B; }
.escribenos { padding: 100px 0; background: var(--carbon); color: #FFFFFF; }
.escribenos__fila { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 48px 80px; align-items: start; }
.escribenos .titulo-seccion { color: #FFFFFF; }
.escribenos__texto p { max-width: 44ch; margin-top: 20px; font-size: 17px; line-height: 1.85; color: #C9CDD4; }
.escribenos__nota a { color: #FFFFFF; font-weight: 700; text-underline-offset: 4px; }
.escribenos #kamu-contacto { max-width: none; padding: clamp(24px, 3vw, 40px); border-radius: 8px; background: #FFFFFF; }
#kamu-contacto button { min-height: 48px; padding: 12px 25px; font-size: 17px; transition: background-color .2s; }
#kamu-contacto button:hover { background: var(--rojo-hondo); }
@media (max-width: 900px) { .escribenos { padding: 70px 0; } .escribenos__fila { grid-template-columns: 1fr; } }

/* ---------- preguntas ---------- */
.faq { padding: 40px 0 110px; }
.faq__caja { padding: 70px clamp(20px, 8vw, 120px) 80px; border-radius: 24px; background: var(--gris-azul); }
.faq__lista { gap: 18px; margin-top: 54px; }
.ui-accordion-item.faq__item { border: 0; border-radius: 6px; background: #FFFFFF; }
.ui-accordion-item.faq__item:not(:last-child) { border-bottom: 0; }
.faq__item > summary { align-items: center; padding: 18px 26px; font-size: 17px; font-weight: 600; }
.faq__item > summary:hover { text-decoration: none; color: var(--rojo); }
.faq__item > summary::after { border-color: var(--tinta); }
.faq__item[open] > summary { color: var(--rojo); }
.faq__item[open] > summary::after { border-color: var(--rojo); }
.faq__item > div { padding: 22px 34px 28px; color: var(--texto-2); line-height: 1.85; }

/* ---------- pie ---------- */
.pie { background: var(--carbon); color: #C9CDD4; padding-top: 72px; }
.pie__fila { display: grid; grid-template-columns: 1.35fr .7fr .7fr 1.1fr; gap: 40px; }
.pie .logo { height: 60px; }
.pie__marca p { margin-top: 16px; max-width: 300px; line-height: 1.8; }
.pie__links li { position: relative; padding-left: 20px; line-height: 2.5; }
.pie__links li::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--rojo-vivo); }
.pie__links a { color: #FFFFFF; font-weight: 700; text-decoration: none; }
.pie__links a:hover { color: var(--rojo-claro); }
.pie__horas-titulo { color: #FFFFFF; font-size: 24px; font-weight: 800; }
.pie__horas p:not(.pie__horas-titulo) { margin-top: 6px; }
.pie__horas a { color: #FFFFFF; font-weight: 800; }
.pie__abajo { margin-top: 70px; background: #15181E; }
.pie__abajo-fila { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 26px; padding-bottom: 96px; font-size: 14px; }
.kamu { color: #AEB4BE; }

/* ---------- flotantes: píldora, pestaña y chat ---------- */
.pildora {
  position: fixed; left: 0; right: 0; bottom: 22px; z-index: 30; width: max-content; margin-inline: auto;
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 22px;
  border-radius: 23px; background: var(--rojo-vivo); color: #FFFFFF; font-size: 17px; font-weight: 600; text-decoration: none;
  border: 2px solid #FFFFFF;
}
.pildora .ico { font-size: 22px; }
.pildora:hover { background: var(--rojo-hondo); }
.pestana-lateral {
  position: fixed; right: 10px; top: 50%; z-index: 30; margin-top: -86px;
  display: flex; align-items: center; justify-content: center; width: 58px; height: 172px;
  border-radius: 30px; background: var(--rojo-vivo); color: #FFFFFF; text-decoration: none; font-size: 15px; font-weight: 600;
}
.pestana-lateral span { writing-mode: vertical-rl; white-space: nowrap; font-size: 16px; }
.pestana-lateral:hover { background: var(--rojo-hondo); }
.chat {
  position: fixed; right: 20px; bottom: 20px; z-index: 35; width: 300px; padding: 30px 16px 14px;
  border-radius: 10px; background: #FFFFFF; color: var(--tinta);
  box-shadow: 0 0 10px 0 rgb(0 0 0 / .3); /* taste-skill-ignore: tarjeta flotante de chat como la de Stampede */
}
.chat[hidden] { display: none; }
.chat__avatar { position: absolute; left: 50%; top: -30px; width: 58px; height: 58px; margin-left: -29px; border: 3px solid #FFFFFF; border-radius: 50%; }
.chat__cerrar { position: absolute; right: -10px; top: -10px; display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid #FFFFFF; border-radius: 50%; background: var(--tinta); color: #FFFFFF; font-size: 16px; cursor: pointer; }
.chat__estado { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; }
.chat__estado i { width: 9px; height: 9px; border-radius: 50%; background: var(--verde); }
.chat__texto { margin-top: 4px; font-size: 14px; line-height: 1.5; }
.chat__botones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.chat__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 6px; background: var(--rojo-vivo); color: #FFFFFF; font-size: 14px; font-weight: 700; text-transform: uppercase; text-decoration: none; }
.chat__btn:hover { background: var(--rojo-hondo); }
.chat__btn .ico { font-size: 20px; }
.chat-burbuja { position: fixed; right: 20px; bottom: 20px; z-index: 35; display: grid; place-items: center; width: 64px; height: 64px; padding: 0; border: 3px solid #FFFFFF; border-radius: 50%; background: var(--noche); cursor: pointer; }
.chat-burbuja[hidden] { display: none; }
.chat-burbuja img { width: 100%; height: 100%; border-radius: 50%; }
.chat-burbuja i { position: absolute; right: 2px; top: 2px; width: 13px; height: 13px; border: 2px solid #FFFFFF; border-radius: 50%; background: var(--verde); }

/* ---------- luz que recorre el borde (premium-web-motion) ---------- */
[data-beam], [data-beam-hover] { isolation: isolate; }
.beam-svg { position: absolute; overflow: visible; pointer-events: none; z-index: 2; }
.beam-svg rect { fill: none; vector-effect: non-scaling-stroke; animation: beam-run var(--beam-dur, 6s) linear infinite; animation-play-state: var(--beam-state, running); }
.beam-svg .b-t1 { stroke: var(--beam, #FFFFFF); stroke-width: 1.2; opacity: .35; stroke-dasharray: 24 76; --o0: 0; --o1: -100; }
.beam-svg .b-t2 { stroke: var(--beam, #FFFFFF); stroke-width: 1.6; opacity: .8; stroke-dasharray: 11 89; --o0: -13; --o1: -113; }
.beam-svg .b-h { stroke: var(--beam-2, #FFFFFF); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 3 97; --o0: -21; --o1: -121; /* taste-skill-ignore: brillo de la luz que recorre el borde (premium-web-motion) */ filter: drop-shadow(0 0 4px var(--beam-2, #FFFFFF)) drop-shadow(0 0 9px var(--rojo-claro)); }
@keyframes beam-run { from { stroke-dashoffset: var(--o0); } to { stroke-dashoffset: var(--o1); } }
[data-beam-hover] .beam-svg { opacity: 0; transition: opacity .45s; }
[data-beam-hover]:is(:hover, :focus-visible) .beam-svg { opacity: 1; }
.cotiza__form { --beam: #FFFFFF; --beam-2: #FFFFFF; }
.categoria { --beam: var(--rojo-claro); --beam-2: #FFFFFF; }

/* ---------- tableta ---------- */
@media (max-width: 1180px) {
  .solo-compu { display: none; }
  .nav__fila { padding-inline: 20px; }
  .nav__cta { font-size: 17px; padding: 10px 16px; }
  .categorias { grid-template-columns: repeat(4, minmax(0, 200px)); gap: 28px; }
  .porque__grid { gap: 36px; }
  .ui-card.resena { flex-basis: calc((100% - 22px) / 2); }
  .pestana-lateral { display: none; }
}
@media (max-width: 1023px) {
  :root { --alto-barra: 44px; --alto-nav: 72px; }
  .nav nav, .nav__cta { display: none; }
  .nav__hamburguesa { display: grid; }
  .logo { height: 46px; }
  .barra-sup__fila { justify-content: space-between; gap: 16px; }
  .barra-sup__dato { font-size: 15px; }
  .hero { min-height: 0; }
  .hero__contenido { padding-top: 64px; padding-bottom: 72px; }
  .categorias { grid-template-columns: repeat(2, minmax(0, 220px)); gap: 20px; margin-top: 52px; }
  .porque { padding: 80px 0; }
  .porque__grid { grid-template-columns: repeat(2, 1fr); margin-top: 44px; }
  .calidad__fila { grid-template-columns: 1fr; gap: 36px; }
  .servicios { padding: 90px 0 50px; }
  .servicios__fila, .visita__fila { grid-template-columns: 1fr; gap: 40px; padding-inline: 20px; }
  .servicios__foto, .visita__foto { height: 420px; border-radius: 8px; }
  .visita__foto { order: 2; }
  .contacto__fila { grid-template-columns: 1fr; gap: 40px; }
  .pie__fila { grid-template-columns: 1fr 1fr; }
  .pie__marca, .pie__horas { grid-column: span 2; }
}

/* galería deslizable con el dedo: celular, tableta y pantallas táctiles grandes */
@media (max-width: 1023px), (pointer: coarse) {
  .galeria__pin { min-height: 0; }
  .galeria__pista { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 36px 24px; padding-block: 80px; }
  .galeria__cabeza { grid-column: 1 / -1; }
  .galeria__marco { height: auto; aspect-ratio: 4 / 3; }
  .galeria__marco img { width: 100%; }
  .galeria__flecha { display: none; }
}

/* ---------- celular ---------- */
@media (max-width: 680px) {
  body { font-size: 16px; }
  .barra-sup__fila { gap: 12px; }
  .barra-sup__dato { font-size: 14px; gap: 6px; }
  .barra-sup__dato .ico { font-size: 16px; }
  .barra-sup .largo { display: none; }
  .barra-sup .corto { display: inline; }
  .idioma { padding: 0 10px; min-height: 32px; }
  .hero__contenido { padding-top: 48px; padding-bottom: 60px; }
  .hero__titulo { font-size: clamp(2.1rem, 9.5vw, 2.6rem); }
  .hero__texto { font-size: 16px; }
  .hero__botones { flex-direction: column; width: 100%; gap: 10px; }
  .hero__botones .btn { width: 100%; }
  .hero__o { font-size: 18px; }
  .categorias { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
  .categoria { height: 150px; padding: 16px 10px 12px; }
  .categoria__foto { height: 80px; }
  .categoria__nombre { font-size: 17px; }
  .hero__pausa { right: 14px; bottom: 14px; }
  .presupuesto__fila { flex-direction: column; align-items: stretch; text-align: center; }
  .presupuesto__form { flex-basis: auto; }
  .presupuesto__btn { padding: 8px 18px; }
  .porque { padding: 70px 0; }
  .porque__grid { grid-template-columns: 1fr; gap: 40px; }
  .calidad { padding-top: 70px; --blanco-abajo: 120px; }
  .calidad__lista li { font-size: 17px; gap: 16px; }
  .aviso { min-height: 240px; margin-top: 60px; }
  .aviso__texto { font-size: 19px; }
  .servicios__foto, .visita__foto { height: 300px; }
  .precios { padding: 40px 0 80px; }
  .precios__lista { grid-template-columns: 1fr; }
  .precio { grid-template-columns: 1fr; gap: 10px; padding: 18px 20px; }
  .precio__monto.ui-badge { justify-self: start; max-width: none; }
  .ui-card.resena { flex-basis: 100%; }
  .visita { padding-bottom: 80px; }
  .resenas { padding: 72px 0 56px; }
  .contacto { padding: 72px 0 50px; }
  .contacto__mapa, .contacto__mapa iframe { min-height: 360px; }
  .contacto__botones .btn { flex: 1; }
  .faq { padding: 20px 0 80px; }
  .faq__caja { padding: 48px 16px 40px; border-radius: 16px; }
  .faq__item > summary { padding: 16px 18px; }
  .faq__item > div { padding: 16px 18px 22px; }
  .pie__fila { gap: 28px 20px; }
  .pie__abajo { padding-bottom: 110px; }
  .chat, .chat-burbuja { display: none; }
  .pildora { bottom: 14px; }
}

/* ---------- sin movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  .beam-svg rect { animation: none; }
  .beam-svg .b-t2, .beam-svg .b-h { display: none; }
  .beam-svg .b-t1 { stroke-dasharray: none; opacity: .3; }
  .rueda > span, .categoria__foto, .sub, .nav__link::before, .flecha { transition: none; }
}
