/* TvaAgency · sistema visual
   Negro grafito + azul eléctrico (del hero). Inter con tamaño óptico.
   Pesos: 400 / 500 / 600. Escala: 12 · 14 · 16 · 18 · 20 · 24 · 32 · 44 · 64 · 80 */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/inter-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  color-scheme: dark;
  --bg: #050608;
  --bg-2: #0b0d12;
  --surface: #0f1218;
  --surface-2: #151922;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4f6fb;
  --text-2: #c9cfdc;
  --muted: #9aa3b5;
  --soft: #6e778a;
  --accent: #4d7cff;
  --accent-2: #9db7ff;
  --accent-deep: #2453f0;
  --accent-a10: rgba(77, 124, 255, 0.1);
  --accent-a18: rgba(77, 124, 255, 0.18);
  --accent-a40: rgba(77, 124, 255, 0.4);
  --ok: #34d399;
  --err: #fca5a5;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --w-regular: 400; --w-medium: 500; --w-semibold: 600;

  --t-meta: 0.75rem; --t-secondary: 0.875rem; --t-body: 1rem; --t-lead: 1.125rem;
  --t-h4: 1.25rem; --t-h3: 1.5rem; --t-h2: clamp(2rem, 1.4rem + 2.6vw, 2.75rem);
  --t-h1: clamp(2.75rem, 1.6rem + 5vw, 5rem);

  --radius: 20px; --radius-sm: 14px; --max: 1200px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: var(--t-body); line-height: 1.55; font-weight: var(--w-regular);
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: var(--w-semibold); text-wrap: balance; }
h2 { font-size: var(--t-h2); line-height: 1.12; letter-spacing: -0.025em; }
h3 { font-size: var(--t-h4); line-height: 1.25; letter-spacing: -0.01em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--accent-a40); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; font-weight: var(--w-medium); }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
@media (min-width: 768px) { .container { padding-left: 32px; padding-right: 32px; } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: var(--w-medium); font-size: var(--t-body); letter-spacing: -0.005em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); transition-duration: 100ms; }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 200ms var(--ease-out); }
.btn-primary { background: linear-gradient(180deg, #5b86ff, var(--accent-deep)); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 10px 30px -10px rgba(77,124,255,.7); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255,255,255,.03); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: var(--t-secondary); }
.btn-block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 14px 40px -10px rgba(77,124,255,.85); }
  .btn-ghost:hover { border-color: rgba(157,183,255,.5); background: rgba(77,124,255,.08); }
  .btn:hover svg { transform: translateX(2px); }
}

/* ---------- Cabecera (material translúcido) ---------- */
.header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background-color 250ms ease, border-color 250ms ease; }
.header.scrolled { background: rgba(5, 6, 8, .72); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: var(--w-semibold); font-size: var(--t-h4); letter-spacing: -0.02em; }
.logo img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 18px -4px rgba(77,124,255,.6); }
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; color: var(--text-2); font-size: var(--t-secondary); font-weight: var(--w-medium); transition: color 150ms ease, background-color 150ms ease; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.header-cta { display: none; }
.menu-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); display: grid; place-items: center; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: #fff; border-radius: 2px; position: relative; transition: background-color 150ms ease; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: #fff; border-radius: 2px; transition: transform 250ms var(--ease-out); }
.menu-btn span::before { transform: translateY(-6px); } .menu-btn span::after { transform: translateY(6px); }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: rotate(45deg); }
.menu-open .menu-btn span::after { transform: rotate(-45deg); }
.mobile-nav { position: fixed; inset: 72px 0 0; background: rgba(5,6,8,.96); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); padding: 8px max(20px, env(safe-area-inset-left)) 32px; z-index: 49; overflow-y: auto; opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden; transition: opacity 200ms var(--ease-out), transform 250ms var(--ease-out), visibility 0s linear 250ms; }
.menu-open .mobile-nav { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.mobile-nav ul { list-style: none; margin: 0 0 24px; padding: 0; }
.mobile-nav li a { display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--line); font-size: var(--t-h4); font-weight: var(--w-medium); letter-spacing: -0.01em; }
@media (min-width: 1024px) { .nav, .header-cta { display: flex; } .menu-btn, .mobile-nav { display: none !important; } }

