/* ==========================================
   JM Autoglass · propuesta "Cinta roja" (oct 2026)
   Se carga despues de main-styles.css. ADN de sus flyers:
   rojo y negro solidos, MAYUSCULA en cursiva, cintas inclinadas.
   ========================================== */

/* ---------- Tipografia de marca ---------- */
.p-display,
.hero-title,
.section-header h2,
.insurance-copy h2,
.location-header h2,
.cta-content h2,
.service-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-style: italic;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 1.02;
}
.section-header h2 .hl,
.insurance-copy h2 .hl,
.location-header h2 .hl { color: var(--primary-red); }
.insurance-copy h2 .hl { color: #ff4d4d; }

/* ---------- Cintas (como en los flyers) ---------- */
.ribbon {
    display: inline-block;
    padding: 0.12em 0.36em 0.14em;
    background: var(--primary-red);
    color: var(--white);
    transform: skewX(-10deg);
    border-radius: 4px;
}
.ribbon > span { display: inline-block; transform: skewX(10deg); }
.ribbon--black { background: var(--black); color: var(--white); }

/* ---------- Hero ---------- */
.hero { min-height: 680px; }
.hero-background { opacity: 1; }
.hero-overlay { background: rgba(0, 0, 0, 0.62); }
/* Fondos solidos (sin degradados) */
.services, .location-section { background: #f5f5f5; }
.services::before { display: none; }
.testimonials { background: var(--white); }
.hero-title { font-size: clamp(2.6rem, 6.6vw, 5.4rem); max-width: none; margin-bottom: 24px; }
.hero-title .line { display: block; }
.hero-title .ribbon { margin-top: 0.12em; font-size: 0.82em; }
.hero-title .ribbon + .ribbon { margin-left: 0.15em; }
.hero-title .text-accent { color: inherit; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; align-items: center; }
.seal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 26px;
    background: var(--primary-red);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-style: italic;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%, 12px 50%);
    transform: rotate(-3deg);
}
.seal--black { background: var(--white); color: var(--black); transform: rotate(2deg); }
.seal img { width: 22px; height: 22px; }

