/* CAM Centro Automotriz Monterrey — estilos del sitio
   Fuentes alojadas en el propio sitio (sin llamadas a terceros). */

@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --navy: #0E1B3D;
  --navy-2: #2B3A66;
  --red: #D42C2A;
  --red-logo: #E03432;
  --red-text: #B8231F;
  --red-on-dark: #FF7A75;
  --ink: #0E1B3D;
  --ink-2: #3E4A6B;
  --ink-3: #4A5470;
  --bg: #F6F7FB;
  --surface: #FFFFFF;
  --line: #D5DBE8;
  --line-soft: #E3E7F0;
  --chrome: #EEF1F7;
  --placeholder: #E6EAF4;
  --on-dark-2: #C4CDE4;
  --shadow: 0 10px 30px rgba(14, 27, 61, 0.10);
  --shadow-lg: 0 30px 70px rgba(14, 27, 61, 0.16);
  --radius: 14px;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --pad-x: clamp(16px, 5.5vw, 80px);
  --section-y: clamp(56px, 8vw, 110px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.5; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--navy); color: #fff; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section--white { background: var(--surface); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.eyebrow { display: inline-block; font-family: var(--font-mono); font-weight: 700; font-size: 14px; color: var(--red); }
.h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -0.02em; }
.lead { font-size: 18px; color: var(--ink-2); }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(28px, 4vw, 56px); }
.section-head--center { align-items: center; text-align: center; }
.section-head--split { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 40px; }
.section-head--split > div { display: flex; flex-direction: column; gap: 14px; }
.section-head--split .lead { max-width: 380px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 17px; text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--red { background: var(--red); color: #fff; box-shadow: var(--shadow); }
.btn--red:hover { background: #BF2624; }
.btn--light { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--outline { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn--lg { min-height: 62px; padding: 0 32px; font-size: 19px; }
.btn svg { flex-shrink: 0; }
.link-arrow { font-weight: 700; color: var(--red-text); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Encabezado */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line-soft); }
.site-header .wrap { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; font-weight: 600; font-size: 16px; }
.nav a { text-decoration: none; padding: 6px 0; }
.nav a:hover { color: var(--red-text); }
.header-cta { min-height: 46px; padding: 0 20px; font-size: 16px; }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); cursor: pointer; }
.mobile-nav { display: none; }

/* Portada */
.hero { padding-top: clamp(48px, 8vw, 120px); padding-bottom: clamp(56px, 8vw, 110px); text-align: center; }
.hero .wrap { display: flex; flex-direction: column; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-family: var(--font-mono); font-weight: 700; font-size: 14px; }
.pill .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red-logo); }
.hero h1 { margin-top: 28px; max-width: 900px; font-family: var(--font-display); font-weight: 800; font-size: clamp(46px, 7.4vw, 92px); line-height: 0.98; letter-spacing: -0.03em; }
.hero h1 span { color: var(--red); }
.hero .hero-text { margin-top: 24px; max-width: 640px; font-size: clamp(17px, 1.6vw, 21px); color: var(--ink-2); }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.hero-meta { margin-top: 22px; font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--ink-3); }

/* Ventana (marco tipo aplicación) */
.window { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.window-bar { height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: var(--chrome); color: var(--ink-3); border-bottom: 1px solid var(--line); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--red-logo); }
.window-bar i:nth-child(2) { background: var(--navy); }
.window-bar i:nth-child(3) { background: #7F93C4; }
.window-bar span { margin-left: 8px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; }

.gallery { margin-top: clamp(40px, 6vw, 72px); width: 100%; max-width: 1080px; box-shadow: var(--shadow-lg); text-align: left; }
.gallery-grid { padding: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, 236px); gap: 14px; }
.gallery-grid figure { border-radius: 10px; overflow: hidden; background: var(--placeholder); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
.g-big { grid-column: span 2; grid-row: span 2; }
.g-wide { grid-column: span 2; }
.g-big img { object-position: center 45%; }
.g-wide img { object-position: center 40%; }
.g-jeep img { object-position: center 30%; }

/* Cómo funciona */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.step-body { padding: 26px 24px 30px; display: flex; flex-direction: column; gap: 10px; }
.step-num { font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--red); }
.step h3 { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.15; }
.step p { color: var(--ink-2); }

