/* =========================================================
   Atom Tecnología - estilos
   Colores tomados del logo: fondo grafito y verde Atom
   ========================================================= */
:root {
    --bg: #1c1f23;
    --bg-alt: #22262b;
    --surface: #2a2f35;
    --surface-2: #323840;
    --border: rgba(255, 255, 255, .08);
    --text: #f2f4f6;
    --muted: #a3acb6;
    --green: #22a06b;
    --green-light: #3ddc97;
    --sky: #38bdf8;
    --amber: #f5b301;
    --whatsapp: #25d366;
    --telegram: #229ed9;
    --radius: 18px;
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
    --header-h: 72px;
    --font-title: 'Outfit', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

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

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

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.15; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

.skip-link {
    position: absolute; left: -999px; top: 8px; z-index: 100;
    background: var(--green); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--green-light); outline-offset: 3px; border-radius: 6px; }

/* ===== Botones ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .85rem 1.5rem; border-radius: 999px;
    font-family: var(--font-title); font-weight: 600; font-size: 1rem;
    border: 1px solid transparent; cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.btn--primary {
    background: linear-gradient(135deg, var(--green), #1b8a5b);
    color: #fff;
    box-shadow: 0 10px 30px -10px rgba(34, 160, 107, .7);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(34, 160, 107, .9); }
.btn--ghost { border-color: var(--border); background: rgba(255, 255, 255, .04); }
.btn--ghost:hover { border-color: var(--green); transform: translateY(-2px); }
.btn--whatsapp { background: linear-gradient(135deg, var(--whatsapp), #1da851); color: #fff; box-shadow: 0 10px 30px -10px rgba(37, 211, 102, .8); }
.btn--whatsapp:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(37, 211, 102, .9); }
.btn--telegram { background: linear-gradient(135deg, var(--telegram), #1a86ba); color: #fff; box-shadow: 0 10px 30px -10px rgba(34, 158, 217, .8); }
.btn--telegram:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(34, 158, 217, .9); }
.btn--sm { padding: .55rem 1.1rem; font-size: .92rem; }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.1rem; }

.eyebrow {
    display: inline-block;
    font-family: var(--font-title); font-weight: 600; font-size: .85rem;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--green-light);
    margin-bottom: .9rem;
}

/* ===== Encabezado ===== */
.header {
    position: fixed; inset: 0 0 auto; z-index: 50;
    height: var(--header-h);
    transition: background .3s ease, box-shadow .3s ease, height .3s ease;
}
.header.is-scrolled {
    background: rgba(28, 31, 35, .82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--border);
    --header-h: 64px;
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand__icon { width: 46px; height: 32px; }
.brand__text { font-family: var(--font-title); font-size: 1.2rem; white-space: nowrap; }
.brand__text b { font-weight: 800; }
.brand__text span { color: var(--green-light); font-weight: 700; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav__link { position: relative; color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav__link::after {
    content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 100%;
    background: var(--green-light); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.menu-toggle {
    display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
    flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.menu-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
    position: relative; min-height: 100vh; min-height: 100svh;
    display: flex; align-items: center;
    padding: calc(var(--header-h) + 40px) 0 80px;
    overflow: hidden;
}
.hero__particles { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.hero__glow {
    position: absolute; width: 720px; height: 720px; right: -160px; top: 50%; transform: translateY(-50%);
    background: radial-gradient(circle, rgba(34, 160, 107, .28), transparent 65%);
    filter: blur(20px); pointer-events: none;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 3rem; }

.hero__title { font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 800; letter-spacing: -.02em; }
.hero__rotator { display: block; min-height: 1.2em; }
.hero__word {
    display: inline-block;
    background: linear-gradient(90deg, var(--green-light), #a7f3d0);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    transition: opacity .35s ease, transform .35s ease, filter .35s ease;
}
.hero__word.is-changing { opacity: 0; transform: translateY(14px); filter: blur(6px); }

.hero__text { margin-top: 1.4rem; font-size: 1.12rem; color: var(--muted); max-width: 34rem; }
.hero__text strong { color: var(--text); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

.hero__chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.2rem; }
.hero__chips li {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .45rem .9rem; border-radius: 999px;
    background: rgba(255, 255, 255, .04); border: 1px solid var(--border);
    font-size: .9rem; color: var(--muted);
}
.hero__chips li:nth-child(1) .icon { color: var(--green-light); }
.hero__chips li:nth-child(2) .icon { color: var(--sky); }
.hero__chips li:nth-child(3) .icon { color: var(--amber); }

/* Mascota y órbitas */
.hero__visual { position: relative; aspect-ratio: 1; width: min(520px, 100%); justify-self: center; display: grid; place-items: center; }
.mascot { width: 62%; position: relative; z-index: 2; overflow: visible; }
.mascot__float { animation: float 5s ease-in-out infinite; }
.mascot__shadow { animation: shadow 5s ease-in-out infinite; transform-origin: 200px 232px; }
.mascot__arm { transform-origin: 302px 132px; animation: wave 4s ease-in-out infinite; }
.mascot__ball { animation: bob 3s ease-in-out infinite; }
.mascot__eyes { transition: transform .15s ease-out; }
.mascot__blink { transform-origin: 220px 109px; animation: blink 5s infinite; }

.orbit {
    position: absolute; top: 50%; left: 50%; border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, .12);
    animation: spin linear infinite;
}
.orbit--1 { width: 100%; height: 100%; margin: -50% 0 0 -50%; animation-duration: 26s; }
.orbit--2 { width: 80%; height: 80%; margin: -40% 0 0 -40%; animation-duration: 20s; animation-direction: reverse; }
.orbit--3 { width: 92%; height: 92%; margin: -46% 0 0 -46%; animation-duration: 32s; animation-delay: -10s; }

.electron {
    position: absolute; top: -22px; left: 50%; margin-left: -22px;
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--surface); border: 1px solid var(--border);
    box-shadow: 0 0 24px -4px currentColor;
    animation: spin linear infinite reverse;
}
.orbit--1 .electron { animation-duration: 26s; }
.orbit--2 .electron { animation-duration: 20s; animation-direction: normal; top: auto; bottom: -22px; }
.orbit--3 .electron { animation-duration: 32s; animation-delay: -10s; top: 50%; left: -22px; margin: -22px 0 0; }
.electron--code { color: var(--green-light); }
.electron--phone { color: var(--sky); }
.electron--chart { color: var(--amber); }

.scroll-hint {
    position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
    width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .25); border-radius: 14px;
}
.scroll-hint span {
    position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
    background: var(--green-light); border-radius: 2px; animation: scrollDot 1.8s infinite;
}

/* ===== Secciones ===== */
.section { padding: 110px 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.section__title { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 700; letter-spacing: -.01em; }
.section__text { margin-top: 1rem; color: var(--muted); font-size: 1.08rem; }

/* Tarjetas de servicios */
.section__cta { display: flex; justify-content: center; margin-top: 2.8rem; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
    --mx: 50%; --my: 0%;
    position: relative; overflow: hidden;
    display: flex; flex-direction: column;
    padding: 2rem; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border);
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.card::before {
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
    background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%);
}
.card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card__icon {
    width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
    color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent);
    margin-bottom: 1.4rem; transition: transform .4s ease;
}
.card__icon .icon { width: 28px; height: 28px; }
.card:hover .card__icon { transform: rotate(-8deg) scale(1.08); }
.card__title { font-size: 1.4rem; font-weight: 700; }
.card__text { margin-top: .8rem; color: var(--muted); }
.card__list { margin: 1.3rem 0 1.6rem; display: grid; gap: .55rem; }
.card__list li { position: relative; padding-left: 1.6rem; font-size: .95rem; }
.card__list li::before {
    content: ''; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 50%;
    background: var(--accent); box-shadow: 0 0 10px var(--accent);
}
.card__link { margin-top: auto; font-family: var(--font-title); font-weight: 600; color: var(--accent); display: inline-flex; gap: .4rem; }
.card__link span { transition: transform .25s; }
.card__link:hover span { transform: translateX(5px); }

/* Nosotros */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: center; }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.feature {
    display: flex; gap: 1rem; padding: 1.5rem; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border);
    transition: transform .3s ease, border-color .3s ease;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(61, 220, 151, .35); }
