/* ============================================================
   KAIZEN — Desarrollo de software
   Paleta: azul eléctrico del logo sobre fondo oscuro
   ============================================================ */

:root {
    --blue: #2b2bff;
    --blue-light: #5c5cff;
    --bg: #07070f;
    --bg-alt: #0d0d1a;
    --surface: #121222;
    --border: rgba(92, 92, 255, 0.18);
    --text: #eef0ff;
    --text-muted: #9b9fc0;
    --radius: 14px;
    --font-head: 'Sora', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    overflow-x: clip;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    overflow-x: clip;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; }

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

.accent { color: var(--blue-light); }

.container {
    width: min(1140px, 92%);
    margin-inline: auto;
}

.container--narrow { width: min(760px, 92%); }

/* ---------- Header ---------- */

.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    padding: 18px 0;
    transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
}

.header--scrolled {
    background: rgba(7, 7, 15, 0.85);
    backdrop-filter: blur(12px);
    padding: 12px 0;
    box-shadow: 0 1px 0 var(--border);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}

.brand__mark { width: 38px; height: 38px; }

.brand__name {
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: 0.45em;
    font-size: 1rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav > a,
.nav__dropdown > button {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
}

.nav > a:hover,
.nav > a.active,
.nav__dropdown > button:hover { color: var(--text); }

.nav > a.btn { color: #fff; }

/* Desplegable de servicios */

.nav__dropdown { position: relative; }

.nav__dropdown > button::after {
    content: ' ▾';
    font-size: 0.7em;
    color: var(--blue-light);
}

.nav__menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 260px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px;
    display: grid;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.nav__dropdown:hover .nav__menu,
.nav__dropdown.open .nav__menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav__menu a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    transition: background 0.2s, color 0.2s;
}

.nav__menu a:hover {
    background: rgba(43, 43, 255, 0.12);
    color: var(--text);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: transform 0.3s, opacity 0.3s;
}

/* ---------- Botones ---------- */

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    font-family: var(--font-body);
}

.btn--primary {
    background: var(--blue);
    color: #fff;
}

.btn--primary:hover {
    background: var(--blue-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(43, 43, 255, 0.35);
}

.btn--ghost {
    border-color: var(--border);
    color: var(--text);
}

.btn--ghost:hover { border-color: var(--blue-light); }

.btn--sm { padding: 10px 20px; }

.btn--block { width: 100%; }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    padding: 190px 0 80px;
    overflow: hidden;
}

.hero--page { padding: 170px 0 70px; }

.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(92, 92, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(92, 92, 255, 0.06) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 40%, transparent 100%);
    pointer-events: none;
}

.hero__glow {
    position: absolute;
    top: -300px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 700px;
    background: radial-gradient(closest-side, rgba(43, 43, 255, 0.35), transparent);
    pointer-events: none;
}

/* Orbes flotantes */

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    pointer-events: none;
    animation: float 12s ease-in-out infinite;
}

.orb--1 { width: 300px; height: 300px; background: rgba(43, 43, 255, 0.4); top: 10%; left: -100px; }
.orb--2 { width: 220px; height: 220px; background: rgba(92, 92, 255, 0.3); top: 30%; right: -80px; animation-delay: -4s; }
.orb--3 { width: 180px; height: 180px; background: rgba(43, 43, 255, 0.25); bottom: 5%; left: 20%; animation-delay: -8s; }

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-40px) scale(1.08); }
}

.hero__content {
    position: relative;
    text-align: center;
    max-width: 860px;
    margin-inline: auto;
}

.hero__kicker {
    color: var(--blue-light);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 18px;
}

.hero__sub {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin: 24px auto 36px;
    max-width: 640px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__local {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    margin: -18px 0 32px;
}

/* Palabra rotatoria del hero */

.rotator {
    display: inline-block;
    position: relative;
    color: var(--blue-light);
    min-width: 1ch;
    /* Una sola línea siempre: evita que el titular cambie de altura al rotar */
    white-space: nowrap;
    min-height: 1.15em;
}

.rotator__word {
    display: inline-block;
    animation: word-in 0.5s ease both;
}

.rotator__word.out { animation: word-out 0.4s ease both; }

@keyframes word-in {
    from { opacity: 0; transform: translateY(0.6em); filter: blur(4px); }
    to { opacity: 1; transform: none; filter: none; }
}

@keyframes word-out {
    from { opacity: 1; transform: none; }
    to { opacity: 0; transform: translateY(-0.6em); filter: blur(4px); }
}

/* Cursor de escritura */

.caret {
    display: inline-block;
    width: 3px;
    height: 0.9em;
    background: var(--blue-light);
    margin-left: 6px;
    vertical-align: -0.08em;
    animation: blink 1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* ---------- Marquee ---------- */

.marquee {
    overflow: hidden;
    border-block: 1px solid var(--border);
    padding: 18px 0;
    background: var(--bg-alt);
    position: relative;
}

.marquee::before,
.marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }

.marquee__track {
    display: flex;
    gap: 48px;
    width: max-content;
    animation: marquee 28s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__track span {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-muted);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 48px;
}

.marquee__track span::after {
    content: '✦';
    color: var(--blue);
    font-size: 0.8rem;
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

/* ---------- Stats ---------- */

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 90px;
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: relative;
}

.stat { text-align: center; }

.stat__num,
.stat__plus {
    font-family: var(--font-head);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--blue-light);
}

.stat p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 4px;
}

/* ---------- Secciones ---------- */

.section { padding: 110px 0; }

.section--alt { background: var(--bg-alt); }

.section__head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}

.section__kicker {
    color: var(--blue-light);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 14px;
}

.section__sub { color: var(--text-muted); margin-top: 16px; }

.grid { display: grid; gap: 24px; }

.grid--3 { grid-template-columns: repeat(3, 1fr); }

.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- Cards ---------- */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    position: relative;
    will-change: transform;
}

.card:hover {
    border-color: rgba(92, 92, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.card__icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    background: rgba(43, 43, 255, 0.12);
    border-radius: 14px;
    margin-bottom: 20px;
}

.card__icon img {
    width: 42px;
    height: 42px;
}

.card h3 { margin-bottom: 10px; }

.card p { color: var(--text-muted); font-size: 0.95rem; }

/* Card de servicio enlazable */

a.card {
    display: block;
    text-decoration: none;
    color: var(--text);
}

.card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    color: var(--blue-light);
    font-weight: 600;
    font-size: 0.9rem;
}

.card__link::after {
    content: '→';
    transition: transform 0.25s;
}

a.card:hover .card__link::after { transform: translateX(5px); }

/* ---------- Proyectos ---------- */

