/* ===================================================================
   Automuntatges Km0 — Sistema de diseño 2026
   Taller de automoción · Andorra la Vella · desde 1990
   =================================================================== */
:root {
  --ink: #13151a;
  --ink-2: #1c2027;
  --bg: #ffffff;
  --surface: #f4f6f9;
  --surface-2: #eaeef3;
  --line: #e2e7ee;
  --muted: #5b6473;
  --text: #262b34;
  --accent: #d52a1f;
  --accent-dark: #b3151f;
  --accent-soft: #fde7e8;
  --gold: #f5b301;
  --ok: #1f9d57;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(15, 20, 30, .10);
  --shadow-sm: 0 4px 14px rgba(15, 20, 30, .08);
  --maxw: 1180px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --display: 'Montserrat', var(--font);
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased
}

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

a {
  color: var(--accent);
  text-decoration: none
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 5px 0;
  font-weight: 800;
  letter-spacing: -.02em
}

h1 {
  font-size: clamp(2rem, 5vw, 3.4rem)
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem)
}

h3 {
  font-size: 1.25rem
}

p {
  margin: 0 0 1rem
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px
}

.section {
  padding: 84px 0
}

.section--tight {
  padding: 56px 0
}

.section--dark {
  background: var(--ink);
  color: #cfd5df
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: #fff
}

.section--surface {
  background: var(--surface)
}

.center {
  text-align: center
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 680px
}

.center .lead {
  margin-inline: auto
}

.eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px
}

.section--dark .eyebrow {
  color: #ff5560
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-size: 14px;
  padding: 8px 26px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: .2s;
  white-space: nowrap
}

.btn--primary {
  background: var(--accent);
  color: #fff
}

.btn--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(225, 29, 42, .35)
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line)
}

.section--dark .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .28)
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent)
}

.section--dark .btn--ghost:hover {
  color: #fff
}

.btn--wa {
  background: #25d366;
  color: #fff
}

.btn--wa:hover {
  background: #1eb858;
  transform: translateY(-2px)
}

.btn--lg {
  padding: 8px 34px;
  font-size: 14px
}

.topbar {
  background: var(--ink);
  color: #aeb6c2;
  font-size: 12px
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-block: 8px;
  flex-wrap: wrap
}

.topbar a {
  color: #cfd5df
}

.topbar a:hover {
  color: #fff
}

.topbar .tb-info {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap
}

.topbar .tb-info span {
  display: flex;
  gap: 10px;
}

.topbar .tb-soc {
  display: flex;
  gap: 14px;
  align-items: center
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line)
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 12px
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 800;
  color: var(--ink);
  font-size: 1.15rem;
  letter-spacing: -.02em
}

.brand img {
  height: 46px;
  width: auto
}

.brand span b {
  color: var(--accent)
}

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

.nav-links>li {
  position: relative
}

.nav-links>li>a {
  display: block;
  padding: 10px 14px;
  color: var(--ink);
  font-weight: 600;
  font-size: .95rem;
  border-radius: 8px
}

.nav-links>li>a:hover {
  background: var(--surface);
  color: var(--accent)
}

.nav-links .has-sub>a::after {
  content: "▾";
  margin-left: 6px;
  font-size: .7rem;
  color: var(--muted)
}

.submenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 248px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: .18s;
  list-style: none;
  margin: 0
}

.nav-links>li:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0)
}

.submenu a {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--text);
  font-size: .92rem;
  font-weight: 500
}

.submenu a:hover {
  background: var(--accent-soft);
  color: var(--accent-dark)
}

.submenu .sub-head {
  font-family: var(--display);
  font-weight: 700;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  padding: 10px 14px 4px
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--ink);
  border-radius: 3px;
  margin: 5px 0;
  transition: .2s
}

.hero {
  position: relative;
  color: #fff;
  background: var(--ink);
  overflow: hidden
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(15, 18, 24, .94) 38%, rgba(15, 18, 24, .55) 100%);
  z-index: 2
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: .85
}

.hero-inner {
  position: relative;
  z-index: 3;
  padding: 120px 0 110px;
  max-width: 720px
}

.hero h1 {
  color: #fff;
  margin-bottom: 18px
}

