/* =========================================================
   FB Informática — Estilo "Dark premium + acento neón"
   ========================================================= */

:root {
    /* Superficies */
    --bg:            #06070c;
    --bg-soft:       #090b12;
    --surface:       #0e1119;
    --surface-2:     #131722;
    --line:          rgba(255, 255, 255, .08);
    --line-strong:   rgba(255, 255, 255, .16);

    /* Texto */
    --text:          #e9eef8;
    --muted:         #9aa6bf;

    /* Acentos */
    --violet:        #8b5cf6;
    --cyan:          #22d3ee;
    --grad:          linear-gradient(135deg, #8b5cf6 0%, #22d3ee 100%);
    --whatsapp:      #25d366;

    /* Tipografía */
    --font-display:  'Space Grotesk', 'Inter', system-ui, sans-serif;
    --font-body:     'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* Medidas */
    --nav-h:         72px;
    --radius:        20px;
    --radius-sm:     12px;
    --shadow-glow:   0 24px 60px -28px rgba(139, 92, 246, .85);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a { color: inherit; }

ul, ol { list-style: none; }

button, input, textarea { font: inherit; color: inherit; }

:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection { background: rgba(139, 92, 246, .45); color: #fff; }

/* ---------- Utilidades ---------- */
.container {
    width: min(1160px, 100% - 2.5rem);
    margin-inline: auto;
}

.container-narrow { width: min(860px, 100% - 2.5rem); }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px; left: 1rem;
    z-index: 2000;
    background: var(--cyan);
    color: #05060b;
    font-weight: 600;
    padding: .7rem 1.1rem;
    border-radius: 0 0 10px 10px;
    text-decoration: none;
    transition: top .2s ease;
}
.skip-link:focus { top: 0; }

.icon {
    width: 1.2em;
    height: 1.2em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.grad {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--cyan);
}

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .95rem 1.6rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 600;
    font-size: .98rem;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease;
}

.btn-primary {
    background: var(--grad);
    color: #05060b;
    box-shadow: 0 16px 34px -18px rgba(139, 92, 246, .95);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -18px rgba(34, 211, 238, .8); }

.btn-ghost {
    background: rgba(255, 255, 255, .04);
    border-color: var(--line-strong);
    color: var(--text);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--cyan); }

.btn-sm { padding: .7rem 1.15rem; font-size: .9rem; }

.btn-block { width: 100%; }

/* ---------- Navegación ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(6, 7, 12, .78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s ease, box-shadow .3s ease;
}

.nav.is-scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 18px 40px -30px rgba(0, 0, 0, .9);
}

.nav-inner {
    position: relative;
    width: min(1160px, 100% - 2.5rem);
    margin-inline: auto;
    min-height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    text-decoration: none;
}

.brand img {
    height: 44px;
    width: 44px;
    object-fit: cover;
    border-radius: 13px;
    border: 1px solid rgba(139, 92, 246, .55);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, .12);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 1.02rem; letter-spacing: -.01em; }
.brand-text small { font-size: .72rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-menu ul a {
    position: relative;
    display: inline-block;
    padding: .35rem 0;
    font-size: .93rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    transition: color .2s ease;
}

.nav-menu ul a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 2px;
    background: var(--grad);
    border-radius: 2px;
    transition: width .25s ease;
}

.nav-menu ul a:hover,
.nav-menu ul a.is-active { color: var(--text); }
.nav-menu ul a:hover::after,
.nav-menu ul a.is-active::after { width: 100%; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem);
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero::before {
    content: "";
    position: absolute;
    inset: -30% -10% auto;
    height: 160%;
    background:
        radial-gradient(560px 340px at 12% 18%, rgba(139, 92, 246, .30), transparent 62%),
        radial-gradient(620px 380px at 88% 8%, rgba(34, 211, 238, .20), transparent 62%),
        radial-gradient(900px 520px at 50% 115%, rgba(139, 92, 246, .18), transparent 65%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 25%, transparent 78%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 25%, transparent 78%);
    pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; text-align: center; }

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.15rem, 6vw, 4rem);
    line-height: 1.06;
    letter-spacing: -.025em;
    font-weight: 700;
    max-width: 17ch;
    margin: 1.1rem auto 0;
}

.lead {
    max-width: 62ch;
    margin: 1.4rem auto 0;
    font-size: clamp(1.02rem, 1.6vw, 1.18rem);
    color: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .9rem;
    margin-top: 2.2rem;
}

.pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem;
    margin-top: 2.6rem;
}

.pills li {
    padding: .45rem .95rem;
    font-size: .84rem;
    font-weight: 500;
    color: var(--muted);
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line);
    border-radius: 999px;
}

/* ---------- Franja de beneficios ---------- */
.strip {
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    padding: clamp(2rem, 4vw, 3rem) 0;
}

