/* ============================================================
   RCI · Asistencia en Carretera — hoja de estilos (2026)
   Central de intermediación de grúas. Diseño propio, no plantilla.
   ============================================================ */

:root {
    --ink:        #0d1a2b;   /* navy profundo   */
    --ink-2:      #14273f;   /* navy secundario */
    --ink-3:      #24405f;   /* navy claro      */
    --slate:      #40546e;
    --muted:      #6b7c92;
    --line:       #e5eaf0;
    --bg:         #ffffff;
    --bg-soft:    #f5f7fa;
    --bg-softer:  #eef2f7;
    --red:        #e11b12;   /* rojo de marca (logo) */
    --red-dark:   #b81109;
    --red-soft:   #fdecea;
    --amber:      #f6a609;
    --white:      #ffffff;
    --radius:     18px;
    --radius-sm:  12px;
    --shadow:     0 18px 45px -22px rgba(13,26,43,.35);
    --shadow-sm:  0 8px 24px -14px rgba(13,26,43,.30);
    --maxw:       1180px;
    --ff-head:    "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
    --ff-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
    font-family: var(--ff-body);
    color: var(--ink-2);
    background: var(--bg);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--ff-head); color: var(--ink); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
ul { list-style: none; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 92px 0; }
.section-sm { padding: 60px 0; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--ff-head); font-weight: 600; font-size: .8rem;
    letter-spacing: .12em; text-transform: uppercase; color: var(--red);
    margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); border-radius: 2px; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
.section-head p { color: var(--slate); font-size: 1.05rem; }
.lead { font-size: 1.12rem; color: var(--slate); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--ff-head); font-weight: 600; font-size: 1rem;
    padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
    cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
    white-space: nowrap;
}
.btn i, .btn svg { flex: none; }
.btn-call {
    background: var(--red); color: #fff;
    box-shadow: 0 14px 30px -12px rgba(225,27,18,.65);
}
.btn-call:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 20px 38px -12px rgba(225,27,18,.7); }
.btn-call .num { font-weight: 700; letter-spacing: .01em; }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(13,26,43,.18); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); }
.btn-lg { padding: 18px 34px; font-size: 1.08rem; }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: pulse 1.9s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(255,255,255,.6);} 70%{box-shadow:0 0 0 12px rgba(255,255,255,0);} 100%{box-shadow:0 0 0 0 rgba(255,255,255,0);} }