.hero .lead {
  color: #d7dce4;
  font-size: 18px
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: .86rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: #fff
}

.hero-badge b {
  color: var(--gold)
}

.pagehero {
  position: relative;
  color: #fff;
  background: var(--ink);
  overflow: hidden
}

.pagehero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgb(15 18 24 / 55%), rgb(15 18 24 / 70%));
  z-index: 2
}

.pagehero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 1
}

.pagehero-inner {
  position: relative;
  z-index: 3;
  padding: 84px 0 76px;
  max-width: 760px
}

.pagehero h1 {
  color: #fff;
  font-size: 42px;
}

.pagehero .lead {
  color: #d7dce4;
  font-size: 17px;
}

.crumbs {
  font-size: .85rem;
  color: #9aa3b1;
  margin-bottom: 16px
}

.crumbs a {
  color: #cfd5df
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center
}

.stat .num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.6rem;
  color: var(--line);
  line-height: 1
}

.stat .lbl {
  font-size: 16px;
  color: var(--muted);
  margin-top: 6px
}

.section--dark .stat .lbl {
  color: #aeb6c2
}

.grid {
  display: grid;
  gap: 26px
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr)
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr)
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr)
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: .2s
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #d4dae3
}

.card .ico {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-size: 1.5rem
}

.card h3 {
  margin-bottom: 8px
}

.card p {
  color: var(--muted);
  font-size: .97rem;
  margin: 0
}

.fcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: .2s;
  display: flex;
  flex-direction: column
}

.fcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow)
}

.fcard .ph {
  aspect-ratio: 16/10;
  background: var(--surface-2);
  overflow: hidden
}

.fcard .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .4s
}

.fcard:hover .ph img {
  transform: scale(1.05)
}

.fcard .bd {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column
}

.fcard h3 {
  margin-bottom: 8px;
  font-size: 19px;
  font-weight: 700;
}

.fcard p {
  color: var(--muted);
  font-size: .95rem;
  flex: 1
}

.fcard .more {
  margin-top: 14px;
  font-family: var(--display);
  font-weight: 700;
  font-size: .9rem;
  color: var(--accent)
}

.pcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: .2s;
  display: flex;
  flex-direction: column
}

.pcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #d4dae3
}

.pcard .ph {
  aspect-ratio: 4/3;
  background: #fff;
  display: grid;
  place-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--line)
}

.pcard .ph img {
  max-height: 100%;
  width: auto;
  object-fit: contain
}

.pcard .bd {
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column
}

.pcard .tag {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted)
}

.pcard h3 {
  font-size: 1.05rem;
  margin: 4px 0 6px
}

.pcard p {
  font-size: .88rem;
  color: var(--muted);
  margin: 0 0 12px;
  flex: 1
}

.pcard .more {
  font-family: var(--display);
  font-weight: 700;
  font-size: .85rem;
  color: var(--accent)
}

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 50px;
  align-items: center
}

.split.rev .split-media {
  order: 2
}

.split-media img {
  border-radius: var(--radius);
  /* box-shadow: var(--shadow) */
  max-height: 350px;
  margin: 0 auto;
}

.image-jesus img {
  border-radius: var(--radius);
  max-height: 580px;
  width: 100%;
  object-fit: cover;
}

.split-body h2 {
  margin-bottom: 14px
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 18px 0 0
}

.ticks li {
  position: relative;
  padding: 7px 0 7px 32px;
  color: var(--text)
}

.ticks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 7px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: .75rem;
  display: grid;
  place-items: center;
  font-weight: 700
}

.logos {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: center
}

.logos .chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 20px;
  height: 78px;
  display: grid;
  place-items: center;
  min-width: 120px
}

.logos .chip img {
  max-height: 46px;
  width: auto;
  filter: grayscale(.2)
}

.quote {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm)
}

.quote .stars {
  color: var(--gold);
  font-size: 1.05rem;
  letter-spacing: 2px;
  margin-bottom: 10px
}

.quote p {
  font-style: italic;
  color: var(--text)
}

.quote .who {
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink);
  margin-top: 8px
}

.spectable {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden
}

.spectable th,
.spectable td {
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  font-size: .95rem
}