/* ---------- Hero con imagen ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; margin-top: -72px; padding-top: 72px; }
.hero-media { position: relative; z-index: -1; }
.hero-media img { width: 100%; height: auto; aspect-ratio: 1672 / 941; object-fit: cover; object-position: 70% 50%; }
.hero-content { padding: 32px 0 24px; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: var(--t-secondary); font-weight: var(--w-medium); color: var(--text-2); }
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-a18), 0 0 12px var(--accent); }
.hero h1 { font-size: var(--t-h1); line-height: 1.04; letter-spacing: -0.04em; margin: 22px 0 20px; max-width: 12ch; }
.hero h1 .accent, .page-hero h1 .accent { background: linear-gradient(100deg, #c9d7ff 0%, var(--accent-2) 30%, var(--accent) 75%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: var(--t-lead); line-height: 1.55; color: var(--muted); max-width: 31rem; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.show-sm { display: none; }
@media (max-width: 479px) { .hide-sm { display: none; } .show-sm { display: inline; } }
.play { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; }
.play svg { width: 9px; height: 9px; }
@media (max-width: 1199px) {
  .hero-media { margin: 0 -20px; }
  .hero-media img { aspect-ratio: 4 / 3; object-position: 74% 45%; }
  .hero-content { padding-top: 8px; }
  .hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, transparent 25%, transparent 70%, var(--bg) 100%); }
}
@media (min-width: 1200px) {
  .hero { min-height: min(860px, 100svh); display: flex; flex-direction: column; justify-content: center; }
  .hero-media { position: absolute; inset: 0; z-index: -1; }
  .hero-media img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; object-position: 62% 50%; }
  .hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(5,6,8,.88) 32%, rgba(5,6,8,0) 58%), linear-gradient(0deg, var(--bg) 0%, rgba(5,6,8,0) 22%); }
  .hero-content { padding: 72px 0 56px; }
}
@media (min-width: 600px) and (max-width: 1199px) { .hero-media img { aspect-ratio: 12 / 5; object-position: 70% 45%; } }
@media (min-width: 1600px) { .hero-media img { object-position: 55% 50%; } }

.hero-services { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hero-services a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(15,18,24,.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: var(--t-secondary); font-weight: var(--w-medium); color: var(--text-2); line-height: 1.3; min-height: 56px; transition: border-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out); }
.hero-services a:active { transform: scale(0.98); }
.hero-services svg { width: 22px; height: 22px; color: var(--accent-2); flex: none; }
.hero-services li:last-child { grid-column: 1 / -1; }
@media (hover: hover) and (pointer: fine) { .hero-services a:hover { border-color: var(--accent-a40); color: #fff; } }
@media (min-width: 900px) { .hero-services { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 56px; } .hero-services li:last-child { grid-column: auto; } }

/* Entrada del hero: una sola secuencia, solo transform + opacity */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
.js .hero-content > * { animation: rise 700ms var(--ease-out) both; }
.js .hero-content > :nth-child(2) { animation-delay: 60ms; }
.js .hero-content > :nth-child(3) { animation-delay: 120ms; }
.js .hero-content > :nth-child(4) { animation-delay: 180ms; }
.js .hero-media img { animation: settle 1200ms var(--ease-out) both; }
.js .hero-services li { animation: rise 600ms var(--ease-out) both; animation-delay: calc(260ms + var(--i, 0) * 50ms); }

