/* ============================================================
   TTM · Tu Taller Móvil — styles.css
   Base: index13A (Editorial Bold). Hero oscuro, tipografía XXL,
   servicios en filas numeradas, marquesina de averías.
   ============================================================ */
:root {
    --c-bg:       #FFFFFF;
    --c-surf:     #F4F1EC;
    --c-ink:      #121214;
    --c-muted:    #6A6A70;
    --c-red:      #CC030B;
    --c-red-h:    #A30208;
    --c-red-soft: #FBE7E8;
    --c-border:   #E6E2DB;
    /* Rojo del cliente (#CC030B, muestreado de su logotipo). Sobre blanco da
       5,86:1 y sobre el crema 5,17:1, así que el propio rojo de marca ya cumple
       WCAG AA en texto pequeño y no hace falta oscurecerlo. Sobre el fondo
       oscuro sí hay que aclararlo: el rojo de marca solo llega a 3,15:1. */
    --c-red-txt-claro: #CC030B;   /* texto rojo sobre fondos blancos o crema  */
    --c-red-txt-osc:   #FF5A4D;   /* texto rojo sobre el fondo oscuro (ink)   */
    --f-head: 'Space Grotesk', system-ui, 'Segoe UI', Roboto, Helvetica, sans-serif;
    --f-body: 'Inter', system-ui, 'Segoe UI', Roboto, Helvetica, sans-serif;
    --r-pill: 999px;
    --max-w: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { font-family: var(--f-body); font-size: 16px; line-height: 1.6; color: var(--c-ink); background: var(--c-bg); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
svg { display: block; flex-shrink: 0; }

.c { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px) { .c { padding: 0 28px; } }

h1 { font-family: var(--f-head); font-weight: 700; line-height: .96; letter-spacing: -.02em; font-size: clamp(44px, 8vw, 96px); }
h2 { font-family: var(--f-head); font-weight: 700; line-height: 1.02; letter-spacing: -.01em; font-size: clamp(30px, 4.5vw, 48px); }
h3 { font-family: var(--f-head); font-size: clamp(22px, 3vw, 30px); font-weight: 600; line-height: 1.1; }
h4 { font-family: var(--f-head); font-size: 17px; font-weight: 600; line-height: 1.3; }

.overline {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 12px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .18em; color: var(--c-red-txt-claro); margin-bottom: 20px;
}
.overline::before { content: ""; width: 28px; height: 2px; background: var(--c-red); }

/* === ACCESIBILIDAD DE TECLADO ===
   Un foco propio y visible tanto sobre fondo claro como sobre rojo u oscuro. */
:focus-visible {
    outline: 3px solid var(--c-red);
    outline-offset: 3px; border-radius: 2px;
}
.hero :focus-visible, .nav :focus-visible, .ft :focus-visible,
.cta :focus-visible, .facade:focus-visible {
    outline-color: #fff;
}
/* Enlace para saltar el menú, visible solo al tabular */
.skip {
    position: absolute; left: 50%; top: 0; transform: translate(-50%, -110%);
    z-index: 300; background: var(--c-ink); color: #fff;
    padding: 12px 22px; font-size: 14px; font-weight: 600;
    border-bottom-left-radius: 8px; border-bottom-right-radius: 8px;
    transition: transform .18s;
}
.skip:focus { transform: translate(-50%, 0); }

/* === BUTTONS === */
.btn-p {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 15px 30px; background: var(--c-red); color: #fff;
    font-family: var(--f-body); font-size: 15px; font-weight: 600;
    border-radius: var(--r-pill); border: none; cursor: pointer;
    transition: background .2s, transform .15s; white-space: nowrap; min-height: 44px;
}
.btn-p:hover { background: var(--c-red-h); transform: translateY(-1px); }
.btn-p svg { width: 18px; height: 18px; }
.btn-ghost {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 29px; background: transparent; color: #fff;
    font-size: 15px; font-weight: 600;
    border-radius: var(--r-pill); border: 2px solid rgba(255,255,255,.35);
    cursor: pointer; transition: border-color .2s; white-space: nowrap; min-height: 44px;
}
.btn-ghost:hover { border-color: #fff; }

/* === NAV (oscura, integrada con el hero) === */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: var(--c-ink); border-bottom: 1px solid rgba(255,255,255,.1);
}
.nav .c { display: flex; align-items: center; gap: 8px; height: 68px; }
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; padding: 9px 0; }
/* El logotipo de TTM es el monograma blanco DENTRO de su recuadro rojo:
   así lo usa el cliente y así debe ir. Se sirve a resolución nativa y se
   reduce por CSS, para que no pierda nitidez. */
.logo-img { height: 34px; width: auto; border-radius: 4px; }
.logo-name { font-family: var(--f-head); font-size: 15px; font-weight: 700; color: #fff; }
@media (max-width: 480px) { .logo-name { display: none; } }

.menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.menu a {
    font-size: 14px; font-weight: 500; color: rgba(255,255,255,.75);
    padding: 8px 12px; transition: color .15s; white-space: nowrap;
}
.menu a:hover { color: #fff; }
.nav-wa { margin-left: 10px; padding: 11px 22px; min-height: 0; }

.hbg {
    display: none; flex-direction: column; gap: 5px; align-items: center; justify-content: center;
    background: none; border: none; cursor: pointer;
    width: 44px; height: 44px; padding: 0; margin-left: auto;   /* área táctil cómoda */
}
.hbg span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .2s; }
.hbg.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hbg.open span:nth-child(2) { opacity: 0; }
.hbg.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* El menu completo solo cabe desde ~1015px (son 6 enlaces mas el boton).
   Por debajo va el menu plegable: entre 900 y 1012 la barra desbordaba
   la pantalla y el boton de WhatsApp quedaba cortado. */
@media (max-width: 1039px) {
    .hbg { display: flex; }
    .menu, .nav-wa { display: none; }
    .menu.open {
        display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
        position: absolute; top: 68px; left: 0; right: 0;
        background: var(--c-ink); border-bottom: 1px solid rgba(255,255,255,.1);
        padding: 16px 20px 24px; z-index: 99;
    }
    .menu.open .mob-wa { display: inline-flex; margin-top: 12px; }
}
@media (min-width: 1040px) { .mob-wa { display: none; } }

/* === HERO oscuro === */
.hero { background: var(--c-ink); color: #fff; padding: 96px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center; padding-bottom: 88px; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.25fr 1fr; gap: 48px; } }

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 12px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .18em; color: var(--c-red-txt-osc); margin-bottom: 28px;
}
.hero-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--c-red); }