.strip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.strip-item {
    display: flex;
    gap: .95rem;
    align-items: flex-start;
}

.strip-item > .icon {
    width: 40px; height: 40px;
    padding: 9px;
    color: var(--cyan);
    background: rgba(34, 211, 238, .08);
    border: 1px solid rgba(34, 211, 238, .3);
    border-radius: 12px;
}

.strip-item h2 {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: -.01em;
}

.strip-item p { font-size: .9rem; color: var(--muted); margin-top: .2rem; }

/* ---------- Secciones ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }

.section-alt {
    background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
    border-block: 1px solid var(--line);
}

.section-head {
    max-width: 760px;
    margin: 0 auto clamp(2.2rem, 5vw, 3.4rem);
    text-align: center;
}

.section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.8vw, 2.7rem);
    line-height: 1.12;
    letter-spacing: -.02em;
    margin-top: .7rem;
}

.section-sub { color: var(--muted); margin-top: .9rem; font-size: 1.03rem; }

/* ---------- Tarjetas de servicio ---------- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.cards + .cards { margin-top: 1.25rem; }

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .85rem;
    padding: 1.9rem 1.7rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, .55);
    box-shadow: var(--shadow-glow);
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px; height: 52px;
    border-radius: 15px;
    background: rgba(139, 92, 246, .12);
    border: 1px solid rgba(139, 92, 246, .35);
    color: #c4b5fd;
}
.card-icon .icon { width: 26px; height: 26px; }

.card h3 {
    font-family: var(--font-display);
    font-size: 1.28rem;
    font-weight: 600;
    letter-spacing: -.01em;
}

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

.tick { display: grid; gap: .45rem; margin-top: .1rem; }
.tick li {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    font-size: .88rem;
    color: var(--text);
}
.tick .icon { width: 17px; height: 17px; margin-top: .25rem; color: var(--cyan); }

.card-cta {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: auto;
    padding-top: .4rem;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--cyan);
    text-decoration: none;
}
.card-cta .icon { transition: transform .25s ease; }
.card-cta:hover .icon { transform: translate(3px, -3px); }

.card-featured {
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        linear-gradient(135deg, var(--violet), var(--cyan)) border-box;
    border: 1px solid transparent;
}

.card-badge {
    position: absolute;
    top: 1.1rem; right: 1.1rem;
    padding: .28rem .7rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #05060b;
    background: var(--grad);
    border-radius: 999px;
}

/* ---------- Proyectos ---------- */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
    gap: 1.35rem;
}

.project {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.project:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, .45);
    box-shadow: 0 24px 60px -30px rgba(34, 211, 238, .75);
}

