/* ==========================================================================
   ClickEz · web_nueva — diseño tecnológico (servicio técnico / IT)
   ========================================================================== */
:root {
  --primary: #2563eb;
  --accent: #06b6d4;
  --ink: #0b1120;
  --ink-2: #111a2e;
  --ink-3: #1b2640;
  --text: #0f172a;
  --muted: #5b6b84;
  --line: #e4e9f2;
  --soft: #f5f8fc;
  --white: #fff;
  --ok: #22c55e;
  --warn: #f59e0b;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 30px 60px -20px rgba(15, 23, 42, .35);
  --grad: linear-gradient(120deg, var(--primary), var(--accent));
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: 'Space Grotesk', var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .6em; color: inherit; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 40px); }
.ico { flex-shrink: 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--accent); }
.lead { font-size: 1.12rem; color: var(--muted); }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Botones ---------- */
.btn { --bg: var(--ink); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .85rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: .98rem; border: 0; cursor: pointer; color: #fff; background: var(--bg); transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s; overflow: hidden; isolation: isolate; white-space: nowrap; font-family: inherit; }
.btn .ico { transition: transform .35s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn--primary { background: var(--grad); box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--primary) 70%, transparent); }
.btn--primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.45) 50%, transparent 80%); transform: translateX(-120%); transition: transform .8s var(--ease); z-index: -1; }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--primary:hover { box-shadow: 0 16px 40px -10px color-mix(in srgb, var(--primary) 80%, transparent); }
.btn--ghost { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--ghost-dark { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn--ghost-dark:hover { border-color: var(--primary); color: var(--primary); }
.btn--light { background: #fff; color: var(--ink); }
.btn--sm { padding: .6rem 1.05rem; font-size: .9rem; }
.btn--lg { padding: 1rem 1.7rem; font-size: 1.04rem; }
.btn--block { width: 100%; }

/* ---------- Barra superior / navegación ---------- */
.progress-bar { position: fixed; inset: 0 auto auto 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad); z-index: 200; }
.topbar { background: var(--ink); color: #cbd5e1; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; align-items: center; }
.topbar__msg { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.topbar__links { display: flex; gap: 1.2rem; flex-shrink: 0; }
.topbar a { color: #cbd5e1; display: inline-flex; align-items: center; gap: .35rem; }
.topbar a:hover { color: #fff; }

.nav { position: sticky; top: 0; z-index: 100; background: rgba(11, 17, 32, .72); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid rgba(255,255,255,.06); transition: background .3s, box-shadow .3s; }
.nav.is-scrolled { background: rgba(11, 17, 32, .92); box-shadow: 0 10px 30px -15px rgba(0,0,0,.5); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1.5rem; }
.nav__brand img { height: 34px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: .3rem; }
.nav__menu > a, .nav__drop > a { position: relative; color: #cbd5e1; font-weight: 500; font-size: .95rem; padding: .55rem .85rem; border-radius: 999px; transition: color .25s, background .25s; display: inline-flex; align-items: center; gap: .35rem; }
.nav__menu > a:hover, .nav__drop > a:hover, .nav__menu a.is-active { color: #fff; background: rgba(255,255,255,.07); }
.caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .3s; }
.nav__drop { position: relative; }
.nav__drop:hover .caret { transform: rotate(225deg) translateY(-1px); }
.mega { position: absolute; top: calc(100% + 14px); left: 50%; width: 640px; display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; padding: .7rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translate(-50%, 10px); transition: all .35s var(--ease); }
.mega::before { content: ''; position: absolute; inset: -16px 0 auto; height: 16px; }
.nav__drop:hover .mega, .nav__drop:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega__item { display: flex; gap: .8rem; padding: .75rem; border-radius: var(--radius-sm); color: var(--text); transition: background .2s; }
.mega__item:hover { background: var(--soft); }
.mega__item strong { display: block; font-size: .93rem; }
.mega__item small { color: var(--muted); font-size: .8rem; line-height: 1.35; display: block; }
.mega__ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: color-mix(in srgb, var(--primary) 10%, #fff); color: var(--primary); flex-shrink: 0; }
.nav__actions { display: flex; align-items: center; gap: .6rem; }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.15); background: transparent; cursor: pointer; padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.nav__toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(5rem, 9vw, 8rem); isolation: isolate; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .7; }
.hero__grid { position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(90px); z-index: -2; opacity: .55; animation: blob 18s ease-in-out infinite alternate; }
.hero__blob--1 { width: 520px; height: 520px; background: var(--primary); top: -160px; left: -120px; }
.hero__blob--2 { width: 460px; height: 460px; background: var(--accent); bottom: -200px; right: -100px; animation-delay: -6s; opacity: .4; }
@keyframes blob { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(80px, 40px) scale(1.15); } 100% { transform: translate(-40px, 80px) scale(.95); } }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .95rem; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); font-size: .86rem; color: #cbd5e1; margin-bottom: 1.4rem; }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } }
.hero__title { font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1.02; letter-spacing: -.035em; margin-bottom: 1.2rem; }
.hero__title .split { display: block; }
.hero__rotator { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #e2e8f0; margin-bottom: 1rem; min-height: 1.8em; font-weight: 500; }
.caret-blink { color: var(--accent); animation: blink 1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.hero__sub { color: #94a3b8; font-size: 1.1rem; max-width: 560px; margin-bottom: 2rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2rem; }
.hero__trust { display: flex; align-items: center; gap: .8rem; color: #94a3b8; font-size: .92rem; flex-wrap: wrap; }
.hero__trust strong { color: #fff; }
.stars { display: inline-flex; gap: 2px; color: #fbbf24; }
.stars .ico { fill: currentColor; }

.hero__visual { position: relative; min-height: 440px; perspective: 1200px; }
.console { position: relative; z-index: 2; margin-left: auto; width: min(420px, 100%); border-radius: var(--radius); background: rgba(17, 26, 46, .75); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(14px); box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.06); transform-style: preserve-3d; transition: transform .2s ease-out; }
.console__bar { display: flex; align-items: center; gap: 6px; padding: .8rem 1rem; border-bottom: 1px solid rgba(255,255,255,.07); font-size: .78rem; color: #64748b; }
.console__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ef4444; }
.console__bar i:nth-child(2) { background: #f59e0b; }
.console__bar i:nth-child(3) { background: #22c55e; margin-right: .5rem; }
.console__body { padding: 1.2rem 1.2rem 1rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86rem; color: #cbd5e1; }
.console__line { padding: .3rem 0; opacity: 0; transform: translateX(-10px); animation: lineIn .5s var(--ease) forwards; }
.console__line:nth-child(1) { animation-delay: .8s; }
.console__line:nth-child(2) { animation-delay: 1.2s; }
.console__line:nth-child(3) { animation-delay: 1.6s; }
.console__line:nth-child(4) { animation-delay: 2s; }
@keyframes lineIn { to { opacity: 1; transform: none; } }
.console__line em { font-style: normal; color: var(--ok); }
.console__line .blink { color: var(--warn); animation: blink 1.2s steps(1) infinite; }
.ok { color: var(--ok); margin-right: .4rem; }
.warn { color: var(--warn); margin-right: .4rem; }
.meter { height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); margin: .9rem 0 1rem; overflow: hidden; }
.meter__fill { height: 100%; width: 0; background: var(--grad); border-radius: inherit; animation: fill 4s 2.2s var(--ease) infinite; }
@keyframes fill { 0% { width: 0; } 70%, 100% { width: 100%; } }
.console__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.console__stats div { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); border-radius: 10px; padding: .55rem .7rem; }
.console__stats small { display: block; color: #64748b; font-size: .7rem; }
.console__stats strong { font-family: var(--display); color: #fff; font-size: 1.1rem; }
.spark { width: 100%; height: 40px; margin-top: .8rem; }
.spark path { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px var(--accent)); }
.hero__pc { position: absolute; left: -10px; bottom: -40px; z-index: 1; width: min(320px, 70%); filter: drop-shadow(0 30px 40px rgba(0,0,0,.5)); }
.floating-badge { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: .45rem; padding: .6rem .95rem; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--ink); font-weight: 600; font-size: .85rem; box-shadow: var(--shadow-lg); }
.floating-badge .ico { color: var(--primary); }
.floating-badge--a { top: -10px; left: 8%; }
.floating-badge--b { bottom: 30px; right: -10px; }
.float { animation: float 6s ease-in-out infinite; }
.float-slow { animation: float 9s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hero__scroll { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.3); border-radius: 20px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Logos ---------- */
.logos { padding: 2.4rem 0 2.8rem; background: var(--ink-2); border-top: 1px solid rgba(255,255,255,.06); }
.logos__title { text-align: center; color: #94a3b8; font-size: .9rem; font-weight: 500; letter-spacing: .02em; margin-bottom: 1.4rem; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 3.5rem; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { flex-shrink: 0; display: grid; place-items: center; height: 56px; }
.marquee__item img { max-height: 52px; width: auto; opacity: .55; transition: opacity .3s, transform .3s var(--ease); }
.marquee__item:hover img { opacity: 1; transform: scale(1.06); }
@keyframes marquee { to { transform: translateX(calc(-50% - 1.75rem)); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--ink); color: #fff; overflow: hidden; }
.section--dark .section__head p { color: #94a3b8; }
.section__head { max-width: 720px; margin: 0 auto 3.2rem; text-align: center; }
.section__head p { color: var(--muted); font-size: 1.1rem; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 1rem; text-align: left; flex-wrap: wrap; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 700; color: var(--primary); margin-bottom: 1rem; }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--grad); border-radius: 2px; }
.section--dark .eyebrow, .eyebrow--light { color: var(--accent); }

/* ---------- Tarjetas / bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; grid-auto-flow: dense; }
@media (min-width: 1081px) { .bento .card { grid-column: span var(--span, 1); } }
.card { --mx: 50%; --my: 50%; position: relative; display: flex; flex-direction: column; padding: 1.7rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--text); overflow: hidden; isolation: isolate; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.spotlight::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--primary) 12%, transparent), transparent 45%); opacity: 0; transition: opacity .3s; }
.spotlight:hover::before { opacity: 1; }
.card h3 { margin: 1.2rem 0 .5rem; font-size: 1.22rem; }
.card p { color: var(--muted); font-size: .96rem; flex: 1; }
.card__ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: color-mix(in srgb, var(--primary) 10%, #fff); color: var(--primary); transition: transform .45s var(--ease), background .3s, color .3s; }
.card__ico--sm { width: 36px; height: 36px; border-radius: 10px; }
.card:hover .card__ico, .service-card:hover .card__ico { transform: rotate(-8deg) scale(1.08); background: var(--grad); color: #fff; }
.card__more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .92rem; color: var(--primary); margin-top: .4rem; }
.card__more .ico { transition: transform .35s var(--ease); }
.card:hover .card__more .ico, .service-card:hover .card__more .ico { transform: translateX(5px); }
.card--feat { grid-column: span 2; min-height: 300px; justify-content: flex-end; color: #fff; border: 0; background: var(--ink); }
.card--feat p { color: #cbd5e1; flex: 0; }
.card--feat .card__more { color: #fff; }
.card--feat .card__ico { background: rgba(255,255,255,.12); color: #fff; backdrop-filter: blur(6px); }
.card__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .45; transition: transform 1s var(--ease), opacity .4s; }
.card--feat::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,17,32,.1) 0%, rgba(11,17,32,.92) 75%); }
.card--feat:hover .card__bg { transform: scale(1.07); opacity: .6; }

/* ---------- Stats ---------- */
.stats { background: var(--grad); color: #fff; padding: 3.2rem 0; position: relative; overflow: hidden; }
.stats::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px); background-size: 22px 22px; opacity: .5; }
.stats__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat strong { display: block; font-family: var(--display); font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 700; line-height: 1; letter-spacing: -.03em; margin-bottom: .5rem; font-variant-numeric: tabular-nums; }
.stat > span { opacity: .9; font-size: 1rem; font-weight: 500; }

/* ---------- Nosotros ---------- */
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.media-stack { position: relative; padding: 0 0 18% 0; }
.media-stack__main { border-radius: var(--radius); width: 85%; aspect-ratio: 4 / 3.3; object-fit: cover; box-shadow: var(--shadow-lg); }
.media-stack__second { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 6px solid #fff; box-shadow: var(--shadow-lg); }
.media-stack__badge { position: absolute; left: 6%; bottom: 6%; background: var(--grad); color: #fff; padding: 1.1rem 1.3rem; border-radius: var(--radius); box-shadow: var(--shadow-lg); animation: float 7s ease-in-out infinite; }
.media-stack__badge strong { display: block; font-family: var(--display); font-size: 2.2rem; line-height: 1; }
.media-stack__badge span { font-size: .85rem; opacity: .9; }
.checklist { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: .8rem; }
.checklist li { display: flex; gap: .75rem; align-items: center; font-weight: 500; }
.checklist li > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 14%, #fff); color: #16a34a; flex-shrink: 0; }

/* ---------- Pasos ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; position: relative; counter-reset: s; }
.steps::before { content: ''; position: absolute; top: 58px; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent); }
.step { position: relative; padding: 1.8rem 1.5rem; border-radius: var(--radius); background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); transition: transform .45s var(--ease), background .3s, border-color .3s; }
.step:hover { transform: translateY(-6px); background: rgba(255,255,255,.06); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.step__num { position: absolute; top: 1rem; right: 1.2rem; font-family: var(--display); font-size: 2.4rem; font-weight: 700; color: rgba(255,255,255,.06); }
.step__ico { position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: var(--grad); color: #fff; margin-bottom: 1.2rem; box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.step p { color: #94a3b8; font-size: .95rem; margin: 0; }

/* ---------- Kit Digital ---------- */
.kit { position: relative; display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 2rem; padding: clamp(2rem, 5vw, 4rem); border-radius: 28px; background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.kit::before { content: ''; position: absolute; width: 600px; height: 600px; right: -200px; top: -250px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--primary) 60%, transparent), transparent 65%); z-index: -1; animation: blob 16s ease-in-out infinite alternate; }
.kit p { color: #cbd5e1; font-size: 1.08rem; max-width: 560px; }
.kit__img { background: #fff; padding: 1.4rem; border-radius: var(--radius); justify-self: center; max-width: 280px; box-shadow: var(--shadow-lg); }

/* ---------- Testimonios ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.quote { margin: 0; padding: 1.8rem; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 1rem; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.quote:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: var(--shadow-lg); }
.quote blockquote { margin: 0; flex: 1; font-size: 1.02rem; color: #334155; }
.quote figcaption { display: flex; align-items: center; gap: .8rem; }
.quote small { display: block; color: var(--muted); }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; font-family: var(--display); }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.post { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); color: var(--text); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.post:hover .post__img img { transform: scale(1.07); }
.post__body { padding: 1.4rem; }
.post__body h2, .post__body h3 { font-size: 1.18rem; margin-bottom: .5rem; }
.post__body p { color: var(--muted); font-size: .95rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post__meta { display: block; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); margin-bottom: .6rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip { padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line); color: var(--text); font-size: .9rem; font-weight: 500; transition: all .25s; }
.chip small { color: var(--muted); margin-left: .25rem; }
.chip:hover, .chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.is-active small { color: #94a3b8; }
.pager { display: flex; justify-content: center; gap: .4rem; margin-top: 3rem; }
.pager a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); color: var(--text); font-weight: 600; }
.pager a.is-active, .pager a:hover { background: var(--grad); color: #fff; border-color: transparent; }
.empty { color: var(--muted); grid-column: 1 / -1; text-align: center; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq { display: grid; gap: .8rem; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .3s, box-shadow .3s; }
.faq__item[open] { border-color: color-mix(in srgb, var(--primary) 40%, transparent); box-shadow: var(--shadow); }
.faq__item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 1.3rem; font-weight: 600; cursor: pointer; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--soft); color: var(--primary); transition: transform .4s var(--ease), background .3s, color .3s; flex-shrink: 0; }
.faq__item[open] .faq__plus { transform: rotate(45deg); background: var(--grad); color: #fff; }
.faq__answer { padding: 0 1.3rem 1.2rem; color: var(--muted); animation: fadeDown .4s var(--ease); }
.faq__answer p { margin: 0; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- CTA + formulario ---------- */
.cta { position: relative; padding: clamp(4.5rem, 9vw, 7rem) 0; color: #fff; background: var(--ink); overflow: hidden; isolation: isolate; }
.cta__bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px circle at 15% 20%, color-mix(in srgb, var(--primary) 45%, transparent), transparent 60%), radial-gradient(500px circle at 85% 80%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 60%); animation: ctaShift 14s ease-in-out infinite alternate; }
@keyframes ctaShift { to { transform: scale(1.15) translate(2%, -2%); } }
.cta__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.cta__copy p { color: #cbd5e1; font-size: 1.1rem; }
.cta__contact { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .9rem; color: #cbd5e1; }
.cta__contact li { display: flex; align-items: center; gap: .7rem; }
.cta__contact .ico { color: var(--accent); }
.cta__contact a { color: #fff; font-weight: 600; }
.glass { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 22px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.form { padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; gap: .9rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.form__row--end { align-items: center; }
.field { position: relative; display: block; }
.field input, .field textarea, .field select { width: 100%; padding: 1.25rem 1rem .55rem; border-radius: 12px; border: 1px solid rgba(255,255,255,.15); background: rgba(11,17,32,.45); color: #fff; font: inherit; font-size: .97rem; transition: border-color .25s, box-shadow .25s, background .25s; resize: vertical; }
.field select { padding: .95rem 1rem; appearance: none; background-image: linear-gradient(45deg, transparent 50%, #94a3b8 50%), linear-gradient(135deg, #94a3b8 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { color: var(--text); }
.field span { position: absolute; left: 1rem; top: 1rem; color: #94a3b8; font-size: .97rem; pointer-events: none; transition: all .2s var(--ease); }
.field textarea ~ span { top: 1rem; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); background: rgba(11,17,32,.65); }
.field input:focus ~ span, .field input:not(:placeholder-shown) ~ span, .field textarea:focus ~ span, .field textarea:not(:placeholder-shown) ~ span { top: .38rem; font-size: .72rem; color: var(--accent); }
.check { display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: #cbd5e1; }
.check a { color: #fff; text-decoration: underline; }
.check input { accent-color: var(--accent); width: 18px; height: 18px; }
.form__status { min-height: 1.2em; font-size: .92rem; text-align: center; }
.form__status.is-ok { color: #4ade80; }
.form__status.is-error { color: #fca5a5; }
.form.is-sending button { opacity: .7; pointer-events: none; }
.form.is-sent { animation: sentPulse .8s var(--ease); }
@keyframes sentPulse { 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--ok) 25%, transparent); } }

/* ---------- Páginas internas ---------- */
.page-hero { position: relative; background: var(--ink); color: #fff; padding: clamp(4rem, 8vw, 6rem) 0 clamp(3.5rem, 7vw, 5rem); overflow: hidden; isolation: isolate; text-align: center; }
.page-hero--full { min-height: 70vh; display: grid; place-items: center; }
.page-hero__inner { max-width: 820px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: .8rem; }
.page-hero p { color: #94a3b8; font-size: 1.12rem; }
.page-hero__ico { display: inline-grid; place-items: center; width: 66px; height: 66px; border-radius: 18px; background: var(--grad); margin-bottom: 1.3rem; box-shadow: 0 16px 40px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.crumbs { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; font-size: .88rem; color: #64748b; margin-bottom: 1.4rem; }
.crumbs a { color: #94a3b8; }
.crumbs a:hover { color: #fff; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.service-card { --mx: 50%; --my: 50%; position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; color: var(--text); isolation: isolate; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card__img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--soft); }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.service-card:hover .service-card__img img { transform: scale(1.06); }
.service-card__body { position: relative; padding: 0 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.service-card__body .card__ico { margin-top: -26px; border: 4px solid #fff; background: #eef4ff; }
.service-card h2 { font-size: 1.3rem; margin: 1rem 0 .5rem; }
.service-card p { color: var(--muted); flex: 1; font-size: .96rem; }
.article-layout { display: grid; grid-template-columns: 1fr 340px; gap: 3rem; align-items: start; }
.prose { font-size: 1.07rem; color: #334155; }
.prose h2 { font-size: 1.7rem; margin-top: 2rem; color: var(--text); }
.prose h3 { font-size: 1.3rem; margin-top: 1.6rem; color: var(--text); }
.prose ul { padding-left: 0; list-style: none; display: grid; gap: .55rem; }
.prose ul li { position: relative; padding-left: 1.8rem; }
.prose ul li::before { content: ''; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg); }
.prose img { border-radius: var(--radius); margin: 1.5rem 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose iframe { display: block; width: 100%; max-width: 100%; border: 0; border-radius: var(--radius); margin: 1.5rem 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: .6rem .8rem; border: 1px solid var(--line); text-align: left; }
.prose__cover { width: 100%; max-height: 440px; object-fit: cover; margin-top: 0 !important; box-shadow: var(--shadow); }
.sidebar { position: sticky; top: 100px; display: grid; gap: 1.2rem; }
.side-card { padding: 1.6rem; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.side-card--accent { background: var(--ink); color: #fff; border: 0; position: relative; overflow: hidden; isolation: isolate; }
.side-card--accent::before { content: ''; position: absolute; inset: -40% -40% auto auto; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--primary) 70%, transparent), transparent 65%); z-index: -1; }
.side-card--accent p { color: #cbd5e1; }
.side-card__phone { display: flex; justify-content: center; align-items: center; gap: .4rem; color: #fff; margin-top: .9rem; font-weight: 600; }
.side-link { display: flex; align-items: center; gap: .7rem; padding: .6rem 0; color: var(--text); font-weight: 500; border-bottom: 1px solid var(--line); transition: color .2s, padding .3s var(--ease); }
.side-link:last-child { border: 0; }
.side-link:hover { color: var(--primary); padding-left: .3rem; }
.share { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); }
.share a { padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line); font-size: .88rem; font-weight: 500; color: var(--text); }
.share a:hover { border-color: var(--primary); color: var(--primary); }
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.contact-card { --mx: 50%; --my: 50%; position: relative; display: flex; flex-direction: column; gap: .4rem; padding: 1.6rem; border-radius: var(--radius); border: 1px solid var(--line); color: var(--text); isolation: isolate; overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
a.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.contact-card small { color: var(--muted); margin-top: .6rem; }
.contact-card strong { font-size: 1.02rem; word-break: break-word; }
.map iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(.4) contrast(1.05); }
.alert { padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; font-weight: 500; }
.alert--success { background: #dcfce7; color: #166534; }
.alert--error { background: #fee2e2; color: #991b1b; }
.glitch { position: relative; font-family: var(--display); font-weight: 700; font-size: clamp(6rem, 18vw, 11rem); line-height: 1; margin: 0 0 1rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; background: inherit; -webkit-background-clip: text; background-clip: text; }
.glitch::before { animation: glitch 2.5s infinite steps(2); clip-path: inset(0 0 60% 0); transform: translate(-3px); }
.glitch::after { animation: glitch 3s infinite reverse steps(2); clip-path: inset(55% 0 0 0); transform: translate(3px); }
@keyframes glitch { 0%, 90% { transform: none; } 92% { transform: translate(-6px, 2px); } 96% { transform: translate(6px, -2px); } }

/* ---------- Footer ---------- */
.footer { position: relative; background: #070c18; color: #94a3b8; padding: 4.5rem 0 0; overflow: hidden; }
.footer__glow { position: absolute; width: 700px; height: 300px; left: 50%; top: -200px; transform: translateX(-50%); background: radial-gradient(ellipse, color-mix(in srgb, var(--primary) 35%, transparent), transparent 70%); pointer-events: none; }
.footer__grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; }
.footer a { display: block; color: #94a3b8; padding: .25rem 0; transition: color .2s, transform .3s var(--ease); }
.footer a:hover { color: #fff; transform: translateX(3px); }
.footer__brand img { margin-bottom: 1.1rem; width: auto; }
.footer__brand p { font-size: .94rem; }
.footer__social { display: flex; gap: 1rem; }
.footer__line { display: flex; gap: .6rem; align-items: flex-start; font-size: .94rem; margin-bottom: .7rem; }
.footer__line .ico { margin-top: .3rem; color: var(--accent); }
.footer__line a { display: inline; padding: 0; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding: 1.4rem 0; border-top: 1px solid rgba(255,255,255,.07); font-size: .86rem; }
.to-top { display: grid !important; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37,211,102,.7); transition: transform .35s var(--ease); animation: waIn .6s 1.5s var(--ease) both; }
.wa-float::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: waRing 2.4s 2s infinite; }
.wa-float:hover { transform: scale(1.1) rotate(-6deg); }
@keyframes waIn { from { opacity: 0; transform: scale(.4); } }
@keyframes waRing { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- Animaciones de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.split .w > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.split.is-in .w > span { transform: none; }
.gradient-text.split .w > span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cursor-glow { position: fixed; left: 0; top: 0; width: 380px; height: 380px; margin: -190px 0 0 -190px; border-radius: 50%; pointer-events: none; z-index: 1; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 10%, transparent), transparent 65%); opacity: 0; transition: opacity .4s; mix-blend-mode: screen; }
.cursor-glow.is-on { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .mega { width: 520px; }
}
@media (max-width: 920px) {
  .nav__toggle { display: flex; }
  .nav__menu { position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 20px 1.5rem; background: rgba(11,17,32,.97); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,.08); max-height: calc(100vh - 72px); overflow-y: auto; transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .35s var(--ease); }
  .nav__menu.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__menu > a, .nav__drop > a { padding: .9rem .4rem; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 1.05rem; width: 100%; }
  .mega { position: static; width: auto; transform: none; opacity: 1; visibility: visible; grid-template-columns: 1fr; background: transparent; box-shadow: none; padding: .3rem 0 .6rem; display: none; }
  .nav__drop.is-open .mega { display: grid; }
  .nav__drop:hover .mega { transform: none; }
  .mega__item { color: #cbd5e1; }
  .mega__item:hover { background: rgba(255,255,255,.05); }
  .mega__item small { display: none; }
  .mega__ico { background: rgba(255,255,255,.07); color: var(--accent); }
  .hero__inner, .split-layout, .cta__inner, .faq-layout, .article-layout, .kit { grid-template-columns: 1fr; }
  .hero__visual { min-height: 400px; max-width: 520px; margin: 0 auto; width: 100%; }
  .testimonials, .posts, .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .sidebar { position: static; }
  .kit__img { max-width: 200px; }
  .topbar__links { display: none; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .bento, .testimonials, .posts, .services-grid, .contact-cards, .steps, .footer__grid, .form__row { grid-template-columns: 1fr; }
  .card--feat { grid-column: auto; min-height: 260px; }
  .nav__actions .btn { display: none; }
  .hero__ctas .btn { width: 100%; }
  .hero__visual { min-height: 360px; }
  .floating-badge--b { right: 0; }
  .hero__pc { width: 55%; bottom: -20px; }
  .footer__bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .section__head--row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal, .split .w > span { opacity: 1; transform: none; }
}