.hero h1 { margin-bottom: 28px; }
/* El titular va en el rojo de marca. Sobre el fondo oscuro da 3,15:1, que cumple
   el mínimo de WCAG para texto grande (3:1) porque son 44-96px en negrita.
   El rojo aclarado solo se usa en el rótulo pequeño de 12px, donde el mínimo
   exigido es 4,5:1 y el rojo de marca no llega. */
.hero h1 em { font-style: normal; color: var(--c-red); display: inline-block; position: relative; }
.hero-sub { color: rgba(255,255,255,.65); font-size: 17px; max-width: 460px; margin-bottom: 40px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.hero-trust li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.8); }
.trust-tick {
    width: 20px; height: 20px;
    clip-path: polygon(29.3% 0%,70.7% 0%,100% 29.3%,100% 70.7%,70.7% 100%,29.3% 100%,0% 70.7%,0% 29.3%);
    background: var(--c-red); color: #fff;
    display: flex; align-items: center; justify-content: center;
}
.trust-tick svg { width: 11px; height: 11px; }

/* Media hero: fachada 3D con carga bajo demanda */
.hero-media { position: relative; }
.oct-frame {
    position: relative; width: min(440px, 100%); aspect-ratio: 1; margin-left: auto;
}
@media (max-width: 979px) { .oct-frame { margin: 0 auto; } }
.oct-frame::before {
    content: ""; position: absolute; inset: -1px; z-index: 0;
    clip-path: polygon(29.3% 0%,70.7% 0%,100% 29.3%,100% 70.7%,70.7% 100%,29.3% 100%,0% 70.7%,0% 29.3%);
    background: var(--c-red); transform: translate(14px, 14px);
}
.oct-inner {
    position: relative; z-index: 1; width: 100%; height: 100%;
    clip-path: polygon(29.3% 0%,70.7% 0%,100% 29.3%,100% 70.7%,70.7% 100%,29.3% 100%,0% 70.7%,0% 29.3%);
    background: #1d1d21; overflow: hidden;
}
.oct-inner iframe { width: 100%; height: 100%; border: none; display: block; }
.facade {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 18px;
    background:
        radial-gradient(circle at 50% 42%, rgba(204,3,11,.22), transparent 58%),
        #1d1d21;
    border: none; cursor: pointer; width: 100%; color: #fff; font-family: var(--f-body);
}
.facade-phone { width: 84px; height: 156px; border: 3px solid rgba(255,255,255,.85); border-radius: 18px; position: relative; }
.facade-phone::before { content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 28px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.85); }
.facade-phone::after {
    content: ""; position: absolute; inset: 24px 10px 14px;
    background: linear-gradient(135deg, rgba(204,3,11,.85), rgba(204,3,11,.25));
    border-radius: 6px;
}
.facade-cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 22px; border: 2px solid rgba(255,255,255,.4); border-radius: var(--r-pill);
    font-size: 14px; font-weight: 600; transition: border-color .2s, background .2s;
}
.facade:hover .facade-cta { border-color: #fff; background: rgba(255,255,255,.06); }
.facade-cta svg { width: 16px; height: 16px; }
.facade small { font-size: 12px; color: rgba(255,255,255,.68); max-width: 62%; text-align: center; }
@media (max-width: 360px) { .facade small { display: none; } }   /* no cabe dentro del octogono */

/* Aviso mientras se descarga el visor 3D (modelo + motor 3D) */
.oct-inner.cargando::after {
    content: "Cargando el visor 3D…";
    position: absolute; inset: auto 0 0 0; z-index: 2;
    padding: 12px; text-align: center;
    font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
    color: #fff; background: rgba(18,18,20,.82);
}
.oct-nota {
    margin-top: 16px; font-size: 13px; color: rgba(255,255,255,.62);
    text-align: right; max-width: min(440px, 100%); margin-left: auto;
}
.oct-nota a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.oct-nota a:hover { color: var(--c-red-txt-osc); }
@media (max-width: 979px) { .oct-nota { text-align: center; margin-right: auto; } }

/* === MARQUESINA === */
.marquee { background: var(--c-red); color: #fff; overflow: hidden; padding: 14px 0; }
.marquee-track {
    display: flex; gap: 48px; width: max-content;
    animation: mq 28s linear infinite;
}
.marquee-track span {
    font-family: var(--f-head); font-size: 15px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .12em; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 48px;
}
.marquee-track span::after { content: "✦"; font-size: 11px; opacity: .7; }
@keyframes mq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; } }