.feature__icon {
    flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
    background: rgba(34, 160, 107, .14); color: var(--green-light);
}
.feature h3 { font-size: 1.08rem; font-weight: 600; }
.feature p { margin-top: .35rem; color: var(--muted); font-size: .93rem; }

/* Proceso */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; counter-reset: step; }
.steps::before {
    content: ''; position: absolute; top: 27px; left: 12%; right: 12%; height: 2px;
    background: linear-gradient(90deg, var(--green), var(--sky), var(--amber));
    transform: scaleX(0); transform-origin: left; transition: transform 1.6s ease .2s;
}
.steps.is-visible::before { transform: scaleX(1); }
.step { text-align: center; padding: 0 .5rem; }
.step__num {
    position: relative; z-index: 1;
    width: 56px; height: 56px; margin: 0 auto 1.2rem; border-radius: 50%;
    display: grid; place-items: center;
    font-family: var(--font-title); font-weight: 800; font-size: 1.3rem;
    background: var(--bg); border: 2px solid var(--green); color: var(--green-light);
    box-shadow: 0 0 0 6px var(--bg);
}
.step h3 { font-size: 1.15rem; font-weight: 600; }
.step p { margin-top: .5rem; color: var(--muted); font-size: .95rem; }

/* Proyecto */
.project {
    display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
    padding: 3rem; border-radius: 26px;
    background: linear-gradient(145deg, var(--surface), var(--bg));
    border: 1px solid var(--border);
}
.badge {
    display: inline-block; padding: .3rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
    background: rgba(34, 160, 107, .15); color: var(--green-light); margin-bottom: 1rem;
}
.project__title { font-size: 2rem; font-weight: 700; }
.project__text { margin-top: 1rem; color: var(--muted); }
.project__features { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem 1.2rem; margin: 1.5rem 0 2rem; }
.project__features li { position: relative; padding-left: 1.5rem; font-size: .94rem; }
.project__features li::before { content: '✓'; position: absolute; left: 0; color: var(--green-light); font-weight: 700; }

