/* ==========================================================================
   MECÁNICA Y AUXILIOS LEIVA — Sistema de estilos compartido
   Usado por / (auxilio y traslados) y /taller/ (taller mecánico).

   Contraste verificado sobre el fondo #050505:
     #E8EAEB texto principal .... 16.9:1  AA / AAA
     #C9CDD0 texto secundario ... 12.7:1  AA / AAA
     #8A9095 texto atenuado .....  6.3:1  AA
     #FF1616 rojo de acento .....  5.2:1  AA  -> apto para texto chico
     #E00000 rojo de marca ......  4.0:1  solo texto grande y fondos de botón
   Por eso el rojo #E00000 nunca se usa como color de texto: solo como fondo
   de botón (con texto blanco encima, 5.1:1) y en bloques grandes.
   ========================================================================== */

:root {
    /* Fondos y superficies */
    --bg-obsidian: #050505;
    --bg-dark: #151515;
    --bg-card: rgba(21, 21, 21, 0.72);
    --border-color: rgba(232, 234, 235, 0.09);
    --border-strong: rgba(232, 234, 235, 0.16);

    /* Marca */
    --primary-red: #E00000;
    --accent-red: #FF1616;
    --red-gradient: linear-gradient(135deg, #FF1616 0%, #E00000 100%);
    --red-glow: rgba(224, 0, 0, 0.28);

    /* WhatsApp: verde oficial con texto casi negro (10.3:1) */
    --wa-green: #25D366;
    --wa-gradient: linear-gradient(135deg, #25D366 0%, #16A34A 100%);
    --wa-glow: rgba(37, 211, 102, 0.25);

    /* Texto */
    --text-primary: #E8EAEB;
    --text-secondary: #C9CDD0;
    --text-muted: #8A9095;
    --steel: #5E6265;

    /* Tipografía */
    --font-heading: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* Layout */
    --max-width: 1160px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET Y BASE
   ========================================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-obsidian);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-red); }

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Foco visible para navegación por teclado */
a:focus-visible, button:focus-visible {
    outline: 3px solid var(--accent-red);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    background: var(--accent-red);
    color: #FFFFFF;
    padding: 12px 20px;
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus { left: 0; }

.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;
}

/* Íconos SVG en línea (reemplazan a FontAwesome de la referencia) */
.icon {
    width: 1em;
    height: 1em;
    fill: currentColor;
    flex-shrink: 0;
}

/* ==========================================================================
   BARRA SUPERIOR
   ========================================================================== */
.top-bar {
    background: var(--red-gradient);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.6px;
    padding: 9px 0;
    text-align: center;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 22px rgba(224, 0, 0, 0.22);
}

.top-bar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #FFFFFF;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(0.85); opacity: 0.55; }
    50%      { transform: scale(1.15); opacity: 1; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    position: relative;
    background:
        radial-gradient(circle at 70% 0%, rgba(224, 0, 0, 0.16), transparent 55%),
        radial-gradient(circle at 10% 90%, rgba(94, 98, 101, 0.12), transparent 55%),
        var(--bg-obsidian);
    padding: 22px 0 52px;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 17px;
}

.brand-logo { width: 100%; max-width: 240px; }
.brand-logo img { width: 100%; height: auto; }

/* --------------------------------------------------------------------------
   Landing de auxilio: quien llega acá viene de Google Ads con intención de
   contratar ya. Lo que tiene que dominar la primera pantalla es el H1 (la
   promesa) y el CTA, no el isologo — por eso el logo baja de tamaño y de
   jerarquía respecto de la landing del taller, donde la intención es más de
   reconocimiento de marca / planificación y hay menos urgencia.
   -------------------------------------------------------------------------- */
body[data-landing="auxilio"] .brand-logo { max-width: 130px; }

.hero-content { max-width: 780px; }

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(27px, 6.2vw, 46px);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.8px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

body[data-landing="auxilio"] .hero-title {
    font-size: clamp(30px, 7.4vw, 52px);
}

.hero-title .highlight { color: var(--accent-red); }

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(14px, 3.4vw, 19px);
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero-tagline {
    font-size: clamp(14px, 3.2vw, 17px);
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* Horario: dato de confianza, no letra chica */
.schedule-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(21, 21, 21, 0.85);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.35;
}