.project {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.project:hover {
    transform: translateY(-4px);
    border-color: rgba(92, 92, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.project__media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.project__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project:hover .project__media img { transform: scale(1.05); }

.project__media--contain {
    background: #fff;
}

.project__media--contain img {
    object-fit: contain;
    padding: 24px;
}

.project__body { padding: 28px; }

.project__body h3 { margin-bottom: 8px; }

.project__body > p { color: var(--text-muted); font-size: 0.95rem; }

.project__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.project__tags span {
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--blue-light);
    font-size: 0.78rem;
    font-weight: 600;
}

.card--quote footer {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.stars { color: var(--blue-light); letter-spacing: 3px; margin-bottom: 14px; }

/* ---------- Proceso ---------- */

.step {
    padding: 32px 28px;
    border-left: 2px solid var(--border);
    position: relative;
    transition: border-color 0.3s;
}

.step:hover { border-left-color: var(--blue); }

.step__num {
    font-family: var(--font-head);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--blue);
    display: block;
    margin-bottom: 14px;
}

.step h3 { margin-bottom: 10px; }

.step p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Nosotros ---------- */

.about {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
    align-items: center;
}

.about__text h2 { margin: 14px 0 20px; }

.about__text > p { color: var(--text-muted); margin-bottom: 24px; }

.checklist {
    list-style: none;
    margin-bottom: 32px;
    display: grid;
    gap: 12px;
}

.checklist li {
    padding-left: 30px;
    position: relative;
    color: var(--text);
}

.checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--blue-light);
    font-weight: 700;
}

.about__visual {
    display: grid;
    place-items: center;
    padding: 48px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}

.about__visual::before {
    content: '';
    position: absolute;
    inset: -60%;
    background: conic-gradient(from 0deg, transparent 70%, rgba(43, 43, 255, 0.35), transparent 90%);
    animation: spin 8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.about__visual img {
    position: relative;
    width: 200px;
    filter: drop-shadow(0 0 40px rgba(43, 43, 255, 0.5));
    animation: float 8s ease-in-out infinite;
}

/* ---------- Página de servicio ---------- */

.service-hero__icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    animation: float 6s ease-in-out infinite;
}

.service-hero__icon img {
    width: 96px;
    height: 96px;
    filter: drop-shadow(0 0 24px rgba(43, 43, 255, 0.45));
}

.feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: transform 0.3s, border-color 0.3s;
}

.feature:hover {
    transform: translateY(-4px);
    border-color: rgba(92, 92, 255, 0.5);
}

.feature__check {
    color: var(--blue-light);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.5;
}

.feature h3 { font-size: 1rem; margin-bottom: 6px; }

.feature p { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Banner CTA ---------- */

.cta-banner {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 80px 32px;
    border-radius: var(--radius);
    background:
        radial-gradient(600px 300px at 50% 120%, rgba(43, 43, 255, 0.45), transparent),
        var(--surface);
    border: 1px solid var(--border);
}

.cta-banner h2 { margin-bottom: 16px; }

.cta-banner p {
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 32px;
}

/* ---------- FAQ ---------- */

.faq details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq summary {
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-head);
    font-size: 1rem;
    list-style: none;
    position: relative;
    padding-right: 48px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: '+';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--blue-light);
    font-size: 1.4rem;
    transition: transform 0.2s;
}

