/* =====================================================================
   RIMO — Landing page
   Paleta: azul marino / blanco / azul eléctrico
   ===================================================================== */

:root {
    --navy-950: #050b1c;
    --navy-900: #0a1430;   /* fondo secciones oscuras */
    --navy-850: #0c1838;
    --navy-800: #102249;
    --navy-700: #16306b;
    --brand:    #232a78;   /* azul del logo */
    --electric: #2f6dff;   /* acento eléctrico */
    --electric-2: #1e5bff;
    --electric-soft: #6f9bff;

    --white: #ffffff;
    --paper: #eef1f8;      /* fondo claro detrás de barras blancas */
    --ink:   #0e1730;      /* texto oscuro */
    --muted: #5d6781;      /* texto secundario */
    --line:  #e3e8f2;      /* divisores claros */

    --radius: 16px;
    --radius-sm: 12px;
    --shadow-soft: 0 18px 50px -22px rgba(15, 28, 70, .35);
    --shadow-card: 0 24px 60px -30px rgba(15, 28, 70, .55);
    --maxw: 1180px;
    --header-h: 78px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ----------------------------- Reset --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
    font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: 24px;
}

.accent { color: var(--electric); }

/* ----------------------------- Tipografía ---------------------------- */
.eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
}
.eyebrow--accent { color: var(--electric-soft); }

.section-title {
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.01em;
}
.section-title--light { color: var(--white); }

.section-sub {
    margin-top: 10px;
    color: rgba(255, 255, 255, .65);
    font-size: 1.02rem;
}

/* ----------------------------- Botones ------------------------------- */
.btn {
    --pad-y: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: var(--pad-y) 26px;
    border-radius: 10px;
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .02em;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease),
                background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
    will-change: transform;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

.btn-ico { width: 19px; height: 19px; }
.btn-ico-img { width: 20px; height: 20px; object-fit: contain; }

.btn-primary {
    background: linear-gradient(135deg, var(--electric), var(--electric-2));
    color: #fff;
    box-shadow: 0 14px 30px -12px rgba(47, 109, 255, .7);
}
.btn-primary:hover { box-shadow: 0 20px 38px -12px rgba(47, 109, 255, .85); }

.btn-ghost {
    background: rgba(255, 255, 255, .06);
    color: #fff;
    border-color: rgba(255, 255, 255, .55);
    backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }

.btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, .6);
    color: #fff;
    padding: 10px 22px;
}
.btn-outline:hover { background: #fff; color: var(--brand); border-color: #fff; }

.btn-dark {
    background: var(--navy-900);
    color: #fff;
    box-shadow: var(--shadow-soft);
}
.btn-dark:hover { background: var(--navy-800); }

/* ----------------------------- Header -------------------------------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: background .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    position: relative;
    display: block;
    flex: 0 0 118px;
    width: 118px;
    height: 48px;
    overflow: hidden;
}
.brand-logo {
    position: absolute;
    top: -46px;
    left: -9px;
    width: 139px;
    height: 139px;
    max-width: none;
    transition: opacity .3s var(--ease);
}
.brand-logo--dark { display: none; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
}
.nav-list { display: flex; align-items: center; gap: 28px; }
.nav-link {
    position: relative;
    font-size: .9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .9);
    padding: 6px 0;
    transition: color .25s var(--ease);
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 0; height: 2px;
    background: var(--electric);
    transition: width .3s var(--ease);
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }

/* Header en modo "scrolled" (fondo blanco) */
.site-header.scrolled {
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 8px 30px -16px rgba(15, 28, 70, .35);
    height: 66px;
    backdrop-filter: blur(8px);
}
.site-header.scrolled .brand-logo--light { display: none; }
.site-header.scrolled .brand-logo--dark { display: block; }
.site-header.scrolled .nav-link { color: var(--ink); }
.site-header.scrolled .btn-outline { color: var(--brand); border-color: var(--brand); }
.site-header.scrolled .btn-outline:hover { background: var(--brand); color: #fff; }
.header-solid .site-header {
    background: rgba(255,255,255,.97);
    box-shadow: 0 8px 30px -16px rgba(15,28,70,.35);
    height: 66px;
    backdrop-filter: blur(8px);
}
.header-solid .site-header .brand-logo--light { display: none; }
.header-solid .site-header .brand-logo--dark { display: block; }
.header-solid .site-header .nav-link { color: var(--ink); }
.header-solid .site-header .nav-link.active { color: var(--brand); }
.header-solid .site-header .btn-outline { color: var(--brand); border-color: var(--brand); }
.header-solid .site-header .btn-outline:hover { background: var(--brand); color: #fff; }
.header-solid .site-header .hamburger span { background: var(--ink); }

/* Hamburguesa */
.hamburger {
    display: none;
    position: relative;
    z-index: 101;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    background: transparent;
    border: 0;
    cursor: pointer;
}
.hamburger span {
    display: block;
    width: 26px; height: 2.5px;
    background: #fff;
    border-radius: 3px;
    transition: transform .3s var(--ease), opacity .25s var(--ease), background .3s var(--ease);
}
.site-header.scrolled .hamburger span { background: var(--ink); }
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ----------------------------- Utilidades ---------------------------- */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* --------------------- Promociones (carrusel de portadas) ------------- */
/* El arte trae el texto incrustado, así que la imagen se muestra siempre
   completa (sin recorte). En escritorio el texto va al lado; en móvil solo
   queda el botón, porque el precio y el detalle ya están dentro de la imagen. */
.promo-slider { position: relative; }
.promo-track {
    display: grid;
    grid-template-areas: 'slide';
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-card);
}
/* La promoción entrante aparece ENCIMA de la saliente: así el cruce no pasa
   por un fotograma vacío, que es lo que ocurre si ambas se desvanecen a la vez. */
.promo-slide {
    grid-area: slide;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: opacity 0s linear .6s, visibility 0s linear .6s;
}
.promo-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    transition: opacity .6s var(--ease), visibility 0s;
}
.promo-media { display: block; background: #fff; }
.promo-media img {
    width: 100%;
    height: auto;
    object-fit: contain;          /* proporción original: nada se recorta */
}
.promo-copy { padding: 34px 38px 34px 34px; }
.promo-tag {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(47, 109, 255, .1);
    color: var(--electric);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.promo-title {
    font-size: clamp(1.35rem, 2.2vw, 1.95rem);
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: -.01em;
    margin-bottom: 12px;
}
.promo-sub {
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.6;
    margin-bottom: 22px;
}
.promo-cta { width: fit-content; }

/* Controles */
.promo-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(9, 17, 40, .55);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    transition: background .25s var(--ease), opacity .25s var(--ease);
}
.promo-slider:hover .promo-nav,
.promo-slider:focus-within .promo-nav { opacity: 1; }
.promo-nav:hover { background: var(--electric); }
.promo-nav:focus-visible { opacity: 1; outline: 3px solid var(--electric-soft); outline-offset: 3px; }
.promo-nav--prev { left: 14px; }
.promo-nav--next { right: 14px; }
.promo-nav .icon { width: 19px; height: 19px; }

.promo-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 22px;
}
.promo-dot {
    width: 9px; height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(14, 23, 48, .22);
    cursor: pointer;
    transition: width .3s var(--ease), background .3s var(--ease);
}
.promo-dot.is-active { width: 26px; border-radius: 999px; background: var(--electric); }
.promo-dot:focus-visible { outline: 2px solid var(--electric); outline-offset: 3px; }

/* Bajo 860 px el texto lateral deja de caber: la imagen pasa a ancho completo
   y solo se conserva el botón, porque el arte ya comunica precio y detalle. */
@media (max-width: 860px) {
    .promo-slide { grid-template-columns: 1fr; }
    .promo-copy { padding: 16px 18px 20px; }
    .promo-tag, .promo-title, .promo-sub { display: none; }
    .promo-cta { width: 100%; }
    .promo-nav { display: none; }
    .promo-dots { margin-top: 18px; }
}

/* ----------------------------- Hero (páginas internas) --------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--navy-950);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6, 12, 30, .92) 0%, rgba(6, 12, 30, .72) 42%, rgba(6, 12, 30, .25) 100%),
        linear-gradient(0deg, rgba(6, 12, 30, .85) 0%, rgba(6, 12, 30, 0) 45%);
}
.hero-inner { position: relative; z-index: 2; padding-top: var(--header-h); }
.hero-content { max-width: 620px; }
.hero-title {
    font-size: clamp(2.4rem, 6vw, 4.1rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -.02em;
    color: #fff;
    margin-bottom: 22px;
}
.hero-text {
    color: rgba(255, 255, 255, .82);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    max-width: 520px;
    margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ----------------------------- Secciones base ------------------------ */
.section { padding: 84px 0; }
.section--light { background: var(--paper); }
.section--dark {
    background:
        radial-gradient(1100px 500px at 50% -10%, rgba(47, 109, 255, .18), transparent 60%),
        var(--navy-900);
    color: #fff;
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.section-foot { text-align: center; margin-top: 44px; }

/* ----------------------------- Servicios ----------------------------- */
.services-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    overflow: hidden;
}
.service {
    position: relative;
    padding: 38px 24px 34px;
    text-align: center;
    border-right: 1px solid var(--line);
    transition: transform .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.service:last-child { border-right: 0; }
.service:hover {
    transform: translateY(-8px);
    background: #fff;
    box-shadow: 0 30px 50px -28px rgba(15, 28, 70, .45);
    z-index: 2;
}
.service-icon {
    width: 64px; height: 64px;
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
}
.service-icon img { width: 100%; height: 100%; object-fit: contain; }
.service-title {
    font-size: .95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ink);
    margin-bottom: 10px;
}
.service-desc { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.service-link {
    display: inline-flex;
    color: var(--electric);
    transition: transform .25s var(--ease);
}
.service .arrow { width: 26px; height: 26px; }
.service:hover .service-link { transform: translateX(6px); }

.service--featured {
    background: linear-gradient(180deg, #fff 0%, #f4f7ff 100%);
}
.service--featured .service-title { color: var(--electric); }

/* ----------------------------- Dos unidades -------------------------- */
.units-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}
.unit-card {
    position: relative;
    min-height: 270px;
    border-radius: var(--radius);
    overflow: hidden;
    background-color: var(--navy-800);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    isolation: isolate;
}
.unit-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(120deg, rgba(8, 16, 40, .94) 0%, rgba(8, 16, 40, .78) 45%, rgba(8, 16, 40, .45) 100%);
    transition: background .4s var(--ease);
}
.unit-card:hover .unit-card-overlay {
    background: linear-gradient(120deg, rgba(10, 20, 56, .92) 0%, rgba(16, 34, 90, .72) 45%, rgba(30, 91, 255, .35) 100%);
}
.unit-card-body {
    position: relative;
    z-index: 2;
    padding: 36px 34px;
    max-width: 64%;
}
.unit-logo { height: 40px; width: auto; margin-bottom: 18px; }
.unit-name {
    font-size: 1.35rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #fff;
    margin-bottom: 12px;
}
.unit-desc { color: rgba(255, 255, 255, .8); font-size: .95rem; margin-bottom: 22px; }
.unit-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: .9rem;
    color: var(--electric-soft);
    transition: gap .25s var(--ease), color .25s var(--ease);
}
.unit-link .arrow { width: 18px; height: 18px; }
.unit-card:hover .unit-link { gap: 14px; color: #fff; }

/* ----------------------------- Estadísticas -------------------------- */
.stats-band {
    background: var(--paper);
    padding: 6px 0 54px;
}
.stats-band .container { margin-top: -42px; }
.stats-grid {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 34px 20px;
}
.stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 14px 16px;
    border-right: 1px solid var(--line);
    transition: transform .3s var(--ease);
}
.stat:last-child { border-right: 0; }
.stat:hover { transform: translateY(-4px); }
.stat-icon { width: 52px; height: 52px; object-fit: contain; flex: 0 0 auto; }
.stat-body { display: flex; flex-direction: column; line-height: 1.2; }
.stat-num {
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--brand);
    letter-spacing: -.01em;
}
.stat-label { font-size: .82rem; color: var(--muted); font-weight: 600; }