.schedule-chip .icon { color: var(--accent-red); font-size: 15px; }

/* En mobile se muestra la versión abreviada para que entre en una línea */
.chip-corto { display: inline; }
.chip-largo { display: none; }

@media (min-width: 480px) {
    .chip-corto { display: none; }
    .chip-largo { display: inline; }
}

/* --------------------------------------------------------------------------
   Tarjeta de contacto — el bloque más importante de la página.
   Debe entrar completo arriba del pliegue en mobile de 375px.
   -------------------------------------------------------------------------- */
.contact-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55),
                inset 0 1px 0 rgba(232, 234, 235, 0.05);
}

.contact-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--text-primary);
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 54px;           /* área táctil holgada */
    padding: 14px 22px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 0.4px;
    text-decoration: none;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn .icon { font-size: 21px; }

/* CTA principal: WhatsApp */
.btn-whatsapp {
    background: var(--wa-gradient);
    color: #050505;
    font-size: 17px;
    box-shadow: 0 10px 26px var(--wa-glow);
}

.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(37, 211, 102, 0.42);
}

/* CTA secundario: llamada. Subordinado al de WhatsApp. */
.btn-call {
    background: transparent;
    color: var(--accent-red);
    border: 2px solid var(--accent-red);
    font-size: 16px;
}

.btn-call:hover,
.btn-call:focus-visible {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px var(--red-glow);
}

/* ==========================================================================
   SECCIONES GENÉRICAS
   ========================================================================== */
.section { padding: 64px 0; }

.section-alt {
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(21px, 4.6vw, 31px);
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 12px;
}

.section-intro {
    text-align: center;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto 34px;
    font-size: clamp(14px, 3.2vw, 16px);
}

.section-intro:last-child { margin-bottom: 0; }

/* ==========================================================================
   SERVICIOS
   ========================================================================== */
.services { position: relative; overflow: hidden; }

/* Foto de fondo decorativa. Se mantiene baja y en escala de grises: la foto
   del taller tiene zonas claras (pared de herramientas) que si suben de
   opacidad le comen contraste al texto de la lista. */
.services-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.13;
    filter: grayscale(100%) contrast(1.05);
    z-index: 0;
    pointer-events: none;
}

.services .container { position: relative; z-index: 1; }

.services-list {
    list-style: none;
    display: grid;
    gap: 13px;
    max-width: 520px;
    margin: 0 auto;
}

.services-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(5, 5, 5, 0.78);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 13px 16px;
}

.check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(224, 0, 0, 0.14);
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
    font-size: 13px;
    flex-shrink: 0;
}

.service-text { font-size: clamp(14px, 3.4vw, 17px); font-weight: 500; }

/* Dos columnas de servicios (taller) */
.services-grid {
    display: grid;
    gap: 34px;
    max-width: 900px;
    margin: 0 auto;
}

.services-group h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--accent-red);
    text-align: center;
    margin-bottom: 16px;
}

/* Alcance de vehículos: filtra sin decir que no */
.scope-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 520px;
    margin: 30px auto 0;
    background: rgba(224, 0, 0, 0.09);
    border: 1px solid rgba(255, 22, 22, 0.35);
    border-radius: var(--radius-md);
    padding: 15px 20px;
    font-family: var(--font-heading);
    font-size: clamp(15px, 3.6vw, 18px);
    font-weight: 700;
    text-align: center;
}

.scope-note .icon { color: var(--accent-red); font-size: 21px; }

/* ==========================================================================
   COBERTURA / UBICACIÓN
   ========================================================================== */
.coverage-towns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    max-width: 780px;
    margin: 0 auto 24px;
}

.town {
    background: rgba(21, 21, 21, 0.9);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 7px 15px;
    font-size: 14px;
    color: var(--text-secondary);
}

.coverage-note {
    text-align: center;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    font-size: 15px;
}

.location-card {
    max-width: 560px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 26px 22px;
    display: grid;
    gap: 16px;
}

.location-row {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    text-align: left;
}

.location-row .icon {
    color: var(--accent-red);
    font-size: 20px;
    margin-top: 2px;
}

.location-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.location-value { font-size: 16px; font-weight: 600; color: var(--text-primary); }

.map-frame {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-width: 900px;
    margin: 28px auto 0;
    line-height: 0;
}