.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq details p {
    padding: 0 24px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ---------- Formulario ---------- */

.section--contact {
    background:
        radial-gradient(600px 300px at 50% 0%, rgba(43, 43, 255, 0.15), transparent),
        var(--bg-alt);
}

.form { display: grid; gap: 18px; }

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form label {
    display: grid;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form input,
.form select,
.form textarea {
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--blue-light);
}

.form textarea { resize: vertical; }

.hp { position: absolute; left: -9999px; opacity: 0; }

.form__consent {
    display: flex !important;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400 !important;
}

.form__consent input { width: 16px; height: 16px; margin-top: 3px; }

.form__consent a { color: var(--blue-light); }

.form__status { min-height: 1.4em; text-align: center; font-size: 0.95rem; }

.form__status.ok { color: #6ee7a0; }

.form__status.error { color: #ff7b7b; }

/* ---------- Footer ---------- */

.footer {
    border-top: 1px solid var(--border);
    padding: 56px 0 32px;
    background: var(--bg-alt);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer__about p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 16px;
    max-width: 300px;
}

.footer h4 {
    font-family: var(--font-head);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.footer__col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer__col a:hover { color: var(--text); }

.footer .brand__mark { width: 30px; height: 30px; }

.footer .brand__name { font-size: 0.85rem; }

.footer__bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer__copy, .footer__legal a {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 20px; }

.footer__legal a { text-decoration: none; }

.footer__legal a:hover { color: var(--text); }

/* ---------- Animaciones de scroll ---------- */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: var(--delay, 0s);
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

.reveal--left { transform: translateX(-40px); }
.reveal--right { transform: translateX(40px); }
.reveal--left.visible, .reveal--right.visible { transform: none; }

@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal--left, .reveal--right { opacity: 1; transform: none; transition: none; }
    .orb, .about__visual::before, .about__visual img, .service-hero__icon, .marquee__track { animation: none; }
}

/* ---------- Páginas legales ---------- */

.legal { padding: 160px 0 80px; }

.legal h1 { font-size: 2.2rem; margin-bottom: 24px; }

.legal h2 { font-size: 1.3rem; margin: 32px 0 12px; }

.legal p, .legal li { color: var(--text-muted); margin-bottom: 12px; }

.legal ul { padding-left: 24px; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .grid--3, .grid--2 { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .about { grid-template-columns: 1fr; gap: 40px; }
    .about__visual { order: -1; padding: 32px; }
    .about__visual img { width: 140px; }
    .footer__grid { grid-template-columns: 1fr; gap: 32px; }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(340px, 85vw);
        background: var(--bg-alt);
        border-left: 1px solid var(--border);
        flex-direction: column;
        justify-content: center;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.3s ease, visibility 0.3s;
        overflow-y: auto;
        padding: 80px 0 40px;
    }

    .nav.open { transform: none; visibility: visible; }

    .nav > a { font-size: 1.1rem; }

    .nav__dropdown { text-align: center; }

    .nav__dropdown > button { font-size: 1.1rem; }

    .nav__menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
        box-shadow: none;
        border: none;
        background: transparent;
        margin-top: 8px;
    }

    .nav__dropdown.open .nav__menu { display: grid; }

    .nav__menu a { text-align: center; }

    .nav-toggle { display: flex; z-index: 110; }

    .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 560px) {
    .section { padding: 80px 0; }
    .hero { padding: 150px 0 60px; }
    .form__row { grid-template-columns: 1fr; }
    .stats { margin-top: 60px; }
    .footer__bottom { flex-direction: column; text-align: center; align-items: center; }
}

/* ============================================================
   TEMA CLARO (home estilo Gecko) — se activa con body.theme-light
   ============================================================ */

.theme-light {
    --bg: #ffffff;
    --bg-alt: #f6f7fb;
    --surface: #ffffff;
    --border: rgba(15, 15, 60, 0.1);
    --text: #0b0b1c;
    --text-muted: #5b5f7a;
}

.theme-light .header--scrolled {
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 1px 0 var(--border);
}

.theme-light .hero__grid {
    background-image:
        linear-gradient(rgba(43, 43, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(43, 43, 255, 0.05) 1px, transparent 1px);
}

.theme-light .hero__glow {
    background: radial-gradient(closest-side, rgba(43, 43, 255, 0.14), transparent);
}

.theme-light .orb { opacity: 0.18; }

.theme-light .accent,
.theme-light .rotator { color: var(--blue); }

.theme-light .card,
.theme-light .project,
.theme-light .stats {
    box-shadow: 0 2px 14px rgba(15, 15, 60, 0.05);
}

.theme-light .card:hover,
.theme-light .project:hover {
    box-shadow: 0 18px 40px rgba(15, 15, 60, 0.12);
}

/* Chips del hero */

.hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 28px 0 8px;
}

.hero__chips span {
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Servicios numerados (filas estilo Gecko) */

.service-rows { display: grid; }

.service-row {
    display: grid;
    grid-template-columns: 110px 1fr 190px;
    gap: 32px;
    align-items: center;
    padding: 44px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: background 0.25s;
}

.service-row:first-child { border-top: 1px solid var(--border); }

.service-row:hover { background: rgba(43, 43, 255, 0.03); }

.service-row__num {
    font-family: var(--font-head);
    font-size: 4rem;
    font-weight: 800;
    color: var(--text);
    opacity: 0.12;
    line-height: 1;
    transition: opacity 0.25s, color 0.25s;
}

.service-row:hover .service-row__num { opacity: 1; color: var(--blue); }

.service-row__body h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.service-row__body p {
    color: var(--text-muted);
    max-width: 560px;
}

.service-row__body .card__link { margin-top: 14px; }

.service-row__icon {
    justify-self: end;
    width: 150px;
    height: 150px;
    display: grid;
    place-items: center;
    background: rgba(43, 43, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 20px;
}

.service-row__icon img { width: 96px; height: 96px; }

/* Banda oscura dentro del tema claro */

.band-dark {
    background: #080810;
    color: #eef0ff;
}

.band-dark .section__head h2,
.band-dark .card h3 { color: #eef0ff; }

.band-dark .section__sub,
.band-dark .card p { color: #9b9fc0; }

.band-dark .card {
    background: #121222;
    border-color: rgba(92, 92, 255, 0.18);
    box-shadow: none;
}

.band-dark .card__icon { background: rgba(43, 43, 255, 0.15); }

/* Banda CTA azul a todo el ancho */

.cta-band {
    background: linear-gradient(120deg, #2b2bff, #5c5cff);
    color: #fff;
    text-align: center;
    padding: 90px 0;
}

.cta-band h2 { color: #fff; margin-bottom: 16px; }

.cta-band p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 560px;
    margin: 0 auto 32px;
}

.cta-band .btn--white {
    background: #fff;
    color: #2b2bff;
}

.cta-band .btn--white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* Footer siempre oscuro, también en tema claro */

.theme-light .footer {
    background: #0d0d1a;
    border-top-color: rgba(92, 92, 255, 0.18);
}

.theme-light .footer .brand__name,
.theme-light .footer h4 { color: #eef0ff; }

.theme-light .footer__about p,
.theme-light .footer__col a,
.theme-light .footer__copy,
.theme-light .footer__legal a { color: #9b9fc0; }

.theme-light .footer__col a:hover,
.theme-light .footer__legal a:hover { color: #eef0ff; }

.theme-light .footer__bottom { border-top-color: rgba(92, 92, 255, 0.18); }

@media (max-width: 900px) {
    .service-row { grid-template-columns: 64px 1fr; }
    .service-row__num { font-size: 2.4rem; }
    .service-row__icon { display: none; }
    .theme-light .nav { background: #ffffff; }
}

/* ---------- Hero con escena animada (portada) ---------- */

.hero__split {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero__split .hero__content {
    text-align: left;
    max-width: none;
    margin-inline: 0;
}

.hero__split h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); }

.hero__split .hero__sub { margin-left: 0; }

.hero__split .hero__actions { justify-content: flex-start; }

.hero__scene { position: relative; }

.hero__scene img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 30px 60px rgba(43, 43, 255, 0.22));
}

@media (max-width: 900px) {
    .hero__split { grid-template-columns: 1fr; gap: 32px; }
    .hero__split .hero__content { text-align: center; }
    .hero__split .hero__actions { justify-content: center; }
    .hero__scene { max-width: 520px; margin-inline: auto; }
}

/* ---------- Hero a pantalla completa (portada) ---------- */

.hero--full {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    align-content: center;
    padding: 120px 0 60px;
}

.stats-section { padding: 8px 0 72px; }

.stats--solo { margin-top: 0; }

@media (max-width: 900px) {
    /* En móvil el contenido apilado puede superar la altura de pantalla */
    .hero--full { min-height: auto; padding: 140px 0 60px; }
}

/* ---------- Cobertura estilo "Alcance" ---------- */

.coverage-head {
    max-width: 800px;
    text-align: left;
    margin-bottom: 48px;
}

.section__kicker--line {
    display: flex;
    align-items: center;
    gap: 14px;
}

.section__kicker--line::before {
    content: '';
    width: 36px;
    height: 1px;
    background: var(--blue-light);
}

.coverage-head .section__sub {
    max-width: 620px;
}

.coverage-stats {
    margin: 0 0 40px;
    width: 100%;
}

.regions {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.region {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 22px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-weight: 600;
    color: var(--text);
    transition: border-color 0.25s, background 0.25s;
}

.region:hover {
    border-color: rgba(92, 92, 255, 0.5);
}

.region__pin {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
}

.region small {
    display: block;
    color: var(--blue-light);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-top: 2px;
}

.region--sede {
    background: rgba(43, 43, 255, 0.12);
    border-color: rgba(92, 92, 255, 0.55);
}

@media (max-width: 900px) {
    .regions { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .regions { grid-template-columns: 1fr; }
}

/* ---------- Stack tecnológico (doble cinta) ---------- */

.stack-band {
    position: relative;
    overflow: hidden;
    padding: 6px 0;
}

.stack-band + .stack-band { margin-top: 18px; }

.stack-band::before,
.stack-band::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 140px;
    z-index: 2;
    pointer-events: none;
}

.stack-band::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.stack-band::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }

.stack-track {
    display: flex;
    gap: 18px;
    width: max-content;
    animation: marquee 50s linear infinite;
}

.stack-track--reverse { animation-direction: reverse; animation-duration: 60s; }

.stack-band:hover .stack-track { animation-play-state: paused; }

.stack-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    white-space: nowrap;
    transition: border-color 0.25s, transform 0.25s;
}

.stack-card:hover {
    border-color: rgba(92, 92, 255, 0.5);
    transform: translateY(-3px);
}

.stack-card img { width: 30px; height: 30px; }

.stack-card strong {
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 600;
    display: block;
}

.stack-card small {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
}

@media (prefers-reduced-motion: reduce) {
    .stack-track { animation: none; }
}

/* ---------- Stack en parrilla con oleada ---------- */

.stack-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.stack-grid .stack-card { white-space: normal; }

.stack-grid .stack-card.visible {
    animation: card-wave 5.5s ease-in-out infinite;
}

@keyframes card-wave {
    0%, 100% {
        transform: translateY(0);
        border-color: var(--border);
        box-shadow: none;
    }
    50% {
        transform: translateY(-8px);
        border-color: rgba(92, 92, 255, 0.55);
        box-shadow: 0 14px 30px rgba(43, 43, 255, 0.16);
    }
}

@media (prefers-reduced-motion: reduce) {
    .stack-grid .stack-card.visible { animation: none; }
}

/* ---------- Stack en burbujas flotantes ---------- */

.stack-bubbles {
    position: relative;
    height: 600px;
    margin-top: 8px;
}

.bubble {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--size, 90px);
    height: var(--size, 90px);
    will-change: transform;
    cursor: pointer;
}

.bubble__inner {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.16), transparent 45%),
        radial-gradient(circle at 70% 78%, rgba(43, 43, 255, 0.3), transparent 60%),
        rgba(18, 18, 34, 0.55);
    border: 1px solid rgba(92, 92, 255, 0.35);
    box-shadow: inset 0 0 18px rgba(92, 92, 255, 0.15), 0 6px 24px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(3px);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    animation: bubble-in 0.6s ease var(--delay, 0s) backwards;
}

.bubble:hover .bubble__inner {
    transform: scale(1.15);
    border-color: rgba(92, 92, 255, 0.85);
    box-shadow: inset 0 0 24px rgba(92, 92, 255, 0.28), 0 12px 36px rgba(43, 43, 255, 0.35);
}

.bubble:hover { z-index: 10; }

.bubble__inner img {
    width: 42%;
    height: 42%;
    object-fit: contain;
}

.bubble__label {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 16px;
    text-align: center;
    white-space: nowrap;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.bubble__label small {
    display: block;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.bubble:hover .bubble__label {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

@keyframes bubble-in {
    from { opacity: 0; transform: scale(0.2); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 640px) {
    .stack-bubbles { height: 430px; }
}

/* ---------- Burbujas: explosión y decorativas ---------- */

.bubble--deco .bubble__inner {
    background:
        radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.12), transparent 45%),
        rgba(43, 43, 255, 0.07);
    border-color: rgba(92, 92, 255, 0.22);
    box-shadow: inset 0 0 12px rgba(92, 92, 255, 0.1);
}

.bubble__inner::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(140, 150, 255, 0.9);
    opacity: 0;
    pointer-events: none;
}

.bubble.pop { pointer-events: none; }

.bubble.pop .bubble__inner {
    animation: bubble-pop 0.35s ease-out forwards;
}

.bubble.pop .bubble__inner::after {
    animation: pop-ring 0.45s ease-out forwards;
}

@keyframes bubble-pop {
    0% { transform: scale(1); opacity: 1; }
    35% { transform: scale(1.25); opacity: 0.9; }
    100% { transform: scale(1.55); opacity: 0; }
}

@keyframes pop-ring {
    0% { transform: scale(0.7); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

/* ---------- Burbujas por toda la sección del stack ---------- */

.stack-section {
    position: relative;
    min-height: 800px;
    display: flex;
    align-items: flex-start;
}

.stack-section .container {
    position: relative;
    z-index: 2;
    /* deja pasar el cursor a las burbujas que cruzan por detrás del texto */
    pointer-events: none;
}

.stack-section .stack-bubbles {
    position: absolute;
    inset: 0;
    height: auto;
    margin: 0;
}

@media (max-width: 640px) {
    .stack-section { min-height: 660px; }
}

/* ---------- Proceso kaizen: stepper animado ---------- */

.kaizen-steps { align-items: stretch; }

.kstep { display: flex; flex-direction: column; }

.kstep__top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    min-height: 56px;
}

.kstep__node {
    position: relative;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.05rem;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    box-shadow: 0 0 24px rgba(43, 43, 255, 0.45);
    transform: scale(0);
}

.kstep.visible .kstep__node {
    animation: node-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: var(--node-delay, 0s);
}

.kstep__node::after {
    content: '';
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 2px solid rgba(92, 92, 255, 0.55);
    animation: node-ping 2.8s ease-out infinite;
    animation-delay: var(--node-delay, 0s);
}

.kstep__bar {
    /* conecta el centro de este nodo con el centro del siguiente */
    position: absolute;
    top: 50%;
    left: calc(50% + 40px);
    width: calc(100% - 56px);
    height: 2px;
    background: var(--border);
    overflow: hidden;
    border-radius: 2px;
}

.kstep__bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--blue), var(--blue-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.9s ease;
    transition-delay: var(--bar-delay, 0.4s);
}

.kstep.visible .kstep__bar::after { transform: scaleX(1); }

.kstep:nth-child(1) { --node-delay: 0s; --bar-delay: 0.45s; }
.kstep:nth-child(2) { --node-delay: 1.2s; --bar-delay: 1.65s; }
.kstep:nth-child(3) { --node-delay: 2.4s; }

.kstep__card { flex: 1; }

@keyframes node-in {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

@keyframes node-ping {
    0%, 55% { transform: scale(0.6); opacity: 0; }
    70% { transform: scale(0.85); opacity: 1; }
    100% { transform: scale(1.25); opacity: 0; }
}

.kaizen-loop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 44px;
    padding: 14px 28px;
    width: fit-content;
    margin-inline: auto;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-muted);
}

.kaizen-loop img { width: 26px; height: 26px; }

.kaizen-loop strong { color: var(--blue-light); }

@media (max-width: 900px) {
    .kstep__bar { display: none; }
    .kstep:nth-child(2) { --node-delay: 0.3s; }
    .kstep:nth-child(3) { --node-delay: 0.6s; }
}

@media (prefers-reduced-motion: reduce) {
    .kstep__node { transform: none; }
    .kstep.visible .kstep__node { animation: none; }
    .kstep__node::after { animation: none; opacity: 0; }
    .kstep__bar::after { transform: scaleX(1); transition: none; }
}

/* ---------- Proyectos: animaciones y tarjeta CTA ---------- */

.project__media { position: relative; }

/* barrido de brillo al pasar el ratón */
.project__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.16) 50%, transparent 60%);
    transform: translateX(-130%);
    pointer-events: none;
}

.project:hover .project__media::after {
    animation: shine 0.9s ease;
}

@keyframes shine {
    to { transform: translateX(130%); }
}

/* insignia "En línea" con pulso */
.project__status {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(7, 7, 15, 0.72);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(110, 231, 160, 0.25);
    color: #6ee7a0;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.project__status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3ddc84;
    animation: status-pulse 1.8s ease-out infinite;
}

@keyframes status-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.55); }
    60% { box-shadow: 0 0 0 6px rgba(61, 220, 132, 0); }
}

