/* =========================================================================
   Taxi Rapido - hoja de estilo unica
   Mobile first. Sin frameworks. Variables CSS para tema y espaciado.
   Paleta: neutros (blanco/gris/negro) + rojo de marca como unico acento.
   ========================================================================= */

/* ---------- 1. Tokens ---------------------------------------------------- */

:root {
    /* Color */
    --ink:        #0c1424;   /* texto principal, casi negro */
    --muted:      #6b7382;   /* texto de apoyo */
    --line:       #e7e9ee;   /* bordes */
    --bg:         #ffffff;
    --bg-soft:    #f5f6f8;   /* fondo de secciones alternas */
    --rojo:       #c8102e;   /* acento de marca (logo) */
    --rojo-dark:  #a30d25;
    --azul:       #001789;   /* azul del logo, uso muy puntual */
    --wa:         #25d366;   /* verde WhatsApp */
    --wa-dark:    #1da851;

    /* Sombras */
    --sh-sm: 0 1px 2px rgba(12, 20, 36, .05);
    --sh-md: 0 2px 4px rgba(12, 20, 36, .04), 0 12px 28px -14px rgba(12, 20, 36, .18);
    --sh-lg: 0 2px 6px rgba(12, 20, 36, .05), 0 28px 60px -28px rgba(12, 20, 36, .28);

    /* Formas */
    --r-card: 20px;
    --r-pill: 999px;

    /* Ritmo */
    --pad-x: 20px;
    --sec-y: 72px;
    --max: 1200px;

    /* Tipografia */
    --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

@media (min-width: 900px) {
    :root {
        --pad-x: 32px;
        --sec-y: 120px;
    }
}

/* ---------- 2. Base ------------------------------------------------------ */

*,
*::before,
*::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;           /* para que el header fijo no tape */
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }

h1, h2, h3 {
    margin: 0;
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.06;
}

p { margin: 0; }

:focus-visible {
    outline: 2px solid var(--rojo);
    outline-offset: 3px;
    border-radius: 4px;
}

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--pad-x);
}

.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;
}

/* ---------- 3. Botones --------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 26px;
    border: 1px solid transparent;
    border-radius: var(--r-pill);
    font-family: inherit;
    font-size: .975rem;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .22s ease, background-color .22s ease,
                border-color .22s ease, box-shadow .22s ease, color .22s ease;
}

.btn svg { flex: 0 0 auto; }

.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
    background: var(--rojo);
    color: #fff;
    box-shadow: 0 10px 24px -12px rgba(200, 16, 46, .7);
}
.btn--primary:hover { background: var(--rojo-dark); box-shadow: 0 16px 30px -14px rgba(200, 16, 46, .8); }

.btn--dark {
    background: var(--ink);
    color: #fff;
}
.btn--dark:hover { background: #000; }

.btn--ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); background: #fff; }

.btn--sm { padding: 11px 18px; font-size: .875rem; }

/* ---------- 4. Header ---------------------------------------------------- */

.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 60;
    padding: 14px 0;
    transition: background-color .3s ease, box-shadow .3s ease, padding .3s ease;
}

.header.is-stuck {
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    box-shadow: 0 1px 0 var(--line), 0 6px 24px -18px rgba(12, 20, 36, .5);
    padding: 9px 0;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header__logo img { width: 168px; }

.nav {
    display: none;
    gap: 4px;
    background: rgba(255, 255, 255, .7);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    padding: 5px;
}

.nav a {
    padding: 9px 18px;
    border-radius: var(--r-pill);
    font-size: .9rem;
    font-weight: 600;
    color: var(--muted);
    transition: color .2s ease, background-color .2s ease;
}

.nav a:hover        { color: var(--ink); }
.nav a.is-active    { background: var(--ink); color: #fff; }

.header__actions { display: flex; align-items: center; gap: 10px; }

/* Telefono de la central: el dato mas importante del header */
.header__tel {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    box-shadow: var(--sh-sm);
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.header__tel:hover {
    border-color: var(--rojo);
    box-shadow: var(--sh-md);
    transform: translateY(-1px);
}

.header__tel-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 36px; height: 36px;
    background: var(--rojo);
    color: #fff;
    border-radius: 50%;
}

.header__tel-txt   { display: none; line-height: 1.15; padding-right: 6px; }

.header__tel-label {
    display: block;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--rojo);
}

.header__tel-num {
    display: block;
    margin-top: 2px;
    font-size: .97rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--ink);
    white-space: nowrap;
}