/* ---------- Secciones ---------- */
.section { padding: 88px 0; position: relative; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) { .section { padding: 120px 0; } }
.eyebrow { display: inline-block; color: var(--accent-2); font-weight: var(--w-medium); font-size: var(--t-meta); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.section-head { max-width: 46rem; margin-bottom: 48px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: var(--t-lead); margin: 0; max-width: 38rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center p { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.grid > * { min-width: 0; }
@media (min-width: 720px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card { background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)), var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; box-shadow: inset 0 1px 0 rgba(255,255,255,.05); transition: border-color 200ms ease, transform 200ms var(--ease-out); }
a.card:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) { a.card:hover { border-color: var(--accent-a40); transform: translateY(-2px); } }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: var(--t-body); }
.card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-a10); border: 1px solid var(--accent-a18); color: var(--accent-2); margin-bottom: 20px; }
.card .icon svg { width: 22px; height: 22px; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; color: var(--accent-2); font-weight: var(--w-medium); font-size: var(--t-secondary); }
.card .more svg { width: 16px; height: 16px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { a.card:hover .more svg { transform: translateX(3px); } }

.check { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.check li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--accent-a18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239db7ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* ---------- Precios ---------- */
.price-card { display: flex; flex-direction: column; }
.price-card .tag { font-size: var(--t-secondary); font-weight: var(--w-medium); color: var(--text-2); }
.price { display: flex; align-items: baseline; gap: 6px; margin: 16px 0 8px; font-variant-numeric: tabular-nums; }
.price small { color: var(--muted); font-size: var(--t-secondary); }
.price strong { font-size: 2.75rem; letter-spacing: -0.035em; font-weight: var(--w-semibold); line-height: 1; }
.price-card > p { font-size: var(--t-secondary); }
.price-card .check { margin: 24px 0 28px; font-size: var(--t-secondary); }
.price-card .btn { margin-top: auto; }
.price-card.featured { border-color: var(--accent-a40); background: radial-gradient(120% 60% at 50% 0%, rgba(77,124,255,.16), transparent 70%), var(--surface); }
.ribbon { position: absolute; top: -12px; left: 28px; background: var(--accent); color: #fff; font-size: var(--t-meta); font-weight: var(--w-semibold); padding: 4px 12px; border-radius: 999px; letter-spacing: .02em; }
.note { color: var(--soft); font-size: var(--t-secondary); margin-top: 24px; }

/* ---------- Proyectos ---------- */
.project { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 24px; overflow: hidden; box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.project > * { min-width: 0; }
.project + .project { margin-top: 20px; }
.project-shots { position: relative; padding-right: 16%; padding-bottom: 6%; }
.project-shots .desk { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; object-position: top; border-radius: 12px; border: 1px solid var(--line-2); box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); background: var(--surface-2); }
.project-shots .mob { position: absolute; right: 0; bottom: 0; width: 24%; height: auto; aspect-ratio: 9/19.5; object-fit: cover; object-position: top; border-radius: 18px; border: 4px solid #1c1f26; box-shadow: 0 24px 48px -12px rgba(0,0,0,.9); background: var(--surface-2); }
.project h3 { font-size: var(--t-h3); letter-spacing: -0.02em; margin: 8px 0 12px; }
.project .meta { color: var(--accent-2); font-size: var(--t-secondary); font-weight: var(--w-medium); }
.project p { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 24px; padding: 0; list-style: none; }
.chips li { font-size: var(--t-meta); font-weight: var(--w-medium); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); }
@media (min-width: 900px) { .project { grid-template-columns: 1.15fr 1fr; padding: 40px; gap: 56px; } .project.rev .project-shots { order: 2; } }

/* ---------- Pasos (secuencia real) ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(s, decimal-leading-zero); font-weight: var(--w-semibold); font-size: var(--t-secondary); font-variant-numeric: tabular-nums; color: var(--accent-2); width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--accent-a40); display: grid; place-items: center; }
.steps h3 { font-size: var(--t-body); margin: 2px 0 6px; }
.steps p { color: var(--muted); margin: 0; font-size: var(--t-secondary); }
@media (min-width: 1024px) { .steps.cols { grid-template-columns: repeat(5, minmax(0, 1fr)); } .steps.cols li { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Chat de ejemplo ---------- */
.chat { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 20px; display: grid; gap: 10px; max-width: 440px; margin: 0 auto; width: 100%; box-shadow: 0 40px 80px -40px rgba(77,124,255,.35), inset 0 1px 0 rgba(255,255,255,.05); }
.chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-weight: var(--w-semibold); font-size: var(--t-secondary); }
.chat-head .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-a18); color: var(--accent-2); display: grid; place-items: center; }
.chat-head .ic svg { width: 22px; }
.chat-head small { display: block; color: var(--ok); font-weight: var(--w-regular); font-size: var(--t-meta); }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 18px; font-size: var(--t-secondary); line-height: 1.45; }
.msg.bot { background: var(--surface-2); border-bottom-left-radius: 6px; color: var(--text-2); }
.msg.user { background: var(--accent-deep); color: #fff; margin-left: auto; border-bottom-right-radius: 6px; }
.chat .hint { color: var(--soft); font-size: var(--t-meta); text-align: center; margin: 4px 0 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 50rem; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color 200ms ease; }
.faq details[open] { border-color: var(--accent-a40); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: var(--w-medium); font-size: var(--t-body); min-height: 60px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239db7ff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform 250ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 22px 20px; color: var(--muted); }
.faq .answer p:last-child { margin: 0; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.contact-grid > * { min-width: 0; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 64px; } }
.contact-grid h2 { margin-bottom: 16px; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.contact-list a { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); min-height: 64px; transition: border-color 200ms ease, transform 160ms var(--ease-out); }
.contact-list a:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .contact-list a:hover { border-color: var(--accent-a40); } }
.contact-list .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-a10); color: var(--accent-2); flex: none; }
.contact-list .ic svg { width: 20px; height: 20px; }
.contact-list small { display: block; color: var(--muted); font-size: var(--t-meta); }
.contact-list strong { font-weight: var(--w-medium); word-break: break-word; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 24px; display: grid; gap: 18px; box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.form .row { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .form { padding: 36px; } .form .row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; min-width: 0; }
.field label, .field legend { font-weight: var(--w-medium); font-size: var(--t-secondary); }
.field label span, .field legend span { color: var(--soft); font-weight: var(--w-regular); }
.field input, .field textarea { width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px; min-height: 52px; font-size: var(--t-body); transition: border-color 150ms ease, box-shadow 150ms ease; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-a18); }
.field [aria-invalid="true"] { border-color: #f87171; }
.field .err { color: var(--err); font-size: var(--t-secondary); }
.field .err:empty { display: none; }
.field .hint { color: var(--soft); font-size: var(--t-meta); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { cursor: pointer; position: relative; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: var(--t-secondary); font-weight: var(--w-medium); color: var(--text-2); transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 120ms var(--ease-out); }
.pills label:active span { transform: scale(0.97); }
.pills input:checked + span { background: var(--accent-a18); border-color: var(--accent); color: #fff; }
.pills input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: var(--t-secondary); color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); flex: none; }
.consent a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.form-status { border-radius: 12px; padding: 14px 16px; font-size: var(--t-secondary); display: none; }
.form-status.ok { display: block; background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.4); color: #d1fae5; }
.form-status.ko { display: block; background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.4); color: #fecaca; }
.form-status a { text-decoration: underline; font-weight: var(--w-medium); }
.btn[disabled] { opacity: .7; cursor: progress; }

/* ---------- CTA final ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; background: var(--surface); border: 1px solid var(--line-2); border-radius: 32px; padding: 48px 24px; text-align: center; }
.cta-band::before { content: ""; position: absolute; z-index: -1; left: 50%; bottom: -60%; width: 140%; aspect-ratio: 2 / 1; transform: translateX(-50%); border-radius: 50%; border-top: 1.5px solid rgba(77,124,255,.8); background: radial-gradient(60% 50% at 50% 0%, rgba(77,124,255,.22), transparent 70%); filter: drop-shadow(0 -6px 18px rgba(77,124,255,.6)); }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { color: var(--muted); max-width: 34rem; margin: 0 auto 28px; font-size: var(--t-lead); }
.cta-band .hero-actions { justify-content: center; }
@media (min-width: 720px) { .cta-band { padding: 72px 48px 88px; } }

/* ---------- Pie ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 32px; color: var(--muted); font-size: var(--t-secondary); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer h4 { color: var(--text); font-size: var(--t-secondary); font-weight: var(--w-semibold); margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.footer ul a { display: inline-flex; min-height: 36px; align-items: center; transition: color 150ms ease; }
.footer a:hover { color: var(--text); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: var(--t-meta); }

/* ---------- WhatsApp flotante ---------- */
.wa { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px -6px rgba(37,211,102,.55); transition: transform 160ms var(--ease-out); }
.wa:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .wa:hover { transform: scale(1.05); } }
.wa svg { width: 30px; height: 30px; }

