/* Tuerca Brava Auto Repair: muestra ficticia de taller mecánico (XPY wb) */
:root {
  --navy: #14213D;
  --navy-2: #1D2F55;
  --yellow: #FCA311;
  --white: #FFFFFF;
  --gray: #E5E5E5;
  --gray-2: #F4F5F7;
  --text: #14213D;
  --muted: #4A5568;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ls-on-bg: var(--navy);
  --ls-on-fg: var(--white);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--text); font: 400 1.0625rem/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1; margin: 0; text-transform: uppercase; letter-spacing: .01em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 14px; background: var(--navy); color: var(--white); }
.skip:focus { top: 12px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 6px; border: 2px solid transparent;
  font: 700 1.05rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, filter .2s ease;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn--yellow { background: var(--yellow); color: var(--navy); }
.btn--navy-line { border-color: var(--navy); color: var(--navy); }
.btn--block { width: 100%; }

/* Header */
.site-header { background: var(--navy); color: var(--white); }
.site-header__inner { display: flex; align-items: center; gap: 24px; width: min(1160px, 100% - 40px); margin-inline: auto; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand__mark { width: 36px; height: 36px; }
.brand__name { font: 700 1.55rem/1 var(--display); text-transform: uppercase; }
.brand__name small { display: block; font: 600 .72rem/1.3 var(--body); letter-spacing: .28em; color: var(--yellow); }
.site-nav { display: flex; gap: 24px; font-weight: 500; }
.site-nav a { text-decoration: none; padding: 6px 0; }
.site-nav a:hover { color: var(--yellow); }
.lang-switch { background: var(--navy-2); --ls-on-bg: var(--yellow); --ls-on-fg: var(--navy); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--white); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 33, 61, .96) 0%, rgba(20, 33, 61, .82) 45%, rgba(20, 33, 61, .35) 100%); }
.hero__inner { position: relative; z-index: 1; width: min(1160px, 100% - 40px); margin-inline: auto; padding: clamp(64px, 10vw, 120px) 0; display: grid; grid-template-columns: 1.3fr .9fr; gap: 40px; align-items: center; }
.badge { display: inline-block; padding: 6px 12px; background: var(--yellow); color: var(--navy); font: 700 .85rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; border-radius: 4px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(3rem, 7.4vw, 6rem); max-width: 11ch; }
.hero__sub { margin-top: 20px; max-width: 32rem; font-size: 1.15rem; color: #DCE3F0; }
.quote-card { background: var(--white); color: var(--navy); border-radius: 12px; padding: 28px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); border-top: 6px solid var(--yellow); }
.quote-card__title { font: 700 1.6rem/1.1 var(--display); text-transform: uppercase; margin-bottom: 16px; }
.quote-card__steps { margin: 0 0 22px; padding-left: 1.3em; display: grid; gap: 10px; color: var(--muted); }
.quote-card__steps li::marker { color: var(--navy); font-weight: 700; }

/* Servicios */
.services { padding: clamp(64px, 9vw, 110px) 0; }
.eyebrow { font: 700 .9rem/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: #9A6200; margin-bottom: 10px; }
.eyebrow--light { color: var(--yellow); }
.services h2, .gallery h2 { font-size: clamp(2.6rem, 6vw, 4.2rem); margin-bottom: 34px; }
.services__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.services__grid li { padding: 26px; background: var(--gray-2); border-radius: 10px; border-left: 4px solid var(--yellow); }
.services__grid svg { width: 34px; height: 34px; fill: none; stroke: var(--navy); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.services__grid h3 { font-size: 1.5rem; margin-bottom: 8px; }
.services__grid p { color: var(--muted); }

/* Promesa */
.promise { background: var(--navy); color: var(--white); padding: clamp(64px, 9vw, 110px) 0; }
.promise__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.promise h2 { font-size: clamp(2.6rem, 5.6vw, 4rem); }
.promise__list { list-style: none; margin: 0; padding: 0; counter-reset: p; display: grid; gap: 14px; }
.promise__list li { counter-increment: p; position: relative; padding: 22px 22px 22px 76px; background: var(--navy-2); border-radius: 10px; }
.promise__list li::before { content: counter(p); position: absolute; left: 22px; top: 18px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--navy); font: 700 1.3rem/1 var(--display); }
.promise__list b { display: block; font-size: 1.15rem; margin-bottom: 4px; }
.promise__list p { color: #C9D2E3; }

/* Galería */
.gallery { padding: clamp(64px, 9vw, 110px) 0 0; }
.gallery__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.gallery__grid img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }

/* Visita */
.visit { padding: clamp(64px, 9vw, 110px) 0; }
.visit__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 56px); align-items: stretch; }
.visit h2 { font-size: clamp(2.4rem, 5vw, 3.4rem); margin-bottom: 20px; }
.hours { margin: 0 0 10px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--gray); }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.note { font: 700 .8rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.visit__address { display: flex; gap: 8px; align-items: center; margin: 22px 0; font-weight: 600; }
.visit__address svg { width: 22px; height: 22px; color: var(--navy); flex: none; }
.visit__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.visit__map { min-height: 320px; border-radius: 12px; }

/* Footer */
.site-footer { background: var(--navy); color: #C9D2E3; padding: 44px 0 48px; }
.footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer__brand { font: 700 1.8rem/1 var(--display); text-transform: uppercase; color: var(--white); margin-bottom: 6px; }
.footer__brand span { color: var(--yellow); }
.footer__meta { display: grid; gap: 6px; font-size: .92rem; max-width: 36rem; }

.mobile-cta { display: none; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero::after { background: linear-gradient(180deg, rgba(20, 33, 61, .75) 0%, rgba(20, 33, 61, .95) 60%); }
  .services__grid { grid-template-columns: 1fr 1fr; }
  .promise__grid, .visit__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: 1fr 1fr; }
  .gallery__grid img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
}
@media (max-width: 700px) {
  .site-nav { display: none; }
  .services__grid { grid-template-columns: 1fr; }
  .mobile-cta {
    display: block; position: fixed; inset: auto 0 0 0; z-index: 90;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); border-top: 1px solid var(--gray);
  }
  .site-footer { padding-bottom: 120px; }
}
