/* =========================================================
   YIYO LLANTAS — hoja de estilos principal
   Paleta: negro, amarillo, blanco, rojo (identidad de la marca)
   ========================================================= */
:root {
  --black: #0a0a0c;
  --ink: #121216;
  --panel: #18181d;
  --line: #2a2a31;
  --yellow: #ffd400;
  --yellow-2: #ffb800;
  --red: #e10600;
  --white: #ffffff;
  --muted: #b7b7c0;
  --wa: #25d366;
  --radius: 16px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--white); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--black); padding: 8px 14px; z-index: 999; font-weight: 700; }
.skip:focus { left: 8px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.02;
  text-transform: uppercase;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.5rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); letter-spacing: .02em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #e6e6ea; max-width: 62ch; }
.muted { color: var(--muted); }
.y { color: var(--yellow); }
.r { color: var(--red); }

/* Brush underline (eco del trazo rojo de la tarjeta) */
.brush { position: relative; display: inline-block; z-index: 0; }
.brush::after {
  content: ""; position: absolute; left: -4%; right: -4%; bottom: .02em; height: .32em; z-index: -1;
  background: var(--red); transform: skewX(-14deg) scaleX(0); transform-origin: left;
  animation: brush 1s .5s var(--ease) forwards;
  clip-path: polygon(0 30%, 6% 0, 100% 10%, 97% 100%, 3% 85%);
}
@keyframes brush { to { transform: skewX(-14deg) scaleX(1); } }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--yellow);
  margin-bottom: 14px;
}
.kicker::before { content: ""; width: 28px; height: 3px; background: var(--red); }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--yellow); --fg: var(--black);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; min-height: 52px; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg);
  font: 800 .95rem/1 var(--body); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  box-shadow: 0 6px 0 rgba(0,0,0,.35);
}
.btn:hover { transform: translateY(-2px); color: var(--fg); box-shadow: 0 10px 24px rgba(255, 212, 0, .25); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--wa { --bg: var(--wa); --fg: #062b12; }
.btn--wa:hover { box-shadow: 0 10px 24px rgba(37, 211, 102, .3); }
.btn--red { --bg: var(--red); --fg: var(--white); }
.btn--ghost { --bg: transparent; --fg: var(--white); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--yellow); color: var(--yellow); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Barra superior + header ---------- */
.topbar { background: var(--yellow); color: var(--black); font-size: .82rem; font-weight: 700; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; flex-wrap: wrap; }
.topbar a { color: var(--black); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .tb-links { display: flex; gap: 18px; }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 12, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.logo img, .logo svg { width: 60px; height: 60px; transition: transform .8s var(--ease); }
.logo:hover img { transform: rotate(-12deg) scale(1.06); }
.logo b { font-family: var(--display); font-weight: 400; font-size: 1.55rem; letter-spacing: .03em; line-height: 1; }
.logo b span { color: var(--yellow); }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav a, .nav button.dd-toggle {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 10px;
  color: var(--white); text-decoration: none; font: 600 .93rem var(--body); background: none; border: 0; cursor: pointer;
}
.nav a:hover, .nav button.dd-toggle:hover, .nav a[aria-current="page"] { color: var(--yellow); }
.nav .has-dd { position: relative; }
.nav .dd {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 270px; display: block;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s var(--ease);
  box-shadow: 0 20px 40px rgba(0,0,0,.45);
}
.nav .dd li { display: block; }
.nav .dd a { display: flex; width: 100%; padding: 10px 12px; }
.nav .has-dd:hover .dd, .nav .has-dd.open .dd, .nav .has-dd:focus-within .dd { opacity: 1; visibility: visible; transform: none; }
.nav .nav-cta { margin-left: 8px; }
.nav .nav-cta a { background: var(--yellow); color: var(--black); border-radius: 999px; padding: 10px 18px; font-weight: 800; }
.nav .nav-cta a:hover { color: var(--black); background: var(--white); }

.burger { display: none; width: 48px; height: 48px; border: 0; background: var(--panel); border-radius: 12px; cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after {
  position: absolute; left: 13px; width: 22px; height: 2px; background: var(--white); content: ""; transition: .25s var(--ease);
}
.burger span { top: 23px; }
.burger span::before { top: -7px; left: 0; }
.burger span::after { top: 7px; left: 0; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .burger { display: block; position: relative; z-index: 2; }
  .header .logo { position: relative; z-index: 2; }
  /* backdrop-filter crea un contenedor para elementos fixed: se desactiva en móvil */
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--black); }
  .nav {
    position: fixed; inset: 0; background: var(--black); padding: 124px 16px 120px; overflow-y: auto;
    transform: translateX(100%); transition: transform .35s var(--ease); border-top: 1px solid var(--line);
  }
  .nav.open { transform: none; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a, .nav button.dd-toggle { font-size: 1.1rem; padding: 14px 12px; width: 100%; justify-content: space-between; }
  .nav .dd { position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; margin: 0 0 8px; }
  .nav .has-dd.open .dd { display: block; }
  .nav .has-dd:hover .dd { display: none; }
  .nav .has-dd.open:hover .dd { display: block; }
  .nav .nav-cta { margin: 12px 0 0; }
  .nav .nav-cta a { justify-content: center; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 640px) {
  .topbar .tb-msg { display: none; }
  .topbar .wrap { justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 9vw, 110px); }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; transform: scale(1.06); animation: heroZoom 14s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 90% at 85% 10%, rgba(225, 6, 0, .28), transparent 60%),
    linear-gradient(100deg, var(--black) 18%, rgba(10,10,12,.82) 55%, rgba(10,10,12,.45));
}
.hero::after { /* franja amarilla diagonal */
  content: ""; position: absolute; right: -10%; bottom: -60px; width: 70%; height: 120px; z-index: -1;
  background: repeating-linear-gradient(135deg, var(--yellow) 0 26px, var(--black) 26px 52px);
  transform: rotate(-6deg); opacity: .9;
}
.hero__grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero h1 .line { display: block; }
.hero .lead { margin-bottom: 28px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; padding: 0; list-style: none; }
.hero__badges li {
  font-size: .85rem; font-weight: 700; padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
}
.hero__badges li::before { content: "✓ "; color: var(--yellow); }
.tire-spin { width: min(100%, 420px); margin-inline: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.6)); }
.tire-spin img { width: 100%; height: auto; animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-12px) rotate(-1.5deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

.page-hero { padding: clamp(48px, 7vw, 90px) 0 clamp(40px, 6vw, 70px); }
.page-hero h1 { font-size: clamp(2.3rem, 6vw, 4.6rem); }

/* Breadcrumbs */
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #555; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--yellow); }

/* ---------- Marquee ---------- */
.marquee { background: var(--red); color: var(--white); overflow: hidden; border-block: 3px solid var(--black); }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { font-family: var(--display); font-size: 1.5rem; text-transform: uppercase; padding: 12px 22px; white-space: nowrap; }
.marquee span::after { content: "●"; color: var(--yellow); margin-left: 44px; font-size: .9rem; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; position: relative; }
.section--alt { background: var(--ink); }
.section--yellow { background: var(--yellow); color: var(--black); }
.section--yellow .kicker { color: var(--black); }
.section--yellow a:not(.btn) { color: var(--black); }
.section__head { max-width: 760px; margin-bottom: 44px; }
.section__head.center { margin-inline: auto; text-align: center; }
.section__head.center .kicker { justify-content: center; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } .hero__grid { grid-template-columns: 1fr; } .tire-spin { width: 62%; } }
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; } .tire-spin { display: none; } }