.project__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Carrusel de proyectos (desliza con el dedo; flechas y puntos en js/main.js) */
.carousel__track {
    display: flex; gap: 24px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
    border-radius: 26px;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.carousel__controls { display: flex; justify-content: center; align-items: center; gap: 1.2rem; margin-top: 1.8rem; }
.carousel__arrow {
    width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
    border: 1px solid var(--border); background: var(--surface); color: var(--text);
    transition: border-color .25s ease, transform .25s ease, opacity .25s ease;
}
.carousel__arrow:hover:not(:disabled) { border-color: var(--green); transform: translateY(-2px); }
.carousel__arrow:disabled { opacity: .35; cursor: default; }
.carousel__arrow--next .icon { transform: scaleX(-1); }
.carousel__dots { display: flex; gap: .5rem; }
.carousel__dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; cursor: pointer; background: rgba(255, 255, 255, .2); transition: width .3s ease, background .3s ease; }
.carousel__dot.is-active { width: 30px; background: var(--green-light); }

/* Vista previa de una página demo (ventana de navegador con su portada y productos) */
.site-preview {
    position: relative; display: block; border-radius: 16px; overflow: hidden;
    background: #fff7ec; border: 1px solid var(--border); box-shadow: var(--shadow);
    transform: perspective(1200px) rotateY(-8deg) rotateX(3deg); transition: transform .6s ease;
}
.project:hover .site-preview { transform: none; }
.site-preview__bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #e9e2d7; }
.site-preview__bar i { width: 10px; height: 10px; border-radius: 50%; background: #c9bfb2; }
.site-preview__bar i:first-child { background: #f87171; }
.site-preview__bar i:nth-child(2) { background: #fbbf24; }
.site-preview__bar i:nth-child(3) { background: #34d399; }
.site-preview__bar > span { flex: 1; margin-left: 10px; padding: 2px 12px; border-radius: 999px; background: #fff; color: #6f5f56; font-size: .72rem; }
.site-preview__hero { position: relative; display: block; aspect-ratio: 16 / 8; overflow: hidden; }
.site-preview__hero img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.site-preview:hover .site-preview__hero img { transform: scale(1.05); }
.site-preview__hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 12, 8, .9), rgba(20, 12, 8, .2)); }
.site-preview__title {
    position: absolute; left: 1.2rem; top: 50%; z-index: 1; transform: translateY(-50%); max-width: 62%;
    display: grid; gap: .3rem; color: #fff; font-family: var(--font-title); font-weight: 800; font-size: clamp(1rem, 2vw, 1.45rem); line-height: 1.1;
}
.site-preview__title small { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #f2b134; }
.site-preview__title em { font-style: italic; color: #f2b134; }
.site-preview__items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px; }
.site-preview__items > span { display: grid; gap: 2px; padding: 6px; border-radius: 10px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.site-preview__items img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 7px; }
.site-preview__items b { color: #2b211d; font-size: .74rem; margin-top: 3px; }
.site-preview__items em { color: #d9431e; font-style: normal; font-weight: 700; font-size: .74rem; }
.site-preview__open {
    position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
    background: rgba(28, 31, 35, .45); opacity: 0; transition: opacity .3s ease;
}
.site-preview__open > span {
    display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.4rem; border-radius: 999px;
    background: linear-gradient(135deg, var(--green), #1b8a5b); color: #fff; font-family: var(--font-title); font-weight: 600;
    box-shadow: 0 12px 30px -8px rgba(34, 160, 107, .9);
}
.site-preview:hover .site-preview__open, .site-preview:focus-visible .site-preview__open { opacity: 1; }

/* Video del proyecto (miniatura de YouTube; el iframe se crea al hacer clic) */
.video {
    position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden;
    background: #000; border: 1px solid var(--border); box-shadow: var(--shadow);
    transform: perspective(1200px) rotateY(-8deg) rotateX(3deg); transition: transform .6s ease;
}
.project:hover .video, .video.is-playing { transform: none; }
.video__link { position: absolute; inset: 0; display: block; cursor: pointer; }
.video__link::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .65));
    transition: opacity .3s ease;
}
.video__thumb { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.video__link:hover .video__thumb { transform: scale(1.04); }
.video__play {
    position: absolute; top: 50%; left: 50%; z-index: 1; width: 78px; height: 78px; margin: -39px 0 0 -39px;
    border-radius: 50%; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--green), #1b8a5b); color: #fff;
    box-shadow: 0 12px 30px -8px rgba(34, 160, 107, .9);
    transition: transform .3s ease;
}
.video__play::after {
    content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--green-light);
    animation: pulse 2.2s ease-out infinite;
}
.video__play .icon { width: 32px; height: 32px; margin-left: 4px; }
.video__link:hover .video__play { transform: scale(1.1); }
.video__label {
    position: absolute; left: 1.2rem; bottom: 1rem; z-index: 1;
    font-family: var(--font-title); font-weight: 600; font-size: 1rem; color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Contacto */
.contact__box {
    position: relative; overflow: hidden; text-align: center;
    padding: 4rem 2rem; border-radius: 28px;
    background: radial-gradient(circle at 50% 0%, rgba(34, 160, 107, .35), transparent 60%), var(--surface);
    border: 1px solid rgba(61, 220, 151, .25);
}
.contact__box .section__text { max-width: 540px; margin-inline: auto; margin-bottom: 2rem; }
.contact__mascot { width: 110px; margin: 0 auto 1.2rem; animation: float 4s ease-in-out infinite; }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.contact__handle { margin-top: 1.2rem; color: var(--muted); font-size: .95rem; }

/* Footer */
.footer { padding: 2.5rem 0 9rem; border-top: 1px solid var(--border); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer__nav a { color: var(--muted); font-size: .93rem; transition: color .2s; }
.footer__nav a:hover { color: var(--green-light); }
.footer__copy { color: var(--muted); font-size: .88rem; }

/* Botones flotantes de contacto (WhatsApp abajo, Telegram arriba) */
.float-contact { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.float-btn {
    --c: var(--telegram);
    position: relative; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
    background: var(--c); color: #fff; box-shadow: 0 10px 25px -6px color-mix(in srgb, var(--c) 70%, transparent);
    transition: transform .25s ease;
}
.float-btn--telegram { width: 48px; height: 48px; }
.float-btn--whatsapp { --c: var(--whatsapp); }
.float-btn .icon { width: 26px; height: 26px; }
.float-btn--telegram .icon { width: 22px; height: 22px; margin-left: -2px; }
.float-btn--whatsapp::after {
    content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--c);
    animation: pulse 2.2s ease-out infinite;
}
.float-btn:hover { transform: scale(1.08); }

/* ===== Animación al hacer scroll ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Keyframes ===== */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.82); opacity: .6; } }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-16deg); } 80% { transform: rotate(6deg); } 90% { transform: rotate(-12deg); } }
@keyframes bob { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-4px, -8px); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

