/* Servicio Mecánico Automotriz Tiro — asfalto nocturno + taller diurno.
   Paleta: asphalt-950 #14110D · asphalt-800 #211C15 · paper-100 #F3EDE1 ·
   ink-900 #1C1712 · amber-500 #FFB020 · ember-700 #C1440E.
   Tipografía: Big Shoulders Stencil (display, industrial/stencil) + Archivo (cuerpo). */

@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Stencil:wght@600;800&family=Archivo:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    --asphalt-950: #14110d;
    --asphalt-800: #211c15;
    --paper-100: #f3ede1;
    --ink-900: #1c1712;
    --amber-500: #ffb020;
    --ember-700: #c1440e;
    --ember-text: #b33e0c; /* variante de ember-700 con 4.5:1 en texto pequeño sobre paper-100 (WCAG AA) */

    --card-day: #fbf6ec;
    --line-day: #e4dbc8;
    --muted-day: #6b6255;

    --font-display: 'Big Shoulders Stencil', 'Arial Narrow', sans-serif;
    --font-body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;

    --radius: 10px;
    --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--paper-100);
    color: var(--ink-900);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 0.98;
    margin: 0 0 0.5em;
}
h2 { font-size: clamp(1.9rem, 6vw, 2.7rem); }
p { margin: 0 0 1em; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ember-text);
    margin-bottom: 0.9rem;
}
.eyebrow::before { content: ''; width: 1.4em; height: 2px; background: currentColor; display: inline-block; }

/* ---------- motivo firma: anillo de birlos ---------- */
.birlos {
    display: inline-block;
    vertical-align: middle;
}
.birlos circle.aro { fill: none; stroke: currentColor; stroke-width: 2.5; opacity: 0.55; }
.birlos circle.birlo { fill: currentColor; }

.divisor-birlos { display: flex; justify-content: center; padding: 2.2rem 0; color: var(--ember-700); opacity: 0.7; }

/* ---------- banner de demo ---------- */
.demo-banner {
    background: #2b2620;
    color: #f2ece1;
    text-align: center;
    font-size: .85rem;
    line-height: 1.4;
    padding: .5rem .9rem;
    letter-spacing: .01em;
}
@media (min-width: 640px) { .demo-banner { font-size: .92rem; } }

/* ---------- header / nav ---------- */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--asphalt-950);
    color: var(--paper-100);
    box-shadow: 0 2px 14px rgba(0,0,0,.25);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 1.25rem; max-width: var(--maxw); margin: 0 auto; }
.nav-marca {
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.15rem;
    letter-spacing: .01em;
    color: var(--paper-100);
    text-decoration: none;
}
.nav-marca span { color: var(--amber-500); }
.nav-tel {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--amber-500);
    color: var(--asphalt-950);
    font-weight: 700;
    font-size: .85rem;
    padding: .5rem .9rem;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
}
.nav-tel svg { width: 15px; height: 15px; }

/* ---------- hero ---------- */
.hero {
    position: relative;
    min-height: min(78vh, 640px);
    display: flex;
    align-items: flex-end;
    background: var(--asphalt-950) center/cover no-repeat;
    color: var(--paper-100);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(20,17,13,.35) 0%, rgba(20,17,13,.55) 45%, rgba(20,17,13,.94) 100%);
}
.hero-contenido {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 2.6rem 1.25rem 2.4rem;
    max-width: var(--maxw);
    margin: 0 auto;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(33,28,21,.72);
    border: 1px solid rgba(255,176,32,.4);
    color: var(--amber-500);
    font-weight: 700;
    font-size: .82rem;
    padding: .4rem .8rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}
.hero-badge svg { width: 15px; height: 15px; flex-shrink: 0; }
.hero h1 {
    font-size: clamp(2.3rem, 8.5vw, 3.8rem);
    text-shadow: 0 2px 18px rgba(0,0,0,.55);
    max-width: 14ch;
}
.hero-tagline {
    font-size: clamp(1rem, 3.2vw, 1.2rem);
    color: var(--paper-100);
    max-width: 42ch;
    text-shadow: 0 1px 10px rgba(0,0,0,.5);
    background: linear-gradient(90deg, rgba(20,17,13,.55), rgba(20,17,13,0));
    padding: .1rem .3rem .1rem 0;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; align-items: center; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    padding: .85rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--amber-500); outline-offset: 2px; }
.btn-wa {
    background: var(--amber-500);
    color: var(--asphalt-950);
    box-shadow: 0 6px 20px rgba(255,176,32,.28);
}
.btn-wa svg { width: 20px; height: 20px; }
.btn-tel-texto {
    color: var(--paper-100);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border-bottom: 1px solid rgba(243,237,225,.4);
    padding-bottom: 2px;
}
.btn-tel-texto svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-marca, .nav-tel { flex-shrink: 0; }

/* ---------- secciones día ---------- */
section.dia { padding: 3.6rem 0; }
section.dia-alt { background: var(--card-day); }

