/* Sistema visual común de la familia Agenttica. Cada sitio cambia solo --accent y sus variantes. */
:root {
  --ink: #15171F;
  --ink-2: #1D2029;
  --ivory: #F6F3EC;
  --ivory-2: #EDE8DD;
  --stone: #8A867E;
  --stone-2: #5E5B55;
  --line: rgba(21, 23, 31, .12);
  --line-dark: rgba(246, 243, 236, .14);
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --text: 'Figtree', system-ui, sans-serif;
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--text); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.04; letter-spacing: -0.035em; margin: 0; font-weight: 750; }
h2 { font-size: clamp(2.2rem, 4.6vw, 4.1rem); }
h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0; }
.wrap { width: min(100% - 48px, var(--max)); margin-inline: auto; }
.eyebrow { font-family: var(--display); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); display: inline-flex; align-items: center; gap: .6em; }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--stone-2); max-width: 60ch; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--ivory); padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Botones */
.btn { --b: var(--accent); display: inline-flex; align-items: center; gap: .6em; font-family: var(--display); font-weight: 700; font-size: 1rem; padding: 16px 26px; border-radius: 999px; text-decoration: none; border: 0; cursor: pointer; background: var(--b); color: var(--on-accent); transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s; box-shadow: 0 10px 30px -12px var(--accent); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px var(--accent); }
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px currentColor; background: rgba(127, 127, 127, .08); }
.btn-light { background: var(--ivory); color: var(--ink); box-shadow: none; }

/* Encabezado */
.site-head { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .4s, color .4s, box-shadow .4s, transform .4s var(--ease); color: var(--ivory); }
.site-head.solid { background: rgba(246, 243, 236, .86); color: var(--ink); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 750; font-size: 1.45rem; letter-spacing: -0.04em; }
.brand svg { width: 32px; height: 32px; }
.brand small { font-family: var(--text); font-weight: 500; font-size: .78rem; letter-spacing: 0; opacity: .7; margin-left: 2px; }
.nav { display: flex; align-items: center; gap: 30px; font-size: .95rem; }
.nav a:not(.btn) { text-decoration: none; opacity: .82; transition: opacity .2s; }
.nav a:not(.btn):hover { opacity: 1; }
.nav .btn { padding: 11px 20px; font-size: .92rem; }
.lang { font-family: var(--display); font-weight: 700; font-size: .85rem; text-decoration: none; border: 1.5px solid currentColor; border-radius: 99px; padding: 4px 10px; opacity: .85; }
@media (max-width: 900px) { .nav a:not(.btn):not(.lang) { display: none; } }

/* Película de scroll */
.film { position: relative; background: var(--ink); color: var(--ivory); }
.film-stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.js .film-stage { position: sticky; top: 0; }
.film-media { position: absolute; inset: 0; }
.film-media img, .film-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-media video { opacity: 0; transition: opacity .8s ease; }
.film-media.ready video { opacity: 1; }
.film-media img { transform: scale(calc(1 + var(--p, 0) * .12)); transform-origin: 50% 50%; will-change: transform; }
.film-glow { position: absolute; inset: -20%; background: radial-gradient(40% 40% at 50% 55%, var(--accent-glow), transparent 70%); opacity: .55; mix-blend-mode: screen; pointer-events: none; }
.film-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21, 23, 31, .82) 0%, rgba(21, 23, 31, .45) 42%, rgba(21, 23, 31, 0) 70%), linear-gradient(0deg, rgba(21, 23, 31, .7), rgba(21, 23, 31, 0) 35%); pointer-events: none; }
.film-grain { position: absolute; inset: 0; opacity: .07; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.chapters { position: relative; }
.js .chapters { position: absolute; inset: 0; pointer-events: none; }
.chapter { padding: 140px 0 80px; }
.js .chapter { position: absolute; inset: 0; display: flex; align-items: center; padding: 0; opacity: 0; transform: translateY(40px); }
.chapter .wrap > div { max-width: 640px; pointer-events: auto; }
.chapter h1, .chapter h2 { font-size: clamp(2.5rem, 6.2vw, 5.4rem); color: var(--ivory); text-wrap: balance; }
.chapter h2 { font-size: clamp(2.1rem, 4.8vw, 4.2rem); }
.chapter p { margin-top: 22px; font-size: clamp(1.05rem, 1.45vw, 1.28rem); color: rgba(246, 243, 236, .82); max-width: 52ch; }
.chapter .ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.chapter .num { font-family: var(--display); font-weight: 700; font-size: .85rem; letter-spacing: .2em; color: var(--accent-soft); display: block; margin-bottom: 18px; }
.film-progress { position: absolute; right: 28px; top: 50%; transform: translateY(-50%); display: none; flex-direction: column; gap: 10px; z-index: 2; }
.js .film-progress { display: flex; }
.film-progress i { width: 3px; height: 26px; border-radius: 3px; background: rgba(246, 243, 236, .22); overflow: hidden; position: relative; }
.film-progress i::after { content: ''; position: absolute; inset: 0; background: var(--accent-soft); transform: scaleY(var(--f, 0)); transform-origin: top; }
.scroll-hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(246, 243, 236, .7); display: flex; flex-direction: column; align-items: center; gap: 10px; transition: opacity .4s; }
.scroll-hint span { width: 1.5px; height: 42px; background: linear-gradient(var(--accent-soft), transparent); animation: drip 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 760px) {
  .film-shade { background: linear-gradient(0deg, rgba(21, 23, 31, .92) 0%, rgba(21, 23, 31, .55) 50%, rgba(21, 23, 31, .25) 100%); }
  .js .chapter { align-items: flex-end; padding-bottom: 110px; }
  .film-progress { right: 12px; }
}