/* ---------- Páginas interiores ---------- */
.page-hero { padding: 56px 0 72px; position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; z-index: -1; right: -30%; top: -10%; width: 90vw; max-width: 1100px; aspect-ratio: 1; border-radius: 50%; border-left: 1.5px solid rgba(77,124,255,.55); background: radial-gradient(closest-side, rgba(77,124,255,.14), transparent 70%); filter: drop-shadow(-4px 0 14px rgba(77,124,255,.45)); }
.page-hero h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4rem); line-height: 1.06; letter-spacing: -0.035em; margin: 20px 0 20px; max-width: 18ch; }
.page-hero .lead { color: var(--muted); font-size: var(--t-lead); max-width: 40rem; margin-bottom: 28px; }
.crumbs { font-size: var(--t-secondary); color: var(--soft); }
.crumbs a { transition: color 150ms ease; } .crumbs a:hover { color: var(--text); }
.price-pill { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); margin-bottom: 28px; font-variant-numeric: tabular-nums; }
.price-pill strong { font-size: var(--t-h3); font-weight: var(--w-semibold); color: var(--accent-2); letter-spacing: -0.02em; }
.price-pill small { color: var(--muted); font-size: var(--t-secondary); }
.prose { max-width: 42rem; }
.prose h2 { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2rem); margin: 48px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--t-h4); margin: 32px 0 10px; }
.prose p, .prose li { color: var(--text-2); }
.prose li { margin-bottom: 6px; }
.prose ul { padding-left: 20px; }
.prose a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--text); font-weight: var(--w-semibold); }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
.split > * { min-width: 0; }
@media (min-width: 1024px) { .split { grid-template-columns: 1.2fr .8fr; gap: 72px; } .sticky { position: sticky; top: 100px; } }

