/* Dos Players v2-casos. Se carga después de v2.css y la completa o ajusta.
   Tokens según docs/TOKENS-Y-DEFINICIONES.md. Contraste AAA en texto. */
:root {
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.5rem, 3vw, 2.3rem);
  --fs-2xl: clamp(2rem, 4.4vw, 3.6rem);
  --fs-display: clamp(2.75rem, 8vw, 7rem);
  --svc-video: #ffc83d;
  --svc-blindaje: #6fa0ff;
  --dur-fast: 150ms;
  --dur-mid: 300ms;
  --dur-scene: 600ms;
}

/* ---------- Base ---------- */
h1 { font-family: var(--serif); font-weight: 400; font-size: var(--fs-2xl); line-height: 1.05; letter-spacing: -0.02em; max-width: 20ch; }
h1 em, h2 em { font-style: italic; color: var(--accent-light); }
.sec { min-height: auto; position: relative; padding: clamp(4rem, 9vw, 8rem) var(--pad); }
.sec-tight { padding-top: 0; }
.col.wide { max-width: 100%; }
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .reveal { transform: translateY(16px); }
  .reveal.in { transform: none; }
}

/* ---------- Placeholders de assets ---------- */
.ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.35rem;
  width: 100%; height: 100%; min-height: 6rem; padding: 1rem; text-align: center;
  background: repeating-linear-gradient(135deg, rgba(250, 250, 248, 0.06) 0 12px, transparent 12px 24px), #1a1a1a;
  border: 2px dashed rgba(184, 144, 247, 0.6);
  color: var(--accent-light); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  font-size: clamp(0.7rem, 1.4vw, 0.95rem);
}
.ph small { font-size: 0.7em; letter-spacing: 0.06em; color: var(--gray-400); text-transform: none; font-weight: 400; }