/* Franja en movimiento */
.ticker { background: var(--accent); color: var(--on-accent); overflow: hidden; padding: 18px 0; font-family: var(--display); font-weight: 700; font-size: clamp(1rem, 1.6vw, 1.25rem); letter-spacing: -0.01em; }
.ticker-track { display: flex; gap: 48px; width: max-content; animation: slide 38s linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; gap: 48px; white-space: nowrap; }
.ticker-track span::after { content: '✦'; opacity: .6; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Secciones */
section.block { padding: clamp(90px, 12vw, 160px) 0; position: relative; }
.block-head { display: grid; grid-template-columns: 1fr; gap: 22px; margin-bottom: clamp(44px, 6vw, 72px); max-width: 860px; }
.dark { background: var(--ink); color: var(--ivory); }
.dark .lead { color: rgba(246, 243, 236, .72); }
.dark .eyebrow { color: var(--accent-soft); }
.tint { background: var(--ivory-2); }

/* Manifiesto con palabras que se encienden */
.manifesto p { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 4.2vw, 3.6rem); line-height: 1.12; letter-spacing: -0.035em; max-width: 20ch; max-width: 1050px; }
.manifesto .w { opacity: .14; transition: opacity .25s linear; }
.manifesto .w.on { opacity: 1; }
.manifesto .w.hl { color: var(--accent-text); }
.manifesto .sign { margin-top: 36px; font-family: var(--text); font-size: 1rem; color: var(--stone-2); font-weight: 500; }

/* Rejilla de servicios */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.card { position: relative; grid-column: span var(--span, 4); background: #fff; border-radius: var(--radius); padding: 32px 30px 30px; box-shadow: 0 1px 0 var(--line), 0 30px 60px -40px rgba(21, 23, 31, .25); overflow: hidden; isolation: isolate; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--accent-wash), transparent 60%); opacity: 0; transition: opacity .4s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 var(--line), 0 40px 70px -40px rgba(21, 23, 31, .35); }
.card:hover::before { opacity: 1; }
.card.wide { grid-column: span 8; }
.card.full { grid-column: span 12; }
.card.feature { background: var(--ink); color: var(--ivory); }
.card.feature p { color: rgba(246, 243, 236, .75); }
.card.feature .tag { background: rgba(246, 243, 236, .1); color: var(--ivory); }
.card .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--accent-wash); color: var(--accent-text); display: grid; place-items: center; margin-bottom: 26px; }
.card.feature .ico { background: rgba(246, 243, 236, .1); color: var(--accent-soft); }
.card .ico svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--stone-2); font-size: 1rem; }
.card ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: .97rem; }
.card ul li { display: flex; gap: 10px; align-items: baseline; }
.card ul li::before { content: ''; flex: 0 0 7px; height: 7px; border-radius: 2px; background: var(--accent); transform: translateY(-1px); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag { font-size: .78rem; font-weight: 600; padding: 5px 11px; border-radius: 99px; background: var(--ivory-2); color: var(--stone-2); }
.group-title { grid-column: span 12; display: flex; align-items: baseline; gap: 16px; margin: 34px 0 6px; font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.group-title:first-child { margin-top: 0; }
.group-title em { font-style: normal; color: var(--stone); font-weight: 500; font-family: var(--text); font-size: .95rem; }
@media (max-width: 980px) { .card { grid-column: span 6; } .card.feature { grid-column: span 12; } }
@media (max-width: 640px) { .card { grid-column: span 12; } }

/* Tres columnas de límites */
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rule { border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 34px 30px; background: linear-gradient(180deg, rgba(246, 243, 236, .04), transparent); }
.rule h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.rule h3 i { width: 12px; height: 12px; border-radius: 4px; background: var(--c, var(--accent-soft)); box-shadow: 0 0 22px var(--c, var(--accent-soft)); }
.rule ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; color: rgba(246, 243, 236, .8); font-size: .98rem; }
.rule ul li { padding-left: 18px; position: relative; }
.rule ul li::before { content: ''; position: absolute; left: 0; top: .7em; width: 6px; height: 1.5px; background: currentColor; opacity: .6; }
@media (max-width: 900px) { .rules { grid-template-columns: 1fr; } }

/* Proceso */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; border-top: 1px solid var(--line); }
.step { padding: 34px 28px 0 0; position: relative; }
.step::before { counter-increment: s; content: '0' counter(s); font-family: var(--display); font-weight: 800; font-size: 3.4rem; letter-spacing: -0.05em; color: var(--accent-text); opacity: .9; display: block; line-height: 1; margin-bottom: 22px; }
.step::after { content: ''; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--stone-2); font-size: 1rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Precio */
.price { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.price-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.price-list div { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.price-list b { font-family: var(--display); color: var(--accent-text); font-size: 1.1rem; }
.price-list p { color: var(--stone-2); font-size: 1rem; }
.price-list strong { display: block; color: var(--ink); font-family: var(--display); font-size: 1.08rem; margin-bottom: 4px; letter-spacing: -0.01em; }
@media (max-width: 900px) { .price { grid-template-columns: 1fr; } }

/* Plataformas */
.logos-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.logos-row span { font-family: var(--display); font-weight: 700; font-size: 1rem; padding: 12px 20px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }

/* Familia */
.family { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.agency { position: relative; border-radius: 28px; padding: 36px 32px 32px; min-height: 420px; display: flex; flex-direction: column; text-decoration: none; color: var(--ivory); background: var(--c); overflow: hidden; isolation: isolate; transition: transform .6s var(--ease); }
.agency::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, .22), transparent 55%); }
.agency:hover { transform: translateY(-6px) rotate(-.4deg); }
.agency svg.mark { width: 58px; height: 58px; margin-bottom: auto; }
.agency h3 { font-size: 2.3rem; letter-spacing: -0.045em; margin: 40px 0 6px; }
.agency .for { font-family: var(--display); font-weight: 600; opacity: .85; margin-bottom: 14px; }
.agency p { opacity: .82; font-size: 1rem; }
.agency .go { margin-top: 26px; font-family: var(--display); font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }
@media (max-width: 980px) { .family { grid-template-columns: 1fr; } .agency { min-height: 320px; } }