/* textos más compactos en tarjetas a 3 columnas */
.project__body { padding: 22px; }

.project__body > p { font-size: 0.9rem; }

.project__tags span { font-size: 0.72rem; padding: 4px 10px; }

/* tarjeta CTA "tu proyecto" */
.project--cta {
    display: flex;
    border-style: dashed;
    border-color: rgba(92, 92, 255, 0.4);
    background: rgba(43, 43, 255, 0.04);
}

.project--cta:hover { border-color: var(--blue-light); }

.project-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    padding: 36px 26px;
    flex: 1;
}

.project-cta__plus {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px dashed rgba(92, 92, 255, 0.5);
    color: var(--blue-light);
    font-size: 2rem;
    font-weight: 300;
    animation: plus-float 4s ease-in-out infinite;
}

@keyframes plus-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.project-cta p { color: var(--text-muted); font-size: 0.9rem; }

@media (prefers-reduced-motion: reduce) {
    .project__status i, .project-cta__plus { animation: none; }
}

/* ---------- Red de constelaciones (fondo de proyectos) ---------- */

.section--net {
    position: relative;
    overflow: hidden;
}

.net-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.section--net .container {
    position: relative;
    z-index: 1;
}

/* ---------- Servicios: carril con arrastre horizontal ---------- */

.services-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-bottom: 48px;
}

.drag-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    padding-bottom: 6px;
}