/* ---------- Hero ---------- */
.sec.hero.hero2 {
  min-height: auto; align-items: flex-start; overflow: hidden;
  padding-top: clamp(7rem, 12vw, 9.5rem); padding-bottom: clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(1100px 560px at 88% -8%, rgba(107, 47, 238, 0.38), transparent 62%),
    radial-gradient(760px 480px at -8% 42%, rgba(184, 144, 247, 0.12), transparent 62%);
}
.hero2::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity var(--dur-scene) var(--ease);
  background: radial-gradient(420px circle at var(--mx, 70%) var(--my, 30%), rgba(107, 47, 238, 0.3), transparent 62%);
}
.hero2.has-halo::before { opacity: 1; }
.hero2 .sec-in { position: relative; z-index: 1; }
.hero2 h1 { font-size: var(--fs-display); line-height: 0.96; letter-spacing: -0.025em; max-width: 13ch; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero2 .lead { margin-top: 0; max-width: 30ch; font-size: var(--fs-lg); }
.proof-link { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; margin-top: 0.6rem; color: var(--accent-light); font-weight: 500; }
.proof-link:hover { color: var(--ink); }
@media (max-width: 900px) {
  .sec.hero.hero2 { min-height: auto; align-items: flex-start; padding-bottom: 3rem; }
  .hero-grid { grid-template-columns: 1fr; }
}

.sec.hero.hero-s {
  min-height: auto; align-items: flex-start;
  padding-top: clamp(7.5rem, 12vw, 10rem); padding-bottom: clamp(2rem, 5vw, 4rem);
}
.hero-s h1 { font-size: clamp(2.4rem, 6vw, 5rem); max-width: 16ch; line-height: 1; }
.hero-s2 h1 { font-size: clamp(2.75rem, 7vw, 6rem); max-width: 11ch; line-height: 0.98; letter-spacing: -0.025em; }
.hero-s .lead { max-width: 40ch; }
.case-tag { display: inline-block; border: 1px solid var(--line); border-radius: 2rem; padding: 0.3rem 0.8rem; font-size: var(--fs-xs); letter-spacing: 0.1em; color: var(--accent-light); }

/* ---------- Marco de navegador y comparador ---------- */
.bframe { margin: 0; border: 1px solid var(--line); border-radius: 0.75rem; overflow: hidden; background: #0a0a0a; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(184, 144, 247, 0.08); }
.bframe-bar { display: flex; align-items: center; gap: 0.4rem; height: 2rem; padding: 0 0.8rem; background: #1a1a1a; border-bottom: 1px solid var(--line); }
.bframe-bar i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: rgba(250, 250, 248, 0.22); }
.bframe-bar span { margin-left: 0.6rem; padding: 0.15rem 0.8rem; border-radius: 2rem; background: rgba(250, 250, 248, 0.06); font-size: 0.72rem; color: var(--gray-400); }
.cmp-big { max-width: 1100px; margin: 0 auto; }
.cmp figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.3rem 1rem; padding: 0.7rem 0.9rem; border-top: 1px solid var(--line); background: #111; font-size: var(--fs-sm); }
.cmp figcaption small { color: var(--gray-400); }
.cmp-stage { position: relative; aspect-ratio: 1366 / 768; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.cmp-layer { position: absolute; inset: 0; }
.cmp-layer > img, .cmp-layer > .ph { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cmp-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp-before .ph { background-color: #262626; border-color: rgba(250, 250, 248, 0.4); color: var(--gray-400); }
.cmp-after .ph { background-color: #1f1540; }
.cmp-chip { position: absolute; top: 0.7rem; z-index: 2; padding: 0.25rem 0.65rem; border-radius: 2rem; border: 1px solid var(--line); background: rgba(13, 13, 13, 0.82); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }
.cmp-chip-b { left: 0.7rem; }
.cmp-chip-a { right: 0.7rem; color: var(--accent-light); }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--ink); transform: translateX(-1px); pointer-events: none; z-index: 3; }
.cmp-handle span { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-dark); border: 2px solid var(--ink); transform: translate(-50%, -50%); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5); }
.cmp-handle span::before { content: '\25C0  \25B6'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 0.55rem; letter-spacing: 0.15rem; color: var(--ink); white-space: pre; }
.cmp-range { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; -webkit-appearance: none; appearance: none; }
.cmp-stage:has(.cmp-range:focus-visible) .cmp-handle span { outline: 3px solid var(--accent-light); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .cmp-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; aspect-ratio: auto; touch-action: auto; }
  .cmp-layer { position: relative; inset: auto; aspect-ratio: 1366 / 768; }
  .cmp-before { clip-path: none; }
  .cmp-handle, .cmp-range { display: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 600px) { .cmp-stage { grid-template-columns: 1fr; } }

/* ---------- Proyectos ---------- */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.pgrid-2 { grid-template-columns: repeat(2, 1fr); }
.pc { display: flex; flex-direction: column; gap: 1rem; }
.pc-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 0.75rem; border: 1px solid var(--line); background: #111; }
.pc-media > video, .pc-media > img, .pc-media > .ph { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
a.pc:hover .pc-media > * { transform: scale(1.04); }
.pc-body h3 { margin-top: 0.35rem; font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.1; }
.pc-body p { margin-top: 0.4rem; color: rgba(250, 250, 248, 0.78); }
.pc-cta { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; margin-top: 0.4rem; color: var(--accent-light); font-weight: 500; }
@media (max-width: 900px) { .pgrid, .pgrid-2 { grid-template-columns: 1fr; } }

.kio-thumb { display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(circle at 50% 0%, #2a1560, #12062a); }
.kio-thumb-img { height: 88%; width: auto; aspect-ratio: 9 / 16; border: 5px solid #1a1a1a; border-radius: 0.8rem; background: #fff; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); }

/* ---------- Servicios ---------- */
.sgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.svc { --svc: var(--accent-light); position: relative; display: flex; flex-direction: column; gap: 0.6rem; min-height: 13rem; padding: clamp(1.5rem, 3vw, 2.5rem); overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: rgba(250, 250, 248, 0.03); transition: border-color var(--dur-mid) var(--ease), transform var(--dur-mid) var(--ease); }
.svc-video { --svc: var(--svc-video); }
.svc-blindaje { --svc: var(--svc-blindaje); }
.svc-main { grid-row: span 2; background: linear-gradient(160deg, rgba(107, 47, 238, 0.38), rgba(18, 6, 42, 0.5)); border-color: rgba(184, 144, 247, 0.45); }
.svc:hover { border-color: var(--svc); transform: translateY(-3px); }
.svc-n { font-size: var(--fs-sm); letter-spacing: 0.1em; color: var(--svc); }
.svc h3 { font-family: var(--serif); font-weight: 400; font-size: var(--fs-xl); line-height: 1.05; }
.svc-main h3 { font-size: var(--fs-2xl); }
.svc p { max-width: 28ch; color: rgba(250, 250, 248, 0.82); }
.svc-cta { margin-top: auto; padding-top: 1rem; color: var(--svc); font-weight: 500; }
@media (max-width: 900px) { .sgrid { grid-template-columns: 1fr; } .svc-main { grid-row: auto; } }

/* ---------- Fundadores (home) ---------- */
.fnd { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.fnd-photo { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 0.75rem; }
.fnd-photo img { display: block; width: 100%; height: auto; }
.founders { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2rem; }
.founder { flex: 1 1 14rem; max-width: 22rem; }
.founder b { display: block; font-weight: 500; }
.founder span { display: block; font-size: var(--fs-sm); color: var(--accent-light); }
.founder small { display: block; margin-top: 0.4rem; font-size: var(--fs-sm); line-height: 1.4; color: var(--gray-400); }
@media (max-width: 900px) { .fnd { grid-template-columns: 1fr; } }

/* ---------- Casos: bloques de texto ---------- */
.cblock + .cblock { margin-top: clamp(2.5rem, 5vw, 4rem); }
.cblock + .actions, .cblock + .quote { margin-top: 2rem; }

/* ---------- Páginas de servicio ---------- */
.list-2 { max-width: 820px; }
.faqs { margin-top: 2rem; border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 1rem; min-height: 44px; padding: 1.2rem 0; list-style: none; cursor: pointer; font-size: var(--fs-md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--accent-light); transition: transform var(--dur-mid) var(--ease); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { max-width: 56ch; padding: 0 0 1.4rem; color: rgba(250, 250, 248, 0.82); }
.close-sec { padding-bottom: clamp(5rem, 10vw, 9rem); }
.close-sec h2 { font-size: var(--fs-2xl); }

/* Blindaje IA: visual abstracto de capas, accesos y trazabilidad */
.art-sec { padding-top: 0; padding-bottom: 0; }
.art { display: block; width: min(100%, 560px); height: auto; }
.art-l rect { fill: rgba(111, 160, 255, 0.08); stroke: #6fa0ff; stroke-width: 1.5; }
.art-l text { fill: #fafaf8; font: 500 22px var(--sans); }
.art-l circle { fill: #6fa0ff; }
.art-trace { fill: none; stroke: #6fa0ff; stroke-width: 2; stroke-dasharray: 6 8; animation: art-dash 2.4s linear infinite; }
.art-cap { fill: #bdb9c4; font: 400 14px var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }
@keyframes art-dash { to { stroke-dashoffset: -56; } }
@media (prefers-reduced-motion: reduce) { .art-trace { animation: none; } }

/* ---------- Casos ---------- */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 2rem; }
.shot:first-child { grid-column: span 2; }
.shot-in { aspect-ratio: 1366 / 768; }
.shot-in > img, .shot-in > .ph { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.sub { margin: 3rem 0 1.5rem; font-family: var(--serif); font-weight: 400; font-size: var(--fs-xl); }
.phones { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.pframe { width: min(220px, 44vw); aspect-ratio: 402 / 875; margin: 0; overflow: hidden; border: 6px solid #1a1a1a; border-radius: 1.6rem; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }
.pframe > img, .pframe > .ph { width: 100%; height: 100%; object-fit: cover; object-position: top; padding: 0.4rem; font-size: 0.6rem; }
.pframe .ph small { display: none; }
.quote { margin-top: 2rem; padding-left: 1.2rem; border-left: 2px solid var(--accent-light); }
.quote p { font-family: var(--serif); font-size: var(--fs-lg); }
.quote cite { display: block; margin-top: 0.6rem; font-style: normal; font-size: var(--fs-sm); color: var(--gray-400); }
@media (max-width: 700px) { .shots { grid-template-columns: 1fr; } .shot:first-child { grid-column: auto; } }

/* ---------- Demo del kiosco (concepto): pantallas reales con zonas clicables ---------- */
.demo-wrap { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.notice { max-width: 56ch; text-align: center; font-size: var(--fs-sm); color: var(--gray-400); }
.kio { display: flex; flex-direction: column; align-items: center; gap: 1rem; width: 100%; }
.kio-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.kio-chip { min-height: 44px; padding: 0 1.1rem; border: 1px solid var(--line); border-radius: 2rem; color: var(--ink); font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease); }
.kio-chip:hover { border-color: var(--accent-light); color: var(--accent-light); }
.kio-chip-quiet { border-color: transparent; color: var(--gray-400); }
.kio-device { width: min(100%, 420px, calc((100svh - 15rem) * 0.5625 + 28px)); min-width: min(100%, 300px); padding: 14px; border: 1px solid var(--line); border-radius: 1.8rem; background: #141414; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(184, 144, 247, 0.1), 0 0 80px rgba(107, 47, 238, 0.25); }
.kio-screen { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 1rem; background: #0f5c66; }
.kio-s { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; pointer-events: none; outline: none; transition: opacity 0.22s var(--ease), visibility 0s linear 0.22s; }
.kio-s.is-active { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.22s var(--ease); }
.kio-s[data-modal] { z-index: 3; background: rgba(8, 24, 28, 0.62); }
.kio-s[data-modal] .kio-fr { width: var(--fw); height: auto; }
.kio-fr { position: relative; width: 100%; height: 100%; }
.kio-fr > img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.kio-s[data-modal] .kio-fr > img { height: auto; border-radius: 1.2rem; }
.kio-z { position: absolute; min-width: 44px; min-height: 44px; border-radius: 0.6rem; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background 0.2s var(--ease); }
.kio-z:hover { background: rgba(15, 92, 102, 0.1); }
.kio-z:active { background: rgba(15, 92, 102, 0.22); }
.kio :focus-visible { outline: 3px solid #e3d3ae; outline-offset: 2px; box-shadow: 0 0 0 5px #0a2e34; }
.kio-z.is-hint::after, .kio-pulse.is-hint { content: ''; position: absolute; inset: -3px; border: 3px solid #e3d3ae; border-radius: 0.8rem; pointer-events: none; animation: kio-pulse 1.8s ease-out infinite; }
.kio-pulse { position: absolute; display: block; pointer-events: none; }
.kio-pulse.is-hint { inset: auto; }
@keyframes kio-pulse { 0% { box-shadow: 0 0 0 0 rgba(227, 211, 174, 0.65); } 70%, 100% { box-shadow: 0 0 0 16px rgba(227, 211, 174, 0); } }
.kio-ghost { position: absolute; z-index: 4; left: var(--gx, 50%); top: var(--gy, 85%); width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 2px solid #fafaf8; background: rgba(250, 250, 248, 0.35); box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4); opacity: 0; pointer-events: none; }
.kio-ghost.is-on { animation: kio-tap 3.2s var(--ease) 0.6s 3 both; }
@keyframes kio-tap { 0% { opacity: 0; transform: translate(60px, 90px) scale(1); } 20% { opacity: 1; transform: translate(60px, 90px) scale(1); } 50% { opacity: 1; transform: translate(0, 0) scale(1); } 62% { opacity: 1; transform: translate(0, 0) scale(0.78); } 75% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(0, 0) scale(1); } }
.kio-load { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: rgba(8, 24, 28, 0.55); }
.kio-load[hidden] { display: none; }
.kio-load i { width: 54px; height: 54px; border: 5px solid rgba(250, 250, 248, 0.3); border-top-color: #e3d3ae; border-radius: 50%; animation: kio-spin 0.8s linear infinite; }
@keyframes kio-spin { to { transform: rotate(360deg); } }
.kio-toast { position: absolute; z-index: 6; left: 8%; right: 8%; bottom: 10%; padding: 0.7rem 1rem; border-radius: 0.8rem; background: #0a2e34; color: #fafaf8; font-size: 0.85rem; text-align: center; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45); }
.kio-toast[hidden] { display: none; }
.kio-cap { font-size: var(--fs-sm); color: var(--gray-400); }
.kio-cap b { font-weight: 500; color: var(--ink); }
.kio-tip { max-width: 40ch; text-align: center; font-size: var(--fs-sm); color: var(--gray-400); }
@media (prefers-reduced-motion: reduce) {
  .kio-s, .kio-s.is-active, .kio-z, .kio-chip { transition: none; }
  .kio-z.is-hint::after, .kio-pulse.is-hint { animation: none; box-shadow: 0 0 0 6px rgba(227, 211, 174, 0.35); }
  .kio-load i { animation-duration: 2.4s; }
  .kio-ghost { display: none; }
}
@media (max-width: 640px) {
  .kio-device { width: 100%; min-width: 0; padding: 8px; border-radius: 1.4rem; }
  .kio-screen { border-radius: 0.9rem; }
}

/* ---------- Héroes de servicio: titular grande y visual a la derecha ---------- */
.hero-s2-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero-s2.no-visual .hero-s2-grid { grid-template-columns: 1fr; }
.hero-s2 .lead { margin-top: 1.5rem; }
.hero-s2 .actions { margin-top: 2rem; }
.hero-visual { min-width: 0; }
@media (max-width: 900px) { .hero-s2-grid { grid-template-columns: 1fr; } .hero-s2 h1 { max-width: 14ch; } }

.hv-stack { position: relative; display: block; padding-bottom: 3.2rem; color: inherit; text-decoration: none; }
.hv-shot { aspect-ratio: 16 / 10; overflow: hidden; }
.hv-shot > img, .hv-shot > .ph { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hv-float { position: absolute; left: -6%; bottom: 0.2rem; width: 46%; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); border-radius: 0.6rem; overflow: hidden; border: 1px solid var(--line); }
.hv-float .kio-thumb { aspect-ratio: 4 / 3; }
.hv-cap { position: absolute; right: 0; bottom: 0.4rem; font-size: var(--fs-sm); color: var(--accent-light); }
.hv-stack:hover .hv-cap, .hv-stack:focus-visible .hv-cap { text-decoration: underline; }
@media (max-width: 900px) { .hv-float { left: 0; } }

.hv-video { margin: 0; }
.hv-vid { aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line); border-radius: 0.75rem; background: #0a0a0a; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 200, 61, 0.18); }
.hv-vid video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hv-video figcaption { margin-top: 0.8rem; font-size: var(--fs-sm); color: var(--svc-video); }

.hero-visual .art { width: 100%; max-width: 520px; margin-inline: auto; }

/* Blindaje: qué recibes */
.receive { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; padding: 0; counter-reset: none; }
.receive li { padding: 1.5rem; border: 1px solid var(--line); border-radius: 0.9rem; background: rgba(111, 160, 255, 0.05); }
.receive-n { display: block; margin-bottom: 1.2rem; font-family: var(--serif); font-size: 2rem; color: var(--svc-blindaje); }
.receive b { display: block; font-weight: 500; font-size: var(--fs-lg); }
.receive p { margin-top: 0.6rem; color: rgba(250, 250, 248, 0.82); max-width: 32ch; }
@media (max-width: 900px) { .receive { grid-template-columns: 1fr; } .receive p { max-width: none; } }

/* Formulario: detalles opcionales colapsados */
.form-more { border-top: 1px solid var(--line); padding-top: 0.2rem; }
.form-more summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.8rem; min-height: 44px; padding: 0.7rem 0; list-style: none; cursor: pointer; color: var(--accent-light); }
.form-more summary::-webkit-details-marker { display: none; }
.form-more summary::before { content: '+'; font-size: 1.2rem; line-height: 1; transition: transform var(--dur-mid) var(--ease); }
.form-more[open] summary::before { transform: rotate(45deg); }
.form-more summary small { color: var(--gray-400); font-size: var(--fs-xs); }
.form-more-in { display: grid; gap: 1rem; padding-bottom: 0.5rem; }

/* Página de contacto */
.contact-page { padding-top: clamp(7.5rem, 12vw, 10rem); }
.contact-page h1 { font-size: clamp(2.75rem, 6vw, 5.5rem); max-width: 12ch; line-height: 0.98; letter-spacing: -0.025em; }
.contact-page .lead { margin-top: 1.5rem; max-width: 30ch; }

/* Video IA: tarjetas con Vimeo y modal */
button.pc { appearance: none; background: none; border: 0; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
button.pc:hover .pc-media > .ph, button.pc:hover .pc-media > img { transform: scale(1.04); }
button.pc:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 4px; border-radius: 0.75rem; }
.pc-play { position: absolute; inset: 0; margin: auto; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(13, 13, 13, 0.6); border: 1px solid rgba(250, 250, 248, 0.5); transition: background 0.3s var(--ease), transform 0.3s var(--ease); }
/* Mismo triángulo de la v1: path M8 5v14l11-7z, relleno blanco, desplazado 4px para centrarlo ópticamente */
.pc-play svg { width: 26px; height: 26px; fill: #fff; margin-left: 4px; }
button.pc:hover .pc-play { background: var(--accent); transform: scale(1.08); }
.vm { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: #05020e; color: var(--white); overflow: hidden; }
.vm[open] { display: flex; }
.vm::backdrop { background: #05020e; }
.vm-box { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; height: 100%; padding: 3.5rem 1rem 0.75rem; }
/* El video ocupa el mayor 16:9 que cabe en la pantalla y queda centrado */
.vm-stage { position: relative; flex: none; aspect-ratio: 16 / 9; width: min(100%, calc((100dvh - 7.5rem) * 16 / 9)); background: #000; border-radius: 0.5rem; overflow: hidden; }
.vm-stage iframe, .vm-stage video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; object-fit: contain; }
.vm-x { position: absolute; top: max(0.75rem, env(safe-area-inset-top)); right: max(0.75rem, env(safe-area-inset-right)); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(13, 13, 13, 0.8); color: var(--white); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.vm-x:hover { background: var(--accent); }
.vm-x:focus-visible, .vm-foot a:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; }
.vm-foot { display: flex; flex-wrap: wrap; gap: 0 1.25rem; align-items: center; justify-content: center; min-height: 44px; font-size: 0.875rem; color: rgba(250, 250, 248, 0.78); text-align: center; }
.vm-foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-light); font-weight: 500; }
.vm-foot[hidden] { display: none; }
/* Teléfono horizontal: sin márgenes ni pie, el video usa toda la altura */
@media (max-height: 480px) { .vm-box { padding: 0.25rem; } .vm-stage { width: min(100%, calc((100dvh - 0.5rem) * 16 / 9)); } .vm-foot { display: none; } .vm-x { background: rgba(13, 13, 13, 0.55); } }

/* Logo de cliente: negativo sobre fondo oscuro, positivo solo sobre superficie clara (chip de la barra del navegador) */
.h1-logo { line-height: 1; }
.h1-logo img { display: block; height: clamp(3rem, 7vw, 4.5rem); width: auto; }
.bframe-bar span.url { display: inline-flex; align-items: center; height: 1.35rem; padding: 0 0.7rem; background: #fafaf8; }
.bframe-bar span.url img { display: block; height: 13px; width: auto; }

/* Caso M&M: barra con dominio en texto y vista principal */
.bframe-bar span.url-t { color: #5a5852; font-size: 0.72rem; }
.mm-hero { margin: 0; }
.mm-credit { margin-top: 0.8rem; font-size: var(--fs-sm); color: var(--gray-400); }
.mm-hero .shot:first-child { grid-column: auto; }

/* ---------- Pasada UX 2026-11-17 · paso 2: hero above the fold (1366x768) ---------- */
/* Regla: CTA del hero dentro de 768 px de alto; H1 y lead de hero en 2 líneas como máximo. */
#nav { padding-inline: max(var(--pad), calc((100% - 1280px) / 2)); }
.sec.hero.hero2 { padding-top: clamp(6rem, 9vw, 7rem); padding-bottom: clamp(2.5rem, 4vw, 4rem); }
.hero2 h1 { font-size: clamp(2.5rem, 6.2vw, 5.5rem); max-width: 22ch; margin-bottom: clamp(1.25rem, 2.5vw, 2rem); }
.hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); align-items: start; }
.hero2 .lead, .hero-s .lead, .contact-page .lead { max-width: 56ch; }
.sec.hero.hero-s { padding-top: clamp(6rem, 9vw, 7rem); }
.hero-s2 h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); max-width: none; }
.contact-page { padding-top: clamp(6rem, 9vw, 7rem); }
.contact-page h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); max-width: 16ch; }
.contact-form { gap: 0.75rem; padding: clamp(1.25rem, 2vw, 1.5rem); }
.form-field textarea { min-height: 80px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Pasada UX · paso 3: ritmo vertical y grillas ---------- */
.sec { padding-block: clamp(3.5rem, 7vw, 6rem); }
.close-sec { padding-bottom: clamp(4rem, 8vw, 7rem); }
#que .col.wide, #preguntas .col, #mas .col.more { max-width: none; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(2rem, 5vw, 5rem); align-items: start; }
#que h2, #preguntas h2 { grid-column: 1; }
#que .list, #preguntas .faqs { grid-column: 2; grid-row: 1; margin-top: 0.4rem; max-width: none; }
#preguntas .faqs { border-top: 1px solid var(--line); }
#mas .body { margin-top: 0; max-width: 56ch; }
#mas .chips { margin-top: 1.5rem; }
@media (max-width: 900px) {
  #que .col.wide, #preguntas .col, #mas .col.more { display: block; }
  #mas .chips { margin-top: 1.5rem; }
}

/* ---------- Pasada UX · paso 4: tarjetas ---------- */
.pgrid { row-gap: 3.5rem; }
.pc-media { aspect-ratio: 16 / 9; }
.pc-media > img { object-position: top; }
a.pc { height: 100%; }
a.pc .pc-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
a.pc .pc-cta { margin-top: auto; padding-top: 0.4rem; }
.pc-media .kio-thumb { align-items: start; padding-top: 6%; }
.pc-media .kio-thumb-img { height: auto; width: 52%; border-bottom: 0; border-radius: 0.8rem 0.8rem 0 0; }
.svc { min-height: 11rem; }
.fnd { gap: clamp(1.5rem, 3.5vw, 3rem); }
.fnd-copy h2 { font-size: var(--fs-xl); max-width: none; }
.founder b { font-size: var(--fs-md); }
.founder small { font-size: var(--fs-base); line-height: 1.45; }
.svc-art { flex: 1; min-height: 8rem; margin-top: 1rem; overflow: hidden; border-radius: 0.6rem 0.6rem 0 0; -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent); }
.svc-art img { width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0.92; }
@media (max-width: 900px) { .svc-art { display: none; } }

/* ---------- Pasada UX · paso 5: nav, blindaje, contacto, menores ---------- */
.receive li { border-top: 2px solid var(--svc-blindaje); }
.form-field input, .form-field select, .form-field textarea { border-color: rgba(250, 250, 248, 0.34); }
.wa-ico { margin-right: 0.5rem; vertical-align: -3px; }
footer { padding-bottom: 5rem; }
.tag { font-size: 0.75rem; }
.close-sec .col { max-width: 820px; }
.close-sec h2 { max-width: 20ch; }

/* Home: tarjeta de proyecto impar centrada; arte en las tarjetas de servicio 02 y 03 */
#proyectos .pgrid-2 > .pc:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 0.75rem); }
.svc:not(.svc-main) .svc-art { min-height: 5.5rem; margin-top: 0.75rem; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.svc-video .svc-art img { object-position: center 40%; opacity: 0.85; }
.svc-shield svg, .svc-art-shield svg { width: 100%; height: 100%; }
.svc-art-shield { display: flex; align-items: center; }
.svc-art-shield rect { fill: rgba(111, 160, 255, 0.08); stroke: rgba(111, 160, 255, 0.45); }
.svc-art-shield path { stroke: #6FA0FF; stroke-width: 1.5; fill: none; }
.svc-art-shield .dots circle { fill: #6FA0FF; }
@media (max-width: 900px) { #proyectos .pgrid-2 > .pc:last-child:nth-child(odd) { width: auto; } }
.svc-art { position: relative; }
.svc-art img { position: absolute; inset: 0; }
.svc-main .svc-art { min-height: 12rem; }
.svc:not(.svc-main) .svc-art { flex: none; height: 8.5rem; min-height: 0; }
.svc-art-shield svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.svc-main .svc-art img { object-position: left top; }

/* Copy: credencial bajo el CTA del hero y nota del formulario */
.hero-cred { margin-top: 1rem; font-size: var(--fs-sm); color: #bdb9c4; max-width: 60ch; }
.form-note { margin-top: 0.6rem; font-size: var(--fs-sm); color: #bdb9c4; }

/* Cierre de servicio y caso centrado; bloque de reunión en Contacto */
.close-sec .col { margin-inline: auto; text-align: center; }
.close-sec h2 { margin-inline: auto; }
.close-sec .actions { justify-content: center; }
.meet { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); max-width: 26rem; }
.meet-t { font-family: var(--sans); font-size: var(--fs-sm); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-light); }
.meet p { margin-top: 0.6rem; color: #e8e6e1; }
.meet address { margin-top: 0.4rem; font-style: normal; color: var(--ink); }
.meet-link { display: inline-block; margin-top: 0.6rem; color: var(--accent-light); font-weight: 500; }

/* Colapsables (FAQ, "Agregar detalles"): apertura y cierre suaves. Sin soporte del navegador se abren sin animación. */
@supports selector(::details-content) {
  :root { interpolate-size: allow-keywords; }
  details::details-content { block-size: 0; overflow-y: clip; opacity: 0; transition: block-size var(--dur-mid) var(--ease), opacity var(--dur-mid) var(--ease), content-visibility var(--dur-mid) allow-discrete; }
  details[open]::details-content { block-size: auto; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { details::details-content { transition: none; } }

/* Revelado pausado: empieza dentro de la pantalla visible, 1.1 s, escalonado. Sin JS se muestra a los 6 s. */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .reveal { transform: translateY(24px); animation-delay: 6s; }
  .reveal:not(.rvd) { transition-duration: 1.1s; transition-delay: var(--d, 0s); }
  .rv .sec:not(.hero) .reveal:not(.in) { animation: none; }
  .reveal.stagger { opacity: 1; transform: none; animation: none; }
  .stagger > *:not(.in) { opacity: 0; transform: translateY(24px); animation: rf 0s 6s forwards; }
  .rv .stagger > *:not(.in) { animation: none; }
  .stagger > *:not(.rvd) { transition: opacity 1.1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
}

/* Ondas de fondo: canvas fijo detrás de todo. El degradado negro a morado sigue en html. */
body, footer { background: transparent; }
.waves { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: 0.8; }

/* Tarjetas sobre las ondas: fondo opaco de la gama morada (#150a30). Contraste calculado sobre ese fondo:
   texto #fafaf8 17,97 · #bdb9c4 9,75 · #B890F7 7,49 · #FFC83D 12,15 · #6FA0FF 7,29 (todos AAA). */
/* Tarjetas sin color de relleno: solo desenfoque del fondo para que las ondas no estorben la lectura */
.svc, .svc-main, .receive li, .chip { background: transparent; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.svc-main { --svc: #d4bcfb; border-color: rgba(184, 144, 247, 0.45); }
.contact-form::before { background: transparent; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }

/* Revelado atado al scroll: --p (0 a 1) lo calcula main.js. Sube el scroll y se deshace igual. */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .rv .sp {
    opacity: var(--p, 0) !important;
    transform: translate3d(calc((1 - var(--p, 0)) * var(--dx, 0px)), calc((1 - var(--p, 0)) * var(--dy, 40px)), 0) rotate(calc((1 - var(--p, 0)) * var(--rot, 0deg))) scale(calc(1 - (1 - var(--p, 0)) * var(--sc, 0.04))) !important;
    transition: none !important;
    animation: none !important;
    will-change: transform, opacity;
  }
}

/* ---------- Stacked cards: una tarjeta queda fija y la siguiente sube por encima, como hojas que se apilan ---------- */
/* --i (orden) y --cv (cuánto la cubre la siguiente, 0 a 1) los escribe main.js. */
[data-stack] > * { position: sticky; top: calc(var(--stk-top, 5.5rem) + var(--i, 0) * 0.8rem); transform-origin: 50% 0; scale: calc(1 - var(--cv, 0) * 0.05); }
[data-stack] > *::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: #0b0420; opacity: calc(var(--cv, 0) * 0.6); pointer-events: none; }
[data-stack] > *:not(:last-child) { margin-bottom: 14svh; }

/* Proyectos */
.stack { max-width: 1200px; margin: 2.5rem auto 0; }
.stack > .pc {
  display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(1.25rem, 3vw, 2.75rem); align-items: stretch;
  height: auto; padding: clamp(0.75rem, 1.5vw, 1.25rem);
  background: #160b33; border: 1px solid rgba(184, 144, 247, 0.3); border-radius: 1.4rem;
  box-shadow: 0 -22px 60px rgba(0, 0, 0, 0.5);
}
.stack > .pc .pc-media { height: auto; aspect-ratio: 16 / 10; align-self: center; border-radius: 1rem; }
.stack > .pc .pc-body { justify-content: center; padding: clamp(0.5rem, 2vw, 2rem) clamp(0.25rem, 1.5vw, 1.5rem) clamp(0.5rem, 2vw, 2rem) 0; }
.stack > .pc .pc-body h3 { font-size: clamp(1.9rem, 3.2vw, 2.9rem); }
.stack > .pc .pc-body p { font-size: 1.05rem; max-width: 34ch; }
@media (max-width: 900px) {
  [data-stack] > * { --stk-top: 5rem; }
  .stack > .pc { grid-template-columns: 1fr; height: auto; gap: 1rem; }
  .stack > .pc .pc-media { height: auto; aspect-ratio: 16 / 10; }
  .stack > .pc .pc-body { padding: 0.25rem 0.5rem 0.75rem; }
  .stack > .pc .pc-body h3 { font-size: 1.7rem; }
  [data-stack] > *:not(:last-child) { margin-bottom: 9svh; }
}
@media (max-width: 480px) { .stack > .pc { border-radius: 1.1rem; padding: 0.6rem; } }

/* Casos: pantallas desktop apiladas, centradas, siempre completas dentro de la pantalla */
.shots.stack { display: block; margin-top: 2rem; }
.shots.stack > .shot { grid-column: auto; width: min(100%, calc((100svh - 11rem) * 1.72)); margin: 0 auto; box-shadow: 0 -22px 60px rgba(0, 0, 0, 0.5); }
.shots.stack > .shot:not(:last-child) { margin-bottom: 14svh; }

/* Versiones mobile: en desktop centradas y sin apilar; en mobile una por pantalla, apiladas y más grandes */
.phones { justify-content: center; }
@media (min-width: 701px) {
  .phones > * { position: static; scale: none; }
  .phones > *::after { display: none; }
  .phones > *:not(:last-child) { margin-bottom: 0; }
}
@media (max-width: 700px) {
  .phones { display: block; }
  .phones > .pframe { width: min(280px, 72vw); margin-inline: auto; }
  .phones > .pframe:not(:last-child) { margin-bottom: 10svh; }
  .shots.stack > .shot:not(:last-child) { margin-bottom: 9svh; }
}
@media (prefers-reduced-motion: reduce) { [data-stack] > * { scale: none; } [data-stack] > *::after { display: none; } }

/* ---------- Títulos por palabra desde los costados ---------- */
.ttl .w { display: inline-block; will-change: transform, opacity; }
.ttl-s .w {
  --wp: clamp(0, calc(var(--tp, 0) * 1.8 - var(--k, 0) * 0.8), 1);
  --we: calc(var(--wp) * var(--wp) * (3 - 2 * var(--wp)));
  opacity: var(--we);
  transform: translate3d(calc((1 - var(--we)) * var(--wx, 30vw)), 0, 0);
}
.ttl-t .w { opacity: 0; transform: translate3d(var(--wx, 30vw), 0, 0); transition: opacity 0.9s var(--ease) calc(var(--k, 0) * 0.55s + 0.1s), transform 1.1s var(--ease) calc(var(--k, 0) * 0.55s + 0.1s); }
.ttl-t.go .w { opacity: 1; transform: none; }

/* ---------- Destello en hover (una vez): barrido de luz morado neón ---------- */
.fx-h { overflow: hidden; }
.flash { position: absolute; top: -15%; bottom: -15%; left: 0; width: 55%; z-index: 4; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 0%, rgba(168, 85, 255, 0) 22%, rgba(168, 85, 255, 0.55) 46%, rgba(226, 190, 255, 0.9) 50%, rgba(168, 85, 255, 0.55) 54%, rgba(168, 85, 255, 0) 78%, transparent 100%);
  transform: translateX(-130%) skewX(-20deg); animation: flash-sweep 0.85s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
@keyframes flash-sweep { to { transform: translateX(300%) skewX(-20deg); } }
@media (prefers-reduced-motion: reduce) { .flash { display: none; } }

/* ---------- Transición entre páginas: anillo de esquinas redondeadas (la O del logo) con el centro enmascarado ---------- */
/* Dos anillos (violeta y oscuro) crecen desde el centro y cubren los bordes; por la ventana del centro se ve la página. */
.pt { position: fixed; left: 50%; top: 50%; width: 150vmax; height: 150vmax; margin: -75vmax 0 0 -75vmax; pointer-events: none; transform: scale(0) rotate(-16deg); will-change: transform; transition: transform 0.62s cubic-bezier(0.76, 0, 0.24, 1); }
.pt-a { z-index: 100000; fill: #6B2FEE; }
.pt-b { z-index: 100001; fill: #0d0d0d; transition-delay: 0.08s; }
html.pt-go .pt, html.pt-in .pt { transform: scale(1) rotate(0deg); }
html.pt-go body { pointer-events: none; }
html.pt-in .pt { transition: none; }
html.pt-out .pt { transform: scale(0) rotate(16deg); transition: transform 0.75s cubic-bezier(0.76, 0, 0.24, 1); }
html.pt-out .pt-a { transition-delay: 0.08s; }
html.pt-out .pt-b { transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .pt { display: none; } }

/* El hero espera a que el telón de transición se abra antes de animarse */
html.pt-in:not(.pt-out) .sec.hero .reveal { animation-play-state: paused; }

/* Tarjetas con dos acciones (ver video y ver sitio): el enlace principal cubre la tarjeta, "Ver sitio" queda por encima */
.pgrid .pc-multi { position: relative; }
.pc-multi .pc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.1rem 1.6rem; margin-top: 0.4rem; }
.pc-multi .pc-actions .pc-cta { margin-top: 0; }
.pc-multi .pc-main::after, .pc-multi .pc-hit { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.pc-multi .pc-hit { appearance: none; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.pc-multi .pc-hit:focus-visible, .pc-multi .pc-main:focus-visible::after { outline: 2px solid var(--accent-light); outline-offset: 4px; }
.pc-multi .pc-site { position: relative; z-index: 2; }
.pc-multi .pc-site:hover { color: #fff; }
.pc-multi:hover .pc-media > .ph, .pc-multi:hover .pc-media > img, .pc-multi:hover .pc-media > video { transform: scale(1.04); }
.pc-multi:hover .pc-play { background: var(--accent); transform: scale(1.08); }
.pc-vimeo { scroll-margin-top: 6rem; }

/* Prueba tipográfica: Michroma (sin serif) en h1 y encabezados. Es muy ancha: se reduce la escala y se anula el tracking negativo y la cursiva */
h1, h2, .sub, .pc-body h3, .svc h3, .row-t, .card-t b, .quote p, .receive-n { font-family: var(--serif); font-weight: 400; letter-spacing: 0; }
h1 { font-size: clamp(1.5rem, 3.1vw, 2.9rem); line-height: 1.12; max-width: 24ch; }
h2 { font-size: clamp(1.4rem, 2.7vw, 2.3rem); line-height: 1.15; }
h1 em, h2 em { font-style: normal; }
.sub { font-size: calc(var(--fs-xl) * 0.7); }
.pc-body h3 { font-size: 1.15rem; line-height: 1.2; }
.svc h3 { font-size: calc(var(--fs-xl) * 0.7); line-height: 1.15; }
.row-t { font-size: clamp(1.1rem, 2vw, 1.5rem); }
.card-t b { font-size: 0.95rem; }
.quote p { font-size: calc(var(--fs-lg) * 0.8); }
.receive-n { font-size: 1.4rem; }
.menu { font-size: clamp(1.3rem, 5.5vw, 2rem); }
.hero2 h1, .hero-s h1, .hero-s2 h1, .contact-page h1 { font-size: clamp(1.45rem, 3.3vw, 3rem); line-height: 1.15; letter-spacing: 0; max-width: 26ch; }
.hero2 h1 { font-size: clamp(1.5rem, 3.6vw, 3.4rem); max-width: 22ch; }
.svc-main h3, .close-sec h2 { font-size: clamp(1.3rem, 2.6vw, 2.2rem); line-height: 1.15; }
.fnd-copy h2 { font-size: clamp(1.2rem, 2.2vw, 1.8rem); }

/* Hero del Home: mascota 3D a la derecha. El texto ocupa la mitad izquierda; en escritorio el hero ocupa el primer pantallazo completo */
.hero-3d { position: relative; width: 100%; height: min(100vw, 540px); margin-top: 1rem; pointer-events: none; }
.mascot { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease); }
.mascot.on { opacity: 1; }
.hero2::before { display: none; }
@media (min-width: 901px) {
  .sec.hero.hero2 { min-height: 100svh; align-items: center; padding-top: 6rem; padding-bottom: 2rem; }
  .hero2 .sec-in { position: static; }
  .hero2 .hero-grid { grid-template-columns: 1fr; max-width: 50%; }
  .hero2 h1 { max-width: 15ch; }
  .hero-3d { position: absolute; z-index: 0; top: 4.5rem; bottom: 1.25rem; right: 1%; width: 48%; height: auto; margin: 0; }
}

/* Iluminación morada que sigue al cursor en todo el sitio (capa fija, no recibe eventos) */
.cursor-glow { position: fixed; left: -300px; top: -300px; width: 600px; height: 600px; z-index: 2; pointer-events: none; mix-blend-mode: screen; opacity: 0; transition: opacity 0.5s var(--ease);
  background: radial-gradient(circle at center, rgba(107, 47, 238, 0.26), rgba(107, 47, 238, 0.1) 38%, transparent 66%); will-change: transform; }
.cursor-glow.on { opacity: 1; }
@media (prefers-reduced-motion: reduce), (hover: none) { .cursor-glow { display: none; } }
