:root {
  --bg: #07070a;
  --tile: rgba(255, 255, 255, 0.035);
  --tile-hover: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4f6;
  --muted: #9a9aa6;
  --c1: #ff8a3d;
  --c2: #ff4d8d;
  --c3: #8b5cf6;
  --grad: linear-gradient(100deg, var(--c1), var(--c2) 50%, var(--c3));
  --green: #4ade80;
  --radius: 24px;
  --display: "Sora", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 16px; line-height: 1.65;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.035em; font-weight: 700; }
p { margin: 0 0 1em; }
::selection { background: var(--c2); color: #fff; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.grad, .grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.eyebrow { font: 500 .8rem var(--mono); letter-spacing: .08em; color: var(--muted); margin-bottom: 1em; text-transform: uppercase; }

/* Fondo: cuadrícula y brillos */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: .5;
}
.bg-glow { position: fixed; z-index: -1; border-radius: 50%; filter: blur(120px); pointer-events: none; opacity: .35; }
.g1 { width: 620px; height: 620px; background: var(--c3); top: -260px; left: -180px; animation: float 16s ease-in-out infinite; }
.g2 { width: 560px; height: 560px; background: var(--c1); top: -200px; right: -220px; opacity: .25; animation: float 20s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translate(40px, 50px) scale(1.1); } }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .9em 1.5em; border-radius: 14px; font: 600 .98rem var(--body); border: 0; cursor: pointer;
  background: #fff; color: #0a0a0f; position: relative; transition: transform .2s, box-shadow .2s;
  box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 8px 30px -8px rgba(255, 77, 141, .55);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,.3), 0 12px 40px -6px rgba(255, 77, 141, .75); }
.btn-ghost { background: var(--tile); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: var(--tile-hover); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.btn-small { padding: .55em 1.1em; font-size: .88rem; border-radius: 10px; }
.btn-big { padding: 1em 1.8em; font-size: 1.02rem; }

/* Navegación */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(1200px, 100% - 24px); display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px 10px 18px; border-radius: 18px; border: 1px solid transparent; transition: background .3s, border-color .3s;
}
.nav.scrolled { background: rgba(12,12,18,.7); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line); }
.logo { font: 700 1.15rem var(--display); letter-spacing: -0.03em; display: flex; align-items: center; gap: .45em; }
.logo-mark { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 1.1em; }
.nav-links { list-style: none; display: flex; gap: 1.6rem; align-items: center; margin: 0; padding: 0; }
.nav-links a:not(.btn) { color: var(--muted); font-size: .92rem; transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; }