/* Tarjeta de servicio */
.card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; text-decoration: none; color: var(--white); overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--yellow), var(--red)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
a.card:hover { transform: translateY(-6px); border-color: #3b3b44; box-shadow: 0 24px 50px rgba(0,0,0,.45); color: var(--white); }
a.card:hover::before { transform: scaleX(1); }
.card h3 { margin: 0; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.card .more { margin-top: auto; padding-top: 8px; color: var(--yellow); font-weight: 800; font-size: .9rem; }
.card .ico {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  border: 3px solid var(--yellow); color: var(--white); margin-bottom: 6px; background: #000;
}
.card .ico svg { width: 34px; height: 34px; }
.card--img { padding: 0; }
.card--img img { aspect-ratio: 16/10; object-fit: cover; width: 100%; transition: transform .6s var(--ease); }
a.card--img:hover img { transform: scale(1.05); }
.card--img .card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

/* Split media */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split__media::after {
  content: ""; position: absolute; inset: auto -14px -14px auto; width: 45%; height: 45%;
  border: 4px solid var(--yellow); border-radius: var(--radius); z-index: -1;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--rev .split__media { order: 0; } }

/* Pasos */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { counter-increment: step; position: relative; padding: 18px 20px 18px 74px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 18px; top: 16px;
  font-family: var(--display); font-size: 1.7rem; color: var(--yellow);
}
.steps strong { display: block; margin-bottom: 2px; }
.steps span { color: var(--muted); font-size: .96rem; }

/* Listas con check */
.checks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--yellow); box-shadow: inset 0 0 0 4px var(--black); outline: 2px solid var(--yellow); }
.section--yellow .checks li::before { background: var(--black); box-shadow: inset 0 0 0 4px var(--yellow); outline-color: var(--black); }
.x-list li::before { background: var(--red); outline-color: var(--red); }