.project-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(140deg, var(--surface-2), #0b0e16);
    text-decoration: none;
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.project:hover .project-media img { transform: scale(1.05); }

.project-media-icon {
    display: grid;
    place-items: center;
    background:
        radial-gradient(300px 200px at 50% 30%, rgba(139, 92, 246, .35), transparent 70%),
        linear-gradient(140deg, var(--surface-2), #0b0e16);
}
.project-media-icon > .icon {
    width: 76px; height: 76px;
    stroke-width: 1.2;
    color: #c4b5fd;
    opacity: .9;
}

.tag {
    display: inline-block;
    padding: .3rem .7rem;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--cyan);
    background: rgba(34, 211, 238, .1);
    border: 1px solid rgba(34, 211, 238, .35);
    border-radius: 999px;
}

.project-media .tag {
    position: absolute;
    left: .85rem; bottom: .85rem;
    backdrop-filter: blur(8px);
    background: rgba(6, 7, 12, .7);
}

.tag-new {
    color: #05060b;
    background: var(--grad);
    border-color: transparent;
    top: .85rem; bottom: auto;
}

.project-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .7rem;
    padding: 1.5rem 1.4rem 1.7rem;
}

.project-body h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -.01em;
}

.project-body p { color: var(--muted); font-size: .94rem; }

.project-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
    transition: color .2s ease;
}
.project-link:hover { color: var(--cyan); }
.project-link .icon { transition: transform .25s ease; }
.project-link:hover .icon { transform: translate(3px, -3px); }

/* ---------- Proceso ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 1.7rem 1.5rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .3s ease, transform .3s ease;
}
.step:hover { border-color: rgba(34, 211, 238, .4); transform: translateY(-4px); }

.step-num {
    display: block;
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    opacity: .85;
}

.step h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: .9rem;
}

.step p { color: var(--muted); font-size: .92rem; margin-top: .45rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .8rem; }

.faq-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: border-color .25s ease;
}
.faq-item[open] { border-color: rgba(139, 92, 246, .45); }

.faq-item summary {
    position: relative;
    padding: 1.15rem 3.2rem 1.15rem 1.35rem;
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    border-radius: var(--radius-sm);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--cyan); }

.faq-icon {
    position: absolute;
    top: 50%; right: 1.2rem;
    width: 20px; height: 20px;
    transform: translateY(-50%);
}
.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    background: currentColor;
    border-radius: 2px;
    transform: translate(-50%, -50%);
}
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after  { width: 2px; height: 14px; transition: transform .25s ease; }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) scaleY(0); }

.faq-item p {
    padding: 0 3.2rem 1.3rem 1.35rem;
    color: var(--muted);
    font-size: .96rem;
}

/* ---------- Contacto ---------- */
.contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.4rem;
    align-items: start;
}

.contact-info,
.contact-form {
    padding: clamp(1.6rem, 3vw, 2.2rem);
    background: linear-gradient(160deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012));
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.contact-info h3,
.contact-form h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.info-line {
    display: flex;
    gap: .95rem;
    align-items: flex-start;
    padding: .85rem 0;
    border-bottom: 1px dashed var(--line);
}
.info-line:last-of-type { border-bottom: 0; }

.info-line > .icon {
    width: 40px; height: 40px;
    padding: 9px;
    color: var(--cyan);
    background: rgba(34, 211, 238, .08);
    border: 1px solid rgba(34, 211, 238, .28);
    border-radius: 12px;
}

.info-line span {
    display: block;
    font-size: .75rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

.info-line a,
.info-line p {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    word-break: break-word;
}
.info-line a:hover { color: var(--cyan); }

.socials { display: flex; gap: .7rem; margin-top: 1.4rem; }

.socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--line-strong);
    border-radius: 13px;
    color: var(--text);
    transition: transform .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
}
.socials a:hover {
    transform: translateY(-3px);
    background: var(--grad);
    border-color: transparent;
    color: #05060b;
}
.socials .icon { width: 20px; height: 20px; }

/* Formulario */
.field { display: grid; gap: .45rem; margin-bottom: 1.1rem; }

.field label {
    font-size: .84rem;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--muted);
}