/* ---------- Aparición al hacer scroll (visible si no hay JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero-content > *, .js .hero-media img, .js .hero-services li { animation: fadeonly 300ms ease both; }
  .js .reveal { transform: none; transition: opacity 300ms ease; }
  .btn:active, a.card:active, .wa:active, .contact-list a:active { transform: none; }
}
@keyframes fadeonly { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-transparency: reduce) {
  .header.scrolled, .mobile-nav, .hero-services a, .badge { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg-2); }
}
.price-card .monthly { margin: 0 0 12px; font-size: var(--t-secondary); font-weight: var(--w-medium); color: var(--accent-2); font-variant-numeric: tabular-nums; }
.price-card .fine { margin: 12px 0 0; font-size: var(--t-meta); line-height: 1.4; color: var(--soft); text-align: center; }
.price-pill .pill-month { color: var(--text-2); font-weight: var(--w-medium); }
.sticky .fine { margin: 12px 0 0; font-size: var(--t-meta); line-height: 1.4; color: var(--soft); }

/* SEO: H1 con kicker local */
.hero h1 { max-width: none; margin: 0 0 20px; }
.hero h1 .badge { display: flex; width: fit-content; max-width: 100%; letter-spacing: normal; line-height: 1.4; margin-bottom: 22px; }
.hero h1 .h1-main { display: block; max-width: 12ch; }
.inline-link { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; }

/* Blog */
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--soft); font-size: var(--t-secondary); }
.post-card { display: flex; flex-direction: column; }
.post-card .post-meta { margin-bottom: 12px; }
.post-card h3 { margin-bottom: 10px; }
.post-card p { flex: 1; }
.post-body { margin: 0 auto; }
.post-body .lead-p { font-size: var(--t-lead); color: var(--text); }
.prose ol { padding-left: 20px; }
.prose ol li { margin-bottom: 8px; }
.prose .table-wrap { overflow-x: auto; margin: 20px 0; border: 1px solid var(--line); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.prose th { color: var(--text); font-weight: var(--w-semibold); background: var(--surface); }
.prose tr:last-child td { border-bottom: 0; }
.callout { margin: 32px 0; padding: 20px 22px; border: 1px solid var(--line-2); border-left: 3px solid var(--accent); border-radius: 12px; background: var(--surface); }
.callout p { margin: 0; }
.related { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.related h2 { font-size: var(--t-h4); margin: 0 0 12px; }
.areas { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0 !important; }
.areas li { padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; color: var(--text-2); margin: 0 !important; }
