/* ─────────────────────────────────────────────
   v4 · versión visual (prototipo aparte)
   Concepto: el "estudio" de Christian: ventanas de herramientas reales
   (chat, prompt, flujo, carruseles) dentro de la identidad oscura + lima.
   Usa los tokens de styles.css (misma paleta y tipografías).
   ───────────────────────────────────────────── */

:root {
  --surface-2: #171717;
  --accent-soft: rgba(198, 255, 62, 0.12);
  --accent-line: rgba(198, 255, 62, 0.35);
}

/* Las imágenes con width/height en el HTML respetan su proporción CSS */
img { height: auto; }

/* El contenido se ve completo desde el primer momento (sin esperar al scroll) */
.js .reveal { opacity: 1; transform: none; }

/* ── Hero ───────────────────────────────────── */
.v4-hero { padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 8vw, 110px); position: relative; overflow: hidden; }
.v4-hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 120%;
  background: radial-gradient(closest-side, rgba(198, 255, 62, 0.10), transparent 70%);
  pointer-events: none;
}
.v4-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; }
.v4-hero-copy h1 { font-size: clamp(2.6rem, 6vw, 5.1rem); margin-bottom: 1.6rem; text-wrap: balance; }
.v4-hero-copy .lead { margin-bottom: 2.2rem; max-width: 46ch; }
.v4-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 1.4rem; }

/* Ventana tipo app */
.v4-window {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(198, 255, 62, 0.06);
  overflow: hidden;
}
.v4-window-bar {
  display: flex; align-items: center; gap: 16px; padding: 14px 18px;
  border-bottom: 1px solid var(--color-border); color: var(--color-muted); font-size: 0.75rem;
}
.dots { display: inline-flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a3a; display: block; }

.v4-chat { padding: 22px; display: grid; gap: 18px; }
.v4-msg { display: flex; gap: 12px; align-items: flex-start; }
.v4-msg-user { justify-content: flex-end; }
.v4-msg-user p {
  order: -1; background: #232323; border: 1px solid var(--color-border); border-radius: 16px 16px 4px 16px;
  padding: 12px 16px; margin: 0; font-size: 0.98rem; max-width: 34ch; min-height: 1.6em;
}
.v4-msg-user img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; border: 2px solid var(--color-accent); flex: none; }
.v4-ia-badge {
  flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--color-accent); border: 1px solid var(--accent-line); font-size: 0.8rem; font-weight: 700;
}
.v4-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.98rem; }
.v4-steps li { display: flex; align-items: center; gap: 10px; }
.v4-check { width: 20px; height: 20px; border-radius: 6px; background: var(--color-accent); position: relative; flex: none; }
.v4-check::after {
  content: ""; position: absolute; left: 6px; top: 3px; width: 6px; height: 11px;
  border: solid var(--color-bg); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.v4-thumbs { display: flex; gap: 10px; padding-left: 52px; }
.v4-thumbs img {
  width: calc((100% - 20px) / 3); max-width: 120px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--color-border); transition: transform 0.3s ease;
}
.v4-thumbs img:first-child { border-color: var(--color-accent); }
.v4-thumbs img:hover { transform: translateY(-4px) rotate(-1.5deg); }
.v4-demo-note { color: var(--color-muted); font-size: 0.72rem; letter-spacing: 0.08em; margin: 14px 4px 0; }

/* Animación de la demo (solo si se permite movimiento; ver v4.js) */
.v4-demo.is-playing [data-step] { opacity: 0; transform: translateY(6px); transition: opacity 0.4s ease, transform 0.4s ease; }
.v4-demo.is-playing [data-step].on { opacity: 1; transform: none; }
.v4-demo.is-playing [data-type]::after { content: "▍"; color: var(--color-accent); animation: v4-blink 0.9s steps(1) infinite; }
@keyframes v4-blink { 50% { opacity: 0; } }

@media (max-width: 900px) {
  .v4-hero-grid { grid-template-columns: 1fr; }
}