/* Tarjetas de servicio */
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.service { display: flex; flex-direction: column; }
.service-body { padding: 28px; display: flex; flex-direction: column; gap: 16px; flex-grow: 1; }
.service h3 { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1.1; }
.service p { color: var(--ink-2); }
.service .includes { font-family: var(--font-mono); font-weight: 700; font-size: 13px; }
.checks { display: flex; flex-direction: column; gap: 9px; }
.checks li { display: flex; gap: 10px; }
.checks li::before { content: "✓"; color: var(--red); font-weight: 700; }
.service .link-arrow { margin-top: auto; padding-top: 8px; font-size: 17px; }

/* Promociones */
.promos { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.promo { padding: clamp(26px, 3vw, 40px); border-radius: 18px; display: flex; flex-direction: column; gap: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.promo--dark { background: var(--navy); color: #fff; border-color: var(--navy); }
.promo-tag { align-self: flex-start; padding: 6px 12px; background: var(--red); color: #fff; border-radius: 999px; font-family: var(--font-mono); font-weight: 700; font-size: 12px; }
.promo h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 2.6vw, 32px); }
.promo-gift { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.05; color: var(--red); }
.promo--dark .promo-gift { color: var(--red-on-dark); }
.promo p { color: var(--ink-2); }
.promo--dark p { color: var(--on-dark-2); }
.promo--dark .checks li::before { color: var(--red-on-dark); }
.promo .btn { margin-top: auto; }
.promo-legal { max-width: 1000px; margin: 20px auto 0; font-size: 13px; color: var(--ink-3); text-align: center; }

/* Reseñas */
.rating { display: flex; align-items: center; gap: 18px; padding: 18px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); flex-wrap: wrap; }
.rating-num { font-family: var(--font-display); font-weight: 800; font-size: 56px; line-height: 1; }
.stars { color: var(--red); letter-spacing: 2px; font-size: 20px; }
.rating small { display: block; font-size: 15px; color: var(--ink-2); }
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-items: start; }
.review { padding: 28px; display: flex; flex-direction: column; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.review:nth-child(2) { margin-top: 40px; }
.review figcaption { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; color: #fff; background: var(--red); flex-shrink: 0; }
.avatar--navy { background: var(--navy); }
.review-name { font-weight: 700; }
.review-meta { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--ink-3); }
.review blockquote { font-size: 17px; line-height: 1.55; }
.reviews-note { margin-top: 24px; font-size: 13px; color: var(--ink-3); }

/* Consejos */
.post { display: flex; flex-direction: column; }
.post img { width: 100%; height: 250px; object-fit: cover; }
.post-body { padding: 26px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.post-tag { font-family: var(--font-mono); font-weight: 700; font-size: 12px; color: var(--red-text); }
.post h3 { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.2; }
.post p { color: var(--ink-2); line-height: 1.55; }
.post .checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; }
.post .link-arrow { margin-top: auto; padding-top: 4px; }
.brands-note { margin-top: 28px; font-size: 14px; line-height: 1.6; color: var(--ink-3); }
.brands-note strong { font-weight: 600; color: var(--ink-2); }

/* Preguntas frecuentes */
.faq-layout { display: flex; gap: 80px; align-items: flex-start; }
.faq-intro { width: 400px; flex-shrink: 0; display: flex; flex-direction: column; gap: 18px; }
.faq-intro p { color: var(--ink-2); font-size: 17px; }
.faq-list { flex: 1; border-top: 1px solid var(--line-soft); }
.faq-list details { border-bottom: 1px solid var(--line-soft); }
.faq-list summary { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 4px; font-family: var(--font-display); font-weight: 700; font-size: clamp(19px, 2vw, 24px); cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-body); font-size: 22px; font-weight: 600; transition: transform .2s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 60px 26px 4px; font-size: 18px; line-height: 1.55; color: var(--ink-2); }