.spectable th {
  width: 42%;
  color: var(--muted);
  font-weight: 600;
  background: var(--surface)
}

.spectable tr:last-child th,
.spectable tr:last-child td {
  border-bottom: 0
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0
}

.pill {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text)
}

.cta-section {
  background: linear-gradient(120deg, var(--accent), var(--accent-dark));
  display: flex;
  align-items: center;
  padding: 30px 0;
}

.cta-section .container {
  width: 100%
}

.ctaband {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap
}

.ctaband h2 {
  color: #fff;
  margin: 0;
  font-size: 30px;
}

.ctaband p {
  color: rgba(255, 255, 255, .9);
  margin: 4px 0 0
}

.ctaband .btn--primary {
  background: #fff;
  color: var(--accent-dark)
}

.ctaband .btn--primary:hover {
  background: #13151a;
  color: #fff
}

.ctaband .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .5)
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px
}

.info-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 16px
}

.info-card .ico {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 1.3rem
}

.info-card h4 {
  margin: 0 0 3px;
  font-size: 1.02rem
}

.info-card p,
.info-card a {
  margin: 0;
  color: var(--muted);
  font-size: .95rem
}

.form label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin: 14px 0 6px;
  color: var(--ink)
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--text)
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft)
}

.form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px
}

.form .note {
  font-size: .82rem;
  color: var(--muted);
  margin-top: 12px
}

.hours {
  width: 100%;
  border-collapse: collapse
}

.hours td {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: .95rem
}

.hours td:last-child {
  text-align: right;
  color: var(--muted);
  font-weight: 600
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm)
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 340px;
  border: 0
}

.site-footer {
  background: var(--ink);
  color: #aab2bf;
  padding: 45px 0 18px;
  font-size: 13px
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 36px
}

.site-footer h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 16px;
  font-weight: 600;
}

.site-footer a {
  color: #aab2bf
}

.site-footer a:hover {
  color: #fff
}

.fcol ul {
  list-style: none;
  padding: 0;
  margin: 0
}

.fcol li {
  margin-bottom: 9px
}

.fbrand img {
  height: 54px;
  margin-bottom: 14px
}

.fsoc {
  display: flex;
  gap: 12px;
  margin-top: 14px
}

.fsoc a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  display: grid;
  place-items: center;
  color: #fff
}

.fsoc a:hover {
  background: var(--accent)
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin-top: 44px;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #95999f
}

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
  transition: .2s
}

.wa-float:hover {
  transform: scale(1.08)
}

.wa-float svg {
  width: 30px;
  height: 30px
}

.mt-0 {
  margin-top: 0
}

.mb-0 {
  margin-bottom: 0
}

.maxw-narrow {
  max-width: 760px;
  margin-inline: auto
}

@media(max-width:980px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr)
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr)
  }

  .split {
    grid-template-columns: 1fr;
    gap: 30px
  }

  .split.rev .split-media {
    order: 0
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px
  }

  .nav-links,
  .topbar .tb-info span.hide-sm {
    display: none
  }

  .nav-toggle {
    display: block
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 10px 16px 18px;
    gap: 2px
  }

  .nav-links.open>li>a {
    padding: 12px 8px;
    border-bottom: 1px solid var(--surface)
  }

  .nav-links.open .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 6px 12px;
    min-width: auto
  }

  .nav-links.open .has-sub>a::after {
    display: none
  }
}

@media(max-width:620px) {
  body {
    font-size: 16px
  }

  .section {
    padding: 60px 0
  }

  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr
  }

  .cta-section {
    height: auto;
    padding: 28px 0
  }

  .ctaband {
    justify-content: center;
    text-align: center
  }

  .hero-inner {
    padding: 84px 0 72px
  }

  .stats {
    grid-template-columns: 1fr 1fr
  }

  .form .row {
    grid-template-columns: 1fr
  }

  .footer-grid {
    grid-template-columns: 1fr
  }
}

/* Fix: botones fantasma sobre cabeceras oscuras (hero y pagehero) */
.hero .btn--ghost,
.pagehero .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .45)
}

.hero .btn--ghost:hover,
.pagehero .btn--ghost:hover {
  color: #fff;
  border-color: var(--accent);
  background: rgba(255, 255, 255, .12)
}