.drag-hint svg { color: var(--blue-light); animation: hint-slide 1.6s ease-in-out infinite; }

@keyframes hint-slide {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(6px); }
}

.services-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.services-wrap::-webkit-scrollbar { display: none; }

.services-wrap:active { cursor: grabbing; }

.services-track {
    display: flex;
    gap: 20px;
    width: max-content;
    padding: 6px calc(max((100vw - 1140px) / 2, 4vw)) 20px;
}

.service-slide {
    width: clamp(280px, 26vw, 380px);
    flex-shrink: 0;
}

.service-slide img { -webkit-user-drag: none; }

@media (max-width: 640px) {
    .services-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 32px; }
    .service-slide { width: min(78vw, 320px); }
}

@media (prefers-reduced-motion: reduce) {
    .drag-hint svg { animation: none; }
}

/* ---------- Regiones: flotación suave ---------- */

.region {
    animation: region-float 6s ease-in-out infinite;
}

.region:nth-child(2) { animation-delay: -1.2s; }
.region:nth-child(3) { animation-delay: -2.4s; }
.region:nth-child(4) { animation-delay: -3.6s; }
.region:nth-child(5) { animation-delay: -4.8s; }

@keyframes region-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
    .region { animation: none; }
}

/* ---------- Terminal kaizen (sección nosotros) ---------- */

.terminal {
    background: #0a0a16;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 60px rgba(43, 43, 255, 0.12);
    font-family: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace;
    font-size: 0.86rem;
}

.terminal__bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    background: rgba(92, 92, 255, 0.07);
    border-bottom: 1px solid var(--border);
}