/* ===== Responsivo ===== */
@media (max-width: 1024px) {
    .cards { grid-template-columns: 1fr 1fr; }
    .split { grid-template-columns: 1fr; gap: 2.5rem; }
    .project { grid-template-columns: 1fr; padding: 2.2rem; }
}

@media (max-width: 860px) {
    .menu-toggle { display: flex; }
    .nav {
        position: fixed; top: 0; right: 0; height: 100vh; height: 100dvh; width: min(300px, 82vw);
        flex-direction: column; align-items: flex-start; gap: 1.4rem;
        padding: calc(var(--header-h) + 24px) 28px 28px;
        background: var(--bg-alt); border-left: 1px solid var(--border);
        transform: translateX(100%); transition: transform .35s ease;
    }
    .nav.is-open { transform: none; box-shadow: -20px 0 50px rgba(0, 0, 0, .5); }
    .nav__link { font-size: 1.1rem; }
    .nav__cta { margin-top: .5rem; }
    .menu-toggle { position: relative; z-index: 2; }

    .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .hero__visual { order: -1; width: min(340px, 86%); }
    .hero__text { margin-inline: auto; }
    .hero__actions, .hero__chips { justify-content: center; }
    .hero__glow { right: 50%; transform: translate(50%, -60%); width: 520px; height: 520px; }
    .scroll-hint { display: none; }

    .steps { grid-template-columns: 1fr 1fr; gap: 2.2rem 1.2rem; }
    .steps::before { display: none; }
}

@media (max-width: 600px) {
    .section { padding: 80px 0; }
    .cards, .features, .project__features { grid-template-columns: 1fr; }
    .card, .feature { padding: 1.5rem; }
    .project { padding: 1.5rem; }
    .project__title { font-size: 1.7rem; }
    .hero__actions .btn, .contact__actions .btn { width: 100%; }
    .contact__box { padding: 3rem 1.25rem; }
    .footer__inner { flex-direction: column; text-align: center; }
    .footer__nav { justify-content: center; }
    .brand__text { font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}
