/* Web publica de Reparaciones Tatay. La esencia de los rotulos de la fachada, contenida: negro en cabecera, portada,
   horario y pie; la letra del rotulo (condensada en cursiva) en los titulos; el rojo como acento y el azul solo para
   ELECTRICIDAD; una unica banda de cuadros bajo la portada. El resto, claro y legible. Pensada para ir sin fotos. */

@font-face { font-family: 'Barlow'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/barlow-400.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/barlow-500.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/barlow-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/barlow-condensed-700.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-style: italic; font-display: swap; src: url('/fonts/barlow-condensed-800-italic.woff2') format('woff2'); }

:root {
  --black: #0b0b0c;
  --on-dark: #f2f2f0;
  --on-dark-muted: #a9a9a6;
  --hairline-dark: rgb(255 255 255 / 0.13);
  --red-light: #ff6b61;
  --green-light: #5fd68a;
  --ink: #141416;
  --text: #1d1d20;
  --muted: #5c5c62;
  --faint: #8a8a90;
  --line: #e4e3df;
  --line-strong: #cfcec9;
  --bg: #ffffff;
  --paper: #f7f6f3;
  --red: #c8201a;
  --red-dark: #a51a15;
  --blue: #2a56d6;
  --green: #1e7a44;
  --radius: 10px;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --brand: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --gutter: 20px;
}

@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-dark); text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; text-wrap: balance; color: var(--ink); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 3px; }
.dark :focus-visible, .hero :focus-visible, .page-head :focus-visible, .section-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius); font-weight: 600; }
.skip:focus { top: 8px; }
.icon { flex: none; }

