/* ============================================================
   servicio.css — Páginas de LÍNEA DE SERVICIO (frenos, eléctrico,
   suspensión, clutch/transmisión, A/C, diagnóstico).

   Compartida por todas: cada página es el mismo esqueleto con su
   contenido. Se carga DESPUÉS de styles.css y solo agrega; no
   redefine nada de la home.

   Patrón (jul-2026): estas páginas existen porque el 45% del ingreso
   de ManPro es reparación y no tenía puerta digital — la calculadora
   solo cotiza mantenimiento. Cada página es el destino de su propio
   ad group de Google Ads.
   ============================================================ */

/* ---------- Hero de servicio ---------- */
.svc-hero {
    position: relative;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: var(--white);
    padding: 116px 24px 56px;
    overflow: hidden;
}
.svc-hero::after {
    content: '';
    position: absolute;
    right: -140px;
    top: -140px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(255,86,3,.22) 0%, transparent 70%);
    pointer-events: none;
}
.svc-hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    position: relative;
    z-index: 1;
}
.svc-breadcrumb {
    font-size: .85rem;
    color: rgba(255,255,255,.62);
    margin-bottom: 18px;
}
.svc-breadcrumb a { color: rgba(255,255,255,.82); text-decoration: none; }
.svc-breadcrumb a:hover { color: var(--orange); }

.svc-label {
    display: inline-block;
    background: var(--orange);
    color: var(--white);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 18px;
}
.svc-title {
    font-family: 'Anton', sans-serif;
    font-size: clamp(2.1rem, 6vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: .01em;
    margin: 0 0 16px;
    text-transform: uppercase;
}
.svc-title span { color: var(--orange); }
.svc-sub {
    font-size: clamp(1rem, 2.2vw, 1.18rem);
    color: rgba(255,255,255,.86);
    max-width: 620px;
    margin: 0 0 28px;
    line-height: 1.6;
}

/* Doble CTA: llamar + WhatsApp (93% del tráfico es móvil) */
.svc-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}
.svc-btn-call,
.svc-btn-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: var(--touch-min);
    padding: 14px 26px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.02rem;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.svc-btn-call {
    background: var(--orange);
    color: var(--white);
    box-shadow: var(--shadow-orange);
}
.svc-btn-call:hover { background: var(--orange-dark); transform: translateY(-2px); }
.svc-btn-wa {
    background: var(--wa-green);
    color: var(--white);
}
.svc-btn-wa:hover { background: var(--wa-hover); transform: translateY(-2px); }

.svc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.svc-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.16);
    color: rgba(255,255,255,.92);
    font-size: .86rem;
    padding: 9px 15px;
    border-radius: var(--radius-full);
}
.svc-chip i { color: var(--orange); }

.svc-hero-media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    max-height: 340px;
}
.svc-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (min-width: 900px) {
    .svc-hero { padding: 140px 24px 76px; }
    .svc-hero-inner { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; }
    .svc-hero-media { max-height: 420px; }
}

/* ---------- Bloque genérico de sección ---------- */
.svc-section { padding: var(--section-pad); }
.svc-section--gray { background: var(--gray-bg); }
.svc-wrap { max-width: 1180px; margin: 0 auto; }
.svc-h2 {
    font-family: 'Anton', sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    text-transform: uppercase;
    letter-spacing: .01em;
    color: var(--navy);
    margin: 0 0 10px;
}
.svc-lead {
    color: var(--text-muted);
    font-size: 1.03rem;
    max-width: 720px;
    margin: 0 0 34px;
    line-height: 1.65;
}

/* ---------- Síntomas ---------- */
.svc-sintomas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.svc-sintoma {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--orange);
    border-radius: var(--radius);
    padding: 20px 22px;
    box-shadow: var(--shadow-sm);
}
.svc-sintoma i { color: var(--orange); font-size: 1.3rem; margin-bottom: 10px; display: block; }
.svc-sintoma strong { display: block; color: var(--navy); margin-bottom: 6px; font-size: 1.02rem; }
.svc-sintoma span { color: var(--text-muted); font-size: .93rem; line-height: 1.55; }

/* ---------- Qué incluye + señal de precio ---------- */
.svc-incluye-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}
@media (min-width: 900px) {
    .svc-incluye-grid { grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: start; }
}
.svc-lista { list-style: none; padding: 0; margin: 0; }
.svc-lista li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 13px 0;
    border-bottom: 1px dashed var(--border);
    color: var(--text);
    line-height: 1.55;
}
.svc-lista li:last-child { border-bottom: none; }
.svc-lista i { color: var(--success); margin-top: 3px; flex-shrink: 0; }

.svc-precio-card {
    background: var(--navy);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px 26px;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 90px;
}
.svc-precio-badge {
    display: inline-block;
    background: var(--success);
    color: var(--white);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .08em;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 14px;
}
.svc-precio-card h3 {
    font-family: 'Anton', sans-serif;
    font-size: 1.55rem;
    margin: 0 0 10px;
    text-transform: uppercase;
    line-height: 1.15;
}
.svc-precio-card p { color: rgba(255,255,255,.8); font-size: .96rem; line-height: 1.6; margin: 0 0 20px; }
.svc-precio-monto {
    font-family: 'Anton', sans-serif;
    font-size: 2.3rem;
    color: var(--orange);
    line-height: 1;
    margin: 0 0 4px;
}
.svc-precio-nota { font-size: .84rem; color: rgba(255,255,255,.62); margin: 0 0 20px; }
.svc-precio-card .svc-btn-wa,
.svc-precio-card .svc-btn-call { width: 100%; margin-bottom: 10px; }