/* ----------------------------- Testimonios --------------------------- */
.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.testi-card {
    position: relative;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius-sm);
    padding: 32px 28px 28px;
    transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.testi-card:hover {
    transform: translateY(-6px);
    border-color: rgba(47, 109, 255, .55);
    background: rgba(47, 109, 255, .08);
}
.testi-quote {
    display: block;
    font-size: 3.4rem;
    line-height: .6;
    font-weight: 900;
    color: var(--electric);
    margin-bottom: 14px;
    font-family: Georgia, 'Times New Roman', serif;
}
.testi-text { color: rgba(255, 255, 255, .86); font-size: .96rem; margin-bottom: 18px; }
.testi-stars { color: #ffc24b; letter-spacing: 3px; margin-bottom: 16px; font-size: .95rem; }
.testi-author { display: flex; flex-direction: column; }
.testi-name { font-weight: 700; color: #fff; }
.testi-role { font-size: .82rem; color: var(--electric-soft); }

/* ----------------------------- CTA barra blanca ---------------------- */
.cta-band { background: var(--paper); padding: 40px 0 84px; }
.cta-inner {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 34px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 28px;
}
.cta-title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; color: var(--ink); }
.cta-sub { color: var(--muted); margin-top: 4px; }
.cta-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; }
.cta-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .9rem;
    color: var(--ink);
    transition: transform .25s var(--ease), color .25s var(--ease);
}
.cta-contact:hover { transform: translateY(-3px); color: var(--electric); }
.cta-contact strong { font-weight: 700; }
.cta-ico { width: 40px; height: 40px; object-fit: contain; flex: 0 0 auto; }

/* ----------------------------- Footer -------------------------------- */
.site-footer {
    background: var(--navy-950);
    color: rgba(255, 255, 255, .72);
    padding-top: 64px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr;
    gap: 36px;
    padding-bottom: 50px;
}
.footer-logo { height: 46px; width: auto; margin-bottom: 18px; }
.footer-about { font-size: .9rem; max-width: 280px; line-height: 1.7; }
.footer-col-title {
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 11px; }
.footer-col a {
    font-size: .9rem;
    color: rgba(255, 255, 255, .68);
    transition: color .2s var(--ease), padding-left .2s var(--ease);
}
.footer-col a:hover { color: #fff; padding-left: 4px; }
.footer-newsletter p { font-size: .88rem; margin-bottom: 16px; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 9px;
    padding: 11px 14px;
    color: #fff;
    font-size: .88rem;
    font-family: inherit;
    transition: border-color .25s var(--ease), background .25s var(--ease);
}
.newsletter-form input::placeholder { color: rgba(255, 255, 255, .45); }
.newsletter-form input:focus {
    outline: none;
    border-color: var(--electric);
    background: rgba(47, 109, 255, .12);
}
.newsletter-form button {
    flex: 0 0 auto;
    width: 46px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--electric), var(--electric-2));
    border: 0;
    border-radius: 9px;
    color: #fff;
    cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.newsletter-form button:hover { transform: translateY(-2px); box-shadow: 0 12px 22px -10px rgba(47, 109, 255, .8); }
.newsletter-form button svg { width: 20px; height: 20px; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 22px 0;
}
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: .82rem;
    color: rgba(255, 255, 255, .55);
}
.footer-powered {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 5px;
    align-items: baseline;
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 9px;
    line-height: 1.15;
    text-align: center;
}
.footer-powered span { color: rgba(255,255,255,.5); font-size: .68rem; }
.footer-powered strong { color: #fff; }
.footer-powered small { grid-column: 1 / -1; margin-top: 4px; color: var(--electric-soft); font-size: .62rem; letter-spacing: .04em; }

/* ----------------------------- Galería ------------------------------- */
.section--light .section-sub { color: var(--muted); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
    gap: 14px;
}
.g-item {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
}
.g-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}
.g-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 16, 40, .55), transparent 48%);
    transition: opacity .3s var(--ease);
}
.g-item:hover img { transform: scale(1.07); }
.g-cap {
    position: absolute;
    left: 14px;
    bottom: 13px;
    z-index: 2;
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 5px 13px;
    border-radius: 999px;
    background: rgba(47, 109, 255, .9);
    backdrop-filter: blur(4px);
}
.g-feature { grid-column: span 2; grid-row: span 2; }

/* ----------------------------- Ubicaciones / mapa -------------------- */
.locations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}
.location-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    transition: transform .3s var(--ease);
}
.location-card:hover { transform: translateY(-6px); }
.location-map {
    position: relative;
    height: 270px;
    background: var(--navy-800);
}
.location-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    filter: saturate(.95);
}
.location-info { padding: 24px 26px 26px; }
.location-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 10px;
}
.location-name svg { width: 22px; height: 22px; color: var(--electric); flex: 0 0 auto; }
.location-address { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.location-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: .9rem;
    color: var(--electric);
    transition: gap .25s var(--ease);
}
.location-link .arrow { width: 18px; height: 18px; }
.location-link:hover { gap: 14px; }