/* ---------- Franja que corre ---------- */
.marquee {
    background: var(--primary-red);
    color: var(--white);
    overflow: hidden;
    border-block: 4px solid var(--black);
    padding: 14px 0;
}
.marquee__track {
    display: flex;
    width: max-content;
    animation: marquee 32s linear infinite;
}
.marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.marquee__item {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 0 28px;
    font-family: 'Montserrat', sans-serif;
    font-style: italic;
    font-weight: 800;
    text-transform: uppercase;
    font-size: clamp(1.15rem, 2.4vw, 1.75rem);
    white-space: nowrap;
}
.marquee__item img { width: 36px; height: 36px; filter: brightness(0) invert(1); }
.marquee__item::after { content: ''; width: 10px; height: 10px; background: var(--black); transform: rotate(45deg); margin-left: 28px; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------- Servicios ---------- */
.service-header { gap: 14px; }
.service-header img { width: 52px; height: 52px; flex-shrink: 0; }
.also-fix ul li { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Antes y despues ---------- */
.ba-section { padding: var(--section-padding); background: var(--black); color: var(--white); }
.ba-section .section-header h2 { color: var(--white); }
.ba-section .section-header p { color: rgba(255, 255, 255, 0.75); }
.ba-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 22px; }
.ba-tab {
    font-family: 'Montserrat', sans-serif;
    font-style: italic;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.95rem;
    padding: 12px 22px;
    min-height: 46px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: var(--white);
    border-radius: 6px;
    cursor: pointer;
    transform: skewX(-10deg);
}
.ba-tab > span { display: inline-block; transform: skewX(10deg); }
.ba-tab[aria-selected="true"] { background: var(--primary-red); border-color: var(--primary-red); }
.ba {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
    user-select: none;
    touch-action: pan-y;
    --pos: 50%;
    background: #111;
}
.ba[hidden] { display: none; }
.ba img { display: block; width: 100%; height: auto; pointer-events: none; }
.ba .ba-after { position: absolute; inset: 0; height: 100%; object-fit: cover; clip-path: inset(0 0 0 var(--pos)); }
.ba-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos);
    width: 4px;
    margin-left: -2px;
    background: var(--white);
    pointer-events: none;
}
.ba-knob {
    position: absolute;
    top: 50%;
    left: var(--pos);
    width: 52px;
    height: 52px;
    margin: -26px 0 0 -26px;
    border-radius: 50%;
    background: var(--primary-red);
    border: 4px solid var(--white);
    display: grid;
    place-items: center;
    color: var(--white);
    font-size: 1rem;
    pointer-events: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.ba-label {
    position: absolute;
    top: 14px;
    padding: 5px 14px;
    font-family: 'Montserrat', sans-serif;
    font-style: italic;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    transform: skewX(-10deg);
    pointer-events: none;
}
.ba-label--before { left: 14px; background: var(--white); color: var(--black); }
.ba-label--after { right: 14px; background: var(--primary-red); color: var(--white); }
.ba input[type="range"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
}
.ba input[type="range"]:focus-visible ~ .ba-knob { outline: 3px solid #fbbf24; outline-offset: 3px; }
.ba-hint { text-align: center; margin-top: 14px; color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; }

/* ---------- Seguro en 3 pasos ---------- */
.claim-steps { list-style: none; padding: 0; margin: 28px 0 30px; display: grid; gap: 14px; counter-reset: paso; }
.claim-step {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    background: #1b1b1b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    counter-increment: paso;
}
.claim-step img { width: 56px; height: 56px; background: var(--white); border-radius: 12px; padding: 6px; }
.claim-step h3 {
    font-family: 'Montserrat', sans-serif;
    font-style: italic;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.05rem;
    margin-bottom: 2px;
}
.claim-step h3::before { content: counter(paso) '. '; color: #ff4d4d; }
.claim-step p { color: rgba(255, 255, 255, 0.78); font-size: 0.97rem; margin: 0; }
/* Se arma al bajar: solo si hay JS y movimiento permitido */
.js .claim-step { opacity: 0; transform: translateX(-28px); transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.js .claim-step:nth-child(2) { transition-delay: 0.18s; }
.js .claim-step:nth-child(3) { transition-delay: 0.36s; }
.js .claim-steps.is-in .claim-step { opacity: 1; transform: none; }
.insurers { color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; margin-bottom: 24px; }
.insurers strong { color: var(--white); }

/* ---------- Zona (ZIP) ---------- */
.zip-box {
    margin: 26px 0;
    padding: 22px;
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: 14px;
}
.zip-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    font-family: 'Montserrat', sans-serif;
    font-style: italic;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.05rem;
    line-height: 1.25;
    color: var(--dark-gray);
}
.zip-title img { width: 36px; height: 36px; flex: none; }
.zip-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr);
    gap: 10px;
    align-items: start;
}
.zip-row > .vin-hint,
.zip-row > .vin-where,
.zip-row > button { grid-column: 1 / -1; }
.zip-field label {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--dark-gray);
    white-space: nowrap;
}
.zip-field label span { font-weight: 400; color: var(--text-light); overflow: hidden; text-overflow: ellipsis; }
.zip-field label .vin-count { margin-left: auto; font-variant-numeric: tabular-nums; }
.zip-row input {
    width: 100%;
    min-height: 52px;
    padding: 0 14px;
    font-size: 1.15rem;
    letter-spacing: 0.06em;
    border: 2px solid #8a919c;
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    background: var(--white);
}
.zip-row input:focus { outline: 2px solid var(--black); outline-offset: 1px; border-color: var(--black); }
.zip-row input[aria-invalid="true"] { border-color: var(--primary-red); }
.vin-input { text-transform: uppercase; letter-spacing: 0.02em; }
.vin-input::placeholder { text-transform: none; letter-spacing: 0; }
.field-error { margin: 6px 0 0; font-size: 0.88rem; font-weight: 700; color: var(--primary-red); line-height: 1.3; }
.field-error:empty { display: none; }
.vin-hint { margin: 0; font-size: 0.9rem; color: var(--text-light); line-height: 1.45; }
.vin-where summary {
    cursor: pointer;
    min-height: 44px;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--dark-gray);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.vin-steps {
    list-style: none;
    margin: 4px 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.vin-steps li { display: flex; flex-direction: column; gap: 4px; }
.vin-steps img { width: 100%; height: auto; display: block; border-radius: 8px; }
.vin-steps span {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    font-family: 'Montserrat', sans-serif;
    font-style: italic;
    font-weight: 700;
    font-size: clamp(0.66rem, 2.8vw, 0.76rem);
    line-height: 1.2;
    color: var(--dark-gray);
}
.vin-steps b {
    flex: none;
    padding: 0 5px;
    background: var(--primary-red);
    color: var(--white);
    font-weight: 800;
    transform: skewX(-10deg);
}
.zip-row button {
    min-height: 52px;
    padding: 0 22px;
    border: 0;
    border-radius: 8px;
    background: var(--black);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    cursor: pointer;
}
.zip-result { margin-top: 14px; font-weight: 700; color: var(--dark-gray); }
.zip-result:empty { display: none; }
.zip-result .btn { margin-top: 10px; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-family: inherit; }
.zip-result.is-yes::before { content: '\2713  '; color: var(--whatsapp); }
@media (max-width: 480px) {
    .zip-row { grid-template-columns: 92px minmax(0, 1fr); }
    .zip-row input { padding: 0 10px; font-size: 1.05rem; }
}

/* ---------- Antes de abrir WhatsApp: ZIP y VIN ---------- */
.wa-gate {
    width: min(480px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 24px 20px 18px;
    border: 2px solid var(--black);
    border-radius: 14px;
    background: var(--white);
    color: var(--dark-gray);
}
.wa-gate::backdrop { background: rgba(0, 0, 0, 0.6); }
html:has(.wa-gate[open]) { overflow: hidden; }
.wa-gate form { position: relative; }
.wa-gate .zip-title { margin-bottom: 6px; padding-right: 40px; }
.wa-gate__lead { margin: 0 0 16px; }
.wa-gate__close {
    position: absolute;
    top: -14px;
    right: -10px;
    width: 44px;
    height: 44px;
    border: 0;
    background: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--dark-gray);
    cursor: pointer;
}
.wa-gate__go {
    width: 100%;
    margin-top: 14px;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
}
.wa-gate__call { margin: 12px 0 0; text-align: center; font-size: 0.95rem; }
.wa-gate__call a { color: var(--dark-gray); font-weight: 700; text-underline-offset: 3px; }
@media (max-width: 480px) {
    /* Arriba, para que el teclado no tape el boton. */
    .wa-gate { margin: 16px auto auto; padding: 22px 16px 16px; }
}

/* ---------- Una resena grande a la vez ---------- */
.review-stage { max-width: 820px; margin: 0 auto; }
.review-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.review-track::-webkit-scrollbar { display: none; }
.review {
    flex: 0 0 100%;
    scroll-snap-align: center;
    margin: 0;
    padding: 8px 12px;
    text-align: center;
}
.review .stars { color: #fbbf24; font-size: 1.4rem; letter-spacing: 4px; margin-bottom: 18px; }
.review p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    line-height: 1.35;
    color: var(--dark-gray);
    text-wrap: balance;
    margin-bottom: 20px;
}
.review p::before { content: '\201C'; color: var(--primary-red); font-style: italic; font-weight: 800; }
.review p::after { content: '\201D'; color: var(--primary-red); font-style: italic; font-weight: 800; }
.review footer strong { display: block; font-size: 1.1rem; color: var(--dark-gray); }
.review footer span { color: var(--light-gray); font-size: 0.95rem; }
.review-dots { display: flex; justify-content: center; gap: 4px; margin-top: 22px; }
.review-dots button {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
}
.review-dots button::before {
    content: '';
    position: absolute;
    inset: 50% auto auto 50%;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    background: #d1d5db;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s;
}
.review-dots button[aria-current="true"]::before { transform: scaleX(2.5); border-radius: 6px; background: var(--primary-red); }

/* ---------- Cierre ---------- */
.cta-section { background: var(--primary-red); }
.cta-content h2 { font-size: clamp(2rem, 5vw, 3.6rem); }
.cta-more { margin-top: 26px; display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.cta-more a { color: var(--white); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.cta-more a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Celular ---------- */
@media (max-width: 768px) {
    .hero-title { font-size: clamp(2.3rem, 10.5vw, 3rem); }
    .hero-title .ribbon { font-size: 0.78em; }
    .ba-label { font-size: 0.75rem; top: 10px; }
    .ba-knob { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
    .claim-step { grid-template-columns: 52px 1fr; }
    .claim-step img { width: 48px; height: 48px; }
}
@media (max-width: 480px) {
    .hero-title { font-size: 2.35rem; }
    .section-header h2, .location-header h2, .insurance-copy h2 { font-size: 2rem; }
    .seal { font-size: 0.82rem; padding: 8px 22px; }
}

/* ---------- Movimiento reducido: todo quieto y visible ---------- */
@media (prefers-reduced-motion: reduce) {
    .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
    .marquee__group[aria-hidden="true"] { display: none; }
    .marquee__group { flex-wrap: wrap; justify-content: center; row-gap: 8px; }
    .js .claim-step { opacity: 1; transform: none; transition: none; }
    .review-track { scroll-behavior: auto; }
}

/* Los hijos de la grilla no deben empujar el ancho en celular */
.location-content > *, .insurance-grid > * { min-width: 0; }

/* La regla vieja de 480px achica todo span: en titulos hereda el tamano */
h1 span, h2 span, h3 span, .seal span, .marquee__item span { font-size: inherit; }

/* Antes y despues: en celular mas alto para que se vea el trabajo */
@media (max-width: 768px) {
    .ba img { aspect-ratio: 4 / 3; object-fit: cover; height: auto; }
    .ba .ba-after { height: 100%; }
}
.adas-body h3, .area-facts h3, .also-fix h3, .faq-list summary { font-style: italic; }
.adas-body h3, .also-fix h3 { text-transform: uppercase; font-weight: 800; }
.hero { background: #0a0a0a; }
@media (max-width: 480px) { .hero-cta .btn { letter-spacing: 0.2px; padding-left: 14px; padding-right: 14px; } }

/* ---- Ajustes tras la critica (26 oct) ---- */
/* Las cintas deben ser inline-block para inclinarse (main-styles fuerza span inline) */
.hero-title .ribbon { display: inline-block; }
.main-header { background: #000; }
.ba-label { z-index: 2; }
.ba { cursor: ew-resize; }
.ba-hint { margin-top: 12px; }
.review-dots button::before { transition: background 0.25s; }
.review-dots button[aria-current="true"]::before { transform: none; width: 30px; margin-left: -15px; }
@media (max-width: 768px) { .insurance-copy .btn { width: 100%; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .marquee__group { flex: 1 1 100%; flex-shrink: 1; } }

/* ---- Servicios cortos con precio "desde" (26 oct) ---- */
.svc-from { margin: 2px 0 18px 4px; font-size: 1.05rem; }
.svc-points { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.svc-points li { position: relative; padding-left: 22px; color: var(--dark-gray); font-size: 1rem; line-height: 1.45; }
.svc-points li::before { content: ''; position: absolute; left: 2px; top: 0.5em; width: 9px; height: 9px; background: var(--primary-red); transform: rotate(45deg); }
.price-note { margin: 0 0 20px; }
/* Antes/despues en claro para que no se junte con la seccion oscura de precio */
.ba-section { background: var(--white); color: var(--dark-gray); }
.ba-section .section-header h2 { color: var(--dark-gray); }
.ba-section .section-header p, .ba-hint { color: var(--light-gray); }
.ba-tab { color: var(--dark-gray); border-color: var(--dark-gray); }
.ba-tab[aria-selected="true"] { color: var(--white); }