@media (min-width: 680px) {
    .header__tel     { padding: 5px 8px 5px 5px; }
    .header__tel-txt { display: block; }
}

/* boton hamburguesa (solo movil) */
.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px; height: 42px;
    padding: 0 11px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
    display: grid;
    gap: 2px;
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--sh-md);
    transition: max-height .32s ease, margin-top .32s ease, opacity .25s ease;
    opacity: 0;
}
.nav-mobile.is-open { max-height: 240px; margin-top: 12px; opacity: 1; }
.nav-mobile a {
    padding: 15px 20px;
    font-weight: 600;
    border-bottom: 1px solid var(--line);
}
.nav-mobile a:last-child { border-bottom: 0; }

@media (min-width: 1080px) {
    .nav         { display: flex; }
    .nav-toggle,
    .nav-mobile  { display: none; }
    .header__logo img { width: 230px; }
}

/* ---------- 5. Hero ------------------------------------------------------ */

.hero {
    position: relative;
    padding: 108px 0 36px;
    background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 62%, #fff 100%);
    overflow: hidden;
}

/* mapa estilizado de fondo con la ruta que se traza en loop */
.hero__map {
    position: absolute;
    inset: -6% -10% auto -10%;
    width: 120%;
    height: 105%;
    pointer-events: none;
    z-index: 0;
}
.hero__map .street  { stroke: #f0f2f5; stroke-width: 1; fill: none; }
.hero__map .avenue  { stroke: #eaedf1; stroke-width: 1.6; fill: none; }
.hero__map .block   { fill: #f7f8fa; opacity: .9; }
.hero__map .route {
    fill: none;
    stroke: var(--rojo);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .14;
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
    animation: trazo 11s cubic-bezier(.45, .05, .35, 1) infinite;
}
.hero__map .route--b { animation-duration: 14s; animation-delay: 2.6s; opacity: .09; stroke: var(--ink); }
.hero__map .pin      { fill: var(--rojo); opacity: .25; }
.hero__map .pin-ring {
    fill: none; stroke: var(--rojo); stroke-width: 1.2; opacity: .18;
    transform-origin: center;
    animation: latido 3.4s ease-out infinite;
}

@keyframes trazo {
    0%        { stroke-dashoffset: 1400; }
    45%, 62%  { stroke-dashoffset: 0; }
    100%      { stroke-dashoffset: -1400; }
}

@keyframes latido {
    0%        { transform: scale(.6); opacity: .45; }
    70%, 100% { transform: scale(1.9); opacity: 0; }
}

.hero__inner { position: relative; z-index: 1; text-align: center; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    padding: 8px 16px 8px 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    box-shadow: var(--sh-sm);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--muted);
}
.eyebrow .dot {
    width: 12px; height: 12px;
    background: var(--wa);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(37, 211, 102, .18);
    animation: vivo 2.4s ease-in-out infinite;
}

@keyframes vivo {
    0%, 100% { opacity: 1; }
    50%      { opacity: .35; }
}

.hero h1 {
    font-size: clamp(2.05rem, 5vw, 3.4rem);
    max-width: 21ch;
    margin: 0 auto;
}
.hero h1 em { font-style: normal; color: var(--rojo); }

/* en pantallas anchas el titulo cae en dos lineas limpias */
@media (min-width: 820px) {
    .hero h1 em { display: block; }
}

.hero__sub {
    max-width: 46ch;
    margin: 14px auto 0;
    color: var(--muted);
    font-size: 1.02rem;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
}

/* --- escenario del auto --- */

.stage {
    position: relative;
    z-index: 1;
    margin: 6px auto 0;
    max-width: 940px;
}

.stage__car {
    position: relative;
    width: 100%;
    max-width: 700px;             /* el auto manda, pero deja aire a los lados */
    margin: 0 auto;
    aspect-ratio: 1400 / 870;     /* proporcion del recorte hero-taxi.webp */
    perspective: 1400px;
    touch-action: pan-y;
}

/* Capa que gira con el mouse. Va aparte de .stage__car porque esa ya tiene
   ocupado el transform con la animacion de flotacion. */
.stage__tilt {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
.stage.is-active .stage__tilt { transition: none; }  /* mientras sigue al mouse, manda el rAF */

.stage__car img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    object-position: center bottom;
}

/* Secuencia de giro: solo existe si tools/build_spin.py genero los cuadros. */
.stage__car .car-spin  { opacity: 0; transition: opacity .18s linear; }
.stage__car .car-photo { transition: opacity .18s linear; }
.stage__car.is-spinning .car-photo { opacity: 0; }
.stage__car.is-spinning .car-spin  { opacity: 1; }

/* sombra suave debajo del auto (lo hace "flotar", nunca dentro de una caja) */
.stage__shadow {
    position: absolute;
    left: 50%;
    bottom: 4.5%;
    width: 62%;
    height: 26px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center,
                rgba(12, 20, 36, .28) 0%,
                rgba(12, 20, 36, .12) 45%,
                rgba(12, 20, 36, 0) 72%);
    filter: blur(7px);
    z-index: -1;
    animation: flotar-sombra 6s ease-in-out infinite;
}

.stage__car { animation: flotar 6s ease-in-out infinite; }

@keyframes flotar {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-9px); }
}
@keyframes flotar-sombra {
    0%, 100% { transform: translateX(-50%) scale(1);     opacity: 1; }
    50%      { transform: translateX(-50%) scale(.93);   opacity: .78; }
}