/* ── Cinta de herramientas ──────────────────── */
.v4-marquee { border-block: 1px solid var(--color-border); overflow: hidden; padding-block: 18px; }
.v4-marquee-track { display: flex; width: max-content; animation: v4-marquee 45s linear infinite; }
.v4-marquee-track span {
  color: var(--color-muted); font-size: 0.9rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding-inline: 28px; display: inline-flex; align-items: center; gap: 28px; white-space: nowrap;
}
.v4-marquee-track span::after { content: ""; width: 7px; height: 7px; background: var(--color-accent); display: inline-block; margin-left: 28px; }
@keyframes v4-marquee { to { transform: translateX(-50%); } }

/* ── Problemas ──────────────────────────────── */
.v4-pains { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.v4-pain { border: 1px solid var(--color-border); border-radius: 16px; padding: 26px; background: var(--color-bg); transition: border-color 0.25s, background 0.25s; }
.v4-pain:hover { border-color: var(--accent-line); background: var(--color-surface); }
.v4-pain svg { width: 44px; height: 44px; fill: none; stroke: var(--color-accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.v4-pain h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.v4-pain p { color: var(--color-muted); margin: 0; font-size: 0.98rem; }
@media (max-width: 960px) { .v4-pains { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .v4-pains { grid-template-columns: 1fr; } }

/* ── Bento "qué vas a aprender" ─────────────── */
.v4-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.v4-tile {
  border: 1px solid var(--color-border); border-radius: 20px; background: var(--color-surface);
  padding: clamp(22px, 3vw, 32px); display: grid; gap: 24px; align-content: space-between; overflow: hidden; min-width: 0;
}
.v4-tile-wide { grid-column: span 2; grid-template-columns: 1fr 1.1fr; align-items: center; }
.v4-tile-tag { color: var(--color-accent); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.9rem; }
.v4-tile h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); margin-bottom: 0.7rem; }
.v4-tile p { color: var(--color-muted); margin: 0; }

.v4-prompt { background: rgba(198, 255, 62, 0.05); border: 1.5px solid var(--color-accent); border-radius: 14px; padding: 18px; min-width: 0; }
.v4-prompt-head { display: flex; justify-content: space-between; align-items: center; color: var(--color-accent); font-size: 0.72rem; letter-spacing: 0.16em; margin-bottom: 12px; }
.v4-copy { background: var(--color-accent); color: var(--color-bg); padding: 4px 8px; border-radius: 5px; font-weight: 700; }
.v4-prompt p { color: var(--color-text) !important; font-size: 0.86rem; line-height: 1.65; }
.v4-prompt b { color: var(--color-accent); font-weight: 700; }

.v4-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: f; }
.v4-flow li {
  border: 1px solid var(--color-border); border-radius: 10px; padding: 10px 14px; font-size: 0.8rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text); background: var(--color-bg); position: relative;
}
.v4-flow li + li::before { content: "↓"; position: absolute; top: -17px; left: 18px; color: var(--color-accent); font-size: 0.85rem; }
.v4-flow li.hot { border-color: var(--color-accent); color: var(--color-accent); background: rgba(198, 255, 62, 0.06); }

.v4-fan { position: relative; height: 230px; }
.v4-fan img {
  position: absolute; bottom: 0; width: 46%; max-width: 160px; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--color-border); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s ease;
}
.v4-fan img:nth-child(1) { left: 4%; transform: rotate(-8deg); }
.v4-fan img:nth-child(2) { left: 27%; transform: rotate(-1deg) translateY(-14px); z-index: 2; border-color: var(--color-accent); }
.v4-fan img:nth-child(3) { left: 50%; transform: rotate(7deg); }
.v4-tile:hover .v4-fan img:nth-child(1) { transform: rotate(-12deg) translateX(-8px); }
.v4-tile:hover .v4-fan img:nth-child(3) { transform: rotate(11deg) translateX(8px); }