/* ---------- tipografia ---------- */
.h2, .hero-title, .page-title { font-family: var(--brand); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: 0.01em; }
.h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.02; }
.h3 { font-weight: 600; font-size: 20px; }
.h4 { font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.section-lead, .page-lead { font-size: 18px; color: var(--muted); max-width: 580px; margin: 0; }
.eyebrow { font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: 0.22em; color: var(--on-dark-muted); margin: 0 0 18px; }

.logo { display: inline-flex; flex-direction: column; line-height: 0.9; font-family: var(--brand); text-transform: uppercase; }
.logo-top { font-weight: 700; font-size: 10px; letter-spacing: 0.32em; color: #fff; }
.logo-main { font-weight: 800; font-style: italic; font-size: 28px; letter-spacing: 0.04em; color: var(--red); margin-top: 3px; }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 20px; border-radius: var(--radius); font: 600 16px/1.2 var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color 0.15s, border-color 0.15s, color 0.15s; white-space: nowrap; }
.btn-lg { min-height: 52px; padding: 12px 24px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-outline { border-color: var(--line-strong); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost { border-color: rgb(255 255 255 / 0.3); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgb(255 255 255 / 0.06); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .cta-row .btn { flex: 1 1 100%; } }

/* ---------- cabecera (fija: el boton de llamar siempre a mano) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--black); border-bottom: 1px solid var(--hairline-dark); }
.header-inner { display: flex; align-items: center; gap: 40px; min-height: 66px; }
.header-logo { text-decoration: none; display: flex; }
.header-nav { display: none; gap: 30px; }
.header-nav a { font-weight: 500; font-size: 16px; color: var(--on-dark-muted); text-decoration: none; transition: color 0.15s; }
.header-nav a:hover { color: #fff; }
.header-call { margin-left: auto; min-height: 42px; padding: 8px 16px; }
.header-call-text { display: none; }
@media (min-width: 560px) { .header-call-text { display: inline; } .header-call-short { display: none; } }
@media (min-width: 900px) { .header-nav { display: flex; } }

/* ---------- portada: titular y ficha del taller ---------- */
.hero, .page-head, .section-dark { background: var(--black); color: var(--on-dark); }
.hero h1, .page-head h1, .section-dark h2 { color: #fff; }
.checker { --sq: 6px; height: calc(var(--sq) * 2); background: conic-gradient(#fff 25%, var(--black) 0 50%, #fff 0 75%, var(--black) 0) 0 0 / calc(var(--sq) * 2) calc(var(--sq) * 2); }
.hero-grid { display: grid; gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 56px; }
.hero-title { font-size: clamp(44px, 6.8vw, 76px); line-height: 0.98; margin-bottom: 22px; }
.hero-lead { font-size: 19px; color: var(--on-dark-muted); max-width: 500px; margin-bottom: 30px; }
.hero-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.25fr 1fr; gap: 72px; padding-top: 96px; padding-bottom: 104px; }
}

.info-card { border: 1px solid var(--hairline-dark); border-radius: 14px; padding: 26px 26px 22px; background: #151517; }
.info-status { min-height: 1.6em; margin: 0 0 14px; font-weight: 600; }
.open-now { display: inline-flex; align-items: center; gap: 8px; }
.open-now::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.open-now.is-open { color: var(--green-light); }
.open-now.is-closed { color: var(--red-light); }
.info-list { margin: 0; display: grid; }
.info-list > div { display: grid; gap: 2px; padding: 14px 0; border-top: 1px solid var(--hairline-dark); }
.info-list dt { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--on-dark-muted); }
.info-list dd { margin: 0; color: #fff; }
.info-list dd a { color: #fff; font-weight: 600; text-decoration: none; }
.info-list dd a:hover { text-decoration: underline; }
.info-link { display: flex; align-items: center; gap: 6px; padding-top: 14px; border-top: 1px solid var(--hairline-dark); font-weight: 600; color: var(--red-light); text-decoration: none; }
.info-link:hover { color: #fff; }

/* ---------- secciones ---------- */
.section { padding: 64px 0; }
.section-paper { background: var(--paper); }
.section-head { margin-bottom: 36px; }
.section-head .h2 { margin-bottom: 10px; }
.section-head .h2::after { content: ''; display: block; width: 48px; height: 4px; margin-top: 14px; background: var(--red); transform: skewX(-20deg); }
@media (min-width: 960px) { .section { padding: 88px 0; } }

/* ---------- servicios: las dos secciones del taller ---------- */
.service-grid { display: grid; gap: 44px; align-items: start; }
@media (min-width: 900px) { .service-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.group-label { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; }
.group-label::before { content: ''; width: 10px; height: 10px; border-radius: 2px; }
.group-red::before { background: var(--red); }
.group-blue::before { background: var(--blue); }
.totem { list-style: none; }
.totem li { border-bottom: 1px solid var(--line); }
.totem a { display: flex; align-items: center; gap: 16px; min-height: 72px; padding: 14px 0; color: var(--text); text-decoration: none; }
.totem-icon { color: var(--faint); transition: color 0.15s; }
.totem-text { display: grid; gap: 2px; min-width: 0; }
.totem-name { font-weight: 600; font-size: 18px; line-height: 1.25; color: var(--ink); }
.totem-short { color: var(--muted); font-size: 15px; line-height: 1.4; }
.totem-arrow { margin-left: auto; color: var(--line-strong); transition: transform 0.15s, color 0.15s; }
.totem a:hover .totem-name { color: var(--red-dark); }
.totem a:hover .totem-icon { color: var(--ink); }
.totem a:hover .totem-arrow { color: var(--red-dark); transform: translateX(3px); }
.totem-compact a { min-height: 48px; padding: 10px 0; }
.totem-compact .totem-name { font-size: 16px; font-weight: 500; }

/* ---------- horario y ubicacion ---------- */
.visit-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .visit-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.visit-grid .h2 { margin-bottom: 8px; }
.visit-status { min-height: 1.6em; margin-bottom: 20px; font-weight: 600; }
.visit-address { color: var(--on-dark-muted); margin-bottom: 8px; }
.visit-address strong { color: #fff; font-weight: 600; }
.visit-note { color: var(--on-dark-muted); margin-bottom: 28px; }
.visit-status .open-now.is-open { color: var(--green-light); }
.visit-status .open-now.is-closed { color: var(--red-light); }
.visit-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; margin-bottom: 20px; }
.hours { width: 100%; border-collapse: collapse; font-size: 16px; }
.hours th, .hours td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--hairline-dark); font-weight: 400; color: var(--on-dark-muted); }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { color: #fff; font-weight: 600; }
.hours tr.is-today th::after { content: 'Hoy'; display: inline-block; margin-left: 10px; padding: 0 7px; border-radius: 3px; background: var(--red); color: #fff; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; vertical-align: 1px; }

/* ---------- por que + opiniones de Google (como en la demo anterior) ---------- */
.why-grid { display: grid; gap: 44px; }
@media (min-width: 960px) { .why-grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; } .why-grid > div:first-child { position: sticky; top: 100px; } }
.why-list { list-style: none; display: grid; gap: 22px; }
.why-list li { display: flex; gap: 16px; }
.why-list li > .icon { width: 44px; height: 44px; padding: 11px; border-radius: 10px; background: var(--black); color: #fff; }
.why-list h3 { font-weight: 600; font-size: 18px; margin-bottom: 2px; }
.why-list p { margin: 0; color: var(--muted); }
.reviews { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: grid; gap: 14px; align-content: start; }
.reviews-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.reviews-title { font-weight: 600; font-size: 20px; }
.rating { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.rating-num { font-weight: 600; font-size: 28px; line-height: 1; color: var(--ink); }
.rating-src { color: var(--muted); font-size: 15px; }
.stars { display: inline-flex; gap: 1px; color: #e0a200; }
.stars .icon { fill: currentColor; }
.review { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--black); color: #fff; font-weight: 600; flex: none; }
.review figcaption { display: grid; gap: 2px; font-weight: 600; font-size: 16px; color: var(--ink); }
.review figcaption a { color: var(--ink); text-decoration: none; }
.review figcaption a:hover { text-decoration: underline; }
.review-meta { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; font-size: 14px; color: var(--muted); }
.review-meta .icon { width: 14px; height: 14px; }
.review blockquote { margin: 0; }
.review p { margin: 0; white-space: pre-line; }
.review-long { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.review-more { display: inline-block; margin-top: 8px; font-size: 15px; font-weight: 600; }
.reviews-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 4px; }
.reviews-attrib { font-size: 13px; color: var(--muted); }
.reviews-empty { margin: 0; color: var(--muted); }

/* ---------- preguntas ---------- */
.faq { margin-top: 28px; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; font-weight: 600; font-size: 18px; color: var(--ink); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--red-dark); }
.faq summary .icon { transition: transform 0.2s; color: var(--faint); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); max-width: 640px; }

/* ---------- cabecera de paginas interiores ---------- */
.page-head .wrap { padding-top: 40px; padding-bottom: 48px; }
.page-title { font-size: clamp(36px, 5.2vw, 56px); line-height: 1; max-width: 820px; }
.page-head .page-lead { margin-top: 14px; color: var(--on-dark-muted); }
.page-head .cta-row { margin-top: 28px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--on-dark-muted); margin-bottom: 20px; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- pagina de servicio ---------- */
.service-layout { display: grid; gap: 48px; }
@media (min-width: 960px) { .service-layout { grid-template-columns: 1fr 300px; gap: 80px; align-items: start; } }
.prose { font-size: 18px; }
.prose .h3 { margin: 40px 0 8px; }
.prose > .h3:first-child { margin-top: 0; }
.prose ul:not(.check-list) { padding-left: 22px; margin-bottom: 1em; }
.prose li { margin-bottom: 6px; }
.check-list { list-style: none; }
.check-list li { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.service-aside { display: grid; gap: 36px; }
@media (min-width: 960px) { .service-aside { position: sticky; top: 100px; } }
.aside-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: grid; gap: 10px; }
.aside-card p { margin: 0 0 6px; color: var(--muted); }
.service-aside .h4 { padding-bottom: 12px; border-bottom: 1px solid var(--ink); }

/* ---------- pie ---------- */
.site-footer { background: var(--black); color: var(--on-dark-muted); font-size: 15px; border-top: 3px solid var(--red); }
.footer-grid { display: grid; gap: 32px; padding-top: 52px; padding-bottom: 40px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer .footer-tag { margin-top: 16px; max-width: 280px; }
.footer-h { font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: #fff; margin-bottom: 14px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p { margin: 0 0 8px; }
.footer-links { list-style: none; display: grid; gap: 8px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 20px; padding-bottom: 30px; font-size: 14px; border-top: 1px solid var(--hairline-dark); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