/* pista de "arrastra para girar" */
.stage__hint {
    display: none;
    position: absolute;
    left: 50%;
    bottom: -26px;
    transform: translateX(-50%);
    align-items: center;
    gap: 8px;
    padding: 7px 15px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    box-shadow: var(--sh-sm);
    font-size: .74rem;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
    opacity: 0;
    transition: opacity .4s ease;
}
.stage.is-interactive .stage__hint { display: inline-flex; opacity: 1; }
.stage.is-active      .stage__hint { opacity: 0; }

/* --- tarjetas flotantes alrededor del auto --- */

.badges {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 26px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 15px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--sh-md);
    text-align: left;
}

.badge__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 34px; height: 34px;
    background: var(--bg-soft);
    border-radius: 11px;
    color: var(--rojo);
}
.badge__icon svg { width: 17px; height: 17px; }

.badge__num {
    display: block;
    font-size: 1.06rem;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.1;
}
.badge__txt {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    color: var(--muted);
    line-height: 1.25;
}

@media (min-width: 980px) {
    .hero  { padding: 118px 0 56px; }
    .stage { max-width: 1120px; }
    .stage__car { max-width: 620px; }

    /* en escritorio los badges flotan sueltos alrededor del auto */
    .badges {
        display: block;
        margin: 0;
        position: absolute;
        inset: 0;
        pointer-events: none;
    }
    .badge {
        position: absolute;
        pointer-events: auto;
        animation: flotar-badge 7s ease-in-out infinite;
    }
    .badge:nth-child(1) { top: 8%;  left: 0;     animation-delay: 0s; }
    .badge:nth-child(2) { top: 26%; right: 0;    animation-delay: .9s; }
    .badge:nth-child(3) { top: 58%; left: 2%;    animation-delay: 1.8s; }
    .badge:nth-child(4) { top: 70%; right: 3%;   animation-delay: 2.7s; }
}

@keyframes flotar-badge {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-11px); }
}

/* ---------- 6. Secciones ------------------------------------------------- */