.terminal__bar span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.terminal__bar span:nth-child(1) { background: #ff5f57; }
.terminal__bar span:nth-child(2) { background: #febc2e; }
.terminal__bar span:nth-child(3) { background: #28c840; }

.terminal__bar em {
    margin-left: 10px;
    font-style: normal;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

.terminal__body {
    padding: 20px 22px;
    min-height: 300px;
    line-height: 1.9;
    color: var(--text-muted);
}

.terminal__body .t-line { display: block; white-space: pre-wrap; }

.terminal__body .t-cmd { color: var(--text); }
.terminal__body .t-cmd::before { content: '$ '; color: var(--blue-light); font-weight: 700; }
.terminal__body .t-ok { color: #6ee7a0; }
.terminal__body .t-info { color: var(--blue-light); }

.terminal__cursor {
    display: inline-block;
    width: 8px;
    height: 1em;
    background: var(--blue-light);
    vertical-align: -0.15em;
    animation: blink 1s steps(1) infinite;
}

@media (max-width: 560px) {
    .terminal__body { min-height: 260px; font-size: 0.78rem; }
}

/* ---------- Banner CTA con haz de luz, kanji y estrellas ---------- */

.cta-banner {
    border: none;
    background: none;
    padding: 92px 32px;
}

/* haz de luz girando por el borde */
.cta-banner::before {
    content: '';
    position: absolute;
    inset: -150%;
    background: conic-gradient(from 0deg, transparent 72%, rgba(92, 92, 255, 0.9) 88%, transparent 100%);
    animation: spin 7s linear infinite;
}

/* fondo interior por encima del haz (deja visible solo el borde) */
.cta-banner::after {
    content: '';
    position: absolute;
    inset: 1.5px;
    border-radius: calc(var(--radius) - 2px);
    background:
        radial-gradient(700px 340px at 50% 130%, rgba(43, 43, 255, 0.4), transparent),
        #10101f;
}

.cta-banner > * { position: relative; z-index: 2; }

.cta-banner__mark {
    position: absolute;
    z-index: 1;
    right: -60px;
    bottom: -80px;
    width: 340px;
    opacity: 0.14;
    transform: rotate(-8deg);
    pointer-events: none;
    user-select: none;
}

.cta-banner__stars {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.cta-banner__stars i {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #9aa8ff;
    box-shadow: 0 0 8px rgba(140, 150, 255, 0.9);
    animation: star-twinkle 3s ease-in-out infinite;
}

@keyframes star-twinkle {
    0%, 100% { opacity: 0.15; transform: scale(0.7); }
    50% { opacity: 1; transform: scale(1.3); }
}

@media (max-width: 640px) {
    .cta-banner__mark { width: 200px; right: -40px; bottom: -50px; }
}

@media (prefers-reduced-motion: reduce) {
    .cta-banner::before { animation: none; }
    .cta-banner__stars i { animation: none; opacity: .5; }
}

/* ---------- Logo completo en header y footer ---------- */

.brand__logo {
    height: 40px;
    width: auto;
}

.footer .brand__logo { height: 32px; }

@media (max-width: 560px) {
    .brand__logo { height: 34px; }
}

/* ---------- Banner de cookies (tarjeta inferior izquierda) ---------- */

.cookie-banner {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 9999;
    max-width: 400px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px 24px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
    animation: cookie-in 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.cookie-banner[hidden] { display: none; }

@keyframes cookie-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

.cookie-banner p {
    font-size: 13px;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.cookie-banner a {
    color: var(--blue-light);
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    gap: 10px;
}

.cookie-banner__actions button {
    flex: 1;
    padding: 11px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.cookie-banner__accept {
    background: var(--blue);
    border: 1.5px solid var(--blue);
    color: #fff;
}

.cookie-banner__accept:hover { background: var(--blue-light); border-color: var(--blue-light); }

.cookie-banner__reject {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.85);
}

.cookie-banner__reject:hover { border-color: rgba(255, 255, 255, 0.5); color: #fff; }

/* botón "Gestionar cookies" del footer, con aspecto de enlace legal */
.ck-manage {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.15s;
}

.ck-manage:hover { color: var(--text); }

@media (max-width: 600px) {
    .cookie-banner { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}

/* ---------- Logo completo en header y footer ---------- */

.brand__logo {
    height: 40px;
    width: auto;
}

.footer .brand__logo { height: 32px; }

@media (max-width: 560px) {
    .brand__logo { height: 34px; }
}

/* ---------- Banner de cookies ---------- */

.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 200;
    max-width: 480px;
    margin-inline: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    animation: cookie-in 0.5s ease;
}

@keyframes cookie-in {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}

.cookie-banner p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 16px;
}

.cookie-banner a { color: var(--blue-light); }

.cookie-banner__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-banner .btn { padding: 10px 20px; font-size: 0.88rem; }

/* ---------- Footer: columna de contacto y redes ---------- */

@media (min-width: 901px) {
    .footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
}

.footer__social {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.footer__social a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    transition: color 0.2s, border-color 0.2s, transform 0.2s;
}

.footer__social a:hover {
    color: var(--blue-light);
    border-color: rgba(92, 92, 255, 0.5);
    transform: translateY(-2px);
}

.footer__location {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* ---------- Iconos en el menú desplegable de servicios ---------- */

.nav .nav__menu {
    min-width: 310px;
}

.nav .nav__menu a {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.nav .nav__menu a img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ---------- Botón "Hablemos" del menú: azul claro fijo + burbujas ---------- */

.nav .btn--primary {
    background: var(--blue-light);
    position: relative;
}

.nav .btn--primary:hover {
    background: var(--blue-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(92, 92, 255, 0.4);
}

.btn-molecule {
    position: absolute;
    pointer-events: none;
    color: #cdd4ff;
    animation: mol-fly 0.85s ease-out forwards;
}

@keyframes mol-fly {
    0% { opacity: 0; transform: translate(0, 0) rotate(0deg) scale(0.3); }
    20% { opacity: 1; }
    100% { opacity: 0; transform: translate(var(--tx, 0), var(--ty, -24px)) rotate(var(--rot, 40deg)) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .btn-molecule { display: none; }
}

/* ---------- Desplegable propio del formulario (con iconos) ---------- */

.kselect { position: relative; }

.kselect__toggle {
    width: 100%;
    text-align: left;
    padding: 14px 40px 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: border-color 0.2s;
}

.kselect__toggle img { width: 20px; height: 20px; }

.kselect__toggle::after {
    content: '▾';
    position: absolute;
    right: 16px;
    color: var(--blue-light);
}

.kselect.open .kselect__toggle,
.kselect__toggle:focus { border-color: var(--blue-light); outline: none; }

.kselect.selected .kselect__toggle { color: var(--text); }

.kselect__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 50;
    list-style: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    display: grid;
    gap: 2px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.kselect.open .kselect__menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.kselect__menu li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.92rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.kselect__menu li:hover {
    background: rgba(43, 43, 255, 0.12);
    color: var(--text);
}

.kselect__menu li img { flex-shrink: 0; }

.form__hint {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.55;
}

/* ---------- Página de contacto ampliada ---------- */

.hero__chips--left { justify-content: flex-start; }

.resenas__cta {
    text-align: center;
    margin-top: 36px;
}

/* ---------- Contacto estilo Gecko: secciones claras por ámbito ---------- */

.section--light {
    background: #ffffff;
    --surface: #ffffff;
    --border: rgba(15, 15, 60, 0.12);
    --text: #0b0b1c;
    --text-muted: #5b5f7a;
    color: var(--text);
}

.section--light-alt {
    background: #f6f7fb;
    --surface: #ffffff;
    --border: rgba(15, 15, 60, 0.12);
    --text: #0b0b1c;
    --text-muted: #5b5f7a;
    color: var(--text);
}

.section--light .card,
.section--light-alt .card,
.section--light .feature,
.section--light-alt .feature {
    box-shadow: 0 2px 14px rgba(15, 15, 60, 0.05);
}

/* migas de pan del hero */
.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 18px;
    letter-spacing: 0.04em;
}

.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { margin: 0 8px; color: var(--blue-light); }

/* métricas en línea del hero */
.metrics-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin: 26px 0 30px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.metrics-line strong { color: var(--text); font-family: var(--font-head); }

.metrics-line .dot { color: var(--blue-light); }

/* datos de contacto directo en el hero */
.contact-lines {
    display: flex;
    flex-wrap: wrap;
    gap: 34px;
}

.contact-lines a,
.contact-lines div {
    text-decoration: none;
    color: var(--text);
}

.contact-lines strong {
    display: block;
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
}

.contact-lines small {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.contact-lines a:hover strong { color: var(--blue-light); }

/* formulario a dos columnas sobre blanco */
.form-layout {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 56px;
    align-items: start;
}

.form-aside h3 { margin-bottom: 18px; }

.form-aside .feature { margin-bottom: 14px; }

/* estrellas doradas (reseñas Google) */
.stars--gold { color: #eab308; }

@media (max-width: 900px) {
    .form-layout { grid-template-columns: 1fr; gap: 40px; }
    .contact-lines { gap: 22px; }
}

/* banda de contacto directo bajo el hero (página contacto) */
.contact-band {
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
}

.contact-band a,
.contact-band > div {
    text-decoration: none;
    color: var(--text);
}

.contact-band strong {
    display: block;
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 700;
}

.contact-band small { color: var(--text-muted); font-size: 0.85rem; }

.contact-band a:hover strong { color: var(--blue-light); }

@media (max-width: 700px) {
    .contact-band { grid-template-columns: 1fr; gap: 18px; }
}

/* métricas del hero de contacto en columnas: valor arriba, texto debajo */
.metrics-line { gap: 38px; }

.metrics-line .metric {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.metrics-line .metric strong { font-size: 1.1rem; }

.metrics-line .metric small { font-size: 0.85rem; color: var(--text-muted); }

.contact-band__icon {
    width: 38px;
    height: 38px;
    margin: 0 auto 10px;
    display: block;
}

/* titular del hero de contacto: más contenido para que no se apelotone */
.h1--compact {
    font-size: clamp(2rem, 3.3vw, 2.9rem);
    line-height: 1.2;
}

@media (min-width: 900px) {
    .h1--compact .no-break { white-space: nowrap; }
}

/* el salto fijo del titular solo aplica en escritorio */
@media (max-width: 899px) {
    .br-desktop { display: none; }
}

/* escena de contacto: un poco más abajo */
.hero__scene--baja { margin-top: 48px; }

@media (max-width: 900px) {
    .hero__scene--baja { margin-top: 0; }
}

/* la banda de contacto flota entera */
.contact-band {
    animation: region-float 6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .contact-band { animation: none; }
}

/* ---------- Botón flotante de WhatsApp ---------- */

.whatsapp-fab {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 900;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--blue);
    color: #fff;
    box-shadow: 0 10px 30px rgba(43, 43, 255, 0.4);
    transition: transform 0.25s, box-shadow 0.25s;
}

.whatsapp-fab::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(92, 92, 255, 0.7);
    animation: wa-ping 2.4s ease-out infinite;
}

.whatsapp-fab:hover {
    background: var(--blue-light);
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 14px 38px rgba(43, 43, 255, 0.55);
}

.whatsapp-fab svg { width: 30px; height: 30px; }

@keyframes wa-ping {
    0% { transform: scale(1); opacity: 1; }
    75%, 100% { transform: scale(1.55); opacity: 0; }
}

@media (max-width: 600px) {
    .whatsapp-fab { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-fab::before { animation: none; opacity: 0; }
}

/* ---------- Garantías del formulario (sin letra pequeña) ---------- */

.form-aside {
    position: sticky;
    top: 110px;
}

.form-aside .section__kicker--line { margin-bottom: 22px; }

.garantia {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    margin-bottom: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid rgba(92, 92, 255, 0.35);
    border-radius: 12px;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.garantia:hover {
    border-color: rgba(92, 92, 255, 0.5);
    border-left-color: var(--blue-light);
    transform: translateX(6px);
    box-shadow: 0 12px 30px rgba(43, 43, 255, 0.12);
}

.garantia__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(43, 43, 255, 0.12);
}

.garantia__icon img { width: 30px; height: 30px; }

.garantia h3 { font-size: 1rem; margin-bottom: 6px; }

.garantia p { color: var(--text-muted); font-size: 0.88rem; }

@media (max-width: 900px) {
    .form-aside { position: static; }
}

/* ---------- Fondo radar (sección alcance de contacto) ---------- */

.section--radar {
    position: relative;
    overflow: hidden;
}

.section--radar .container {
    position: relative;
    z-index: 1;
}

.radar-bg {
    position: absolute;
    top: 50%;
    right: -160px;
    transform: translateY(-50%);
    width: 720px;
    height: 720px;
    pointer-events: none;
    opacity: 0.8;
}

.radar-bg__ring {
    position: absolute;
    border: 1px solid rgba(92, 92, 255, 0.16);
    border-radius: 50%;
}

.radar-bg__ring:nth-child(1) { inset: 0; }
.radar-bg__ring:nth-child(2) { inset: 12.5%; }
.radar-bg__ring:nth-child(3) { inset: 25%; }
.radar-bg__ring:nth-child(4) { inset: 37.5%; border-color: rgba(92, 92, 255, 0.24); }

.radar-bg__cross {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(92, 92, 255, 0.1), rgba(92, 92, 255, 0.1)) 50% 0 / 1px 100% no-repeat,
        linear-gradient(rgba(92, 92, 255, 0.1), rgba(92, 92, 255, 0.1)) 0 50% / 100% 1px no-repeat;
}

.radar-bg__sweep {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(92, 92, 255, 0.28), rgba(92, 92, 255, 0.06) 55deg, transparent 70deg);
    animation: radar-sweep 6.5s linear infinite;
}

@keyframes radar-sweep {
    to { transform: rotate(360deg); }
}

.radar-bg__blip {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8f9dff;
    box-shadow: 0 0 12px rgba(143, 157, 255, 0.9);
    opacity: 0;
    animation: radar-blip 6.5s ease-out infinite;
}

@keyframes radar-blip {
    0%, 4% { opacity: 0; transform: scale(0.5); }
    8% { opacity: 1; transform: scale(1.4); }
    30% { opacity: 0.6; transform: scale(1); }
    55%, 100% { opacity: 0; transform: scale(0.6); }
}

@media (max-width: 900px) {
    .radar-bg { width: 520px; height: 520px; right: -200px; opacity: 0.5; }
}

@media (prefers-reduced-motion: reduce) {
    .radar-bg__sweep { animation: none; opacity: 0.3; }
    .radar-bg__blip { animation: none; opacity: 0.5; }
}

/* ---------- Nosotros: órbita del logo ---------- */

.orbita {
    position: relative;
    width: min(380px, 80vw);
    aspect-ratio: 1;
    margin-inline: auto;
    display: grid;
    place-items: center;
}

.orbita__logo {
    width: 34%;
    filter: drop-shadow(0 0 40px rgba(43, 43, 255, 0.5));
    animation: float 8s ease-in-out infinite;
}

.orbita__ring {
    position: absolute;
    border: 1px dashed rgba(92, 92, 255, 0.25);
    border-radius: 50%;
    animation: spin linear infinite;
}

.orbita__ring i {
    position: absolute;
    top: -5px;
    left: 50%;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    border-radius: 50%;
    background: var(--blue-light);
    box-shadow: 0 0 14px rgba(92, 92, 255, 0.9);
}

.orbita__ring--1 { inset: 12%; animation-duration: 9s; }
.orbita__ring--2 { inset: 0; animation-duration: 15s; animation-direction: reverse; }
.orbita__ring--2 i { background: #8f9dff; width: 7px; height: 7px; }
.orbita__ring--3 { inset: 24%; animation-duration: 6s; }
.orbita__ring--3 i { width: 6px; height: 6px; background: var(--blue); }

/* ---------- Nosotros: línea del tiempo ---------- */

.timeline {
    position: relative;
    max-width: 640px;
    margin-inline: auto;
    padding-left: 36px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--blue), var(--blue-light), transparent);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 1.6s ease 0.2s;
}

.timeline.visible::before { transform: scaleY(1); }

.tl-item {
    position: relative;
    padding-bottom: 40px;
}

.tl-item:last-child { padding-bottom: 0; }

.tl-node {
    position: absolute;
    left: -36px;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    box-shadow: 0 0 16px rgba(43, 43, 255, 0.6);
}

.tl-item--hoy .tl-node::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(92, 92, 255, 0.6);
    animation: node-ping 2.4s ease-out infinite;
}

.tl-year {
    font-family: var(--font-head);
    font-weight: 800;
    color: var(--blue-light);
    font-size: 0.95rem;
    letter-spacing: 0.1em;
}

.tl-item h3 { margin: 4px 0 8px; font-size: 1.2rem; }

.tl-item p { color: var(--text-muted); max-width: 520px; }

@media (prefers-reduced-motion: reduce) {
    .orbita__ring, .orbita__logo { animation: none; }
    .timeline::before { transform: scaleY(1); transition: none; }
    .tl-item--hoy .tl-node::after { animation: none; }
}

/* ---------- Órbita con icono de servicio (heros de servicios) ---------- */

.orbita--servicio .orbita__icon {
    width: 42%;
    filter: drop-shadow(0 0 34px rgba(43, 43, 255, 0.45));
    animation: float 7s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .orbita--servicio .orbita__icon { animation: none; }
}

/* ---------- Paquetes y filosofía de precio (páginas de servicio) ---------- */

.paquete {
    display: flex;
    flex-direction: column;
}

.paquete .checklist {
    margin: 18px 0 22px;
    gap: 9px;
}

.paquete .checklist li { font-size: 0.92rem; }

.paquete__precio {
    margin-top: auto;
    padding: 14px 0 16px;
    border-top: 1px solid var(--border);
}

.paquete__precio strong {
    display: block;
    font-family: var(--font-head);
    font-size: 1.05rem;
    color: var(--blue-light);
}

.paquete__precio small { color: var(--text-muted); font-size: 0.8rem; }

.paquete .btn { text-align: center; }

.precio-filosofia {
    margin-bottom: 40px;
    padding: 44px 36px;
    text-align: center;
    border: 1px solid rgba(92, 92, 255, 0.35);
    border-radius: var(--radius);
    background:
        radial-gradient(500px 200px at 50% 120%, rgba(43, 43, 255, 0.22), transparent),
        var(--surface);
}

.precio-filosofia h3 {
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.precio-filosofia p {
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 26px;
}

/* filosofía de precio: texto abierto, sin caja, con botón que late */
.precio-filosofia {
    border: none;
    background: none;
    padding: 8px 0;
    margin-bottom: 52px;
}

.precio-filosofia h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }

.precio-filosofia .btn {
    animation: btn-late 2.3s ease-in-out infinite;
}

@keyframes btn-late {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(92, 92, 255, 0.55), 0 10px 30px rgba(43, 43, 255, 0.35);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 14px rgba(92, 92, 255, 0), 0 12px 36px rgba(43, 43, 255, 0.55);
        transform: scale(1.04);
    }
}

@media (prefers-reduced-motion: reduce) {
    .precio-filosofia .btn { animation: none; }
}

/* con 3 proyectos, la tarjeta CTA ocupa el ancho completo debajo */
.project--cta { grid-column: 1 / -1; }

.project--cta .project-cta { padding: 30px 26px; }

/* ---------- Carril de reseñas con arrastre ---------- */

.resenas-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.resenas-wrap::-webkit-scrollbar { display: none; }

.resenas-wrap:active { cursor: grabbing; }

.resenas-track {
    display: flex;
    gap: 20px;
    width: max-content;
    padding: 6px 2px 14px;
}

.resena-slide {
    width: clamp(300px, 34vw, 420px);
    flex-shrink: 0;
    white-space: normal;
}

.resena-slide img { -webkit-user-drag: none; }

/* ---------- Flechas de navegación del carril de reseñas ---------- */

.carousel { position: relative; }

.carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: color 0.2s, border-color 0.2s, transform 0.2s, background 0.2s;
}

.carousel__btn:hover {
    color: #fff;
    background: var(--blue);
    border-color: var(--blue);
    transform: translateY(-50%) scale(1.08);
}

.carousel__btn--prev { left: -14px; }
.carousel__btn--next { right: -14px; }

@media (max-width: 640px) {
    .carousel__btn { width: 38px; height: 38px; }
    .carousel__btn--prev { left: 2px; }
    .carousel__btn--next { right: 2px; }
    /* las tarjetas descansan entre las flechas, sin texto debajo de ellas */
    .resenas-track { padding: 6px 46px 14px; }
    .resena-slide { width: min(300px, calc(100vw - 140px)); }
}

/* ---------- Cielo con estrellas fugaces (nuestro camino) ---------- */

.section--cielo {
    position: relative;
    overflow: hidden;
}

.section--cielo .container {
    position: relative;
    z-index: 1;
}

.cielo {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cielo i {
    position: absolute;
    width: 2.5px;
    height: 2.5px;
    border-radius: 50%;
    background: #9aa8ff;
    box-shadow: 0 0 8px rgba(154, 168, 255, 0.8);
    animation: star-twinkle 3.2s ease-in-out infinite;
}

.cielo__fugaz {
    position: absolute;
    width: 140px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #ffffff, rgba(154, 168, 255, 0.55), transparent);
    transform: rotate(-24deg);
    opacity: 0;
    animation: fugaz var(--dur, 9s) linear infinite;
    animation-delay: var(--del, 0s);
}

@keyframes fugaz {
    0%, 3% { opacity: 0; transform: rotate(-24deg) translateX(0); }
    5% { opacity: 1; }
    11% { opacity: 0; transform: rotate(-24deg) translateX(-420px); }
    100% { opacity: 0; transform: rotate(-24deg) translateX(-420px); }
}

@media (prefers-reduced-motion: reduce) {
    .cielo i { animation: none; opacity: 0.5; }
    .cielo__fugaz { animation: none; }
}

/* la filosofía de precio arranca pegada al hero, sin tanto aire */
#paquetes.section { padding-top: 36px; }

/* más aire entre la filosofía de precio y el bloque de paquetes */
.precio-filosofia { margin-bottom: 96px; }

/* ---------- Interrogaciones flotantes (FAQ de servicios) ---------- */

.section--faqbg {
    position: relative;
    overflow: hidden;
}

.section--faqbg .container--narrow {
    position: relative;
    z-index: 1;
}

.faq-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.faq-bg span {
    position: absolute;
    bottom: -200px;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: var(--s, 100px);
    line-height: 1;
    color: rgba(92, 92, 255, 0.09);
    animation: pregunta-sube var(--dur, 22s) linear infinite;
    animation-delay: var(--del, 0s);
    opacity: 0;
}

@keyframes pregunta-sube {
    0% { transform: translateY(0) rotate(-10deg); opacity: 0; }
    10% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateY(-1050px) rotate(12deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .faq-bg span { animation: none; opacity: 0.5; bottom: auto; top: 20%; }
}

/* ---------- Página de proyectos: casos a fondo ---------- */

.case {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
}

.case--invertido .case__media { order: 2; }
.case--invertido .case__body { order: 1; }

.case__media {
    position: relative;
    display: block;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s, border-color 0.3s;
}

.case__media:hover {
    transform: translateY(-4px);
    border-color: rgba(92, 92, 255, 0.5);
}

.case__media img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.case__media:hover img { transform: scale(1.04); }

.case__body h2 { margin: 14px 0 16px; }

.case__body > p { color: var(--text-muted); margin-bottom: 20px; }

.case__body .checklist { margin-bottom: 22px; }

.case__body .project__tags { margin: 0 0 24px; }

@media (max-width: 900px) {
    .case { grid-template-columns: 1fr; gap: 28px; }
    .case--invertido .case__media { order: 0; }
    .case--invertido .case__body { order: 1; }
}

/* ---------- Abanico de capturas (hero de proyectos) ---------- */

.fan {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 12;
}

.fan__img {
    position: absolute;
    width: 74%;
    border-radius: 12px;
    border: 1px solid rgba(92, 92, 255, 0.35);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    animation: fan-float 7s ease-in-out infinite;
}

.fan__img {
    cursor: pointer;
    transition: top 0.55s cubic-bezier(0.22, 1, 0.36, 1), left 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
}

.fan__img:hover { box-shadow: 0 28px 70px rgba(43, 43, 255, 0.35); }

.fan__img--1 { top: 2%; left: 2%; transform: rotate(-7deg) scale(0.94); z-index: 1; animation-delay: -2s; }
.fan__img--2 { top: 20%; left: 24%; transform: rotate(4deg) scale(0.97); z-index: 2; animation-delay: -4.5s; }
.fan__img--3 { top: 44%; left: 6%; transform: rotate(-3deg); z-index: 3; }

@keyframes fan-float {
    0%, 100% { margin-top: 0; }
    50% { margin-top: -10px; }
}

@media (prefers-reduced-motion: reduce) {
    .fan__img { animation: none; }
}

/* ---------- Selector de idioma ES | EN ---------- */

.lang {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.lang span { color: var(--text); }

.lang .lang__sep { color: var(--border); font-weight: 400; }

.lang a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.lang a:hover { color: var(--blue-light); }

/* ---------- Modal de gracias tras enviar el formulario ---------- */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(4, 4, 12, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.visible { opacity: 1; }

.modal-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 44px 36px;
    max-width: 430px;
    width: 100%;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    transform: translateY(16px) scale(0.95);
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.modal-overlay.visible .modal-card { transform: none; }

.modal-card h3 { font-size: 1.5rem; margin: 18px 0 10px; }

.modal-card p { color: var(--text-muted); margin-bottom: 26px; }

.modal-check { width: 74px; height: 74px; }

.modal-check circle {
    fill: none;
    stroke: var(--blue);
    stroke-width: 3;
    opacity: 0.45;
}

.modal-check path {
    fill: none;
    stroke: var(--blue-light);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
}

.modal-overlay.visible .modal-check path { animation: trazo-check 0.5s 0.3s ease forwards; }

@keyframes trazo-check { to { stroke-dashoffset: 0; } }

/* ---------- reCAPTCHA v3: insignia oculta (se muestra el aviso bajo el formulario) ---------- */

.grecaptcha-badge { visibility: hidden !important; }

.form__recaptcha {
    margin-top: 14px;
    font-size: 0.78rem;
    color: var(--text-muted);
    opacity: 0.75;
}

.form__recaptcha a { color: var(--blue-light); text-decoration: none; }

/* ---------- Ajustes móviles: submenú del cajón y métricas del hero ---------- */

@media (max-width: 900px) {
    /* el estado abierto del escritorio re-aplicaba translateX(-50%) y desplazaba el submenú */
    .nav__dropdown:hover .nav__menu,
    .nav__dropdown.open .nav__menu { transform: none; }

    .nav .nav__menu { min-width: 0; }

    .nav .nav__menu a { justify-content: center; }

    /* métricas del hero (reseñas, 100%, 24h) centradas como el resto del contenido */
    .metrics-line { justify-content: center; }

    .metrics-line .metric { align-items: center; text-align: center; }
}