.v4-ads { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.v4-ad { border: 1px solid var(--color-border); border-radius: 14px; padding: 16px; background: var(--color-bg); display: grid; gap: 10px; }
.v4-ad span { color: var(--color-muted); font-size: 0.7rem; letter-spacing: 0.14em; }
.v4-ad b { font-family: var(--font-display); font-weight: 800; font-size: 1rem; line-height: 1.15; text-transform: uppercase; }
.v4-ad i { display: block; height: 8px; border-radius: 4px; background: #262626; }
.v4-ad i + i { width: 60%; }
.v4-ad.hot { border-color: var(--color-accent); }
.v4-ad.hot span { color: var(--color-accent); }

@media (max-width: 960px) {
  .v4-bento { grid-template-columns: 1fr 1fr; }
  .v4-tile-wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  .v4-bento { grid-template-columns: 1fr; }
  .v4-tile-wide { grid-column: auto; grid-template-columns: 1fr; }
  .v4-ads { grid-template-columns: 1fr; }
}

/* ── Muro de carruseles ─────────────────────── */
.v4-wall-section .section-head { margin-bottom: 36px; }
.v4-wall {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  padding-right: var(--gutter); padding-bottom: 18px; scrollbar-width: thin; scrollbar-color: #333 transparent;
}
.v4-wall:focus-visible { outline-offset: -2px; }
.v4-wall img {
  flex: none; height: clamp(320px, 42vw, 520px); width: auto; max-width: 80vw; object-fit: contain;
  border-radius: 14px; border: 1px solid var(--color-border); scroll-snap-align: start;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); transition: transform 0.3s ease, border-color 0.3s;
}
.v4-wall img:hover { transform: translateY(-6px); border-color: var(--accent-line); }

/* ── Quién está detrás ──────────────────────── */
.v4-about { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.v4-about-photo { position: relative; max-width: 460px; }
.v4-about-photo { overflow: hidden; border-radius: 20px; border: 1px solid var(--color-border); }
.v4-about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; display: block; }
.v4-about-photo figcaption {
  position: absolute; left: 16px; bottom: 16px; background: rgba(11, 11, 11, 0.85); border: 1px solid var(--color-border);
  padding: 8px 12px; border-radius: 8px; font-size: 0.72rem; color: var(--color-text); letter-spacing: 0.06em;
}
.v4-about-text { color: var(--color-muted); font-size: 1.12rem; max-width: 52ch; }
.v4-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--color-border); border: 1px solid var(--color-border); border-radius: 14px; overflow: hidden; margin: 28px 0; }
.v4-facts div { background: var(--color-bg); padding: 18px; }
.v4-facts dt { color: var(--color-accent); font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.v4-facts dd { margin: 0; color: var(--color-muted); font-size: 0.9rem; }
@media (max-width: 860px) { .v4-about { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .v4-facts { grid-template-columns: 1fr; } }

/* ── Servicios en lista ─────────────────────── */
.v4-services { border-top: 1px solid var(--color-border); }
.v4-service {
  display: grid; grid-template-columns: 60px minmax(0, 1fr) minmax(0, 1.4fr) 40px; gap: 24px; align-items: center;
  padding: 24px 12px; border-bottom: 1px solid var(--color-border); transition: background 0.25s;
}
.v4-service > .mono { color: var(--color-muted); }
.v4-service h3 { font-size: clamp(1.1rem, 2vw, 1.45rem); transition: color 0.25s; }
.v4-service p { color: var(--color-muted); margin: 0; }
.v4-go { font-size: 1.4rem; color: var(--color-muted); transition: transform 0.25s, color 0.25s; justify-self: end; }
.v4-service:hover { background: var(--color-surface); }
.v4-service:hover h3, .v4-service:hover .v4-go { color: var(--color-accent); }
.v4-service:hover .v4-go { transform: translateX(6px); }
@media (max-width: 700px) {
  .v4-service { grid-template-columns: 40px minmax(0, 1fr) 24px; gap: 8px 14px; }
  .v4-service p { grid-column: 2 / 3; }
  .v4-go { grid-row: 1; grid-column: 3; }
}

/* ── Compromisos ────────────────────────────── */
.v4-promises { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.v4-promises li { border: 1px solid var(--color-border); border-radius: 14px; padding: 20px 20px 20px 56px; position: relative; color: var(--color-muted); }
.v4-promises li::before {
  content: ""; position: absolute; left: 20px; top: 22px; width: 20px; height: 20px; border-radius: 6px; background: var(--color-accent);
}
.v4-promises li::after {
  content: ""; position: absolute; left: 27px; top: 25px; width: 6px; height: 11px;
  border: solid var(--color-bg); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.v4-promises b { color: var(--color-text); display: block; margin-bottom: 2px; }
@media (max-width: 860px) { .v4-promises { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .v4-promises { grid-template-columns: 1fr; } }

/* ── Cierre ─────────────────────────────────── */
.v4-final { position: relative; overflow: hidden; border-top: 1px solid var(--color-border); padding-block: clamp(80px, 12vw, 160px); }
.v4-final-word {
  position: absolute; right: -2vw; bottom: -0.18em; margin: 0; pointer-events: none;
  font-family: var(--font-display); font-weight: 900; font-size: clamp(6rem, 22vw, 20rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px #262626;
}
.v4-final h2 { max-width: 14ch; position: relative; }
.v4-final p { color: var(--color-muted); font-size: 1.15rem; margin-bottom: 2.4rem; position: relative; }
.v4-final .btn, .v4-final .cta-secondary { position: relative; }

@media (prefers-reduced-motion: reduce) {
  .v4-marquee-track { animation: none; }
}

/* ═════════════════════════════════════════════
   v4.1 · foto en portada, servicios y animaciones
   ═════════════════════════════════════════════ */

/* ── Portada con foto + demo superpuesta ────── */
.v4-hero { min-height: calc(100svh - 72px); display: flex; flex-direction: column; justify-content: center; }
.v4-hero-visual { position: relative; padding-bottom: 190px; }
.v4-portrait {
  position: relative; margin: 0 0 0 auto; width: min(100%, 440px); aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden;
  border: 1px solid var(--color-border); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}
.v4-portrait img { width: 100%; height: 115%; object-fit: cover; object-position: 50% 20%; filter: saturate(0.9) contrast(1.05); will-change: transform; }
.v4-portrait::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 11, 11, 0.75) 100%);
}
.v4-portrait figcaption {
  position: absolute; left: 18px; top: 18px; z-index: 1; display: flex; align-items: center; gap: 8px;
  background: rgba(11, 11, 11, 0.8); border: 1px solid var(--color-border); border-radius: 30px;
  padding: 8px 14px; font-size: 0.75rem; letter-spacing: 0.06em; color: var(--color-text); backdrop-filter: blur(6px);
}
.v4-live { width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 0 0 rgba(198, 255, 62, 0.6); animation: v4-pulse 2s infinite; }
@keyframes v4-pulse { 70% { box-shadow: 0 0 0 10px rgba(198, 255, 62, 0); } 100% { box-shadow: 0 0 0 0 rgba(198, 255, 62, 0); } }
.v4-hero-visual .v4-demo { position: absolute; left: 0; bottom: 0; width: min(80%, 400px); z-index: 2; }
.v4-hero-visual .v4-chat { padding: 18px; gap: 14px; }
.v4-hero-visual .v4-msg-user p { max-width: none; font-size: 0.92rem; }
.v4-hero-visual .v4-steps { font-size: 0.9rem; }
.v4-scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--color-muted); font-size: 0.68rem; letter-spacing: 0.3em;
}
.v4-scroll-cue span { width: 1px; height: 34px; background: linear-gradient(var(--color-accent), transparent); animation: v4-cue 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes v4-cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 900px) {
  .v4-hero { min-height: 0; }
  .v4-portrait { margin: 0 auto; width: min(100%, 420px); }
  .v4-hero-visual .v4-demo { left: 50%; transform: translateX(-50%); width: min(92%, 380px); }
  .v4-scroll-cue { display: none; }
}

/* Cinta: herramientas principales en lima */
.v4-marquee-track span.hot { color: var(--color-accent); }
.anim-ready .v4-marquee-track { animation: none; will-change: transform; }

/* ── Servicios: maqueta de navegador y "a medida" ── */
.v4-tile .text-link { display: inline-block; margin-top: 1.1rem; font-size: 0.78rem; letter-spacing: 0.12em; }
.v4-browser { border: 1px solid var(--color-border); border-radius: 14px; background: var(--color-bg); overflow: hidden; min-width: 0; }
.v4-browser-bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--color-border); color: var(--color-muted); font-size: 0.72rem; }
.v4-browser-body { padding: 22px; display: grid; gap: 12px; }
.v4-browser-body i { display: block; height: 18px; border-radius: 6px; background: #262626; }
.v4-browser-body i.hot { background: var(--color-accent); height: 22px; }
.v4-browser-body i.thin { height: 9px; background: #1f1f1f; }
.v4-browser-body .w40 { width: 40%; } .v4-browser-body .w60 { width: 60%; } .v4-browser-body .w70 { width: 70%; } .v4-browser-body .w80 { width: 80%; }
.v4-browser-btn { justify-self: start; margin-top: 6px; background: var(--color-accent); color: var(--color-bg); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.12em; padding: 9px 14px; border-radius: 6px; }

.v4-custom {
  margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
  border: 1px dashed var(--accent-line); border-radius: 20px; padding: clamp(24px, 4vw, 40px);
  background: linear-gradient(120deg, rgba(198, 255, 62, 0.06), transparent 60%);
}
.v4-custom > div { max-width: 60ch; min-width: 0; }
.v4-custom h3 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); margin-bottom: 0.6rem; }
.v4-custom p { color: var(--color-muted); margin: 0; }
.v4-custom-page { margin-block: 56px 20px; }