.section { padding: var(--sec-y) 0; }
.section--soft { background: var(--bg-soft); }

.section__head { max-width: 620px; margin-bottom: 40px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }

.kicker {
    display: block;
    margin-bottom: 14px;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--rojo);
}

.section h2 { font-size: clamp(1.85rem, 5vw, 3rem); }

.section__head p {
    margin-top: 16px;
    color: var(--muted);
    font-size: 1.02rem;
}

/* ---------- 7. Quienes somos --------------------------------------------- */

.about {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .about { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

.about__card {
    padding: 30px 28px 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    box-shadow: var(--sh-sm);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.about__card:hover {
    transform: translateY(-5px);
    border-color: transparent;
    box-shadow: var(--sh-lg);
}

.about__icon {
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    margin-bottom: 20px;
    background: var(--bg-soft);
    border-radius: 14px;
    color: var(--rojo);
}

.about__card h3 { font-size: 1.2rem; letter-spacing: -.025em; }
.about__card p  { margin-top: 12px; color: var(--muted); font-size: .94rem; }

/* ---------- 8. Servicios (carrusel) -------------------------------------- */

/* La tira avanza sola hacia la izquierda. Las tarjetas estan duplicadas y el
   recorrido es del 50%: al terminar, el segundo juego queda justo donde
   empezo el primero, asi que el ciclo no se nota. Por eso la separacion va
   como margin-right y no como gap: con gap sobra un hueco y el salto se ve. */
.carousel {
    position: relative;
    overflow: hidden;
    padding: 10px 0 26px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.carousel__track {
    display: flex;
    width: max-content;
    animation: desliza 52s linear infinite;
}

.carousel:hover .carousel__track,
.carousel:focus-within .carousel__track { animation-play-state: paused; }

.carousel .card {
    flex: 0 0 300px;
    width: 300px;
    margin-right: 18px;
}

@keyframes desliza {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* En pantallas tactiles no hay hover: el JS pone esta clase al tocar la tira,
   para que el usuario alcance a leer y tocar la tarjeta que le interesa. */
.carousel.is-paused .carousel__track { animation-play-state: paused; }

@media (max-width: 720px) {
    .carousel .card { flex-basis: 262px; width: 262px; margin-right: 14px; }
    .carousel__track { animation-duration: 44s; }
}

.card {
    display: flex;
    flex-direction: column;
    padding: 26px 24px 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    box-shadow: var(--sh-sm);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: transparent;
    box-shadow: var(--sh-lg);
}

.card__icon {
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    margin-bottom: 20px;
    background: var(--bg-soft);
    border-radius: 14px;
    color: var(--ink);
    transition: background-color .3s ease, color .3s ease;
}
.card:hover .card__icon { background: var(--rojo); color: #fff; }
.card__icon svg { width: 22px; height: 22px; }

.card h3 { font-size: 1.16rem; letter-spacing: -.02em; }

.card p {
    margin-top: 10px;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: .93rem;
}

.card__link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .86rem;
    font-weight: 700;
    color: var(--ink);
}
.card__link svg { width: 13px; height: 13px; transition: transform .25s ease; }
.card:hover .card__link       { color: var(--rojo); }
.card:hover .card__link svg   { transform: translateX(4px); }

/* ---------- 9. Confianza / contadores ------------------------------------ */

.trust {
    display: grid;
    gap: 40px;
    align-items: center;
}

@media (min-width: 980px) {
    .trust { grid-template-columns: 1fr 1fr; gap: 72px; }
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 32px;
}

.stat {
    padding: 20px 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--sh-sm);
    text-align: center;
}
.stat__value {
    display: flex;
    align-items: baseline;
    justify-content: center;
}
.stat__num {
    font-size: clamp(1.6rem, 5vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1;
    color: var(--ink);
}
.stat__num .plus { color: var(--rojo); }
.stat__txt {
    display: block;
    margin-top: 8px;
    font-size: .76rem;
    font-weight: 600;
    color: var(--muted);
}

.trust__intro { margin-top: 16px; color: var(--muted); }

/* foto de la unidad recortada: flota y se mece muy despacio */
.trust__foto {
    width: 100%;
    max-width: 460px;
    margin: 32px auto 0;
    filter: drop-shadow(0 26px 22px rgba(12, 20, 36, .16));
    animation: rodar 7s ease-in-out infinite;
}

@keyframes rodar {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    35%      { transform: translate(10px, -9px) rotate(-.55deg); }
    70%      { transform: translate(-7px, -3px) rotate(.35deg); }
}

.values { display: grid; gap: 12px; }

.value {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--sh-sm);
    transition: transform .28s ease, box-shadow .28s ease;
}
.value:hover { transform: translateX(5px); box-shadow: var(--sh-md); }

.value__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 38px; height: 38px;
    background: var(--bg-soft);
    border-radius: 12px;
    color: var(--rojo);
}
.value__icon svg { width: 18px; height: 18px; }
.value h3 { font-size: 1rem; letter-spacing: -.02em; }
.value p  { margin-top: 4px; font-size: .88rem; color: var(--muted); }

/* ---------- 10. Contacto ------------------------------------------------- */

.contact { display: grid; gap: 24px; }

@media (min-width: 980px) {
    .contact { grid-template-columns: 0.95fr 1.05fr; gap: 40px; align-items: stretch; }
}

.contact__info {
    display: grid;
    align-content: start;
    gap: 14px;
}

.info-row {
    display: flex;
    gap: 15px;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    box-shadow: var(--sh-sm);
}

.info-row__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 40px; height: 40px;
    background: var(--bg-soft);
    border-radius: 12px;
    color: var(--rojo);
}
.info-row__icon svg { width: 19px; height: 19px; }

.info-row h3 {
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}
.info-row p { margin-top: 7px; font-size: .97rem; font-weight: 600; }
.info-row a { display: block; font-size: 1.08rem; font-weight: 800; letter-spacing: -.02em; }
.info-row a:hover { color: var(--rojo); }
.info-row small { color: var(--muted); font-weight: 600; }

.map-card {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    box-shadow: var(--sh-sm);
}
.map-card iframe {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    border: 0;
    filter: grayscale(1) contrast(.95);
    transition: filter .5s ease;
}
.map-card:hover iframe { filter: grayscale(0); }

/* ---------- 11. Footer --------------------------------------------------- */

.footer {
    /* el espacio extra abajo evita que los botones flotantes tapen el aviso */
    padding: 56px 0 96px;
    border-top: 1px solid var(--line);
    background: #fff;
}

.footer__grid {
    display: grid;
    gap: 30px;
    padding-bottom: 34px;
    border-bottom: 1px solid var(--line);
}

@media (min-width: 760px) {
    .footer       { padding-bottom: 32px; }
    .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
}

.footer__logo img { width: 190px; margin-bottom: 16px; }
.footer p { color: var(--muted); font-size: .9rem; }

.footer h4 {
    margin: 0 0 14px;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink);
}

.footer__links { display: grid; gap: 9px; }
.footer__links a { font-size: .92rem; font-weight: 600; color: var(--muted); }
.footer__links a:hover { color: var(--rojo); }

.social {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 14px;
    padding: 9px 16px 9px 11px;
    background: var(--bg-soft);
    border-radius: var(--r-pill);
    font-size: .86rem;
    font-weight: 700;
    transition: background-color .25s ease, color .25s ease;
}
.social:hover { background: var(--ink); color: #fff; }
.social svg { width: 16px; height: 16px; }

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    padding-top: 24px;
    font-size: .82rem;
    color: var(--muted);
}

/* ---------- 12. Botones flotantes ---------------------------------------- */

/* WhatsApp: circulo verde abajo a la derecha, con pulso suave */
.fab-wa {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 70;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px; height: 58px;
    background: var(--wa);
    color: #fff;
    border-radius: var(--r-pill);
    box-shadow: 0 10px 26px -8px rgba(37, 211, 102, .75);
    transition: width .34s cubic-bezier(.2, .8, .3, 1), background-color .25s ease;
}
.fab-wa svg { flex: 0 0 auto; width: 30px; height: 30px; }

/* al pasar el mouse se ensancha y aparece la etiqueta */
.fab-wa__txt {
    display: block;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    font-size: .93rem;
    font-weight: 700;
    letter-spacing: -.01em;
    white-space: nowrap;
    transition: max-width .34s cubic-bezier(.2, .8, .3, 1),
                opacity .22s ease, margin-left .34s ease;
}

.fab-wa:hover,
.fab-wa:focus-visible { width: 178px; background: var(--wa-dark); }

.fab-wa:hover .fab-wa__txt,
.fab-wa:focus-visible .fab-wa__txt { max-width: 110px; opacity: 1; margin-left: 10px; }

.fab-wa::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--r-pill);
    background: var(--wa);
    opacity: .5;
    z-index: -1;
    animation: pulso 2.8s cubic-bezier(.25, .5, .35, 1) infinite;
}