/* El embed de Google viene en claro y rompía el bloque oscuro de la página.
   La inversión con rotación de tono lo pasa a oscuro manteniendo legibles las
   calles y los nombres. Si más adelante se usa el embed del perfil de Google
   Business Profile, revisar que el filtro siga quedando bien. */
.map-frame iframe {
    width: 100%;
    height: 320px;
    border: 0;
    filter: invert(92%) hue-rotate(180deg) saturate(0.75) contrast(0.95);
}

/* ==========================================================================
   GALERÍA
   ========================================================================== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    max-width: 980px;
    margin: 0 auto;
}

.gallery figure {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-dark);
}

.gallery img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery figure:hover img { transform: scale(1.04); }

/* ==========================================================================
   ENLACE CRUZADO ENTRE LAS DOS PÁGINAS
   ========================================================================== */
.cross-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    max-width: 760px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    text-align: center;
}

.cross-link p { color: var(--text-secondary); font-size: 15px; }

.cross-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-red);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
}

.cross-link a:hover { text-decoration: underline; }

/* ==========================================================================
   CTA FINAL
   ========================================================================== */
.final-cta {
    background:
        radial-gradient(circle at 50% 0%, rgba(224, 0, 0, 0.15), transparent 60%),
        var(--bg-obsidian);
    text-align: center;
}

.final-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 13px;
    max-width: 420px;
    margin: 0 auto 20px;
}

.final-cta .schedule-chip { margin: 0 auto; }

/* ==========================================================================
   PIE
   ========================================================================== */
.footer {
    background-color: #030303;
    border-top: 1px solid var(--border-color);
    padding: 34px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.footer p { margin-bottom: 10px; }
.footer p:last-child { margin-bottom: 0; }

.footer-areas { color: var(--text-secondary); max-width: 720px; margin: 0 auto 12px; }

.footer-credit a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
}

.footer-credit a:hover { color: var(--accent-red); text-decoration: underline; }

/* ==========================================================================
   BARRA FIJA MOBILE
   Mantiene el CTA disponible cuando el usuario ya scrolleó lejos del hero.
   ========================================================================== */
.sticky-cta {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    display: none;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(5, 5, 5, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-strong);
    transform: translateY(110%);
    transition: transform 0.28s ease;
}

.sticky-cta.visible { transform: translateY(0); }
.sticky-cta .btn { min-height: 50px; font-size: 15px; padding: 12px 14px; }
.sticky-cta .btn-call { flex: 0 0 42%; }

@media (max-width: 767px) {
    .sticky-cta { display: flex; }
    body { padding-bottom: 78px; }
}

/* ==========================================================================
   ANIMACIONES DE ENTRADA
   Cortas y solo por CSS: la tarjeta de contacto nunca queda inutilizable
   esperando a que corra JavaScript.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
    .fade-up { animation: fadeUp 0.5s ease-out both; }
    .fade-up:nth-child(2) { animation-delay: 0.06s; }
    .fade-up:nth-child(3) { animation-delay: 0.12s; }

    @keyframes fadeUp {
        from { opacity: 0; transform: translateY(14px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
    .reveal.in { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (min-width: 768px) {
    .hero { padding: 44px 0 76px; }
    .hero-container { gap: 26px; }
    .brand-logo { max-width: 400px; }
    body[data-landing="auxilio"] .brand-logo { max-width: 170px; }
    .contact-card { padding: 32px 28px; }
    .section { padding: 84px 0; }
    .services-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .final-cta-actions { flex-direction: row; max-width: 560px; }
}

/* --------------------------------------------------------------------------
   Mobile: la tarjeta de contacto tiene que entrar completa arriba del pliegue,
   contando que el navegador se come ~100px con su propia barra. Por eso acá
   el hero se comprime y la bajada se manda debajo de los botones.
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .hero-tagline { order: 5; }
    .contact-card { padding: 20px 16px; gap: 12px; }
    .btn { min-height: 50px; padding: 13px 14px; }
    .btn-whatsapp { font-size: 15px; }
    .btn-call { font-size: 14.5px; }
    .btn .icon { font-size: 19px; }
}

@media (max-width: 400px) {
    .brand-logo { max-width: 215px; }
    body[data-landing="auxilio"] .brand-logo { max-width: 110px; }
    .gallery img { height: 200px; }
}