/* ---------- Bitácora en vivo (EL diferenciador) ---------- */
.svc-bitacora { background: var(--dark); color: var(--white); }
.svc-bitacora .svc-h2 { color: var(--white); }
.svc-bitacora .svc-lead { color: rgba(255,255,255,.7); }
.svc-bit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    align-items: center;
}
@media (min-width: 900px) {
    .svc-bit-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
}
.svc-bit-puntos { list-style: none; padding: 0; margin: 0 0 26px; }
.svc-bit-puntos li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 20px;
}
.svc-bit-puntos i {
    color: var(--orange);
    font-size: 1.15rem;
    margin-top: 3px;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}
.svc-bit-puntos strong { display: block; margin-bottom: 4px; font-size: 1.04rem; }
.svc-bit-puntos span { color: rgba(255,255,255,.68); font-size: .94rem; line-height: 1.55; }

/* Maqueta de teléfono con la bitácora real */
.svc-phone {
    max-width: 330px;
    margin: 0 auto;
    background: #0d0d0d;
    border: 9px solid #262626;
    border-radius: 34px;
    padding: 16px 13px 20px;
    box-shadow: 0 18px 50px rgba(0,0,0,.55);
}
.svc-phone-top {
    text-align: center;
    padding-bottom: 13px;
    border-bottom: 1px solid rgba(255,255,255,.09);
    margin-bottom: 15px;
}
.svc-phone-top strong { display: block; font-size: .95rem; }
.svc-phone-top span { font-size: .76rem; color: rgba(255,255,255,.5); }

.svc-timeline { position: relative; padding-left: 26px; }
.svc-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: rgba(255,255,255,.14);
}
.svc-tl-item { position: relative; padding-bottom: 20px; }
.svc-tl-item::before {
    content: '';
    position: absolute;
    left: -23px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--dark);
    border: 2px solid rgba(255,255,255,.28);
}
.svc-tl-item--done::before { background: var(--success); border-color: var(--success); }
.svc-tl-item--now::before { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,86,3,.2); }
.svc-tl-hora { font-size: .72rem; color: rgba(255,255,255,.45); display: block; margin-bottom: 3px; }
.svc-tl-titulo { font-size: .92rem; font-weight: 600; display: block; margin-bottom: 5px; }
.svc-tl-texto { font-size: .8rem; color: rgba(255,255,255,.6); line-height: 1.5; display: block; }
.svc-tl-fotos { display: flex; gap: 6px; margin-top: 9px; }
.svc-tl-fotos img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 7px;
    border: 1px solid rgba(255,255,255,.14);
}
.svc-phone-nota {
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px solid rgba(255,255,255,.09);
    font-size: .74rem;
    color: rgba(255,255,255,.42);
    text-align: center;
}

/* ---------- Prueba / galería ---------- */
.svc-galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}
.svc-galeria figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.svc-galeria img { width: 100%; height: 210px; object-fit: cover; display: block; }
.svc-galeria figcaption {
    background: var(--white);
    padding: 12px 15px;
    font-size: .89rem;
    color: var(--text-muted);
}

/* ---------- Tira de otros servicios ---------- */
.svc-otros {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.svc-otro {
    display: inline-flex;
    align-items: center;
    min-height: var(--touch-min);
    padding: 12px 22px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--navy);
    font-weight: 600;
    font-size: .96rem;
    text-decoration: none;
    transition: border-color .18s ease, color .18s ease, transform .18s ease;
}
.svc-otro:hover {
    border-color: var(--orange);
    color: var(--orange);
    transform: translateY(-2px);
}
.svc-otro--alt { background: var(--orange-light); border-color: transparent; }

/* Botón de LLAMAR dentro del CTA final (reusa .btn-wa-large, cambia el color) */
.btn-wa-large.btn-cta-call { background: var(--orange); }
.btn-wa-large.btn-cta-call:hover { background: var(--orange-dark); }

/* ---------- Barra fija móvil ---------- */
.svc-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 950;
    display: flex;
    gap: 9px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97);
    -webkit-backdrop-filter: blur(8px); /* Safari/iOS lo exige con prefijo */
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -3px 18px rgba(0,0,0,.10);
}
.svc-sticky a {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: var(--touch-min);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: .97rem;
    text-decoration: none;
}
.svc-sticky .ss-call { background: var(--orange); color: var(--white); }
.svc-sticky .ss-wa { background: var(--wa-green); color: var(--white); }

/* En escritorio la barra fija estorba: el FAB y los CTA del hero bastan */
@media (min-width: 900px) {
    .svc-sticky { display: none; }
}
/* En móvil, aire al final para que la barra no tape el contenido */
@media (max-width: 899px) {
    body.svc-page { padding-bottom: 76px; }
    .fab-wa { bottom: 88px; }
}