@keyframes pulso {
    0%        { transform: scale(1);    opacity: .5; }
    70%, 100% { transform: scale(1.85); opacity: 0; }
}

/* Ubicacion: pill rojo abajo a la izquierda (accion distinta al de WhatsApp) */
.fab-geo {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 70;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 20px 14px 16px;
    background: var(--rojo);
    color: #fff;
    border: 0;
    border-radius: var(--r-pill);
    box-shadow: 0 10px 26px -10px rgba(200, 16, 46, .8);
    font-family: inherit;
    font-size: .875rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: transform .25s ease, background-color .25s ease;
}
.fab-geo:hover { background: var(--rojo-dark); transform: translateY(-2px); }
.fab-geo svg   { width: 18px; height: 18px; }
.fab-geo__corto { display: none; }
.fab-geo.is-busy { pointer-events: none; opacity: .82; }
.fab-geo.is-busy svg { animation: girar 1s linear infinite; }

@keyframes girar { to { transform: rotate(360deg); } }

@media (max-width: 560px) {
    /* en pantallas chicas el pill se acorta para no tapar contenido */
    .fab-geo__largo { display: none; }
    .fab-geo__corto { display: inline; }
    .fab-geo { padding: 13px 16px 13px 14px; font-size: .8rem; }
    .fab-wa  { width: 52px; height: 52px; }
    .fab-wa svg { width: 27px; height: 27px; }
}