/* Preguntas */
.faq { max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 50px 26px 0; position: relative; font-family: var(--display); font-weight: 700; font-size: 1.18rem; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--accent-text), var(--accent-text)) center/100% 2px no-repeat, linear-gradient(var(--accent-text), var(--accent-text)) center/2px 100% no-repeat; transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 28px 0; color: var(--stone-2); }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.contact h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.contact .alt { margin-top: 32px; display: grid; gap: 12px; font-size: 1rem; color: rgba(246, 243, 236, .78); }
.contact .alt a { color: var(--ivory); }
form.lead-form { background: var(--ivory); color: var(--ink); border-radius: 28px; padding: clamp(26px, 4vw, 44px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.field { display: grid; gap: 7px; grid-column: span 2; }
.field.half { grid-column: span 1; }
.field label { font-size: .86rem; font-weight: 600; color: var(--stone-2); }
.field input, .field textarea, .field select { font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; transition: border-color .2s, box-shadow .2s; width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash); }
.consent { grid-column: span 2; display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; color: var(--stone-2); line-height: 1.5; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: 0 0 auto; }
.form-note { grid-column: span 2; font-size: .82rem; color: var(--stone); }
.form-actions { grid-column: span 2; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.form-status { font-size: .95rem; font-weight: 600; }
.form-status.ok { color: #1E7B4A; }
.form-status.err { color: #B3261E; }
.hp { position: absolute; left: -5000px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field.half { grid-column: span 2; } }

/* Pie */
footer.site-foot { background: var(--ink); color: rgba(246, 243, 236, .7); padding: 70px 0 40px; font-size: .95rem; border-top: 1px solid var(--line-dark); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-grid h4 { color: var(--ivory); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; font-weight: 700; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--ivory); }
.foot-legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: space-between; font-size: .85rem; }
.foot-note { margin-top: 18px; font-size: .82rem; max-width: 70ch; color: rgba(246, 243, 236, .5); }
.foot-brand { display: flex; align-items: center; gap: 12px; color: var(--ivory); font-family: var(--display); font-weight: 750; font-size: 1.4rem; letter-spacing: -0.04em; margin-bottom: 14px; }
.foot-brand svg { width: 30px; height: 30px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr; } }

/* Botón flotante de WhatsApp */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .45); transition: transform .3s var(--ease); }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }
[data-wa-hidden] { display: none !important; }

/* Aparición al hacer scroll */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* Páginas legales */
.legal { padding: 150px 0 110px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); margin-bottom: 18px; }
.legal h2 { font-size: 1.45rem; margin: 44px 0 12px; letter-spacing: -0.02em; }
.legal p, .legal li { color: var(--stone-2); font-size: 1.02rem; }
.legal p + p { margin-top: 14px; }
.legal ul { padding-left: 20px; display: grid; gap: 8px; }
.legal .meta { color: var(--stone); font-size: .95rem; }

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

@media (max-width: 700px) {
  .brand small { display: none; }
  .site-head .wrap { height: 64px; }
  .nav { gap: 12px; }
  .nav .btn { padding: 9px 14px; font-size: .82rem; white-space: nowrap; }
  .scroll-hint { display: none; }
  .chapter .ctas .btn { padding: 13px 20px; }
}
.chapter h1.long, .chapter h2.long { font-size: clamp(2rem, 4.3vw, 3.7rem); }