.nosotros-grid { display: grid; grid-template-columns: 1fr; gap: 1.6rem; align-items: center; }
@media (min-width: 720px) { .nosotros-grid { grid-template-columns: 1fr 1.1fr; gap: 2.4rem; } }
.nosotros-foto { border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(28,23,18,.15); }
.nosotros-foto img { width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; }
.nosotros-texto p { color: var(--ink-900); white-space: pre-line; }
.rating-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--asphalt-950);
    color: var(--amber-500);
    padding: .5rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .95rem;
    margin-bottom: 1.2rem;
}
.rating-chip svg { width: 16px; height: 16px; }

/* ---------- galería ---------- */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .8rem;
}
.galeria-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--asphalt-800); }
.galeria-item img { width: 100%; height: 100%; object-fit: cover; }
.galeria-item figcaption {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: linear-gradient(0deg, rgba(20,17,13,.85), rgba(20,17,13,0));
    color: var(--paper-100);
    font-size: .82rem;
    font-weight: 600;
    padding: .9rem .7rem .55rem;
}
@media (min-width: 620px) {
    .galeria-grid { grid-template-columns: repeat(4, 1fr); }
    .galeria-item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
}

/* ---------- servicios ---------- */
.servicios-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 640px) { .servicios-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .servicios-grid { grid-template-columns: repeat(3, 1fr); } }

.servicio-card {
    background: #fff;
    border: 1px solid var(--line-day);
    border-radius: var(--radius);
    padding: 1.4rem 1.3rem;
}
.servicio-icono {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    color: var(--ember-700);
    margin-bottom: .8rem;
}
.servicio-icono svg { width: 100%; height: 100%; }
.servicio-card h3 { font-family: var(--font-body); text-transform: none; font-weight: 700; font-size: 1.05rem; letter-spacing: 0; margin-bottom: .35rem; }
.servicio-card p { color: var(--muted-day); font-size: .92rem; margin: 0; }
.servicio-emergencia { border-color: var(--ember-700); background: linear-gradient(180deg, #fff, #fff8f2); }

/* ---------- reseñas ---------- */
.resenas-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 720px) { .resenas-grid { grid-template-columns: repeat(2, 1fr); } }

.resena-card {
    background: #fff;
    border: 1px solid var(--line-day);
    border-radius: var(--radius);
    padding: 1.3rem;
}
.resena-estrellas { display: flex; gap: .15rem; color: var(--amber-500); margin-bottom: .6rem; }
.resena-estrellas svg { width: 16px; height: 16px; flex-shrink: 0; }
.resena-card p { color: var(--ink-900); font-size: .95rem; margin: 0; }
.resenas-link { margin-top: 1.6rem; font-size: .9rem; color: var(--muted-day); }
.resenas-link a { color: var(--ember-text); font-weight: 600; text-decoration: underline; }

/* ---------- contacto (registro noche) ---------- */
.contacto {
    background: var(--asphalt-950);
    color: var(--paper-100);
    padding: 3.6rem 0 2.4rem;
    position: relative;
}
.contacto h2 { color: var(--paper-100); }
.contacto-grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .contacto-grid { grid-template-columns: 1.1fr .9fr; } }

.contacto-lista { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: .9rem; }
.contacto-lista li { display: flex; gap: .7rem; align-items: flex-start; }
.contacto-lista svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--amber-500); margin-top: 2px; }
.contacto-lista a { color: var(--paper-100); text-decoration: none; border-bottom: 1px solid rgba(243,237,225,.35); }
.contacto-lista .muted { color: #c9c0af; font-size: .88rem; margin-top: .15rem; }

.mapa-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(243,237,225,.15); }
.mapa-frame iframe { width: 100%; height: 280px; border: 0; display: block; filter: grayscale(.25) contrast(1.05); }

.redes-fila { display: flex; gap: .6rem; margin-top: 1.6rem; flex-wrap: wrap; }
.redes-fila a {
    width: 40px; height: 40px;
    border-radius: 999px;
    background: var(--amber-500);
    color: var(--asphalt-950);
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
}
.redes-fila svg { width: 19px; height: 19px; }

/* ---------- footer ---------- */
footer.site-footer {
    background: var(--asphalt-950);
    color: #a99f8d;
    text-align: center;
    font-size: .82rem;
    /* padding-bottom reserva el espacio del botón flotante de WhatsApp (58px + su
       offset de 1.1rem) para que nunca se monte sobre el crédito/aviso de privacidad
       cuando se hace scroll hasta el final de la página. */
    padding: 1.2rem 1rem calc(1.6rem + 58px + 1.1rem);
    border-top: 1px solid rgba(243,237,225,.08);
}
footer.site-footer a { color: #cdbf9d; text-decoration: underline; }

/* ---------- botón flotante WhatsApp ---------- */
.wa-flotante {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 60;
    width: 58px; height: 58px;
    border-radius: 50%;
    background: var(--amber-500);
    color: var(--asphalt-950);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 22px rgba(0,0,0,.35);
    text-decoration: none;
}
.wa-flotante svg { width: 28px; height: 28px; }
/* En viewports muy cortos (celular en horizontal) el flotante puede montarse sobre
   el texto del hero; el CTA principal de WhatsApp ya está siempre visible ahí. */
@media (max-height: 420px) { .wa-flotante { display: none; } }

/* ---------- utilidades ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--ember-700); outline-offset: 2px; }