/* ----------------------------- Animaciones reveal -------------------- */
.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Stagger ligero dentro de grids */
.services-card .service.reveal,
.units-grid .unit-card:nth-child(2).reveal,
.testi-grid .testi-card:nth-child(2).reveal { transition-delay: .08s; }
.testi-grid .testi-card:nth-child(3).reveal { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .wa-chooser-panel { animation: none; }
    html { scroll-behavior: auto; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .footer-brand, .footer-newsletter { grid-column: span 3; max-width: 480px; }
    .footer-about { max-width: none; }
}

@media (max-width: 900px) {
    .services-card { grid-template-columns: repeat(2, 1fr); }
    .service { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .service:nth-child(2n) { border-right: 0; }
    .service--featured { grid-column: 1 / -1; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px 0; }
    .stat:nth-child(2n) { border-right: 0; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .testi-grid { grid-template-columns: 1fr; max-width: 540px; margin-inline: auto; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
    .g-feature { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 900px) {
    :root { --header-h: 66px; }

    /* Menú móvil */
    .hamburger { display: flex; }
    .main-nav {
        position: fixed;
        inset: 0 0 0 auto;
        width: min(82vw, 340px);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0;
        padding: calc(var(--header-h) + 24px) 30px 30px;
        background: var(--navy-900);
        box-shadow: -20px 0 60px -20px rgba(0, 0, 0, .6);
        transform: translateX(100%);
        transition: transform .35s var(--ease);
        z-index: 99;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-bottom: 110px;
    }
    .main-nav.open { transform: translateX(0); }
    .nav-list { flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }
    .nav-list li { width: 100%; }
    .nav-link {
        display: block;
        width: 100%;
        padding: 14px 0;
        font-size: 1.05rem;
        color: #fff !important;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }
    .nav-link::after { display: none; }
    .nav-cta { margin-top: 24px; width: 100%; }
    .site-header.scrolled .nav-link { color: #fff; }
    body.nav-open { overflow: hidden; }
    .nav-backdrop {
        position: fixed; inset: 0;
        background: rgba(4, 9, 22, .55);
        opacity: 0; visibility: hidden;
        transition: opacity .35s var(--ease), visibility .35s var(--ease);
        z-index: 98;
    }
    .nav-backdrop.open { opacity: 1; visibility: visible; }
    .hamburger.open span { background: #fff !important; }

    .section { padding: 60px 0; }
    .hero { min-height: 88vh; }
    .hero-overlay {
        background:
            linear-gradient(180deg, rgba(6, 12, 30, .78) 0%, rgba(6, 12, 30, .55) 40%, rgba(6, 12, 30, .92) 100%);
    }
    .hero-actions .btn { flex: 1 1 auto; }

    .units-grid { grid-template-columns: 1fr; }
    .unit-card-body { max-width: 86%; }

    .cta-inner { flex-direction: column; align-items: stretch; text-align: center; padding: 30px 24px; }
    .cta-actions { justify-content: center; flex-direction: column; gap: 18px; }
    .cta-actions .btn { width: 100%; }
    .cta-contact { justify-content: center; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer-brand { grid-column: span 2; }
    .footer-newsletter { grid-column: span 2; }
    .footer-bottom-inner { justify-content: center; text-align: center; }

    .locations-grid { grid-template-columns: 1fr; }
    .location-map { height: 240px; }
}

@media (max-width: 480px) {
    .container { padding-inline: 18px; }
    .services-card { grid-template-columns: 1fr; }
    .service { border-right: 0; }
    .service:last-child { border-bottom: 0; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat { border-right: 0; border-bottom: 1px solid var(--line); justify-content: flex-start; }
    .stat:last-child { border-bottom: 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand, .footer-newsletter { grid-column: span 1; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .gallery-grid { grid-auto-rows: 150px; gap: 10px; }
}

/* =====================================================================
   RIMO — páginas internas, catálogo y formularios
   ===================================================================== */
.skip-link {
    position: fixed;
    left: 16px;
    top: -60px;
    z-index: 200;
    background: #fff;
    color: var(--brand);
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 700;
    transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }
.nav-link.active::after { transform: scaleX(1); }
.footer-location p { font-size: .84rem; line-height: 1.65; }
.footer-bottom a { color: rgba(255,255,255,.65); }

.page-hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    background-position: center;
    background-size: cover;
    background-color: var(--navy-950);
}
.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5,11,29,.95) 0%, rgba(5,11,29,.78) 47%, rgba(5,11,29,.28) 100%), linear-gradient(0deg, rgba(5,11,29,.72), transparent 50%);
}
.page-hero-content { position: relative; z-index: 1; width: 100%; max-width: var(--maxw); padding-top: var(--header-h); text-align: left; }
.page-hero-content h1 {
    color: #fff;
    font-size: clamp(2.45rem, 6vw, 4.6rem);
    max-width: 700px;
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -.035em;
    margin: 12px 0 22px;
}
.page-hero-content p { color: rgba(255,255,255,.82); font-size: 1.08rem; max-width: 610px; margin-bottom: 30px; }
.page-hero--about { background-position: center 45%; }
.page-hero--parts { background-position: center; }

.feature-split {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    align-items: center;
    gap: clamp(44px, 7vw, 90px);
}
.feature-split--reverse .feature-copy { order: 2; }
.feature-copy > p { color: var(--muted); margin: 18px 0; font-size: 1rem; }
.feature-copy .btn { margin-top: 12px; }
.feature-image { min-height: 500px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.feature-image img { width: 100%; height: 100%; min-height: 500px; object-fit: cover; }
.check-list { display: grid; gap: 12px; margin-top: 24px; }
.check-list li { position: relative; padding-left: 30px; color: var(--ink); font-weight: 600; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--electric); font-weight: 900; }

.purpose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.purpose-card {
    padding: 42px;
    border: 1px solid rgba(255,255,255,.13);
    background: rgba(255,255,255,.055);
    border-radius: var(--radius);
}
.purpose-number { display: block; color: var(--electric-soft); font-weight: 800; letter-spacing: .15em; margin-bottom: 52px; }
.purpose-card h3 { color: #fff; font-size: 1.6rem; margin-bottom: 16px; }
.purpose-card p { color: rgba(255,255,255,.76); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-card { background: #fff; border-radius: var(--radius-sm); padding: 30px; box-shadow: var(--shadow-soft); border: 1px solid var(--line); }
.value-card > span { color: var(--electric); font-weight: 900; font-size: .78rem; letter-spacing: .12em; }
.value-card h3 { color: var(--ink); margin: 20px 0 10px; font-size: 1.12rem; }
.value-card p { color: var(--muted); font-size: .9rem; }

.service-category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-category-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.service-category-head { display: flex; gap: 22px; padding: 28px; align-items: center; }
.service-category-head img { width: 62px; height: 62px; object-fit: contain; }
.service-category-head h3 { color: var(--ink); font-size: 1.15rem; margin-bottom: 6px; }
.service-category-head p { color: var(--muted); font-size: .86rem; }
.service-category-card ul { border-top: 1px solid var(--line); }
.service-category-card li + li { border-top: 1px solid var(--line); }
.service-category-card li a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 28px; color: var(--ink); font-size: .88rem; font-weight: 600; transition: color .2s, background .2s; }
.service-category-card li a:hover { color: var(--electric); background: #f7f9ff; }
.service-category-card li span { color: var(--electric); font-size: 1.1rem; }
.quote-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 90px); align-items: start; }
.quote-copy { position: sticky; top: 110px; }
.quote-copy p { color: var(--muted); margin-top: 18px; }
.quote-form { background: #fff; padding: 34px; border-radius: var(--radius); box-shadow: var(--shadow-card); border: 1px solid var(--line); }
.quote-form label, .admin-form label { display: grid; gap: 8px; color: var(--ink); font-size: .82rem; font-weight: 700; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.quote-form > *, .admin-form > * { margin-bottom: 18px; }
.quote-form input, .quote-form select, .quote-form textarea,
.catalog-toolbar input, .catalog-toolbar select {
    width: 100%; border: 1px solid #d9dfec; border-radius: 9px; padding: 12px 14px; color: var(--ink); background: #fff; font: inherit; font-size: .92rem;
}
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus,
.catalog-toolbar input:focus, .catalog-toolbar select:focus { outline: 3px solid rgba(47,109,255,.14); border-color: var(--electric); }

.parts-intro { padding-bottom: 50px; }
.benefit-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: -58px; position: relative; z-index: 2; }
.benefit-card { background: #fff; border-radius: var(--radius-sm); padding: 28px; box-shadow: var(--shadow-card); border-top: 4px solid var(--electric); }
.benefit-card strong { color: var(--ink); font-size: 1.05rem; }
.benefit-card p { color: var(--muted); font-size: .86rem; margin-top: 8px; }
.catalog-section { background: var(--paper); padding: 35px 0 90px; }
.catalog-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 30px; }
.result-count { color: var(--muted); font-weight: 700; white-space: nowrap; }
.catalog-toolbar { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; align-items: end; gap: 12px; background: #fff; padding: 20px; border-radius: var(--radius-sm); box-shadow: var(--shadow-soft); margin-bottom: 34px; }
.catalog-toolbar label { display: grid; gap: 7px; color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.catalog-toolbar .btn { min-height: 44px; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; box-shadow: 0 13px 35px -28px rgba(15,28,70,.45); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.product-image { height: 210px; display: grid; place-items: center; padding: 42px; background: radial-gradient(circle at 50% 35%, #fff, #edf2ff); border-bottom: 1px solid var(--line); }
.product-image img { width: 100%; height: 100%; object-fit: contain; }
.product-card-body { padding: 20px; }
.product-meta { display: flex; justify-content: space-between; gap: 8px; align-items: center; color: var(--muted); font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.product-card h3 { font-size: .95rem; line-height: 1.35; margin: 15px 0 8px; min-height: 2.6em; }
.product-card h3 a { color: var(--ink); }
.product-sku { color: var(--muted); font-size: .78rem; }
.product-card-foot { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: 20px; }
.product-card-foot strong { color: var(--brand); font-size: .98rem; }
.product-card-foot a { color: var(--electric); font-size: .78rem; font-weight: 800; }
.stock-badge { display: inline-flex; align-items: center; width: fit-content; border-radius: 999px; padding: 5px 9px; font-size: .66rem; line-height: 1; font-weight: 800; }
.stock-badge--available { color: #107340; background: #e8f8ef; }
.stock-badge--low { color: #935c00; background: #fff4d6; }
.stock-badge--out { color: #a32f2f; background: #feecec; }
.stock-badge--unknown { color: #315ba9; background: #eaf0ff; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 42px; }
.pagination a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; font-weight: 700; }
.pagination a.active, .pagination a:hover { background: var(--electric); color: #fff; border-color: var(--electric); }
.empty-state { text-align: center; background: #fff; padding: 60px 30px; border-radius: var(--radius); border: 1px solid var(--line); }
.empty-state h1, .empty-state h3 { color: var(--ink); margin-bottom: 10px; }
.empty-state p { color: var(--muted); margin-bottom: 24px; }

.product-detail-section { background: var(--paper); padding: calc(var(--header-h) + 58px) 0 90px; min-height: 75vh; }
.breadcrumbs { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: .8rem; margin-bottom: 28px; }
.breadcrumbs a { color: var(--electric); }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,7vw,90px); align-items: start; }
.product-detail-media { min-height: 520px; display: grid; place-items: center; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 60px; }
.product-detail-media > img { max-width: 100%; max-height: 520px; object-fit: contain; }
.detail-placeholder { display: grid; place-items: center; gap: 24px; width: 100%; height: 100%; }
.detail-placeholder img { width: min(260px, 75%); max-height: 260px; object-fit: contain; }
.detail-placeholder span { color: var(--muted); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.product-detail-copy h1 { color: var(--ink); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; margin: 14px 0; }
.detail-sku { color: var(--muted); margin-bottom: 18px; }
.detail-price { display: grid; gap: 4px; margin: 30px 0; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-price span { color: var(--muted); font-size: .8rem; }
.detail-price strong { color: var(--brand); font-size: 1.8rem; }
.product-detail-copy > p { color: var(--muted); }
.application-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; margin: 24px 0; max-height: 220px; overflow: auto; }
.application-box h2 { color: var(--ink); font-size: .95rem; margin-bottom: 8px; }
.application-box p { color: var(--muted); font-size: .84rem; white-space: pre-line; }
.btn-wide { width: 100%; margin-top: 8px; }
.product-detail-copy small { display: block; color: var(--muted); font-size: .72rem; margin-top: 12px; text-align: center; }
.not-found { padding-top: calc(var(--header-h) + 70px); min-height: 65vh; }

@media (max-width: 1100px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .catalog-toolbar { grid-template-columns: 2fr 1fr 1fr; }
    .catalog-toolbar .btn { width: 100%; }
}
@media (max-width: 900px) {
    .page-hero { min-height: 620px; align-items: flex-start; }
    .page-hero-content { padding-top: calc(var(--header-h) + 50px); padding-bottom: 52px; }
    .page-hero-content h1 { font-size: clamp(2.7rem, 8vw, 4rem); }
    .page-hero-overlay { background: linear-gradient(90deg, rgba(5,11,29,.97) 0%, rgba(5,11,29,.83) 62%, rgba(5,11,29,.48) 100%), linear-gradient(0deg, rgba(5,11,29,.82), transparent 58%); }
    .page-hero--workshop { background-position: 62% center; }
    .page-hero--parts { background-position: 68% center; }
    .feature-split, .quote-layout, .product-detail-grid { grid-template-columns: 1fr; }
    .feature-split--reverse .feature-copy { order: initial; }
    .quote-copy { position: static; }
    .purpose-grid, .service-category-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: repeat(2,1fr); }
    .parts-intro { padding-top: 52px; }
    .benefit-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 0; }
    .product-grid { grid-template-columns: repeat(2,1fr); }
    .product-detail-media { min-height: 400px; }
}
@media (max-width: 650px) {
    .page-hero { min-height: 610px; }
    .page-hero-content { padding-top: calc(var(--header-h) + 46px); padding-bottom: 48px; }
    .page-hero-content h1 { max-width: 11ch; font-size: clamp(2.25rem, 11vw, 2.75rem); margin-bottom: 18px; }
    .page-hero-content p { max-width: 38ch; margin-bottom: 24px; font-size: .96rem; }
    .page-hero-content .btn { width: 100%; max-width: 320px; }
    .hero-mini-note { align-items: flex-start; max-width: 38ch; margin-top: 18px; line-height: 1.5; }
    .feature-image, .feature-image img { min-height: 360px; }
    .purpose-card { padding: 30px 24px; }
    .purpose-number { margin-bottom: 30px; }
    .values-grid, .product-grid { grid-template-columns: 1fr; }
    .form-row, .catalog-toolbar { grid-template-columns: 1fr; }
    .catalog-heading { align-items: start; flex-direction: column; }
    .product-image { height: 240px; }
    .product-detail-media { min-height: 330px; padding: 38px; }
    .quote-form { padding: 24px 20px; }
    .quote-layout { gap: 30px; }
    .quote-copy { text-align: left; }
    .quote-steps { margin-top: 24px; }
    .footer-bottom-inner { flex-direction: column; gap: 16px; }
    .footer-powered { width: min(100%, 250px); }
}

/* =====================================================================
   RIMO beta — refinamiento UI/UX, iconografía y accesibilidad
   ===================================================================== */
.icon {
    width: 1.15em;
    height: 1.15em;
    flex: 0 0 auto;
    display: inline-block;
    vertical-align: -.18em;
}

:focus-visible {
    outline: 3px solid rgba(47, 109, 255, .55);
    outline-offset: 3px;
}

button, input, select, textarea { font: inherit; }
button { color: inherit; }
.btn { min-height: 48px; }
.btn .icon { width: 19px; height: 19px; }
.nav-link.active { color: #fff; }
.nav-link.active::after { width: 100%; transform: none; }
.site-header.scrolled .nav-link.active { color: var(--brand); }
.brand-logo { width: 139px; height: 139px; }
.mobile-nav-contact { display: none; }

.hero { overflow: hidden; }
.hero::after {
    content: '';
    position: absolute;
    inset: auto -10% -45% 35%;
    height: 75%;
    background: radial-gradient(circle, rgba(47,109,255,.15), transparent 66%);
    pointer-events: none;
}
.hero-content { position: relative; }
.hero-content::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 2px;
    bottom: 12px;
    width: 2px;
    background: linear-gradient(180deg, var(--electric), transparent 88%);
}
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 32px;
    color: rgba(255,255,255,.7);
    font-size: .76rem;
    font-weight: 650;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust .icon { color: var(--electric-soft); }
.hero-mini-note {
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(255,255,255,.72);
    font-size: .78rem;
    font-weight: 600;
    margin-top: 22px;
}
.hero-mini-note .icon { color: var(--electric-soft); }

.service { overflow: hidden; }
.service::after {
    content: '';
    position: absolute;
    height: 3px;
    inset: auto 50% 0;
    background: var(--electric);
    transition: inset .3s var(--ease);
}
.service:hover::after { inset-inline: 0; }
.unit-card { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.unit-card:hover { transform: translateY(-6px); box-shadow: 0 28px 55px -28px #000; }
.unit-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    background: rgba(47,109,255,.75);
    border: 1px solid rgba(255,255,255,.2);
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
}
.unit-icon .icon { width: 25px; height: 25px; }
.unit-link .icon, .location-link .icon { width: 18px; height: 18px; }
.icon-orb {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: var(--electric);
    background: #edf3ff;
}
.icon-orb .icon { width: 22px; height: 22px; }
.footer-location p { display: flex; align-items: flex-start; gap: 9px; }
.footer-location .icon { color: var(--electric-soft); margin-top: 3px; }

.purpose-card { transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease); }
.purpose-card:hover { transform: translateY(-6px); border-color: rgba(47,109,255,.55); background: rgba(47,109,255,.09); }
.purpose-card-top, .value-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.purpose-number { margin-bottom: 0; }
.purpose-icon, .value-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(47,109,255,.18);
    color: var(--electric-soft);
}
.purpose-icon .icon, .value-icon .icon { width: 25px; height: 25px; }
.purpose-card h3 { margin-top: 38px; }
.value-card { transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.value-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-card); border-color: #cddaff; }
.value-card-top > span:last-child { color: var(--electric); font-weight: 900; font-size: .78rem; letter-spacing: .12em; }
.value-icon { background: #edf3ff; color: var(--electric); }

.benefit-card { display: flex; align-items: flex-start; gap: 16px; transition: transform .3s var(--ease); }
.benefit-card:hover { transform: translateY(-6px); }
.benefit-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--electric);
    background: #edf3ff;
    border-radius: 13px;
}
.benefit-icon .icon { width: 22px; height: 22px; }
.catalog-heading > div > p { color: var(--muted); margin-top: 9px; }
.result-count { display: grid; text-align: right; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.result-count strong { color: var(--ink); font-size: 1.55rem; line-height: 1.1; }
.catalog-filter-panel > summary { display: none; }
.input-with-icon { position: relative; display: block; }
.input-with-icon .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); z-index: 1; }
.input-with-icon input { padding-left: 42px; }
.catalog-toolbar-actions { display: flex; align-items: center; gap: 11px; }
.clear-filters { color: var(--electric); font-size: .75rem; font-weight: 800; }
.active-filter-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: -17px 0 26px;
    color: var(--muted);
    font-size: .76rem;
}
.active-filter-row b { padding: 6px 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); }
.active-filter-row a { color: var(--electric); font-weight: 800; margin-left: auto; }
.product-card { display: flex; flex-direction: column; }
.product-image { position: relative; overflow: hidden; }
.product-image img { transition: transform .4s var(--ease); }
.product-card:hover .product-image img { transform: scale(1.06); }
.product-image-action {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 8px;
    color: #fff;
    background: rgba(7,17,44,.86);
    font-size: .65rem;
    font-weight: 800;
    opacity: 0;
    transform: translateY(7px);
    transition: opacity .25s, transform .25s;
}
.product-card:hover .product-image-action { opacity: 1; transform: none; }
.product-card-body { display: flex; flex: 1; flex-direction: column; }
.product-card-foot { margin-top: auto; padding-top: 20px; }
.product-card-foot a { display: inline-flex; align-items: center; gap: 4px; }
.product-quote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 15px;
    padding: 9px 11px;
    border-radius: 8px;
    color: #166d43;
    background: #e9f8ef;
    font-size: .72rem;
    font-weight: 800;
    transition: background .2s, transform .2s;
}
.product-quote:hover { background: #d8f3e4; transform: translateY(-2px); }
.pagination-note { text-align: center; color: var(--muted); font-size: .75rem; margin-top: 12px; }

.product-gallery { min-width: 0; }
.product-detail-media { position: relative; overflow: hidden; }
.detail-placeholder small { color: #8a93a8; font-size: .7rem; }
.product-thumbnails { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding: 2px; }
.product-thumb { width: 76px; height: 76px; flex: 0 0 auto; border: 2px solid transparent; border-radius: 10px; background: #fff; padding: 8px; cursor: pointer; }
.product-thumb.active { border-color: var(--electric); box-shadow: 0 0 0 3px rgba(47,109,255,.1); }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; }
.detail-sku { display: flex; flex-wrap: wrap; gap: 9px; }
.detail-sku span { padding: 7px 10px; background: #e8ebf2; border-radius: 7px; font-size: .75rem; }
.detail-price small { color: var(--muted); font-size: .66rem; margin-top: 3px; }
.application-box h2 { display: flex; align-items: center; gap: 8px; }
.application-box h2 .icon { color: var(--electric); }
.detail-assurances { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 22px 0 5px; color: var(--muted); font-size: .75rem; font-weight: 700; }
.detail-assurances span { display: inline-flex; align-items: center; gap: 6px; }
.detail-assurances .icon { color: var(--electric); }
.back-to-catalog { display: flex; justify-content: center; align-items: center; gap: 7px; color: var(--electric); font-size: .78rem; font-weight: 800; margin-top: 20px; }

.service-jump-nav { display: flex; gap: 9px; overflow-x: auto; padding: 4px 2px 24px; margin-top: -18px; scrollbar-width: thin; }
.service-jump-nav a { flex: 0 0 auto; color: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 9px 14px; font-size: .72rem; font-weight: 700; transition: .2s; }
.service-jump-nav a:hover { color: #fff; background: rgba(47,109,255,.18); border-color: var(--electric); }
.service-category-card { scroll-margin-top: calc(var(--header-h) + 18px); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.service-category-card:hover { transform: translateY(-5px); }
.service-category-icon { width: 68px; height: 68px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 16px; background: #eef3ff; }
.service-category-icon img { width: 46px; height: 46px; }
.service-category-head > div > span { color: var(--electric); font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.service-category-card li a > span { color: inherit; font-size: inherit; }
.service-category-card li a .icon { color: var(--electric); transition: transform .2s; }
.service-category-card li a:hover .icon, .service-category-card li a.selected .icon { transform: rotate(45deg); }
.service-category-card li a.selected { color: var(--electric); background: #eef3ff; }
.quote-steps { display: grid; gap: 12px; margin-top: 32px; }
.quote-steps span { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .84rem; font-weight: 650; }
.quote-steps b { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--electric); background: #fff; border: 1px solid #dfe7fb; font-size: .72rem; }
.form-intro { display: flex; align-items: center; gap: 13px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.form-intro > .icon { width: 34px; height: 34px; color: var(--electric); }
.form-intro div { display: grid; }
.form-intro strong { font-size: .95rem; }
.form-intro span { color: var(--muted); font-size: .72rem; }
.field-hint { color: var(--muted); font-size: .68rem; font-weight: 500; }
.form-privacy { display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--muted); font-size: .66rem; text-align: center; }
.form-feedback { color: #166d43; font-size: .72rem; font-weight: 700; text-align: center; min-height: 1em; }

.whatsapp-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 80;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 13px 16px;
    border-radius: 999px;
    color: #fff;
    background: #168b51;
    box-shadow: 0 18px 40px -15px rgba(8,95,52,.75);
    font-size: .78rem;
    font-weight: 800;
    transition: transform .25s, box-shadow .25s;
}
.whatsapp-fab:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -14px rgba(8,95,52,.85); }
.whatsapp-fab .icon { width: 22px; height: 22px; }
.mobile-actionbar { display: none; }

/* Aviso del catálogo: explica qué se está mostrando por omisión. */
.catalog-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: -8px 0 22px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid #cfe8db;
    background: #f2faf6;
    color: #17603f;
    font-size: .86rem;
    line-height: 1.5;
}
.catalog-notice .icon { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; }
.catalog-notice a { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.catalog-notice--info { border-color: #f2ddb4; background: #fdf7ea; color: #7a5312; }

/* ------------------- Selector de WhatsApp (taller / refa) -------------
   Diálogo centrado sobre todo el contenido. Sin JS se abre con :target;
   con JS se usa .is-open y la URL no cambia. El atributo hidden del HTML
   lo mantiene oculto aunque esta hoja todavía no haya cargado. */
.wa-chooser {
    position: fixed;
    inset: 0;
    z-index: 999;                 /* por encima del header, la barra móvil y el FAB */
    display: none;
    place-items: center;
    padding: 20px;
}
.wa-chooser:target,
.wa-chooser.is-open { display: grid; }

.wa-chooser-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 12, 30, .68);
    backdrop-filter: blur(5px);
    animation: wa-fade .25s ease both;
}
@keyframes wa-fade { from { opacity: 0; } to { opacity: 1; } }

.wa-chooser-panel {
    position: relative;
    width: min(100%, 430px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    padding: 34px 28px 24px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 44px 100px -32px rgba(5, 11, 28, .8), 0 0 0 1px rgba(255, 255, 255, .6);
    text-align: center;
    animation: wa-pop .32s var(--ease) both;
}
@keyframes wa-pop { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }

.wa-chooser-close {
    position: absolute;
    top: 14px; right: 16px;
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    color: var(--muted);
    font-size: 1.4rem;
    line-height: 1;
    transition: background .2s var(--ease), color .2s var(--ease);
}
.wa-chooser-close:hover { background: var(--paper); color: var(--ink); }

.wa-chooser-icon {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 60px; height: 60px;
    margin-bottom: 16px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(140deg, #25d366, #128c47);
    box-shadow: 0 16px 32px -14px rgba(18, 140, 71, .9);
}
.wa-chooser-icon .icon { width: 30px; height: 30px; }
.wa-chooser-title { font-size: 1.3rem; font-weight: 850; line-height: 1.25; letter-spacing: -.015em; }
.wa-chooser-text { margin-top: 8px; color: var(--muted); font-size: .89rem; line-height: 1.5; }

.wa-chooser-options { display: grid; gap: 11px; margin: 24px 0 4px; text-align: left; }
.wa-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 16px;
    border: 1.5px solid var(--line);
    border-radius: 16px;
    background: #fff;
    transition: border-color .2s var(--ease), background .2s var(--ease),
                transform .2s var(--ease), box-shadow .2s var(--ease);
}
.wa-option:hover, .wa-option:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -18px rgba(15, 28, 70, .55);
    outline: none;
}
.wa-option--taller:hover, .wa-option--taller:focus-visible { border-color: var(--electric); background: #f4f7ff; }
.wa-option--refa:hover, .wa-option--refa:focus-visible { border-color: #128c47; background: #f3fbf6; }

.wa-option-icon {
    display: inline-flex;
    align-items: center; justify-content: center;
    flex: 0 0 44px;
    width: 44px; height: 44px;
    border-radius: 13px;
    background: var(--paper);
    color: var(--brand);
    transition: background .2s var(--ease), color .2s var(--ease);
}
.wa-option--taller:hover .wa-option-icon { background: #e4ecff; color: var(--electric); }
.wa-option--refa:hover .wa-option-icon { background: #dff3e8; color: #128c47; }
.wa-option-icon .icon { width: 21px; height: 21px; }

.wa-option-body { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.wa-option-body strong { font-size: .98rem; font-weight: 800; letter-spacing: -.01em; }
.wa-option-body small { color: var(--muted); font-size: .78rem; }
.wa-option-phone { margin-top: 3px; color: var(--ink); font-size: .8rem; font-weight: 700; letter-spacing: .01em; }

.wa-option-go {
    display: inline-flex;
    align-items: center; justify-content: center;
    flex: 0 0 30px;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--paper);
    color: var(--muted);
    transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.wa-option-go .icon { width: 16px; height: 16px; }
.wa-option:hover .wa-option-go { transform: translateX(2px); color: #fff; background: #128c47; }
.wa-option--taller:hover .wa-option-go { background: var(--electric); }

.wa-chooser-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 18px;
    color: var(--muted);
    font-size: .76rem;
}
.wa-chooser-foot .icon { width: 15px; height: 15px; }

body.wa-open { overflow: hidden; }

@media (max-width: 480px) {
    .wa-chooser { padding: 14px; }
    .wa-chooser-panel { padding: 28px 20px 20px; border-radius: 20px; }
    .wa-chooser-title { font-size: 1.14rem; }
    .wa-option { padding: 13px 14px; gap: 12px; }
}

@media (prefers-reduced-motion: no-preference) {
    .hero, .page-hero { animation: hero-enter .8s var(--ease) both; }
    .whatsapp-fab .icon { animation: gentle-pulse 2.8s ease-in-out infinite; }
    @keyframes hero-enter { from { opacity: .7; background-size: 106% auto; } to { opacity: 1; background-size: cover; } }
    @keyframes gentle-pulse { 0%, 75%, 100% { transform: scale(1); } 84% { transform: scale(1.14); } 92% { transform: scale(.96); } }
}

@media (max-width: 760px) {
    body { padding-bottom: 70px; }
    .site-footer { padding-bottom: 0; }
    .mobile-nav-contact { display: grid; gap: 8px; margin-top: auto; padding-top: 28px; color: rgba(255,255,255,.55); font-size: .68rem; }
    .mobile-nav-contact a { display: flex; align-items: center; gap: 8px; color: #fff; font-size: .84rem; font-weight: 700; }
    .hero-content::before { display: none; }
    .whatsapp-fab { display: none; }
    .mobile-actionbar {
        position: fixed;
        inset: auto 0 0;
        z-index: 110;
        height: 70px;
        display: grid;
        grid-template-columns: repeat(3,1fr);
        padding: 7px max(8px, env(safe-area-inset-right)) max(7px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
        background: rgba(255,255,255,.96);
        border-top: 1px solid var(--line);
        box-shadow: 0 -12px 35px -24px rgba(7,17,44,.7);
        backdrop-filter: blur(12px);
        transition: transform .25s var(--ease);
    }
    body.nav-open .mobile-actionbar { transform: translateY(110%); }
    .mobile-actionbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: .61rem; font-weight: 750; border-radius: 9px; }
    .mobile-actionbar a .icon { width: 20px; height: 20px; }
    .mobile-actionbar__primary { color: #fff !important; background: #168b51; }
    .product-image-action { opacity: 1; transform: none; }

}

@media (max-width: 650px) {
    .page-hero { min-height: 610px; }
    .page-hero-content { padding-top: calc(var(--header-h) + 46px); padding-bottom: 48px; }
    .page-hero-content h1 { max-width: 11ch; font-size: clamp(2.25rem, 11vw, 2.75rem); margin-bottom: 18px; }
    .page-hero-content p { max-width: 38ch; margin-bottom: 24px; font-size: .96rem; }
    .page-hero-content .btn { width: 100%; max-width: 320px; }
    .hero-mini-note { align-items: flex-start; max-width: 38ch; margin-top: 18px; line-height: 1.5; }
    .feature-image, .feature-image img { min-height: 360px; }
    .purpose-card { padding: 30px 24px; }
    .purpose-number { margin-bottom: 30px; }
    .values-grid, .product-grid { grid-template-columns: 1fr; }
    .form-row, .catalog-toolbar { grid-template-columns: 1fr; }
    .catalog-heading { align-items: start; flex-direction: column; }
    .product-image { height: 240px; }
    .product-detail-media { min-height: 330px; padding: 38px; }
    .quote-form { padding: 24px 20px; }
    .quote-layout { gap: 30px; }
    .quote-copy { text-align: left; }
    .quote-steps { margin-top: 24px; }
    .footer-bottom-inner { flex-direction: column; gap: 16px; }
    .footer-powered { width: min(100%, 250px); }
}