/* ---------- Disclaimer (grabación / desvío) ---------- */
.disclaimer {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: .86rem; line-height: 1.45; font-weight: 500;
    max-width: 520px;
}
.disclaimer .ic { flex: none; margin-top: 1px; }
.disclaimer--onlight {
    background: #fff7e6; border: 1px solid #f4d58a; color: #6a4a05;
    padding: 12px 15px; border-radius: 12px;
}
.disclaimer--onlight .ic { color: #c07c02; }
.disclaimer--onhero {
    color: #f3f6fb; background: rgba(9,18,30,.55);
    border: 1px solid rgba(255,255,255,.22);
    padding: 12px 15px; border-radius: 12px; backdrop-filter: blur(3px);
}
.disclaimer--onhero .ic { color: var(--amber); }
.disclaimer a { text-decoration: underline; font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
    padding: 16px 0;
}
.site-header .container { display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; }
.brand img { height: 46px; width: auto; transition: height .3s ease; }
.brand .logo-dark { display: none; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 34px; }
.nav a.navlink {
    font-family: var(--ff-head); font-weight: 500; font-size: .98rem; color: #fff;
    position: relative; padding: 4px 0; transition: color .2s ease;
}
.nav a.navlink::after { content:""; position:absolute; left:0; bottom:-2px; width:0; height:2px; background: var(--red); transition: width .25s ease; }
.nav a.navlink:hover::after { width: 100%; }
.header-cta { display: flex; align-items: center; }
.header-cta .btn { padding: 11px 20px; font-size: .95rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; height: 2px; width: 26px; background: #fff; border-radius: 2px; transition: .25s; margin-left: auto; }

/* Scrolled state = white header */
.site-header.scrolled { background: #fff; box-shadow: 0 6px 24px -16px rgba(13,26,43,.5); padding: 10px 0; }
.site-header.scrolled .brand .logo-light { display: none; }
.site-header.scrolled .brand .logo-dark { display: block; }
.site-header.scrolled .brand img { height: 40px; }
.site-header.scrolled .nav a.navlink { color: var(--ink); }
.site-header.scrolled .nav-toggle span { background: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; color: #fff; padding: 130px 0 70px; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero__overlay {
    position: absolute; inset: 0; z-index: -1;
    background:
      linear-gradient(105deg, rgba(9,17,28,.94) 0%, rgba(11,22,38,.82) 42%, rgba(11,22,38,.35) 78%, rgba(11,22,38,.15) 100%);
}
.hero__inner { max-width: 640px; }
.badge-line {
    display: inline-flex; align-items: center; gap: 9px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28);
    padding: 8px 16px; border-radius: 999px; font-size: .82rem; font-weight: 600;
    font-family: var(--ff-head); letter-spacing: .02em; margin-bottom: 26px; backdrop-filter: blur(3px);
}
.badge-line .k { color: var(--amber); }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); margin-bottom: 20px; color: #fff; }
.hero h1 .hl { color: #ffd25e; }
.hero__sub { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #dbe4ef; max-width: 560px; margin-bottom: 34px; font-weight: 400; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 20px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; }
.hero__trust .item { display: flex; align-items: center; gap: 9px; font-size: .92rem; color: #e7edf5; font-weight: 500; }
.hero__trust .item i { color: var(--amber); }

/* ---------- Strip intermediación ---------- */
.strip {
    background: var(--ink); color: #eef3f9; text-align: center;
    padding: 20px 0; font-family: var(--ff-head); font-weight: 500;
}
.strip .container { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; font-size: 1rem; }
.strip b { color: #fff; font-weight: 700; }
.strip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

/* ---------- Pasos (cómo funciona) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; position: relative; }
.step {
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 38px 30px 32px; position: relative; box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step__num {
    width: 52px; height: 52px; border-radius: 14px; background: var(--ink);
    color: #fff; font-family: var(--ff-head); font-weight: 700; font-size: 1.25rem;
    display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
}
.step:nth-child(2) .step__num { background: var(--red); }
.step h3 { font-size: 1.22rem; margin-bottom: 10px; }
.step p { color: var(--slate); font-size: .98rem; }
.step .mini-note { display: block; margin-top: 12px; font-size: .82rem; color: var(--red-dark); font-weight: 600; }

/* ---------- Situaciones ---------- */
.situations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sit {
    display: flex; gap: 16px; align-items: flex-start;
    background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 22px 22px; transition: background .2s ease, transform .2s ease;
}
.sit:hover { background: #fff; transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.sit__ic {
    flex: none; width: 46px; height: 46px; border-radius: 12px;
    background: var(--red-soft); color: var(--red);
    display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
.sit h4 { font-size: 1.02rem; margin-bottom: 3px; }
.sit p { font-size: .9rem; color: var(--slate); }

/* ---------- Por qué (split) ---------- */
.why { background: var(--bg-soft); }
.why__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.why__media { position: relative; }
.why__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.why__media .float-card {
    position: absolute; left: -18px; bottom: -22px;
    background: #fff; border-radius: 16px; box-shadow: var(--shadow);
    padding: 18px 22px; display: flex; align-items: center; gap: 14px; max-width: 260px;
}
.why__media .float-card .big { font-family: var(--ff-head); font-weight: 700; font-size: 1.7rem; color: var(--ink); line-height: 1; }
.why__media .float-card .lbl { font-size: .82rem; color: var(--slate); }
.why__media .float-card .ring { width: 46px; height: 46px; border-radius: 50%; background: var(--red-soft); color: var(--red); display:flex; align-items:center; justify-content:center; font-size: 1.2rem; flex:none; }
.why__list { margin-top: 26px; display: grid; gap: 20px; }
.why__list li { display: flex; gap: 15px; align-items: flex-start; }
.why__list .tick { flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .8rem; margin-top: 2px; }
.why__list h4 { font-size: 1.08rem; margin-bottom: 2px; }
.why__list p { color: var(--slate); font-size: .95rem; }

/* ---------- Zona de confianza ---------- */
.trust { background: var(--ink); color: #dfe7f1; }
.trust h2 { color: #fff; }
.trust .section-head p { color: #b7c4d6; }
.trust__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 34px; align-items: stretch; }
.trust__card {
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius); padding: 32px 34px;
}
.trust__card h3 { color: #fff; font-size: 1.2rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.trust__card h3 i { color: var(--amber); }
.trust__card p { font-size: .96rem; color: #c6d1df; margin-bottom: 12px; }
.trust__card p:last-child { margin-bottom: 0; }
.trust__card.highlight { border-color: rgba(246,166,9,.4); background: rgba(246,166,9,.07); }
.legal-data { list-style: none; display: grid; gap: 12px; }
.legal-data li { display: flex; gap: 12px; align-items: flex-start; font-size: .96rem; color: #d5dfec; }
.legal-data li i { color: var(--amber); width: 20px; text-align: center; margin-top: 3px; flex: none; }
.legal-data a { color: #fff; text-decoration: underline; }
.trust__links { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .9rem; }
.trust__links a { color: #b7c4d6; text-decoration: underline; }
.trust__links a:hover { color: #fff; }

/* ---------- CTA final ---------- */
.cta-final { position: relative; color: #fff; text-align: center; overflow: hidden; }
.cta-final__bg { position: absolute; inset: 0; z-index: -2; }
.cta-final__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-final__ov { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(9,17,28,.92), rgba(11,22,38,.9)); }
.cta-final h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 14px; }
.cta-final p { color: #d5dfec; max-width: 620px; margin: 0 auto 30px; font-size: 1.08rem; }
.cta-final .btn { margin-bottom: 18px; }
.cta-final .disclaimer { margin: 0 auto; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: #081321; color: #93a3b8; padding: 56px 0 26px; font-size: .92rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.08); }
.site-footer .foot-brand img { height: 52px; margin-bottom: 16px; }
.site-footer .foot-brand p { max-width: 320px; }
.site-footer h5 { color: #fff; font-family: var(--ff-head); font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a:hover { color: #fff; }
.site-footer .foot-contact li { display: flex; gap: 10px; align-items: flex-start; }
.site-footer .foot-contact i { color: var(--red); margin-top: 3px; width: 18px; text-align: center; flex: none; }
.footer-bottom-bar { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; padding-top: 22px; font-size: .84rem; color: #7688a0; }
.footer-bottom-bar a { text-decoration: underline; }

/* ---------- Cookie banner (existente reestilizado) ---------- */
.alert-cookie-policy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; padding: 0; display: none; }
.alert-cookie-policy .cookie-box {
    max-width: var(--maxw); margin: 0 auto 16px; background: #fff; color: var(--ink-2);
    border-radius: 14px; box-shadow: 0 20px 50px -18px rgba(0,0,0,.5);
    padding: 16px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    border: 1px solid var(--line);
}
.alert-cookie-policy .cookie-box p { margin: 0; font-size: .92rem; flex: 1 1 340px; }
.alert-cookie-policy .cookie-box a { color: var(--red); text-decoration: underline; }
.alert-cookie-policy .cookie-box .btns { display: flex; gap: 10px; margin-left: auto; }
.alert-cookie-policy .cookie-box button { border: 0; cursor: pointer; border-radius: 999px; padding: 10px 20px; font-family: var(--ff-head); font-weight: 600; font-size: .9rem; }
.alert-cookie-policy .cookie-box .decline { background: var(--bg-softer); color: var(--ink-2); }
.alert-cookie-policy .cookie-box .accept { background: var(--red); color: #fff; }

/* ---------- Scroll top ---------- */
.scroll-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(12px); transition: .3s; border: 0; cursor: pointer; }
.scroll-top.show { opacity: 1; visibility: visible; transform: none; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .steps, .situations { grid-template-columns: repeat(2, 1fr); }
    .why__grid, .trust__grid, .footer-top { grid-template-columns: 1fr; gap: 40px; }
    .why__media { max-width: 520px; }
    .footer-top { gap: 34px; }
}
@media (max-width: 760px) {
    body { font-size: 16px; }
    .section { padding: 66px 0; }
    .nav {
        position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
        background: #fff; flex-direction: column; align-items: flex-start; justify-content: flex-start;
        padding: 92px 30px 30px; gap: 22px; transform: translateX(100%); transition: transform .3s ease;
        box-shadow: -10px 0 40px -20px rgba(0,0,0,.5); margin: 0;
    }
    .nav.open { transform: none; }
    .nav a.navlink { color: var(--ink) !important; font-size: 1.1rem; }
    .nav .header-cta { margin-top: 8px; }
    .nav .header-cta .btn { width: 100%; }
    .nav-toggle { display: flex; margin-left: auto; z-index: 101; }
    .site-header.menu-open { background: #fff; }
    .site-header.menu-open .nav-toggle span { background: var(--ink); }
    .site-header.menu-open .brand .logo-light { display: none; }
    .site-header.menu-open .brand .logo-dark { display: block; }
    .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .hero { min-height: auto; padding: 120px 0 64px; }
    .hero__bg img { object-position: 62% center; }
    .steps, .situations { grid-template-columns: 1fr; }
    .why__media .float-card { left: 0; }
    .hero__cta .btn { width: 100%; }
}
@media (max-width: 420px) {
    .container { padding: 0 18px; }
    .btn-call .num { font-size: .95rem; }
}