/* === SECTIONS === */
.sec { padding: 96px 0; }
.sec-alt { background: var(--c-surf); }
.sh { max-width: 720px; margin-bottom: 64px; }
.sh h2 { margin-bottom: 18px; }
.sh p { color: var(--c-muted); font-size: 17px; }

/* === SERVICIOS: filas editoriales === */
.srv-rows { border-top: 2px solid var(--c-ink); }
.srv-row {
    display: grid; grid-template-columns: auto 1fr; gap: 16px 28px;
    padding: 36px 8px; border-bottom: 1px solid var(--c-border);
    align-items: start; transition: background .2s; position: relative;
}
@media (min-width: 820px) {
    .srv-row { grid-template-columns: 90px 1.1fr 1.6fr auto; align-items: center; gap: 32px; }
}
.srv-row:hover { background: rgba(204,3,11,.035); }
.srv-num {
    font-family: var(--f-head); font-size: 15px; font-weight: 700;
    color: var(--c-red); letter-spacing: .08em;
}
.srv-row h3 { transition: color .2s; }
.srv-row:hover h3 { color: var(--c-red); }
.srv-info p { color: var(--c-muted); font-size: 15px; margin-bottom: 10px; }
.srv-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.srv-tags span {
    padding: 3px 12px; border: 1px solid var(--c-border); color: var(--c-muted);
    font-size: 12px; font-weight: 600; border-radius: var(--r-pill); background: var(--c-bg);
}
.srv-go {
    width: 52px; height: 52px; border: 2px solid var(--c-ink); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, border-color .2s, color .2s, transform .25s;
    grid-row: 1; grid-column: 2; justify-self: end;
}
@media (min-width: 820px) { .srv-go { grid-row: auto; grid-column: auto; } }
.srv-go svg { width: 20px; height: 20px; }
.srv-row:hover .srv-go { background: var(--c-red); border-color: var(--c-red); color: #fff; transform: rotate(45deg); }

/* === REPARACIONES: lista a dos columnas === */
.rep-grid { display: grid; grid-template-columns: 1fr; gap: 0 64px; border-top: 2px solid var(--c-ink); }
@media (min-width: 820px) { .rep-grid { grid-template-columns: 1fr 1fr; } }
.rep-item {
    display: flex; gap: 20px; align-items: flex-start;
    padding: 28px 8px; border-bottom: 1px solid var(--c-border);
}
.rep-ico {
    width: 46px; height: 46px; flex-shrink: 0;
    clip-path: polygon(29.3% 0%,70.7% 0%,100% 29.3%,100% 70.7%,70.7% 100%,29.3% 100%,0% 70.7%,0% 29.3%);
    background: var(--c-ink); color: #fff;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.rep-item:hover .rep-ico { background: var(--c-red); }
.rep-ico svg { width: 21px; height: 21px; }
/* Estas tarjetas van en h3 por jerarquia (cuelgan de un h2), pero conservan
   el tamano de un h4: el nivel es semantico, el tamano es visual. */
.rep-item h3 { font-size: 17px; line-height: 1.3; margin-bottom: 4px; }
.rep-item p { color: var(--c-muted); font-size: 14px; }

/* === POR QUÉ: tres columnas con número gigante === */
.why-grid { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 2px solid var(--c-ink); }
@media (min-width: 820px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why-col { padding: 44px 32px 48px; border-bottom: 1px solid var(--c-border); }
@media (min-width: 820px) {
    .why-col { border-bottom: none; border-right: 1px solid var(--c-border); }
    .why-col:last-child { border-right: none; }
}
.why-big {
    font-family: var(--f-head); font-size: clamp(56px, 7vw, 88px); font-weight: 700;
    line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--c-red);
    margin-bottom: 24px; display: block;
}
.why-col h3 { margin-bottom: 12px; font-size: 22px; }
.why-col p { color: var(--c-muted); font-size: 15px; }

/* === ZONA / DÓNDE ESTAMOS === */
.zona-inner { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 900px) { .zona-inner { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; } }
.zona-content h2 { margin-bottom: 16px; }
.zona-content > p { color: var(--c-muted); margin-bottom: 36px; }
.zona-points { display: flex; flex-direction: column; }
.zona-point {
    display: flex; gap: 18px; align-items: flex-start;
    padding: 20px 0; border-top: 1px solid var(--c-border);
}
.zona-mk {
    width: 42px; height: 42px; flex-shrink: 0;
    clip-path: polygon(29.3% 0%,70.7% 0%,100% 29.3%,100% 70.7%,70.7% 100%,29.3% 100%,0% 70.7%,0% 29.3%);
    background: var(--c-red-soft); color: var(--c-red);
    display: flex; align-items: center; justify-content: center;
}
.zona-mk svg { width: 19px; height: 19px; }
.zona-point-text strong { display: block; margin-bottom: 4px; font-weight: 600; }
.zona-point-text span { font-size: 14px; color: var(--c-muted); }
/* === MAPA ===
   Plano propio (teselas de OpenStreetMap tratadas con los colores de TTM) con
   el local señalado. El mapa de Google solo se carga si el usuario lo pide. */
.mapa { margin: 0; }
.mapa-vista {
    position: relative; width: 100%; aspect-ratio: 4/3;
    background: var(--c-surf); overflow: hidden;
    clip-path: polygon(8% 0%,92% 0%,100% 10%,100% 90%,92% 100%,8% 100%,0% 90%,0% 10%);
    box-shadow: 0 18px 44px rgba(18,20,24,.10);
}
.mapa-vista img,
.mapa-vista iframe { width: 100%; height: 100%; border: none; display: block; object-fit: cover; }
/* Cuando entra el mapa real, la fachada desaparece */
.mapa-vista.mapa-vivo picture,
.mapa-vista.mapa-vivo .mapa-pin,
.mapa-vista.mapa-vivo .mapa-chapa,
.mapa-vista.mapa-vivo .mapa-abrir,
.mapa-vista.mapa-vivo .mapa-credito { display: none; }
.mapa-vista.mapa-vivo iframe { position: absolute; inset: 0; }

/* Marcador: el octógono de la identidad, en el punto exacto del portal */
.mapa-pin {
    position: absolute; left: 50.05%; top: 49.98%;
    width: 46px; height: 46px; margin: -46px 0 0 -23px;   /* la punta apoya en el sitio */
    clip-path: polygon(29.3% 0%,70.7% 0%,100% 29.3%,100% 70.7%,70.7% 100%,29.3% 100%,0% 70.7%,0% 29.3%);
    background: var(--c-red); color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 20px rgba(204,3,11,.45);
}
.mapa-pin svg { width: 24px; height: 24px; }
.mapa-pin::after {                                       /* pulso de atención */
    content: ""; position: absolute; inset: -10px; z-index: -1;
    clip-path: inherit; background: rgba(204,3,11,.35);
    animation: pin 2.6s ease-out infinite;
}
@keyframes pin {
    0%   { transform: scale(.72); opacity: .85; }
    70%  { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Chapa con el nombre y la dirección, anclada al marcador */
.mapa-chapa {
    position: absolute; left: 50.05%; top: 49.98%;
    transform: translate(-50%, 18px);
    background: var(--c-ink); color: #fff; text-align: center;
    padding: 10px 16px; max-width: min(84%, 300px);
    clip-path: polygon(10px 0%,100% 0%,100% calc(100% - 10px),calc(100% - 10px) 100%,0% 100%,0% 10px);
    box-shadow: 0 10px 26px rgba(18,20,24,.3);
}
.mapa-chapa strong {
    display: block; font-family: var(--f-head); font-size: 14px;
    font-weight: 700; letter-spacing: .01em; white-space: nowrap;
}
.mapa-chapa span { display: block; font-size: 12.5px; color: rgba(255,255,255,.82); margin-top: 2px; }

/* Botón para traer el mapa interactivo de Google */
.mapa-abrir {
    position: absolute; right: 14px; top: 14px;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px; min-height: 44px;
    background: rgba(255,255,255,.94); color: var(--c-ink);
    border: 1px solid rgba(18,20,24,.12); border-radius: var(--r-pill);
    font-family: var(--f-body); font-size: 13px; font-weight: 600; cursor: pointer;
    box-shadow: 0 4px 14px rgba(18,20,24,.16);
    transition: background .18s, transform .15s;
}
.mapa-abrir:hover { background: #fff; transform: translateY(-1px); }
.mapa-abrir svg { width: 15px; height: 15px; }
/* Atribución de la cartografía (obligatoria por la licencia ODbL).
   Va debajo del mapa, no encima: el recorte octogonal cortaba el texto. */
.mapa-credito {
    flex-basis: 100%; margin-top: 4px;
    font-size: 11.5px; color: var(--c-muted);
}
.mapa-credito a { color: var(--c-muted); text-decoration: underline; text-underline-offset: 2px; }
.mapa-credito a:hover { color: var(--c-ink); }

/* Acciones bajo el mapa */
.mapa-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.mapa-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 20px; min-height: 44px;
    border: 1.5px solid var(--c-border); background: var(--c-bg);
    border-radius: var(--r-pill); font-size: 14px; font-weight: 600;
    transition: border-color .18s, background .18s, color .18s;
}
.mapa-btn:hover { border-color: var(--c-ink); }
.mapa-btn svg { width: 16px; height: 16px; }
.mapa-btn-p { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.mapa-btn-p:hover { background: var(--c-red); border-color: var(--c-red); color: #fff; }

@media (prefers-reduced-motion: reduce) {
    .mapa-pin::after { animation: none; opacity: .3; transform: scale(1.1); }
}
@media (max-width: 560px) {
    .mapa-chapa strong { font-size: 13px; white-space: normal; }
    .mapa-abrir { right: 10px; top: 10px; padding: 9px 13px; font-size: 12px; }
}

/* === CTA rojo === */
.cta { background: var(--c-red); color: #fff; padding: 104px 0; }
.cta-inner { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1.2fr 1fr; gap: 72px; align-items: center; } }
.cta h2 { font-size: clamp(36px, 5.5vw, 64px); margin-bottom: 20px; }
/* Sobre el rojo de marca solo el blanco puro llega a 4.5:1 de contraste */
.cta-left p { color: #fff; font-size: 17px; max-width: 460px; }
.cta-actions { display: flex; flex-direction: column; gap: 14px; }
.cta-line {
    display: flex; align-items: center; gap: 16px;
    padding: 22px 26px; background: rgba(0,0,0,.18);
    clip-path: polygon(24px 0%,100% 0%,100% calc(100% - 24px),calc(100% - 24px) 100%,0% 100%,0% 24px);
    transition: background .2s;
}
.cta-line:hover { background: rgba(0,0,0,.3); }
.cta-ci {
    width: 44px; height: 44px; background: #fff; color: var(--c-red); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cta-ci svg { width: 22px; height: 22px; }
.cta-lbl { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: #fff; margin-bottom: 2px; }
.cta-val { display: block; font-size: 16px; font-weight: 600; color: #fff; word-break: break-all; }

/* === FOOTER === */
.ft { background: var(--c-ink); padding: 36px 0; }
.ft-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.ft-brand { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.ft-logo { height: 28px; width: auto; border-radius: 3px; }
.ft-name { font-family: var(--f-head); font-size: 14px; font-weight: 600; color: #fff; }
.ft-meta { display: flex; flex-wrap: wrap; gap: 2px 24px; align-items: center; }
/* Estas opacidades estaban en .5 y .3: la dirección y el aviso legal
   quedaban por debajo del mínimo de contraste legible (2.6:1).
   El padding vertical existe para que se puedan pulsar con el dedo:
   medían 21px de alto, por debajo del mínimo de 24px. */
.ft-meta a { font-size: 13px; color: rgba(255,255,255,.72); transition: color .15s; display: inline-block; padding: 7px 0; }
.ft-meta a:hover { color: #fff; }
.ft-meta span { font-size: 13px; color: rgba(255,255,255,.62); }
.ft-link {
    background: none; border: none; padding: 7px 0; cursor: pointer;
    font-family: var(--f-body); font-size: 13px; color: rgba(255,255,255,.72);
    transition: color .15s; text-decoration: underline; text-underline-offset: 3px;
}
.ft-link:hover { color: rgba(255,255,255,.9); }

/* === MODALES LEGALES === */
.modal {
    margin: auto; padding: 0; border: none;
    width: min(680px, calc(100% - 40px)); max-height: min(80vh, 720px);
    background: var(--c-bg); color: var(--c-ink);
    box-shadow: 0 24px 64px rgba(0,0,0,.35);
    display: flex; flex-direction: column;
}
.modal:not([open]) { display: none; }
.modal::backdrop { background: rgba(18,18,20,.65); backdrop-filter: blur(3px); }
.modal-head {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 22px 28px; background: var(--c-ink); color: #fff; flex-shrink: 0;
    border-bottom: 3px solid var(--c-red);
}
.modal-head h3 { font-size: 20px; color: #fff; }
.modal-close {
    width: 38px; height: 38px; flex-shrink: 0;
    clip-path: polygon(29.3% 0%,70.7% 0%,100% 29.3%,100% 70.7%,70.7% 100%,29.3% 100%,0% 70.7%,0% 29.3%);
    background: var(--c-red); color: #fff; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.modal-close:hover { background: var(--c-red-h); }
.modal-close svg { width: 16px; height: 16px; }
.modal-body { padding: 28px; overflow-y: auto; }
.modal-body h4 { margin: 22px 0 8px; }
.modal-body h4:first-child { margin-top: 0; }
.modal-body p { font-size: 14px; color: var(--c-muted); margin-bottom: 10px; }
.modal-body ul { margin: 0 0 10px; padding-left: 4px; }
.modal-body li { font-size: 14px; color: var(--c-muted); padding: 3px 0; }
.modal-body strong { color: var(--c-ink); font-weight: 600; }

/* === SCROLL REVEAL (solo si hay JS: html.js) === */
html.js .rv {
    opacity: 0; transform: translateY(24px);
    transition: opacity .55s ease, transform .55s ease;
    transition-delay: var(--d, 0ms);
}
html.js .rv.in { opacity: 1; transform: none; }

/* === STICKY MOBILE CTA === */
@media (max-width: 640px) {
    .sticky-wa {
        position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
        z-index: 200; box-shadow: 0 8px 24px rgba(204,3,11,.35); white-space: nowrap;
    }
    /* Hueco para que el botón fijo no tape el final del footer */
    body { padding-bottom: 92px; }
}
@media (min-width: 641px) { .sticky-wa { display: none; } }

/* === MOVIMIENTO REDUCIDO ===
   Quien lo pida en su sistema ve la web quieta y completa. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    html.js .rv { opacity: 1; transform: none; transition: none; }
    .btn-p:hover, .mapa-abrir:hover, .mapa-btn-p:hover { transform: none; }
    .srv-row:hover .srv-go { transform: none; }
}