/* ── Muro fijado: se desplaza en horizontal al bajar (escritorio) ── */
.v4-wall-section { padding-block: var(--section) 40px; }
.v4-wall-track { display: flex; gap: 18px; width: max-content; }
.v4-wall { padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); }
.v4-wall-section.pinned { padding: 0; }
.v4-wall-section.pinned .v4-wall-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center;
}
.v4-wall-section.pinned .v4-wall { overflow: visible; }
.v4-wall-section.pinned .v4-wall-track { will-change: transform; }

/* ── Cierre: palabra gigante que se desliza ── */
.v4-final-word { white-space: nowrap; right: auto; left: 0; will-change: transform; }

/* ── Barra de progreso de lectura ── */
.v4-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--color-accent); transform-origin: 0 50%; transform: scaleX(0); z-index: 100; pointer-events: none; }

/* ── Animaciones al hacer scroll (solo con .anim-ready; sin JS todo se ve) ── */
.anim-ready [data-anim] {
  opacity: 0; transform: translateY(48px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), clip-path 1.3s cubic-bezier(0.7, 0, 0.2, 1);
  transition-delay: var(--d, 0ms);
}
/* La cortina va en la imagen de dentro: si se recorta el propio contenedor, el navegador cree que no se ve y nunca la descubre */
.anim-ready [data-anim="reveal"] { opacity: 1; transform: none; }
.anim-ready [data-anim="reveal"] > img { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s cubic-bezier(0.7, 0, 0.2, 1) var(--d, 0ms); }
.anim-ready [data-anim="reveal"].in > img { clip-path: inset(0 0 0 0); }
.anim-ready [data-anim].in { opacity: 1; transform: none; }
.anim-ready .v4-hero-visual .v4-demo[data-anim] { transform: translateY(48px); }
.anim-ready .v4-hero-visual .v4-demo[data-anim].in { transform: none; }
@media (max-width: 900px) {
  .anim-ready .v4-hero-visual .v4-demo[data-anim] { transform: translate(-50%, 48px); }
  .anim-ready .v4-hero-visual .v4-demo[data-anim].in { transform: translate(-50%, 0); }
}