/* Aviso */
.note { border-left: 4px solid var(--red); background: rgba(225, 6, 0, .08); padding: 16px 20px; border-radius: 0 12px 12px 0; margin: 20px 0; }
.note strong { color: var(--white); }

/* Prosa (blog / textos largos) */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--radius); margin: 24px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--panel); color: var(--yellow); }
.table-wrap { overflow-x: auto; }
.meta { color: var(--muted); font-size: .9rem; margin-bottom: 24px; }

/* Layout con barra lateral */
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.aside { position: sticky; top: 96px; display: grid; gap: 18px; }
.aside .box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.aside .box h3 { font-size: 1.3rem; }
.aside .box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.aside .box a { text-decoration: none; }
.aside .box--cta { background: var(--yellow); color: var(--black); border: 0; }
.aside .box--cta p { color: #222; }
.aside .btn { width: 100%; }
@media (max-width: 960px) { .with-aside { grid-template-columns: 1fr; } .aside { position: static; } }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.6rem; color: var(--yellow); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* Chips de municipios */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips a {
  display: inline-block; padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 700;
  background: var(--panel); border: 1px solid var(--line); color: var(--white); transition: .2s var(--ease);
}
.chips a:hover, .chips a[aria-current="page"] { background: var(--yellow); color: var(--black); border-color: var(--yellow); }

/* Mapa SVG de cobertura */
.coverage { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.coverage svg { width: 100%; height: auto; }
.coverage .town { cursor: pointer; }
.coverage .town circle { fill: var(--yellow); transition: r .2s; }
.coverage .town:hover circle, .coverage .town:focus circle { fill: var(--red); }
.coverage .town text { fill: var(--white); font: 700 13px var(--body); }
@media (max-width: 860px) { .coverage { grid-template-columns: 1fr; } }

/* CTA banda */
.cta-band { position: relative; overflow: hidden; background: var(--red); padding: clamp(48px, 7vw, 80px) 0; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; opacity: .12;
  background: repeating-linear-gradient(45deg, #000 0 2px, transparent 2px 18px);
}
.cta-band .wrap { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; max-width: 16ch; }
.cta-band p { margin: 8px 0 0; color: #ffe1e0; }

/* Teléfonos grandes */
.phones { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.phone-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.phone-card small { display: block; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: .72rem; color: var(--muted); }
.phone-card .num { font-family: var(--display); font-size: clamp(2rem, 4vw, 2.6rem); color: var(--yellow); display: block; margin: 6px 0 14px; text-decoration: none; }
.phone-card .btn-row .btn { flex: 1; min-width: 140px; }
@media (max-width: 760px) { .phones { grid-template-columns: 1fr; } }
.phone-card--solo { max-width: 820px; margin-inline: auto; text-align: center; }
.phone-card--solo .btn-row { justify-content: center; }

/* ---------- Formulario ---------- */
.form { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 4vw, 36px); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: .9rem; }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid #3a3a43; background: #0e0e12; color: var(--white);
  font: 500 1rem var(--body); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 212, 0, .2); }
.field .err { color: #ff7a75; font-size: .85rem; min-height: 1em; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--yellow); flex: none; }
.form .hp { position: absolute; left: -9999px; }
.form-status { margin-top: 14px; font-weight: 700; }
.form-status.ok { color: var(--wa); }
.form-status.bad { color: #ff7a75; }
.form .btn { width: 100%; }

/* Mapa */
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel); aspect-ratio: 16/10; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.25) contrast(1.05); }

/* ---------- Footer ---------- */
.footer { background: #050506; border-top: 4px solid var(--yellow); padding: 64px 0 120px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.footer h2 { font-size: 1.25rem; color: var(--yellow); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: #d8d8de; text-decoration: none; }
.footer a:hover { color: var(--yellow); }
.footer address { font-style: normal; color: #d8d8de; }
.footer .slogan { font-family: var(--display); font-size: 1.3rem; text-transform: uppercase; color: var(--white); margin-top: 14px; }
.footer__bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: #8a8a94; font-size: .85rem; }
.footer__bottom a { color: #8a8a94; }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Flotantes ---------- */
.fab { position: fixed; right: 18px; bottom: 22px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fab__main {
  width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.45);
  animation: pulse 2.6s ease-out infinite;
}
.fab__main svg { width: 34px; height: 34px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55), 0 10px 30px rgba(0,0,0,.45); } 70% { box-shadow: 0 0 0 18px rgba(37,211,102,0), 0 10px 30px rgba(0,0,0,.45); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0), 0 10px 30px rgba(0,0,0,.45); } }
.fab__menu {
  display: grid; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 10px; width: 270px;
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.97); transform-origin: bottom right; transition: .22s var(--ease);
  box-shadow: 0 20px 40px rgba(0,0,0,.5);
}
.fab.open .fab__menu { opacity: 1; visibility: visible; transform: none; }
.fab__menu a { display: flex; flex-direction: column; padding: 12px 14px; border-radius: 12px; text-decoration: none; color: var(--white); background: #0e0e12; }
.fab__menu a:hover { background: #1f2a22; color: var(--white); }
.fab__menu a small { color: var(--muted); font-size: .78rem; }
.fab__menu a b { color: var(--wa); font-size: 1.05rem; }
.fab__call {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: var(--black);
  box-shadow: 0 10px 30px rgba(0,0,0,.45); text-decoration: none;
}
.fab__call svg { width: 26px; height: 26px; }

.mbar { display: none; }
@media (max-width: 760px) {
  .fab { bottom: 82px; right: 14px; }
  .fab__call { display: none; }
  .mbar {
    display: grid; grid-template-columns: 1fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 59;
    background: #050506; border-top: 1px solid var(--line); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 6px;
  }
  .mbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 10px; text-decoration: none; font-size: .74rem; font-weight: 800; color: var(--white); background: var(--panel); }
  .mbar a svg { width: 22px; height: 22px; }
  .mbar a.m-call { background: var(--yellow); color: var(--black); }
  .mbar a.m-wa { background: var(--wa); color: #062b12; }
}

/* ---------- Animación de aparición ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .tire-spin img, .marquee__track, .fab__main, .hero__bg img { animation: none; }
}

/* Blog list */
.post-card time { color: var(--yellow); font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }

/* Créditos */
.credits li { margin-bottom: 10px; color: var(--muted); }