/* ---------- 13. Modal de respaldo (geolocalizacion) ---------------------- */

.modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(12, 20, 36, .55);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s ease, visibility .28s ease;
}
.modal[hidden] { display: none; }
.modal.is-open { opacity: 1; visibility: visible; }

.modal__box {
    width: 100%;
    max-width: 420px;
    padding: 30px 26px 26px;
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--sh-lg);
    text-align: center;
    transform: translateY(14px) scale(.97);
    transition: transform .3s cubic-bezier(.2, .8, .3, 1);
}
.modal.is-open .modal__box { transform: none; }

.modal__box h3 { font-size: 1.35rem; }
.modal__box p  { margin-top: 10px; color: var(--muted); font-size: .93rem; }

.modal__actions { display: grid; gap: 10px; margin-top: 22px; }

.modal__close {
    margin-top: 14px;
    background: none;
    border: 0;
    color: var(--muted);
    font-family: inherit;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
}
.modal__close:hover { color: var(--ink); }

/* ---------- 14. Animacion de entrada al hacer scroll --------------------- */

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s cubic-bezier(.2, .7, .3, 1),
                transform .7s cubic-bezier(.2, .7, .3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ---------- 15. Accesibilidad: menos movimiento -------------------------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }

    .reveal { opacity: 1; transform: none; }

    /* el carrusel deja de avanzar solo y se recorre a mano */
    .carousel        { overflow-x: auto; }
    .carousel__track { animation: none !important; transform: none !important; }
}