/* Titulares que suben palabra a palabra */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-top: 0.14em; margin-top: -0.14em; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.w > span { display: inline-block; }
.anim-ready [data-split] .w > span { transform: translateY(110%); transition: transform 0.95s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--i, 0) * 55ms + var(--d, 0ms)); }
.anim-ready [data-split].in .w > span { transform: none; }

/* Tarjetas: pequeño realce al pasar el ratón */
.v4-tile { transition: border-color 0.3s, transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.v4-tile:hover { border-color: var(--accent-line); }

@media (prefers-reduced-motion: reduce) {
  .v4-live, .v4-scroll-cue span { animation: none; }
}

/* ═════════════════════════════════════════════
   v4.2 · creación de contenido + efectos "ultra"
   ═════════════════════════════════════════════ */

/* Servicio 01: chips + móvil con un reel */
.v4-chips { list-style: none; margin: 1.1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.v4-chips li { border: 1px solid var(--color-border); border-radius: 30px; padding: 6px 12px; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text); }
.v4-content-visual { position: relative; height: 330px; }
.v4-phone {
  position: absolute; left: 6%; top: 0; width: 46%; max-width: 190px; aspect-ratio: 9 / 19; border-radius: 30px;
  background: #1c1c1c; border: 1px solid #333; padding: 8px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6); z-index: 2; transform: rotate(-4deg);
}
.v4-phone-screen {
  position: relative; height: 100%; border-radius: 23px; overflow: hidden;
  background: radial-gradient(120% 80% at 30% 20%, #2b3512 0%, #111 55%, #0b0b0b 100%);
}
.v4-reel-tag { position: absolute; top: 14px; left: 12px; font-size: 0.6rem; letter-spacing: 0.14em; color: var(--color-accent); }
.v4-reel-hook { position: absolute; left: 12px; right: 12px; top: 38%; font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 1rem; line-height: 1.02; color: var(--color-text); }
.v4-play { position: absolute; left: 50%; top: 70%; width: 42px; height: 42px; border-radius: 50%; background: rgba(198, 255, 62, 0.95); transform: translate(-50%, -50%); }
.v4-play::after { content: ""; position: absolute; left: 17px; top: 13px; border-left: 12px solid var(--color-bg); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.v4-reel-bar { position: absolute; left: 12px; right: 12px; bottom: 30px; height: 3px; background: rgba(255, 255, 255, 0.15); border-radius: 2px; overflow: hidden; }
.v4-reel-bar i { display: block; height: 100%; width: 30%; background: var(--color-accent); animation: v4-reel 4s linear infinite; }
@keyframes v4-reel { from { width: 0; } to { width: 100%; } }
.v4-reel-time { position: absolute; left: 12px; bottom: 10px; font-size: 0.58rem; color: var(--color-muted); letter-spacing: 0.08em; }
.v4-content-visual > img {
  position: absolute; right: 4%; top: 30px; width: 46%; max-width: 200px; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 12px; border: 1px solid var(--color-accent); transform: rotate(5deg); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
}
@media (max-width: 640px) { .v4-content-visual { height: 300px; } }

/* Botones magnéticos: vuelven suave a su sitio */
.v4-hero .btn, .btn { transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.2s, color 0.2s, border-color 0.2s; }

/* Foco de luz que sigue al ratón en las tarjetas */
.v4-spot { position: relative; transform-style: preserve-3d; transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s, background 0.3s; }
.v4-spot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(198, 255, 62, 0.10), transparent 45%);
}
.v4-spot:hover::before { opacity: 1; }

/* Portada en capas */
.v4-portrait { transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.v4-hero-visual .v4-window { transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }

@media (prefers-reduced-motion: reduce) {
  .v4-reel-bar i { animation: none; width: 30%; }
}

/* ═════════════════════════════════════════════
   v4.4 · Contacto flotante (abajo a la derecha)
   ═════════════════════════════════════════════ */
.v4-contact {
  position: fixed; z-index: 90;
  right: max(20px, calc(env(safe-area-inset-right, 0px) + 16px));
  bottom: max(20px, calc(env(safe-area-inset-bottom, 0px) + 16px));
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px;
}
.v4-contact-btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  background: var(--color-surface); color: var(--color-text);
  border: 1px solid var(--accent-line); border-radius: 999px; padding: 8px 20px 8px 8px;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 0 4px rgba(198, 255, 62, 0.04);
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.25s, background 0.25s;
}
.v4-contact-btn:hover { transform: translateY(-2px); border-color: var(--color-accent); }
.v4-contact-btn-icon { position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--color-accent); display: grid; place-items: center; }
.v4-contact-btn-icon svg { position: absolute; width: 20px; height: 20px; fill: none; stroke: var(--color-bg); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s, opacity 0.3s; }
.v4-contact-btn-icon .i-close { opacity: 0; transform: rotate(-90deg) scale(0.6); }
.v4-contact.open .i-chat { opacity: 0; transform: rotate(90deg) scale(0.6); }
.v4-contact.open .i-close { opacity: 1; transform: none; }
.v4-contact.nudge .v4-contact-btn-icon { animation: v4-nudge 1.2s ease 2; }
@keyframes v4-nudge { 0%, 100% { transform: none; } 20% { transform: rotate(-12deg); } 40% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } }

.v4-contact-panel {
  width: min(360px, calc(100vw - 32px)); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 22px;
  padding: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(198, 255, 62, 0.05);
  transform-origin: bottom right; animation: v4-panel-in 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes v4-panel-in { from { opacity: 0; transform: translateY(10px) scale(0.96); } }
.v4-contact-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--color-border); }
.v4-contact-head img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 2px solid var(--color-accent); flex: none; }
.v4-contact-head > div { flex: 1; min-width: 0; }
.v4-contact-name { margin: 0; font-weight: 600; color: var(--color-text); }
.v4-contact-status { margin: 2px 0 0; font-size: 0.68rem; letter-spacing: 0.06em; color: var(--color-muted); display: flex; align-items: center; gap: 6px; }
.v4-contact-status span { width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent); flex: none; }
.v4-contact-close { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--color-border); background: transparent; display: grid; place-items: center; cursor: pointer; }
.v4-contact-close svg { width: 16px; height: 16px; fill: none; stroke: var(--color-muted); stroke-width: 2; stroke-linecap: round; }
.v4-contact-close:hover { border-color: var(--color-text); }
.v4-contact-title { font-size: 1.6rem; margin: 18px 0 6px; }
.v4-contact-intro { color: var(--color-muted); font-size: 0.95rem; margin: 0 0 16px; }
.v4-contact-options { display: grid; gap: 10px; }
.v4-contact-option {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px;
  border: 1px solid var(--color-border); background: var(--color-bg); transition: border-color 0.2s, background 0.2s;
}
a.v4-contact-option:hover, .v4-contact-mail:hover { border-color: var(--accent-line); background: #121410; }
.v4-contact-mail-link { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.v4-contact-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; flex: none; }
.v4-contact-icon svg { width: 21px; height: 21px; fill: none; stroke: var(--color-accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.v4-contact-icon svg .fill { fill: var(--color-accent); stroke: none; }
.v4-contact-text { display: grid; flex: 1; min-width: 0; }
.v4-contact-text b { color: var(--color-text); font-weight: 600; }
.v4-contact-text small { color: var(--color-muted); font-size: 0.8rem; overflow-wrap: anywhere; }
.v4-contact-arrow { color: var(--color-accent); font-size: 1.1rem; transition: transform 0.2s; }
a.v4-contact-option:hover .v4-contact-arrow { transform: translateX(4px); }
.v4-contact-copy {
  flex: none; border: 1px solid var(--color-border); background: transparent; color: var(--color-text); border-radius: 8px;
  padding: 7px 10px; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; transition: all 0.2s;
}
.v4-contact-copy:hover { border-color: var(--color-accent); color: var(--color-accent); }
.v4-contact-copy.done { background: var(--color-accent); color: var(--color-bg); border-color: var(--color-accent); }
.v4-contact-foot { margin: 14px 2px 0; font-size: 0.68rem; letter-spacing: 0.06em; color: var(--color-muted); text-align: center; }

/* Móvil: botón redondo y la barra "Seguir en Instagram" deja hueco */
@media (max-width: 860px) {
  .v4-contact-btn { padding: 6px; }
  .v4-contact-btn-label { display: none; }
  .v4-contact-btn-icon { width: 46px; height: 46px; }
  .mobile-cta { right: 82px !important; }
  .v4-contact { bottom: 12px; right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .v4-contact-panel, .v4-contact.nudge .v4-contact-btn-icon { animation: none; }
}