/* Llamado final */
.cta { background: var(--red); color: #fff; }
.cta .wrap { padding-top: clamp(56px, 7vw, 100px); padding-bottom: clamp(56px, 7vw, 100px); display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.cta h2 { max-width: 780px; font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 6vw, 80px); line-height: 0.98; letter-spacing: -0.02em; }
.cta p { font-size: clamp(17px, 1.6vw, 21px); }

/* Pie de página */
.site-footer { background: var(--navy); color: var(--on-dark-2); }
.site-footer .wrap { padding-top: 72px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; gap: 18px; max-width: 360px; }
.logo-chip { align-self: flex-start; padding: 12px 16px; background: #fff; border-radius: 12px; }
.logo-chip img { height: 48px; width: auto; }
.footer-cols { display: flex; gap: clamp(32px, 6vw, 80px); flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h3 { font-family: var(--font-mono); font-weight: 700; font-size: 13px; color: #fff; }
.footer-col a { text-decoration: none; }
.footer-col address { font-style: normal; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-col .strong-link { color: #fff; font-weight: 700; }
.privacy-short { font-size: 13px; line-height: 1.6; border-top: 1px solid var(--navy-2); padding-top: 24px; max-width: 900px; }
.privacy-short a { color: #fff; font-weight: 600; }
.footer-bottom { border-top: 1px solid var(--navy-2); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.footer-bottom a { color: #fff; }

.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 62px; height: 62px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 28px rgba(14,27,61,0.3); }
.wa-float:hover { background: #BF2624; }

/* Página legal */
.legal { background: var(--surface); }
.legal .wrap { max-width: 860px; padding-top: 56px; padding-bottom: 80px; }
.legal h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.02em; margin: 14px 0 10px; }
.legal .updated { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--ink-3); }
.legal h2 { font-family: var(--font-display); font-weight: 700; font-size: 24px; margin: 40px 0 12px; scroll-margin-top: 96px; }
.legal p, .legal li { font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 22px; margin: 10px 0; display: flex; flex-direction: column; gap: 6px; }
.legal a { color: var(--red-text); font-weight: 600; }
.legal .box { margin-top: 28px; padding: 20px 22px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.legal .back { display: inline-block; margin-bottom: 8px; }

/* Responsivo */
@media (max-width: 1180px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav { gap: 20px; }
}
@media (max-width: 980px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-nav { border-top: 1px solid var(--line-soft); background: #fff; }
  .mobile-nav[data-open="true"] { display: block; }
  .mobile-nav a { display: block; padding: 14px var(--pad-x); font-weight: 600; font-size: 17px; text-decoration: none; border-bottom: 1px solid var(--line-soft); }
  .mobile-nav .btn { margin: 14px var(--pad-x) 18px; display: flex; }
  .cards-3, .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review:nth-child(2) { margin-top: 0; }
  .section-head--split { flex-direction: column; align-items: flex-start; gap: 18px; }
  .faq-layout { flex-direction: column; gap: 28px; }
  .faq-intro { width: auto; }
}
@media (max-width: 720px) {
  .site-header .wrap { height: 64px; }
  .brand img { height: 38px; }
  html { scroll-padding-top: 72px; }
  .steps, .cards-3, .reviews, .promos { grid-template-columns: minmax(0, 1fr); }
  .steps { gap: 16px; }
  .step .window-bar { display: none; }
  .step-body { flex-direction: row; gap: 14px; padding: 18px; }
  .step-num { font-size: 32px; min-width: 40px; }
  .step-body > div { display: flex; flex-direction: column; gap: 4px; }
  .step h3 { font-size: 21px; }
  .gallery-grid { padding: 10px; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .gallery-grid figure { height: 150px; }
  .g-big, .g-wide { grid-column: span 2; grid-row: auto; }
  .g-big, .g-wide { height: 210px !important; }
  .g-big { order: 3; }
  .g-wide { order: 0; }
  .pill { font-size: 12px; padding: 7px 12px; gap: 8px; }
  .hero-meta { font-size: 12px; }
  .hero-actions { width: 100%; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .service-body, .post-body { padding: 22px; }
  .service h3 { font-size: 24px; }
  .post img { height: 210px; }
  .rating { width: 100%; }
  .rating .btn { width: 100%; }
  .faq-list details p { padding-right: 4px; }
  .cta .btn { width: 100%; }
  .wa-float { right: 16px; bottom: 18px; width: 58px; height: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