/* HERO */
.hero { padding: 150px 0 60px; }
.pill { display: inline-flex; align-items: center; gap: .6em; padding: .45em 1em; border-radius: 99px; background: var(--tile); border: 1px solid var(--line-strong); font-size: .85rem; color: #d6d6de; margin-bottom: 28px; backdrop-filter: blur(10px); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.hero-simple { font: 400 .98rem var(--mono); color: #6f6f7c; margin-bottom: 18px; min-height: 3.1em; display: block; }
.hero-simple-label { display: block; font-size: .78rem; color: #55555f; margin-bottom: 2px; }
.hero-simple-text::after { content: "▍"; color: var(--c2); animation: blink 1s steps(1) infinite; margin-left: 1px; }
.hero-simple.done .hero-simple-text::after { display: none; }
.hero-simple.tachado .hero-simple-text { text-decoration: line-through; text-decoration-color: var(--c2); text-decoration-thickness: 2px; opacity: .5; transition: opacity .4s; }
@keyframes blink { 50% { opacity: 0; } }
/* El titular entra solo con CSS desde el primer pintado: no espera al código ni a las fuentes. */
.hero-title { font-size: clamp(2.7rem, 7.2vw, 6rem); font-weight: 800; max-width: 15ch; margin-bottom: .3em; animation: titular .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes titular { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }
.hero .pill, .hero .hero-sub, .hero .hero-cta { opacity: 1; transform: none; filter: none; animation: titular .7s .15s cubic-bezier(.2,.8,.2,1) both; }
.hero-y { display: inline-block; font-size: .32em; font-weight: 600; letter-spacing: 0; vertical-align: middle; margin-left: .3em; padding: .35em .8em; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--tile); color: #e6e6ee; transform: translateY(-.4em) rotate(-3deg); }
.hero-sub { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 620px; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin: 2rem 0 64px; }

/* BENTO genérico */
.bento { display: grid; gap: 14px; }
.tile {
  position: relative; background: var(--tile); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; overflow: hidden; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: border-color .3s, background .3s, transform .3s;
  display: flex; flex-direction: column;
}
.tile::before { /* luz que sigue al cursor */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 120, 160, .12), transparent 55%);
}
.tile::after { /* borde con brillo */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.45), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.tile:hover { border-color: var(--line-strong); background: var(--tile-hover); }
.tile:hover::before, .tile:hover::after { opacity: 1; }
.tile > * { position: relative; z-index: 1; }
.tile-kicker { font: 500 .78rem var(--mono); color: var(--muted); letter-spacing: .04em; margin-bottom: 12px; display: block; }
.tile-title { font: 700 1.35rem/1.15 var(--display); letter-spacing: -.02em; margin-bottom: .4em; }
.tile-text { color: var(--muted); font-size: .95rem; margin: 0; }
.big-num { font: 800 clamp(2.6rem, 4.5vw, 3.6rem)/1 var(--display); letter-spacing: -.04em; margin: auto 0 .25em; }

/* Bento del hero */
.bento-hero { grid-template-columns: 1.6fr 1fr 1fr; grid-template-rows: auto auto; }
.t-video { grid-row: span 2; min-height: 340px; justify-content: flex-end; }
.t-video::before { opacity: .55; background: var(--img) center/cover; filter: blur(3px) saturate(.8); transform: scale(1.06); transition: opacity .4s; }
.t-video::after { opacity: 1; padding: 0; -webkit-mask: none; mask: none; background: linear-gradient(180deg, rgba(7,7,10,.35) 0%, rgba(7,7,10,.92) 70%); }
.t-video:hover::after { opacity: 1; }
.t-video:hover::before { opacity: .8; }
.t-video .big-num { font-size: clamp(3.4rem, 6vw, 5rem); margin-top: 0; }
.t-video .big-num, .t-app .tile-title { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.t-app { background: linear-gradient(140deg, rgba(255,138,61,.14), rgba(139,92,246,.14)); }
.t-app .tile-text { margin-top: auto; color: #e6e6ee; }
.t-code { justify-content: space-between; }
.timeline-mock.mini { width: 100%; margin: 4px 0 16px; }
.code { font: 400 .92rem/1.6 var(--mono); color: #c4b5fd; background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: block; }

/* Secciones */
.section { padding: clamp(70px, 9vw, 120px) 0; }
.section-intro { max-width: 820px; margin-bottom: 36px; }
.section-title { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 20px; }

/* El truco */
.ejemplos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.ejemplos-label { font: 500 .8rem var(--mono); color: var(--muted); margin-right: 4px; }
.ejemplo-btn { background: var(--tile); color: var(--muted); border: 1px solid var(--line-strong); border-radius: 10px; padding: .55em 1em; font: 500 .9rem var(--body); cursor: pointer; transition: .2s; }
.ejemplo-btn:hover { color: var(--text); }
.ejemplo-btn[aria-selected="true"] { color: #fff; background: rgba(255,77,141,.14); border-color: rgba(255,77,141,.55); }
.bento-truco { grid-template-columns: repeat(4, 1fr); }
.lado-simple { grid-column: span 2; background: linear-gradient(160deg, rgba(233,225,214,.08), rgba(233,225,214,.02)); }
.lado-pipe { grid-column: span 2; grid-row: span 2; background: linear-gradient(160deg, rgba(255,77,141,.08), rgba(139,92,246,.06)); }
.lado-simple .tile-text, .lado-pipe .tile-text { margin-top: auto; padding-top: 16px; }
.chat { background: #e9e1d6; border-radius: 16px; overflow: hidden; color: #2b2622; }
.chat-head { background: #1f6f5c; color: #fff; display: flex; align-items: center; gap: 10px; padding: 10px 14px; font: 600 .9rem var(--body); }
.chat-av { width: 26px; height: 26px; border-radius: 50%; background: #c9d6d1; color: #1f6f5c; display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.burbuja { margin: 16px 14px 20px auto; max-width: 85%; background: #d6f7c4; padding: 10px 12px 6px; border-radius: 12px 0 12px 12px; font: 400 .95rem Arial, sans-serif; box-shadow: 0 1px 1px rgba(0,0,0,.12); }
.burbuja small { display: block; text-align: right; font-size: .7rem; color: #7a8a80; margin-top: 4px; }
.guion { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.guion li { font: 600 1.06rem/1.35 var(--display); letter-spacing: -.01em; padding-left: 92px; position: relative; opacity: .12; transform: translateX(10px); transition: opacity .5s, transform .5s; }
.guion li.on { opacity: 1; transform: none; }
.guion li::before { content: attr(data-ef); position: absolute; left: 0; top: .2em; width: 78px; font: 500 .66rem var(--mono); color: var(--muted); border: 1px solid var(--line-strong); border-radius: 6px; padding: 2px 4px; text-align: center; }
.guion .golpe { align-self: flex-start; margin-left: 92px; padding: 2px 10px; background: #ffd23f; color: #111; border-radius: 6px; font-weight: 800; }
.guion .golpe::before { left: -92px; color: var(--muted); }
.guion .susurro { font: italic 400 .95rem var(--body); color: #c9c9d3; }
.guion .anio { font-size: 2.3rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.guion .anio::before { -webkit-text-fill-color: var(--muted); }
.guion em { font: italic 400 .92rem var(--body); color: #c9c9d3; }
.guion .firma-mini { font: italic 600 1.25rem var(--display); color: #ffb3cf; }
.paso h3 { font-size: 1.15rem; margin: .5em 0 .4em; }
.paso p { color: var(--muted); font-size: .92rem; margin: 0; }
.paso-n { font: 500 .8rem var(--mono); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Para quién */
.bento-servicios { grid-template-columns: repeat(3, 1fr); }
.s-grande { grid-row: span 2; background: linear-gradient(160deg, rgba(255,138,61,.1), rgba(255,255,255,.02) 60%); }
.s-ancho { grid-column: span 2; }
.servicio h3 { font-size: 1.35rem; margin-top: 1rem; }
.servicio p { color: var(--muted); font-size: .95rem; }
.ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; border: 1px solid var(--line-strong); }
.ic-1 { background: linear-gradient(140deg, rgba(255,138,61,.35), rgba(255,138,61,.05)); }
.ic-2 { background: linear-gradient(140deg, rgba(255,77,141,.35), rgba(255,77,141,.05)); }
.ic-3 { background: linear-gradient(140deg, rgba(139,92,246,.35), rgba(139,92,246,.05)); }
.ic-4 { background: linear-gradient(140deg, rgba(74,222,128,.3), rgba(74,222,128,.05)); }
.card-link { margin-top: auto; font-weight: 600; font-size: .92rem; color: #fff; display: inline-flex; gap: .3em; }
.card-link:hover { color: #ffb3cf; }

/* Pruébalo */
.pruebalo { flex-direction: row; gap: clamp(28px, 5vw, 70px); align-items: center; padding: clamp(26px, 4vw, 56px); background: linear-gradient(140deg, rgba(255,138,61,.08), rgba(139,92,246,.1)); }
.pruebalo-texto { flex: 1; }
.pruebalo-texto > p { color: var(--muted); font-size: 1.04rem; }
.checks { list-style: none; padding: 0; margin: 0 0 1.4em; }
.checks li { padding-left: 1.8em; position: relative; margin-bottom: .55em; color: #d6d6de; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: .1em; width: 1.2em; height: 1.2em; border-radius: 6px; display: grid; place-items: center; font-size: .75rem; color: var(--green); background: rgba(74,222,128,.12); border: 1px solid rgba(74,222,128,.3); }
.pruebalo-cierre { color: var(--text) !important; font-weight: 500; }
.telefono { flex: 0 0 auto; width: 370px; height: 740px; max-height: 86vh; border-radius: 46px; padding: 10px; background: #0b0b10; border: 1px solid var(--line-strong); box-shadow: 0 50px 100px -40px rgba(139,92,246,.5), inset 0 0 0 2px rgba(255,255,255,.04); }
.telefono iframe { width: 100%; height: 100%; border: 0; border-radius: 38px; background: #140d08; }

/* Trabajo */
.filters { display: flex; gap: 4px; background: var(--tile); padding: 4px; border-radius: 12px; border: 1px solid var(--line); }
.filter { background: none; border: 0; color: var(--muted); font: 500 .88rem var(--body); padding: .5em 1em; border-radius: 9px; cursor: pointer; transition: .2s; }
.filter.active { background: rgba(255,255,255,.1); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.project { padding: 0; }
.project.hidden { display: none; }
.project-lg { grid-column: span 2; grid-row: span 2; }
.project-media { aspect-ratio: 16/10; position: relative; display: grid; place-items: center; overflow: hidden; background-size: cover; background-position: center; border-bottom: 1px solid var(--line); }
.project-lg .project-media { aspect-ratio: auto; flex: 1; min-height: 320px; }
.project-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7,7,10,.5)); pointer-events: none; }
.media-1 { background: var(--grad); }
.media-2 { background: radial-gradient(circle at 70% 30%, rgba(255,184,77,.5), transparent 45%), linear-gradient(160deg, #241a12, #0b0b10); }
.media-3 { background: radial-gradient(circle at 30% 70%, rgba(74,222,128,.45), transparent 45%), linear-gradient(160deg, #0e1f1a, #0b0b10); }
.media-4 { background: linear-gradient(160deg, #141826, #0b0b10); }
.media-5 { background: radial-gradient(circle at 70% 30%, rgba(139,92,246,.4), transparent 50%), linear-gradient(160deg, #1a1226, #0b0b10); }
.media-6 { background: radial-gradient(circle at 50% 40%, rgba(160,165,180,.35), transparent 45%), linear-gradient(160deg, #1b1d24, #0b0b10); }
.media-7 { background: radial-gradient(circle at 50% 35%, rgba(255,77,141,.35), transparent 55%), linear-gradient(160deg, #1f1018, #0b0b10); }
.play { width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,.12); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.3); position: relative; z-index: 1; transition: transform .3s, background .3s; }
.play::after { content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%); border-left: 15px solid #fff; border-block: 9px solid transparent; }
.project:hover .play { transform: scale(1.12); background: rgba(255,77,141,.8); }
.project-info { padding: 20px 22px 24px; }
.project-info h3 { font-size: 1.2rem; margin-bottom: .35em; }
.project-lg .project-info h3 { font-size: 1.7rem; }
.project-info p { color: var(--muted); font-size: .92rem; margin: 0; }
.project-info a { color: #ffb3cf; text-decoration: underline; }
.tag { display: inline-block; font: 500 .72rem var(--mono); color: var(--muted); border: 1px solid var(--line-strong); border-radius: 6px; padding: 2px 8px; margin-bottom: .8em; }
.mini-chat { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.mini-chat span { background: #d6f7c4; color: #222; font: .82rem Arial, sans-serif; padding: 6px 10px; border-radius: 10px 0 10px 10px; opacity: .55; text-decoration: line-through; }
.mini-chat b { background: #ffd23f; color: #111; font: 800 1rem var(--display); padding: 6px 12px; border-radius: 6px; transform: rotate(-2deg); }
.deck { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px; background: #050608; border-radius: 14px; position: relative; z-index: 1; border: 1px solid var(--line); }
.deck span { width: 56px; height: 56px; border-radius: 9px; background: linear-gradient(160deg, #1d2333, #0e1119); display: flex; flex-direction: column; align-items: center; justify-content: center; font: .58rem var(--mono); color: #8b93a8; }
.deck b { color: var(--green); font: 700 .95rem var(--display); }
.deck span:nth-child(2) b { color: var(--c1); }
.deck span:nth-child(4) b { color: #a78bfa; }
.timeline-mock { width: 78%; display: grid; gap: 8px; position: relative; z-index: 1; }
.timeline-mock i { height: 16px; border-radius: 5px; display: block; background: linear-gradient(90deg, #8b5cf6 0 30%, transparent 30% 34%, #8b5cf6 34% 70%, transparent 70% 73%, #8b5cf6 73%); opacity: .85; }
.timeline-mock i:nth-child(2) { background: linear-gradient(90deg, transparent 0 12%, #ff4d8d 12% 55%, transparent 55% 60%, #ff4d8d 60% 92%, transparent 92%); }
.timeline-mock i:nth-child(3) { background: #4ade80; opacity: .5; }
.timeline-mock i:nth-child(4) { background: linear-gradient(90deg, #4ade80 0 45%, transparent 45% 48%, #4ade80 48%); opacity: .5; }
.timeline-mock::after { content: ""; position: absolute; top: -10px; bottom: -10px; width: 2px; background: #fff; box-shadow: 0 0 10px #fff; left: 20%; animation: playhead 5s linear infinite; }
@keyframes playhead { to { left: 100%; } }

/* Sobre mí */
.bento-about { grid-template-columns: 1fr 1.4fr 1fr; }
.t-foto { grid-row: span 2; padding: 0; min-height: 420px; background: radial-gradient(circle at 30% 20%, rgba(255,138,61,.35), transparent 55%), radial-gradient(circle at 80% 90%, rgba(139,92,246,.35), transparent 55%), #0e0e14; align-items: center; justify-content: center; }
.t-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.photo-initials { font: 800 7rem var(--display); color: rgba(255,255,255,.1); letter-spacing: -.05em; }
.t-foto img ~ .photo-initials { display: none; }
.t-foto img { object-position: 50% 30%; }
.foto-badge { position: absolute !important; left: 16px; bottom: 16px; z-index: 2 !important; font-size: .8rem; padding: .4em .9em; border-radius: 99px; background: rgba(10,10,15,.7); border: 1px solid var(--line-strong); backdrop-filter: blur(10px); }
.t-bio { grid-column: span 2; }
.t-bio p { color: #c9c9d3; font-size: 1.02rem; }
.t-bio p:last-child { margin: 0; }
.t-bio strong { color: #fff; }
.quote { font: 600 1.15rem/1.4 var(--display); letter-spacing: -.01em; margin: 0; }
.quote.small { font-size: 1rem; font-style: italic; font-weight: 400; color: #d6d6de; }
.t-quote { background: linear-gradient(160deg, rgba(255,77,141,.1), rgba(255,255,255,.02)); }
.t-stack { grid-column: span 3; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { border: 1px solid var(--line-strong); padding: .35em .9em; border-radius: 8px; font: 500 .85rem var(--mono); background: rgba(255,255,255,.03); color: #d6d6de; }

/* Cómo trabajamos */
.bento-proceso { grid-template-columns: repeat(5, 1fr); list-style: none; margin: 0; padding: 0; counter-reset: none; }
.proceso-paso h3 { font-size: 1.1rem; margin: .6em 0 .4em; }
.proceso-paso p { color: var(--muted); font-size: .92rem; margin: 0; }

/* Preguntas frecuentes */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.faq details { padding: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 52px 20px 22px; font: 600 1.02rem var(--display); letter-spacing: -.01em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--muted); font: 400 1.1rem var(--body); transition: transform .3s, color .3s; }
.faq details[open] summary::after { content: "−"; color: #fff; border-color: rgba(255,77,141,.6); }
.faq details p { padding: 0 22px 20px; margin: 0; color: #c9c9d3; font-size: .95rem; }

/* Cotiza (el gag) */
.bento-cotiza { grid-template-columns: 1.25fr 1fr; align-items: stretch; }
.cotizador { gap: 22px; }
.cotizador fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.cotizador legend { font: 600 1.05rem var(--display); letter-spacing: -.01em; margin-bottom: 12px; padding: 0; display: flex; gap: .6em; align-items: baseline; width: 100%; }
.cotizador legend .muted { font: 400 .85rem var(--body); }
.cotizador legend output { margin-left: auto; font: 500 .85rem var(--mono); color: #ffb3cf; }
.opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opciones label, .extras label { cursor: pointer; }
.opciones input, .extras input { position: absolute; opacity: 0; pointer-events: none; }
.opciones span { display: block; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(0,0,0,.25); font-size: .92rem; transition: border-color .2s, background .2s; }
.opciones input:checked + span { border-color: var(--c2); background: rgba(255,77,141,.12); }
.opciones input:focus-visible + span, .extras input:focus-visible ~ span { outline: 2px solid var(--c2); outline-offset: 2px; }
input[type=range] { width: 100%; accent-color: var(--c2); }
.rango-labels { display: flex; justify-content: space-between; font: .75rem var(--mono); color: var(--muted); }
.extras { display: grid; gap: 8px; }
.extras label { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.2); transition: border-color .2s, background .2s; position: relative; }
.extras label::before { content: ""; width: 18px; height: 18px; flex: 0 0 auto; border-radius: 5px; border: 1.5px solid var(--line-strong); transition: .2s; }
.extras label:has(input:checked) { border-color: rgba(255,77,141,.5); background: rgba(255,77,141,.08); }
.extras label:has(input:checked)::before { background: var(--grad); border-color: transparent; box-shadow: inset 0 0 0 3px #111; }
.extras span { flex: 1; font-size: .93rem; }
.extras small { color: var(--muted); }
.extras b { font: 500 .8rem var(--mono); color: var(--muted); white-space: nowrap; }
.total { background: linear-gradient(160deg, rgba(255,77,141,.1), rgba(139,92,246,.08)); }
.desglose { font: .82rem/1.9 var(--mono); color: var(--muted); border-bottom: 1px dashed var(--line-strong); padding-bottom: 12px; margin-bottom: 16px; }
.desglose div { display: flex; justify-content: space-between; gap: 10px; }
.desglose div span:last-child { color: #d6d6de; white-space: nowrap; }
.precio-label { display: block; font-size: .85rem; color: var(--muted); }
.precio-label small { opacity: .8; }
.precio { display: block; font: 800 clamp(2.6rem, 5vw, 3.8rem)/1.1 var(--display); letter-spacing: -.04em; margin: .1em 0 .5em; transition: opacity .4s; }
.precio.tachado { text-decoration: line-through; text-decoration-color: var(--c2); text-decoration-thickness: 4px; opacity: .45; }
.total .btn { align-self: flex-start; }
.descuento { position: relative; margin-top: 4px; animation: aparece .6s cubic-bezier(.2,1.4,.4,1); }
@keyframes aparece { from { opacity: 0; transform: scale(.9) translateY(10px); } }
.sello { position: absolute !important; right: 0; top: -70px; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font: 800 1.25rem var(--display); transform: rotate(12deg); box-shadow: 0 10px 30px -8px rgba(255,77,141,.7); animation: sello .5s .1s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes sello { from { transform: rotate(-30deg) scale(2.2); opacity: 0; } }
.descuento-titulo { font: 700 1.3rem var(--display); margin-bottom: .4em; }
.descuento p:not(.descuento-titulo) { color: #d6d6de; font-size: .95rem; }
.cot-nota { margin: auto 0 0; padding-top: 16px; font-size: .78rem; color: var(--muted); }
.opciones .opcion-ancha { grid-column: 1 / -1; }
.extras label[hidden] { display: none; }
.cot-moneda { align-self: flex-start; margin-top: 12px; padding: 0; border: 0; background: none; color: var(--muted); font: .8rem var(--mono); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cot-moneda:hover, .cot-moneda:focus-visible { color: #ffb3cf; }
.cot-form { flex: none; margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line-strong); gap: 12px; }
.cot-form textarea { min-height: 64px; }
.cot-form-titulo { font: 600 1.05rem var(--display); color: var(--text); margin: 0; }
.cot-form .muted { font-weight: 400; color: var(--muted); }
.cot-trampa { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cot-listo { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line-strong); display: grid; gap: 10px; }
.cot-listo p { margin: 0; }
.cot-listo-botones { display: flex; flex-wrap: wrap; gap: 10px; }
.cot-nota a { color: #ffb3cf; text-underline-offset: 3px; }
.cot-form[hidden], .cot-listo[hidden] { display: none; }

/* Reel y testimonios (listos para cuando haya material) */
.reel { margin: 0 0 14px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); aspect-ratio: 16/9; background: #000; }
.reel iframe { width: 100%; height: 100%; border: 0; display: block; }
.testimonio blockquote { margin: 0 0 12px; font: 600 1.1rem/1.4 var(--display); }
.testimonio figcaption { color: var(--muted); font-size: .88rem; }
@media (min-width: 1051px) {
  .projects .project:last-child:nth-child(3n+1) { grid-column: 1 / -1; flex-direction: row; }
  .projects .project:last-child:nth-child(3n+1) .project-media { aspect-ratio: 16/9; width: 50%; flex: 0 0 50%; border-bottom: 0; border-right: 1px solid var(--line); }
  .projects .project:last-child:nth-child(3n+1) .project-info { align-self: center; padding: 28px 34px; }
  .projects .project:last-child:nth-child(3n+1) h3 { font-size: 1.7rem; }
  .projects .project:last-child:nth-child(3n+2) { grid-column: span 2; }
  .projects .project:last-child:nth-child(3n+2) .project-media { aspect-ratio: auto; height: 245px; }
}

/* Plan B del formulario y WhatsApp */
.btn-wa { background: #25d366; color: #062b14; box-shadow: 0 10px 30px -10px rgba(37,211,102,.7); margin-top: .4rem; }
.btn-wa:hover { box-shadow: 0 14px 34px -8px rgba(37,211,102,.85); }
.contacto-o { font-size: .88rem; margin: .8em 0 0; }
.copiar { background: none; border: 0; padding: 0; color: #ffb3cf; font: inherit; text-decoration: underline; cursor: pointer; }
.form-nota a { color: #ffb3cf; text-decoration: underline; }
.wa-flotante {
  position: fixed; right: 18px; bottom: 18px; z-index: 70; display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px 12px 14px; border-radius: 99px; background: #25d366; color: #062b14; font: 700 .95rem var(--body);
  box-shadow: 0 12px 30px -10px rgba(37,211,102,.7); transition: transform .2s;
}
.wa-flotante:hover { transform: translateY(-2px) scale(1.03); }
@media (max-width: 640px) { .wa-flotante span { display: none; } .wa-flotante { padding: 14px; } }

/* Saludo según el país */
.saludo {
  position: fixed; left: 50%; bottom: 20px; z-index: 80; width: min(460px, calc(100% - 32px));
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 14px 14px 16px; border-radius: 16px;
  background: rgba(16,16,24,.88); border: 1px solid var(--line-strong); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,77,141,.15);
  transform: translate(-50%, 140%); opacity: 0; transition: transform .6s cubic-bezier(.2,1.2,.3,1), opacity .4s;
}
.saludo.on { transform: translate(-50%, 0); opacity: 1; }
.saludo-ic { font-size: 1.4rem; line-height: 1.2; animation: ola 1.4s ease-in-out 2; transform-origin: 70% 80%; }
@keyframes ola { 20%, 60% { transform: rotate(16deg); } 40%, 80% { transform: rotate(-8deg); } }
.saludo p { margin: 0; flex: 1; font-size: .92rem; color: #e6e6ee; }
.saludo button { background: none; border: 0; color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.saludo button:hover { color: #fff; }

/* Contacto */
.contacto { flex-direction: row; gap: clamp(28px, 5vw, 64px); padding: clamp(26px, 4vw, 56px); background: linear-gradient(140deg, rgba(139,92,246,.1), rgba(255,77,141,.08)); }
.contacto-texto { flex: 1; }
.contact-title { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
.contact-links { display: flex; gap: 1.2rem; margin-top: 1.5rem; font-weight: 500; }
.contact-links a { color: var(--muted); }
.contact-links a:hover { color: #fff; }
.form { flex: 1.1; display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: .9rem; color: #d6d6de; }
.form input, .form select, .form textarea { width: 100%; background: rgba(0,0,0,.35); color: var(--text); border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; font: 400 1rem var(--body); resize: vertical; transition: border-color .2s, box-shadow .2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--c2); box-shadow: 0 0 0 4px rgba(255,77,141,.18); }
.form select option { background: #111; }
.form .btn { justify-self: start; }
.form-nota { font-size: .82rem; color: var(--muted); margin: 0; }
.form-nota.aviso { color: #ffb3cf; }

.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .88rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer a:hover { color: #fff; }

/* Aparición */
.reveal { opacity: 0; transform: translateY(22px); filter: blur(6px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1), filter .8s; }
.reveal.visible { opacity: 1; transform: none; filter: none; }

/* Responsive */
@media (max-width: 1050px) {
  .bento-hero { grid-template-columns: 1fr 1fr; }
  .t-video { grid-column: span 2; grid-row: auto; min-height: 300px; }
  .t-code { grid-column: span 2; }
  .bento-truco { grid-template-columns: 1fr 1fr; }
  .lado-pipe { grid-row: auto; }
  .bento-servicios { grid-template-columns: 1fr 1fr; }
  .s-grande { grid-row: auto; grid-column: span 2; }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .bento-about { grid-template-columns: 1fr 1fr; }
  .t-foto { grid-row: span 2; }
  .t-bio { grid-column: auto; }
  .t-stack { grid-column: span 2; }
  .bento-cotiza { grid-template-columns: 1fr; }
  .bento-proceso { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .faq { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: grid; gap: 6px; background: none; border: 0; padding: 10px; cursor: pointer; position: relative; z-index: 60; }
  .nav-toggle span { width: 22px; height: 2px; background: var(--text); transition: .3s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav-links { position: fixed; inset: -14px -12px auto; height: 100vh; flex-direction: column; justify-content: center; gap: 1.7rem; background: rgba(7,7,10,.97); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links a:not(.btn) { font-size: 1.4rem; color: var(--text); }
  .pruebalo, .contacto { flex-direction: column; align-items: stretch; }
  .telefono { align-self: center; }
}
@media (max-width: 640px) {
  .hero { padding-top: 120px; }
  .bento-hero, .bento-truco, .bento-servicios, .projects, .bento-about, .form-row, .bento-proceso { grid-template-columns: 1fr; }
  .t-video, .t-code, .lado-simple, .lado-pipe, .s-grande, .s-ancho, .project-lg, .t-stack { grid-column: auto; }
  .project-lg { grid-row: auto; }
  .project-lg .project-media { min-height: 0; aspect-ratio: 16/10; }
  .t-foto { grid-row: auto; min-height: 340px; }
  .tile { padding: 22px; }
  .guion li { padding-left: 0; padding-top: 1.55em; }
  .guion li::before { top: 0; }
  .guion .golpe { margin-left: 0; margin-top: 1.55em; }
  .guion .golpe::before { left: 0; top: -1.55em; }
  .hero-y { display: table; margin: .4em 0 0; }
  .opciones { grid-template-columns: 1fr; }
  .sello { width: 76px; height: 76px; font-size: 1.05rem; top: -58px; }
  .telefono { width: min(100%, 350px); height: 690px; }
  .g1, .g2 { width: 380px; height: 380px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero-title, .guion li { opacity: 1; transform: none; filter: none; }
  html { scroll-behavior: auto; }
}