.field input,
.field textarea {
    width: 100%;
    padding: .9rem 1rem;
    background: rgba(255, 255, 255, .035);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 1rem;
    transition: border-color .2s ease, background .2s ease;
}

.field textarea { resize: vertical; min-height: 130px; }

.field input::placeholder,
.field textarea::placeholder { color: #818da8; }

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--cyan);
    background: rgba(34, 211, 238, .06);
}

.field input:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.hp {
    position: absolute;
    left: -9999px;
    width: 1px; height: 1px;
    overflow: hidden;
}

.form-note {
    margin-top: 1rem;
    font-size: .88rem;
    color: var(--muted);
    text-align: center;
}
.form-note a { color: var(--cyan); font-weight: 600; }

/* ---------- Footer ---------- */
.footer {
    background: #04050a;
    border-top: 1px solid var(--line);
    padding-top: clamp(2.8rem, 6vw, 4rem);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding-bottom: 2.5rem;
}

.footer-brand p {
    margin-top: 1rem;
    font-size: .9rem;
    color: var(--muted);
    max-width: 34ch;
}

.footer-col h2 {
    font-family: var(--font-display);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 1rem;
}

.footer-col ul { display: grid; gap: .55rem; }

.footer-col a {
    font-size: .92rem;
    color: var(--muted);
    text-decoration: none;
    transition: color .2s ease;
}
.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem;
    padding: 1.4rem 0;
    border-top: 1px solid var(--line);
    font-size: .85rem;
    color: #8e99b4;
}

/* ---------- Botones flotantes ---------- */
.fab-whatsapp,
.fab-top {
    position: fixed;
    right: 24px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px; height: 58px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    text-decoration: none;
    transition: transform .25s ease, opacity .3s ease, box-shadow .3s ease;
}

.fab-whatsapp {
    bottom: 24px;
    background: var(--whatsapp);
    color: #04140a;
    box-shadow: 0 14px 34px -14px rgba(37, 211, 102, .9);
}
.fab-whatsapp:hover { transform: scale(1.07) rotate(6deg); }
.fab-whatsapp .icon { width: 30px; height: 30px; stroke-width: 1.6; }

.fab-top {
    bottom: 94px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid var(--line-strong);
    color: var(--text);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
}
.fab-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.fab-top:hover { background: var(--grad); color: #05060b; border-color: transparent; }
.fab-top .icon { width: 22px; height: 22px; }

/* ---------- Animaciones de entrada ---------- */
.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
    .nav-toggle { display: inline-flex; }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1.1rem 1.25rem 1.5rem;
        background: rgba(6, 7, 12, .98);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 1);
    }

    .nav-menu.is-open {
        display: flex;
        animation: menuIn .25s ease;
    }

    @keyframes menuIn {
        from { opacity: 0; transform: translateY(-10px); }
        to   { opacity: 1; transform: none; }
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: stretch;
        gap: .15rem;
    }

    .nav-menu ul a {
        display: block;
        padding: .8rem .4rem;
        font-size: 1.02rem;
        border-bottom: 1px solid var(--line);
    }
    .nav-menu ul a::after { display: none; }

    .nav-cta { justify-content: center; width: 100%; }
}

@media (max-width: 640px) {
    :root { --nav-h: 66px; }

    .brand-text small { display: none; }
    .brand img { height: 40px; width: 40px; }

    .hero h1 { max-width: 100%; }
    .hero-actions .btn { width: 100%; }

    .cards, .projects, .steps { grid-template-columns: 1fr; }

    .contact-info, .contact-form { padding: 1.4rem 1.15rem; }

    .faq-item summary { font-size: .97rem; padding-right: 2.8rem; }
    .faq-item p { padding-right: 2.8rem; }

    .fab-whatsapp, .fab-top { right: 16px; width: 52px; height: 52px; }
    .fab-whatsapp { bottom: 16px; }
    .fab-top { bottom: 80px; }
}

/* ---------- Accesibilidad: movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .js .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}
