/* Gea Automotriz — estilos */
:root {
  --ink: #1D2733;
  --ink-2: #2A3645;
  --steel: #5A6573;
  --concrete: #E9EBE8;
  --paper: #FFFFFF;
  --line: #CDD2D6;
  --signal: #F2B705;
  --signal-deep: #C99400;
  --wa: #1E8A4C;
  --error: #B42318;

  --f: "Archivo", "Arial Narrow", Arial, sans-serif;
  --wrap: 1160px;
  --gut: 20px;
  --r: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--f);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--f);
  font-stretch: 72%;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.005em;
  margin: 0 0 .5em;
}
h2 { font-size: clamp(30px, 4.2vw, 46px); }
h3 { font-size: 22px; font-stretch: 80%; font-weight: 700; line-height: 1.15; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--signal); color: var(--ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.wrap--narrow { max-width: 820px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: var(--ink); color: #fff; border-bottom: 4px solid var(--signal); }
.top__in { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-stretch: 70%; font-weight: 800; font-size: 26px; letter-spacing: .01em; }
.brand__sub { font-size: 13px; color: #B9C2CC; margin-top: 3px; }
.top__nav { display: flex; gap: 22px; margin-left: auto; }
.top__nav a { text-decoration: none; font-size: 15px; color: #DDE3E8; }
.top__nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.top__call {
  text-decoration: none; font-weight: 700; font-size: 17px;
  background: var(--signal); color: var(--ink); padding: 9px 14px; border-radius: var(--r);
  white-space: nowrap;
}
.top__call:hover { background: #FFC81F; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 22px; border-radius: var(--r);
  font: 700 17px/1 var(--f); text-decoration: none; cursor: pointer; color: inherit;
  border: 2px solid transparent;
}
.btn--primary { background: var(--signal); color: var(--ink) !important; }
.btn--primary:hover { background: #FFC81F; }
.btn--line { background: transparent; border-color: currentColor; }
.btn--line:hover { background: rgba(255,255,255,.08); }
.btn--wa { background: var(--wa); color: #fff; }
.btn[hidden], [hidden] { display: none !important; }

/* Hero */
.hero { background: var(--ink); color: #fff; padding: 56px 0 72px; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
.hero__place { color: var(--signal); font-weight: 600; margin-bottom: 14px; }
.hero h1 {
  font-size: clamp(46px, 7.4vw, 96px);
  font-stretch: 62%;
  line-height: .94;
  margin-bottom: 24px;
  max-width: 11ch;
}
.hero__lead { font-size: 20px; color: #DDE3E8; max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }
.hero__facts { list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid #3B4859; display: flex; flex-wrap: wrap; gap: 10px 36px; color: #B9C2CC; font-size: 15px; }
.hero__facts strong { display: block; color: #fff; font-stretch: 72%; font-size: 26px; line-height: 1.1; }

/* Ticket — orden de servicio */
.ticket {
  position: relative;
  background: var(--paper); color: var(--ink);
  border-radius: 4px;
  padding: 0 0 4px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  transform: rotate(1.2deg);
  margin-top: 8px;
}
.ticket::before, .ticket::after {
  content: ""; position: absolute; left: 0; right: 0; height: 10px;
  background: radial-gradient(circle at 6px 0, transparent 5px, var(--paper) 5.5px) 0 0 / 12px 10px repeat-x;
}
.ticket::after { bottom: -10px; }
.ticket::before { display: none; }
.ticket__head { background: var(--signal); padding: 18px 24px 14px; border-radius: 4px 4px 0 0; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ticket__head h2 { font-size: 26px; margin: 0; font-stretch: 70%; }
.ticket__head p { margin: 0; font-size: 13px; font-weight: 600; white-space: nowrap; }
.ticket__steps { list-style: none; counter-reset: s; margin: 0; padding: 8px 24px; }
.ticket__steps li {
  counter-increment: s;
  position: relative;
  padding: 14px 0 14px 50px;
  border-bottom: 1px dashed var(--line);
  font-size: 16px; color: var(--steel);
}
.ticket__steps li:last-child { border-bottom: 0; }
.ticket__steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: 8px;
  font-stretch: 62%; font-weight: 800; font-size: 40px; line-height: 1; color: var(--ink);
}
.ticket__steps span { display: block; color: var(--ink); font-weight: 700; font-size: 18px; }
.ticket__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin: 0 24px; padding: 14px 0 16px; border-top: 2px solid var(--ink); font-size: 14px; font-weight: 600; }

/* Sections */
.section { padding: 80px 0; }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; }
.section__head h2 { margin: 0; }
.section__head p { margin: 0; max-width: 30em; color: var(--steel); }

.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 56px; }
.services li { padding: 22px 0; border-top: 2px solid var(--ink); }
.services h3 { margin-bottom: 6px; }
.services p { margin: 0; color: var(--steel); max-width: 36em; }

.section--photos { background: var(--concrete); }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.photos figure { margin: 0; }
.photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.photos figcaption { font-size: 14px; color: var(--steel); margin-top: 6px; }

.section--reviews { background: var(--concrete); }
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.review { margin: 0; background: var(--paper); padding: 22px; border-left: 4px solid var(--signal); }
.review__stars { color: var(--signal-deep); letter-spacing: 2px; font-size: 18px; }
.review__text { margin: 10px 0 14px; }
.review__by { margin: 0; font-size: 14px; color: var(--steel); }
.review__by strong { color: var(--ink); }
.reviews__empty { margin: 0; color: var(--steel); max-width: 40em; }
.reviews__more { margin: 28px 0 0; }
.link { font-weight: 700; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--signal); }
.link:hover { text-decoration-color: var(--ink); }

/* FAQ */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-weight: 700; font-size: 19px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 30px; font-weight: 400; line-height: 1.2; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--steel); padding-bottom: 8px; max-width: 42em; }

/* Contact */
.section--contact { background: var(--ink); color: #fff; }
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; }
.contact__form > p { color: #DDE3E8; }
.contact__info { background: var(--ink-2); padding: 28px; border-radius: var(--r); align-self: start; }
.contact__info h2 { font-size: 30px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 15px; }
.field em, .check em { font-style: normal; color: #9FAAB6; font-weight: 400; }
.field small { color: #9FAAB6; font-size: 13px; }
.field input, .field select, .field textarea {
  font: 400 17px/1.4 var(--f); color: var(--ink);
  background: #fff; border: 2px solid #fff; border-radius: var(--r);
  padding: 12px 12px; min-height: 50px; width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--signal); }
.field input:user-invalid, .field select:user-invalid { border-color: #F97066; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: #DDE3E8; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--signal); flex: none; }
.check a { color: #fff; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: #FEE4E2; color: var(--error); padding: 12px 14px; border-radius: var(--r); font-weight: 600; }

.info { margin: 0 0 18px; }
.info div { padding: 12px 0; border-bottom: 1px solid #3B4859; }
.info dt { font-size: 14px; color: #9FAAB6; }
.info dd { margin: 2px 0 0; font-weight: 600; }
.info a { color: #fff; }
.note { font-size: 15px; color: var(--signal); }
.map { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; color: #fff; }
.map .link { color: #fff; }
.map iframe { width: 100%; height: 280px; border: 0; border-radius: var(--r); }

/* Footer */
.foot { background: #151C25; color: #B9C2CC; font-size: 15px; padding: 48px 0 96px; }
.foot__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.foot p { margin: 0 0 6px; }
.foot strong, .foot__brand { color: #fff; }
.foot__brand { font-stretch: 72%; font-weight: 800; font-size: 22px; }
.foot a { color: #DDE3E8; }
.foot__legal { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 32px; padding-top: 20px; border-top: 1px solid #2E3A49; align-items: center; }
.foot__legal span { margin-left: auto; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: #DDE3E8; text-decoration: underline; cursor: pointer; }

/* Mobile dock */
.dock { display: none; }

/* Legal pages */
.page-head { background: var(--ink); color: #fff; padding: 48px 0 40px; }
.page-head h1 { font-size: clamp(38px, 6vw, 64px); font-stretch: 64%; margin: 0 0 8px; }
.page-head p { margin: 0; color: #B9C2CC; }
.legal { padding: 48px 0 80px; }
.legal h2 { font-size: 28px; margin-top: 1.6em; }
.legal p, .legal li { max-width: 46em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.legal table { border-collapse: collapse; width: 100%; max-width: 46em; font-size: 15px; margin-bottom: 1em; }
.legal th, .legal td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; }
.legal a { text-underline-offset: 3px; }

.center { padding: 96px 0; }
.center h1 { font-size: clamp(42px, 7vw, 80px); font-stretch: 62%; }
.center p { max-width: 36em; font-size: 19px; color: var(--steel); }
.center .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.center .btn--line { color: var(--ink); }

/* Cookie banner */
.cookie {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
  max-width: 720px; margin: 0 auto;
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink); border-radius: var(--r);
  padding: 18px 20px; box-shadow: 0 10px 30px rgba(0,0,0,.25);
  font-size: 15px;
}
.cookie p { margin: 0 0 12px; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie .btn { min-height: 44px; font-size: 15px; padding: 0 16px; }
.cookie .btn--line { color: var(--ink); }
.cookie__opts { margin: 0 0 12px; display: grid; gap: 8px; }
.cookie__opts label { display: flex; gap: 10px; align-items: flex-start; }
.cookie__opts input { width: 20px; height: 20px; accent-color: var(--ink); margin-top: 2px; }

@media (max-width: 960px) {
  .top__nav { display: none; }
  .top__call { margin-left: auto; }
  .hero__grid, .contact { grid-template-columns: 1fr; gap: 40px; }
  .ticket { transform: none; }
  .services { grid-template-columns: 1fr; }
  .section__head { flex-direction: column; align-items: start; gap: 10px; }
  .foot__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --gut: 16px; }
  .top__in { min-height: 58px; }
  .brand__name { font-size: 23px; }
  .top__call { font-size: 15px; padding: 8px 10px; }
  .hero { padding: 36px 0 52px; }
  .hero__lead { font-size: 18px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .section { padding: 56px 0; }
  .form { grid-template-columns: 1fr; }
  .contact__info { padding: 22px 18px; }
  .ticket__head { flex-direction: column; gap: 2px; }
  .ticket__head, .ticket__steps { padding-left: 18px; padding-right: 18px; }
  .ticket__foot { margin: 0 18px; }
  .foot__legal span { margin-left: 0; }
  .dock {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--ink); border-top: 3px solid var(--signal);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 8px;
  }
  .dock a {
    flex: 1; text-align: center; text-decoration: none; font-weight: 700; color: #fff;
    padding: 12px 6px; border-radius: var(--r); border: 2px solid #3B4859;
  }
  .dock a:last-child { background: var(--signal); color: var(--ink); border-color: var(--signal); }
  .cookie { bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.reviews__source { margin: 18px 0 0; font-size: 14px; color: var(--steel); }
.review__by a { color: var(--ink); text-decoration: none; }
.review__by a:hover { text-decoration: underline; }
.review__text { white-space: pre-line; }
.reviews { align-items: start; }
.reviews { display: block; columns: 3 300px; column-gap: 16px; }
.review { break-inside: avoid; margin: 0 0 16px; }
.facade { margin: 0 0 18px; }
.facade img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; border-radius: var(--r); }
.facade figcaption { font-size: 14px; color: #B9C2CC; margin-top: 6px; }
