/* ==========================================================================
   EKORUEDAS · animaciones y componentes (capa 2, encima de style.css)
   ========================================================================== */

/* ÍNDICE
   1. Neumático animado (hero)
   2. Cinta de servicios en movimiento (marquee)
   3. Tarjetas de neumáticos
   4. Aparición de elementos al hacer scroll
   5. Formulario: estilos generales
   6. Mapa con consentimiento previo
   7. Portada (index)
   8. Páginas legales
   9. Fondos con color y movimiento (estilo "keynote")
   10. Presupuesto por WhatsApp: asistente paso a paso
   11. Reseñas, citas y páginas interiores
   12. Color de fondo, enlaces en azul, titular
   13. Superficies con color (nada de blanco puro)
   14. Cabecera: logo · menú centrado · teléfono
   15. Citas online: selector de día y hora
   ---------------------------------------------------------------------- */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  z-index: 60;
  background: linear-gradient(90deg, var(--lime), var(--teal));
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.site-header {
  transition: box-shadow 0.25s;
}
.site-header.scrolled {
  box-shadow: 0 8px 24px rgba(5, 58, 55, 0.12);
}
.site-header .wrap {
  transition: height 0.25s;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 5px 14px;
  border-radius: 99px;
  background: var(--mist);
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.on-dark .eyebrow {
  background: rgba(147, 214, 0, 0.15);
  color: var(--lime);
}
/* ---------- Neumático animado (hero) ---------- */
.tire-stage {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1/1;
  max-width: 560px;
  width: 100%;
  margin-inline: auto;
}
.tire-stage .blob {
  position: absolute;
  inset: 6%;
  border-radius: 46% 54% 52% 48%/55% 45% 55% 45%;
  background: var(--lime);
  animation: morph 9s ease-in-out infinite alternate;
}
.tire {
  position: relative;
  width: 82%;
  height: auto;
  filter: drop-shadow(0 24px 30px rgba(5, 58, 55, 0.35));
  will-change: transform;
}
.chip {
  position: absolute;
  padding: 9px 16px;
  border-radius: 99px;
  background: #fff;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(5, 58, 55, 0.18);
  animation: float 5s ease-in-out infinite;
}
.chip.c1 {
  top: 10%;
  left: 0;
}
.chip.c2 {
  bottom: 14%;
  left: -2%;
  animation-delay: -1.5s;
}
.chip.c3 {
  top: 34%;
  right: -2%;
  animation-delay: -3s;
}
@keyframes float {
  50% {
    transform: translateY(-12px);
  }
}
@keyframes morph {
  to {
    border-radius: 54% 46% 44% 56%/45% 55% 45% 55%;
    transform: rotate(8deg) scale(1.03);
  }
}
/* ---------- Cinta de servicios en movimiento (marquee) ---------- */
.marquee {
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}
.marquee .track {
  display: flex;
  width: max-content;
  animation: slide 28s linear infinite;
}
.marquee span {
  display: flex;
  align-items: center;
  padding: 18px 28px;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.marquee span::after {
  content: "";
  width: 10px;
  height: 10px;
  margin-left: 56px;
  border-radius: 50%;
  background: var(--lime);
}
@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}
/* ---------- Tarjetas de neumáticos ---------- */
.tires {
  background: var(--deep);
  color: #cfe6e1;
  overflow: hidden;
}
.tires h2 {
  color: #fff;
}
.tires-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 48px;
  align-items: end;
  margin-bottom: 48px;
}
.tire-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tire-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  transition:
    transform 0.25s,
    background 0.25s,
    border-color 0.25s;
}
.tire-card:hover {
  transform: translateY(-8px);
  background: rgba(147, 214, 0, 0.1);
  border-color: var(--lime);
}
.tire-card .ico {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
}
.tire-card .ico .icon {
  width: 26px;
  height: 26px;
}
.tire-card:hover .ico .icon {
  animation: spin 1.2s linear;
}
.tire-card h3 {
  color: #fff;
}
.tire-card p {
  font-size: 0.92rem;
}
.tire-card li {
  position: relative;
  padding-left: 16px;
  font-size: 0.88rem;
  line-height: 1.8;
}
.tire-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
}
.tire-card .ask {
  margin-top: auto;
  align-self: flex-start;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.tire-card .ask:hover {
  color: var(--ink);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.service {
  transition:
    background 0.25s,
    padding 0.25s;
}
.service:hover {
  background: var(--mist);
  padding-inline: 16px;
  border-radius: 20px;
}
.about-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  background: var(--lime);
  overflow: hidden;
}
.about-art .tire {
  width: 78%;
}
.about-art p {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px 24px;
  background: var(--ink);
  color: var(--lime);
  font-weight: 700;
}
/* ---------- Aparición de elementos al hacer scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0s);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.btn {
  transition:
    background 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}
.btn:active {
  transform: none;
}
.wa-float {
  position: fixed;
  z-index: 40;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  animation: pulse 2.6s infinite;
}
.wa-float svg {
  width: 30px;
  height: 30px;
}
.wa-float:hover {
  background: #1ebe5b;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  }
  70%,
  100% {
    box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
  }
}
/* ---------- Formulario: estilos generales ---------- */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.5;
}
.check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--teal);
}
.check a {
  text-decoration: underline;
}
input:user-invalid,
select:user-invalid {
  border-color: #c0392b;
}
/* ---------- Mapa con consentimiento previo ---------- */
.map-box {
  display: grid;
  place-items: center;
  min-height: clamp(300px, 40vw, 440px);
  border-radius: var(--radius);
  background: #e4efd0;
  overflow: hidden;
  text-align: center;
}
.map-box iframe {
  width: 100%;
  height: clamp(300px, 40vw, 440px);
  border: 0;
}
.map-consent {
  max-width: 420px;
  padding: 24px;
}
.map-consent .btn {
  margin-top: 16px;
}
.map-consent a {
  text-decoration: underline;
}
/* ---------- Portada (index) ---------- */
.home-hero .tire-stage {
  max-width: 420px;
}
.notice-wide {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.notice-wide .ico {
  margin: 0;
  flex: none;
}
.branch .tels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 28px;
}
.branch .tel {
  margin-bottom: 0;
}
/* ---------- Páginas legales ---------- */
.legal .narrow {
  width: min(820px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.legal h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 8px;
}
.legal h2 {
  margin: 36px 0 10px;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}
.legal p,
.legal li {
  margin-bottom: 10px;
}
.legal .plain li {
  list-style: none;
}
mark {
  background: #fff3a8;
  padding: 0 4px;
  border-radius: 4px;
}
@media (max-width: 1000px) {
  .tire-grid {
    grid-template-columns: 1fr 1fr;
  }
  .tires-head {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .tire-grid {
    grid-template-columns: 1fr;
  }
  .chip {
    font-size: 0.75rem;
    padding: 7px 12px;
  }
  .chip.c1,
  .chip.c2 {
    left: 0;
  }
  .chip.c3 {
    right: 0;
  }
  .wa-float {
    width: 48px;
    height: 48px;
  }
  .actions .btn,
  .case .btn,
  .contact .btn {
    width: 100%;
  }
  .result-actions .btn,
  .result-actions .ask {
    width: 100%;
    justify-content: center;
  }
  .notice-wide {
    flex-direction: column;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 480px) {
  .strip ul {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
  .marquee .track,
  .chip,
  .blob,
  .wa-float {
    animation: none;
  }
}

/* ---------- Fondos con color y movimiento (estilo "keynote") ---------- */
:root {
  --lime-soft: #d9ff7a;
}
.logo-mark {
  width: 54px;
  height: 42px;
  flex: none;
}
.home-mark {
  width: clamp(110px, 14vw, 170px);
  height: auto;
  margin-bottom: 18px;
}
.hero-dark {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 90% at 15% 0%, #0d6a63 0%, #053a37 48%, #021f1d 100%);
  color: #cfe6e1;
}
.hero-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  mask-image: linear-gradient(180deg, #000, transparent 85%);
  pointer-events: none;
}
.hero-dark > .wrap {
  position: relative;
  z-index: 1;
}
.aurora i {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: drift 14s ease-in-out infinite alternate;
  will-change: transform;
}
.aurora i:nth-child(1) {
  width: 46vw;
  height: 46vw;
  left: -10vw;
  top: -14vw;
  background: #93d600;
}
.aurora i:nth-child(2) {
  width: 40vw;
  height: 40vw;
  right: -10vw;
  top: 8%;
  background: #00b5a8;
  animation-delay: -5s;
}
.aurora i:nth-child(3) {
  width: 34vw;
  height: 34vw;
  left: 32%;
  bottom: -18vw;
  background: #c8f23a;
  opacity: 0.32;
  animation-delay: -9s;
}
@keyframes drift {
  to {
    transform: translate(6vw, 4vw) scale(1.18);
  }
}
.hero-dark h1 {
  background: linear-gradient(100deg, #fff 15%, var(--lime-soft) 50%, #fff 85%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 7s linear infinite;
}
@keyframes shine {
  to {
    background-position: -220% center;
  }
}
.hero-dark .lead,
.hero-dark .hours {
  color: #cfe6e1;
}
.hero-dark .hours .icon {
  color: var(--lime);
}
.hero-dark .link {
  color: #fff;
}
.hero-dark .eyebrow {
  background: rgba(147, 214, 0, 0.16);
  color: var(--lime);
}
.hero-dark .tire-stage .blob {
  box-shadow: 0 0 120px rgba(147, 214, 0, 0.55);
}
.hero-dark .chip {
  color: var(--ink);
}
.marquee {
  background: linear-gradient(90deg, var(--lime), #00b5a8, var(--lime));
  background-size: 200% 100%;
  animation: grad 8s linear infinite;
  color: var(--ink);
}
.marquee span::after {
  background: var(--ink);
}
@keyframes grad {
  to {
    background-position: -200% 0;
  }
}
main > section:not([class]),
#servicios,
#preguntas {
  background:
    radial-gradient(55% 45% at 95% 5%, rgba(147, 214, 0, 0.22), transparent),
    radial-gradient(50% 45% at 0% 95%, rgba(0, 130, 124, 0.16), transparent), #fbfdf6;
}
.tires,
.sizer,
.booking {
  position: relative;
  margin-top: -40px;
  border-radius: 40px 40px 0 0;
}
.tires {
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(147, 214, 0, 0.2), transparent),
    radial-gradient(50% 50% at 5% 100%, rgba(0, 181, 168, 0.25), transparent), var(--deep);
}
.booking {
  background:
    radial-gradient(60% 60% at 100% 0%, rgba(147, 214, 0, 0.18), transparent),
    radial-gradient(50% 60% at 0% 100%, rgba(0, 181, 168, 0.22), transparent), var(--deep);
}
.about {
  background: linear-gradient(135deg, var(--mist), #e3f6c6 55%, #cdeee8);
}
.contact {
  background: linear-gradient(160deg, var(--mist), #d8f0e8);
}
.map {
  background: #d8f0e8;
}
.tire-card,
.sizer-card,
.branch {
  background-image: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, -60%),
    rgba(147, 214, 0, 0.2),
    transparent 60%
  );
}
.branch {
  background-color: #fff;
  transition:
    transform 0.25s,
    border-color 0.15s,
    box-shadow 0.15s;
}
.branch:hover {
  transform: translateY(-6px);
}
.sizer {
  background: linear-gradient(120deg, #93d600, #38d39f, #00b5a8, #93d600);
  background-size: 300% 100%;
  animation: grad2 14s ease-in-out infinite alternate;
  color: var(--ink);
  overflow: hidden;
}
@keyframes grad2 {
  to {
    background-position: 100% 0;
  }
}
.sizer .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.sizer h2 {
  margin-bottom: 14px;
}
.sizer .lead {
  color: var(--ink);
}
.sizer .eyebrow {
  background: var(--ink);
  color: var(--lime);
}
.sizer-card {
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--radius);
  background-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 30px 60px rgba(5, 58, 55, 0.25);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.sizer-card label {
  font-weight: 700;
  color: var(--ink);
}
.sizer-card input {
  height: 68px;
  margin: 10px 0 18px;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}
.sizer-out {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.sizer-out div {
  padding: 14px 10px;
  border-radius: 16px;
  background: var(--mist);
  text-align: center;
  animation: pop 0.4s cubic-bezier(0.2, 0.8, 0.3, 1.4) both;
}
.sizer-out div:nth-child(2) {
  animation-delay: 0.07s;
}
.sizer-out div:nth-child(3) {
  animation-delay: 0.14s;
}
.sizer-out b {
  display: block;
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--teal);
}
.sizer-out span {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
}
.sizer-out small {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--muted);
}
.sizer-out p {
  grid-column: 1/-1;
  font-size: 0.9rem;
  text-align: center;
  color: var(--muted);
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(8px);
  }
}
.sizer-card .btn {
  width: 100%;
}
.site-header {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
}
@media (max-width: 900px) {
  .sizer .wrap {
    grid-template-columns: 1fr;
  }
  .tires,
  .sizer,
  .booking {
    border-radius: 28px 28px 0 0;
    margin-top: -28px;
  }
}
@media (max-width: 520px) {
  .sizer-out {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .aurora i,
  .sizer,
  .marquee,
  .hero-dark h1 {
    animation: none;
  }
  .hero-dark h1 {
    color: #fff;
    -webkit-text-fill-color: #fff;
    background: none;
  }
}
.marquee + .tires {
  margin-top: 0;
  border-radius: 0;
}
main:has(.home-hero) {
  background:
    radial-gradient(55% 40% at 95% 20%, rgba(147, 214, 0, 0.25), transparent),
    radial-gradient(50% 40% at 0% 90%, rgba(0, 130, 124, 0.18), transparent), #fbfdf6;
}
main:has(.home-hero) > section:not(.home-hero) {
  background: none;
}
.home-hero + section {
  padding-top: 36px;
}
.hero-dark {
  margin-bottom: 0;
}

/* ---------- Presupuesto por WhatsApp: asistente paso a paso ---------- */
.marquee + .tires {
  margin-top: 0;
  border-radius: 0 0 40px 40px;
}
.quote {
  position: relative;
  margin-top: -40px;
  border-radius: 40px 40px 0 0;
  background:
    radial-gradient(60% 60% at 100% 0%, rgba(147, 214, 0, 0.2), transparent),
    radial-gradient(50% 60% at 0% 100%, rgba(0, 181, 168, 0.25), transparent), var(--deep);
  color: #cfe6e1;
}
.quote h2 {
  color: #fff;
}
.quote-head {
  max-width: 720px;
  margin-bottom: 40px;
}
.quote-head h2 {
  margin-bottom: 16px;
}
.quote-head .lead {
  color: #cfe6e1;
}
.quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
.quote-foot {
  margin-top: 32px;
  text-align: center;
}
.quote-foot a {
  color: var(--lime);
  font-weight: 700;
}
.wizard {
  position: relative;
}
.wizard fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.wizard legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}
.stepper {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}
.stepper li {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.stepper li b {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--teal);
  font-size: 0.78rem;
  transition:
    background 0.25s,
    color 0.25s;
}
.stepper li.on {
  color: var(--ink);
}
.stepper li.on b {
  background: var(--lime);
  color: var(--ink);
}
.stepper li.done b {
  background: var(--teal);
  color: #fff;
}
.bar {
  height: 5px;
  margin-bottom: 26px;
  border-radius: 9px;
  background: var(--mist);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  width: var(--p, 33%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lime), var(--teal));
  transition: width 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.step {
  animation: stepin 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.step[hidden] {
  display: none;
}
@keyframes stepin {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
}
.step h3 {
  margin-bottom: 6px;
  font-size: 1.35rem;
  outline: none;
}
.step > .small {
  margin-bottom: 18px;
}
.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 16px;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  background: #fff;
  text-align: left;
  transition:
    transform 0.2s,
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}
.tile .ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: var(--mist);
  color: var(--teal);
  transition:
    transform 0.25s,
    background 0.2s,
    color 0.2s;
}
.tile .ico .icon {
  width: 22px;
  height: 22px;
}
.tile b {
  font-size: 1rem;
  line-height: 1.25;
  color: var(--ink);
}
.tile small {
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--muted);
}
.tile:hover {
  transform: translateY(-3px);
  border-color: var(--lime);
  box-shadow: 0 12px 26px rgba(5, 58, 55, 0.14);
}
.tile:hover .ico {
  background: var(--lime);
  color: var(--ink);
  transform: rotate(-8deg) scale(1.08);
}
.tile.on {
  border-color: var(--teal);
  background: var(--mist);
}
.tile:last-child:nth-child(odd) {
  grid-column: 1/-1;
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  position: relative;
  cursor: pointer;
}
.pill input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}
.pill span {
  display: inline-block;
  padding: 10px 16px;
  border: 1.5px solid #c3d4ae;
  border-radius: 99px;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s,
    transform 0.15s;
}
.pill:hover span {
  border-color: var(--teal);
}
.pill input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  transform: scale(1.03);
}
.pill input:focus-visible + span {
  outline: 3px solid rgba(0, 130, 124, 0.4);
  outline-offset: 2px;
}
.step .fields {
  margin-top: 18px;
}
.step-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}
.step-actions .btn {
  flex: 1;
}
.btn-wa {
  background: #25d366;
  color: #052e16;
}
.btn-wa:hover {
  background: #1ebe5b;
}
.done {
  outline: none;
  animation: stepin 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.done[hidden] {
  display: none;
}
.done-ico {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #25d366;
  color: #052e16;
  animation: pop 0.5s cubic-bezier(0.2, 0.8, 0.3, 1.4) both;
}
.done-ico .icon {
  width: 26px;
  height: 26px;
}
.done h3 {
  margin-bottom: 8px;
  font-size: 1.5rem;
}
.done p {
  margin-bottom: 20px;
}
.chat {
  position: sticky;
  top: 100px;
  overflow: hidden;
  border-radius: 28px;
  background: #efeae2;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  color: #111;
}
.chat-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #075e54;
  color: #fff;
}
.chat-top .av {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
}
.chat-top .av svg {
  width: 30px;
  height: 24px;
}
.chat-top b {
  display: block;
  line-height: 1.2;
}
.chat-top small {
  font-size: 0.75rem;
  opacity: 0.85;
}
.chat-body {
  min-height: 240px;
  max-height: 520px;
  overflow: auto;
  padding: 18px 14px;
}
.bubble {
  position: relative;
  padding: 10px 12px 22px;
  border-radius: 14px 14px 4px 14px;
  background: #d9fdd3;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
  font-size: 0.9rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.bubble p {
  margin: 0;
}
.bubble .gap {
  height: 0.7em;
}
.bubble .ghost {
  margin-top: 0.7em;
  color: #667781;
  font-style: italic;
}
.bubble time {
  position: absolute;
  right: 10px;
  bottom: 5px;
  font-size: 0.68rem;
  color: #667781;
}
.chat-note {
  padding: 12px 18px;
  background: #f7f5f0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #54656f;
}
.is-done .chat-note {
  display: block;
}
@media (max-width: 1000px) {
  .quote-grid {
    grid-template-columns: 1fr;
  }
  .chat {
    position: static;
  }
}
@media (max-width: 900px) {
  .quote {
    border-radius: 28px 28px 0 0;
    margin-top: -28px;
  }
  .marquee + .tires {
    border-radius: 0 0 28px 28px;
  }
}
@media (max-width: 520px) {
  .tiles {
    grid-template-columns: 1fr;
  }
  .stepper li span {
    display: none;
  }
  .stepper li {
    justify-content: center;
  }
  .step-actions {
    flex-direction: column-reverse;
  }
}
@media (prefers-reduced-motion: reduce) {
  .step,
  .done,
  .done-ico {
    animation: none;
  }
}
.step > .check {
  margin-top: 20px;
}

/* ---------- Reseñas, citas y páginas interiores ---------- */
[hidden] {
  display: none !important;
}
.stars {
  display: inline-flex;
  gap: 2px;
  color: #f5b301;
}
.star {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.review-bar {
  position: relative;
  z-index: 60;
  background: linear-gradient(90deg, var(--deep), var(--teal));
  color: #fff;
}
.review-bar .rb {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  flex-wrap: wrap;
}
.review-bar .rb p {
  margin: 0;
  flex: 1 1 260px;
  font-size: 0.95rem;
  line-height: 1.35;
}
.review-bar .rb-x {
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 8px;
}
.review-bar .rb-x:hover {
  background: rgba(255, 255, 255, 0.15);
}
.review-bar .ask,
.reviews .ask {
  color: inherit;
}
.reviews {
  background: linear-gradient(135deg, #fffbe8, #eefad0);
}
.review-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: clamp(24px, 5vw, 56px);
  box-shadow: 0 20px 60px rgba(5, 58, 55, 0.08);
}
.review-inner h2 {
  margin: 0.2em 0 0.4em;
}
.review-inner .hints {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
.review-inner .hints li {
  background: var(--mist);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.9rem;
}
.review-inner .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.stars-big {
  display: flex;
  justify-content: center;
  gap: 6px;
  color: #f5b301;
}
.stars-big .star {
  width: clamp(34px, 6vw, 54px);
  height: clamp(34px, 6vw, 54px);
  animation: pop 2.4s ease-in-out infinite;
}
.stars-big .star:nth-child(2) {
  animation-delay: 0.12s;
}
.stars-big .star:nth-child(3) {
  animation-delay: 0.24s;
}
.stars-big .star:nth-child(4) {
  animation-delay: 0.36s;
}
.stars-big .star:nth-child(5) {
  animation-delay: 0.48s;
}
@keyframes pop {
  0%,
  60%,
  100% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.22) rotate(-6deg);
  }
}
.linkbtn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--teal);
  text-decoration: underline;
  cursor: pointer;
}
.chosen {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: rgba(147, 214, 0, 0.14);
  border: 1px solid rgba(147, 214, 0, 0.5);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.chosen .linkbtn {
  color: inherit;
}
.page-hero {
  padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 80px);
  position: relative;
  overflow: hidden;
}
.page-hero h1 {
  margin: 0.2em 0 0.3em;
}
.page-hero .lead {
  max-width: 60ch;
}
.how {
  background:
    radial-gradient(60% 60% at 90% 0%, rgba(147, 214, 0, 0.18), transparent),
    radial-gradient(50% 60% at 5% 100%, rgba(0, 181, 168, 0.22), transparent), var(--deep);
  color: #cfe6e1;
}
.how h2,
.how-head h2 {
  color: #fff;
}
.how-grid h3 {
  color: #fff;
}
.how-head {
  margin-bottom: 28px;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.how-grid article {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  padding: 24px;
}
.how-grid b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--deep);
  margin-bottom: 12px;
}
.branches {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.branch-text {
  margin: 0.6em 0 1.2em;
}
.legal .links {
  padding-left: 1.1em;
}
.legal .links li {
  margin: 0.4em 0;
}
.legal a {
  overflow-wrap: anywhere;
}
.site-header .nav a[aria-current="page"]:not(.btn) {
  color: var(--teal);
  font-weight: 600;
}
.how {
  padding-block: clamp(48px, 6vw, 80px);
}
@media (max-width: 820px) {
  .review-inner,
  .how-grid,
  .branches {
    grid-template-columns: 1fr;
  }
  .stars-big {
    order: -1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .stars-big .star {
    animation: none;
  }
}

/* ---------- Color de fondo, enlaces en azul, titular ---------- */
body {
  background: linear-gradient(180deg, #f1fadb 0%, #e0f3e6 45%, #f1fadb 100%) fixed;
}
.site-header {
  background: rgba(236, 248, 222, 0.93);
}
.hero-dark h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--lime), #d9ff7a 60%, var(--lime));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  white-space: nowrap;
}
.hero-dark h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.05em;
  height: 0.12em;
  border-radius: 99px;
  background: var(--lime);
  opacity: 0.55;
}
.plain.section {
  background: none;
}
.branch {
  border: 0;
  color: #fff;
  box-shadow: 0 18px 50px rgba(5, 58, 55, 0.18);
  position: relative;
  overflow: hidden;
}
.branch:nth-child(1) {
  background: linear-gradient(135deg, var(--teal), var(--deep));
}
.branch:nth-child(2) {
  background: linear-gradient(135deg, #7fc400, var(--teal));
}
.branch h2,
.branch .name {
  color: #fff;
}
.branch .name {
  opacity: 0.85;
}
.branch .btn {
  background: #fff;
  color: var(--deep);
}
.branch .btn:hover {
  background: var(--lime);
}
.branch::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 26px solid rgba(255, 255, 255, 0.12);
}
.faq,
.about,
.contact,
.map {
  background: none;
}
.about {
  background: linear-gradient(135deg, rgba(147, 214, 0, 0.16), rgba(0, 130, 124, 0.12));
}
.contact {
  background: linear-gradient(135deg, rgba(0, 130, 124, 0.14), rgba(147, 214, 0, 0.2));
}
/* Enlaces bien visibles (en azul) dentro de los textos legales */
.legal a,
.faq a:not(.btn) {
  color: #0b57d0;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
.legal a:hover {
  color: #0a3d91;
}
.legal a:visited {
  color: #6b3fa0;
}
.legal .narrow {
  background: #fff;
  border-radius: 28px;
  padding: clamp(22px, 5vw, 56px);
  box-shadow: 0 18px 50px rgba(5, 58, 55, 0.1);
}
.legal .links {
  background: #eef4ff;
  border: 1px solid #c9dafc;
  border-radius: 16px;
  padding: 16px 20px 16px 36px;
}
.legal ul.plain {
  padding-left: 1.2em;
}

/* ---------- Superficies con color (nada de blanco puro) ---------- */
:root {
  --paper: #f7fcea;
  --paper-2: #eef8d8;
}
.legal .narrow,
.review-inner {
  background: var(--paper);
}
form.wizard,
.wizard {
  background: var(--paper);
}
.wizard .tile,
.wizard input:not([type="radio"]):not([type="checkbox"]),
.wizard select,
.wizard textarea {
  background: #fff;
}
.wizard .tile {
  background: var(--paper-2);
}
.chat .bubble {
  background: #e4f8c8;
}
.legal .links {
  background: #e8f1ff;
}
.hero-dark .chip,
.tire-stage .chip {
  background: var(--paper);
}
.hero-dark h1 em::after {
  display: none;
}
@media (max-width: 640px) {
  .review-bar .stars {
    display: none;
  }
  .review-bar .rb {
    gap: 8px;
    padding: 8px 0;
  }
  .review-bar .rb p {
    flex: 1 1 100%;
    font-size: 0.88rem;
  }
  .review-bar .rb .btn {
    margin-right: auto;
  }
}

/* ---------- Cabecera: logo · menú centrado · teléfono ---------- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  white-space: nowrap;
}
@media (min-width: 1061px) {
  .site-header .wrap {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
  }
  .nav {
    display: contents;
  }
  .nav-links {
    justify-self: center;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(0, 130, 124, 0.15);
    border-radius: 999px;
    padding: 5px;
  }
  .nav-links a {
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 0.92rem;
    transition:
      background 0.2s,
      color 0.2s;
  }
  .nav-links a:hover {
    background: rgba(147, 214, 0, 0.25);
    color: var(--deep);
  }
  .nav-links a[aria-current="page"] {
    background: var(--teal);
    color: #fff !important;
  }
  .nav > .btn {
    justify-self: end;
    white-space: nowrap;
  }
  .brand {
    justify-self: start;
  }
}
@media (max-width: 1060px) {
  #menu {
    display: grid;
  }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px var(--gutter) 28px;
    background: var(--paper, #f7fcea);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(5, 58, 55, 0.12);
    font-size: 1rem;
  }
  .nav.open {
    display: flex;
  }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav a:not(.btn) {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav .btn {
    margin-top: 12px;
    justify-content: center;
  }
  .nav-links a[aria-current="page"]:not(.btn) {
    color: var(--teal);
    font-weight: 700;
  }
}
@media (min-width: 1061px) and (max-width: 1260px) {
  .brand .place {
    display: none;
  }
  .nav-links a {
    padding: 9px 12px;
    font-size: 0.88rem;
  }
  .site-header .wrap {
    gap: 12px;
  }
}

/* ---------- Citas online: selector de día y hora ---------- */
.slots {
  display: grid;
  gap: 18px;
  min-height: 60px;
}
.slots fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.slots legend {
  margin-bottom: 10px;
  font-weight: 700;
}
.slots-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.slots-msg {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--mist);
  font-size: 0.92rem;
}
.slots-msg p {
  margin: 0 0 6px;
}
.slots[aria-busy="true"] .slots-msg p::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 10px;
  vertical-align: -2px;
  border: 2px solid var(--teal);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.days {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.days .pill {
  flex: none;
  scroll-snap-align: start;
}
.days .pill span {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 66px;
  padding: 8px 10px;
  border-radius: 16px;
  line-height: 1.15;
}
.days .pill small {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.75;
}
.days .pill b {
  font-size: 1.25rem;
}
.hours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
}
.hours-grid .pill span {
  display: block;
  padding: 10px 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.form-msg {
  min-height: 1.2em;
  margin: 12px 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #b42318;
}
.form-msg:empty {
  display: none;
}
.alt-wa {
  margin: 18px 0 0;
  text-align: center;
}
.done-when {
  margin-bottom: 8px !important;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--teal);
}
.done-when::first-letter {
  text-transform: uppercase;
}
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.btn.is-busy {
  opacity: 0.7;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .slots[aria-busy="true"] .slots-msg p::before {
    animation: none;
  }
}
.field-note {
  margin: 10px 0 0;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 1000px) and (min-width: 641px) {
  .tire-card:last-child:nth-child(odd) {
    grid-column: 1/-1;
  }
}
.stock-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: #eef8d9;
  border: 1px solid #cfe9a1;
  font-size: 0.9rem;
  line-height: 1.5;
}
.stock-note p {
  margin: 0;
}
.stock-note .ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--lime, #93d600);
  color: #0d2a12;
}
.stock-note .ico .icon {
  width: 18px;
  height: 18px;
}
.turnstile {
  margin: 16px 0 0;
}
.turnstile:empty {
  display: none;
}

/* ---------- Barra fija de acciones en móvil (llamar · WhatsApp · cita) ---------- */
.mobile-bar {
  display: none;
}
@media (max-width: 640px) {
  .wa-float {
    display: none;
  }
  .mobile-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    background: #053a37;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 9px 4px;
    color: #cfe6e1;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }
  .mobile-bar a:last-child {
    border-right: 0;
  }
  .mobile-bar a svg {
    width: 20px;
    height: 20px;
  }
  .mobile-bar a:nth-child(2) {
    color: #93d600;
  }
  .mobile-bar a:nth-child(3) {
    background: #93d600;
    color: #0d2a12;
  }
  body {
    padding-bottom: 64px;
  }
}
