/* Inicio, versión 2 (referencia: plantilla Stodio de Webflow) adaptada al design system Frost Glass.
   Solo la usa index-v2.html; reutiliza los tokens de styles.css. */

.v2 { --v2-dark: #0b1220; --v2-dark-2: #17233a; --v2-on-dark: #ffffff; --v2-on-dark-muted: rgba(255, 255, 255, .68); }

.v2-eyebrow { display: inline-flex; align-items: center; gap: var(--space-2); padding: 5px var(--space-3); border-radius: var(--radius-pill); background: rgba(255, 255, 255, .1); font-size: 11px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--v2-on-dark); }
.v2-eyebrow i { width: 8px; height: 8px; border-radius: 2px; background: var(--accent-mist); }
.v2-big { font-size: clamp(30px, 4.4vw, 52px); }

/* ---------- Hero oscuro con retrato ---------- */
.v2-hero-shell { padding: 0 var(--shell-pad); }
.v2-hero { position: relative; isolation: isolate; overflow: hidden; overflow: clip; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-12); min-height: calc(100svh - var(--header-h, 4.5rem) - var(--shell-pad)); --v2-pad: clamp(2rem, min(5vw, 6svh), 4.5rem); padding: var(--v2-pad); border-radius: var(--shell-inner-radius); color: var(--v2-on-dark); background: radial-gradient(60% 70% at 78% 100%, var(--v2-dark-2), transparent), linear-gradient(160deg, var(--v2-dark), #070b13); }
.v2-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 60% 60% at 30% 30%, #000, transparent 75%); mask-image: radial-gradient(ellipse 60% 60% at 30% 30%, #000, transparent 75%); }
/* Fotografía de fondo en monocromo: ocupa el alto del panel, su centro queda al 80 % del ancho
   (a media altura) y se desvanece hacia el texto */
.v2-hero-bg { position: absolute; z-index: -2; left: 80%; top: 50%; width: auto; height: 100%; max-width: none; transform: translate(-50%, -50%); filter: grayscale(1) contrast(1.05); opacity: .55; pointer-events: none;
  /* El degradado llega a transparente justo en el borde de la imagen: sin cortes visibles */
  -webkit-mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, .6) 50%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, .6) 50%, transparent 100%); }
@media (max-width: 53.75em) { .v2-hero-bg { opacity: .4; } }
.v2-hero-top { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(1rem, 2.4svh, 1.75rem); }
/* El título escala con el ancho y la altura de la pantalla; su ancho en em mantiene siempre los mismos saltos de línea */
.v2-hero-title { max-width: 11.5em; font-size: clamp(34px, min(6.4vw, 7.2svh), 120px); line-height: 1.02; font-weight: 300; letter-spacing: -0.045em; color: var(--v2-on-dark); }
.v2-hero-title strong { font-weight: 700; }
.v2-hero-lead { max-width: 30em; font-size: clamp(16px, 1.9svh, 20px); line-height: 1.6; color: var(--v2-on-dark-muted); }
.v2-hero-bottom { display: grid; grid-template-columns: minmax(max-content, 1fr) auto; align-items: end; gap: var(--space-8); }
/* El bloque de llamado a la acción queda siempre en la esquina inferior derecha */
/* Pantallas medianas: letra y separación más compactas para no superar dos filas */
@media (max-width: 75em) and (min-width: 53.76em) { .v2-hero-meta { font-size: 11px; letter-spacing: .02em; gap: var(--space-2) var(--space-3); } .v2-hero-cta { max-width: 20rem; } }
.v2-hero-cta { grid-column: 2; justify-self: end; }
/* Siempre en dos filas: la grilla crece en columnas según el contenido */
.v2-hero-meta { list-style: none; margin: 0; padding: 0; display: grid; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: max-content; gap: var(--space-2) clamp(.75rem, 1.6vw, 1.5rem); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--v2-on-dark-muted); }
.v2-hero-cta { display: grid; gap: var(--space-5); max-width: 24rem; padding: var(--space-5); border-radius: var(--radius-lg); background: rgba(11, 18, 32, .45); backdrop-filter: blur(var(--blur-glass)); -webkit-backdrop-filter: blur(var(--blur-glass)); border: 1px solid rgba(255, 255, 255, .1); }
.v2-hero-cta p { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; color: var(--v2-on-dark); }
.v2-hero-cta .btn-row { justify-content: flex-start; }
.v2 .v2-btn-light { background: var(--v2-on-dark); color: #0b1220; }
.v2-btn-ghost { background: transparent; color: var(--v2-on-dark); border-color: rgba(255, 255, 255, .45); }
.v2-btn-ghost:hover { background: rgba(255, 255, 255, .08); }
@media (max-width: 53.75em) {
    .v2-hero-bottom { grid-template-columns: 1fr; }
  .v2-hero-meta { display: flex; flex-wrap: wrap; }
  /* Móvil: el bloque de botones se apega a los bordes laterales e inferior del hero (que recorta las esquinas) */
  .v2-hero-cta { grid-column: 1; max-width: none; width: auto; margin: 0 calc(var(--v2-pad) * -1) calc(var(--v2-pad) * -1); padding: var(--space-6) var(--v2-pad) var(--v2-pad); border-width: 1px 0 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
}

/* En modo oscuro el hero se invierte a su contraparte clara (paleta clara de Frost Glass) */

/* ---------- Cinta de clientes ---------- */
.v2-marquee { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--space-8); margin: var(--shell-pad); padding: var(--space-5) var(--space-6); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.v2-marquee-lead { display: flex; align-items: center; gap: var(--space-3); max-width: 17rem; font-family: var(--mono); font-size: 12px; line-height: 18px; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-muted); }
.v2-marquee-track { display: flex; min-width: 0; overflow: hidden; overflow: clip; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.v2-marquee-track ul { flex-shrink: 0; display: flex; gap: clamp(2rem, 5vw, 4rem); margin: 0; padding: 0 clamp(1rem, 2.5vw, 2rem); list-style: none; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.v2-marquee-track ul { align-items: center; }
/* Logotipos de clientes en monocromo gris (silueta del logo a media opacidad), en ambos temas */
.v2-marquee-logo img { display: block; width: auto; height: clamp(30px, 3vw, 40px); filter: brightness(0); opacity: .5; }
@media (prefers-reduced-motion: no-preference) { .v2-marquee-track ul { animation: v2-scroll 38s linear infinite; } }
@media (max-width: 45em) { .v2-marquee { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); } }
@keyframes v2-scroll { to { transform: translateX(-100%); } }

/* ---------- Cifras ---------- */
.v2-numbers { padding-top: 0; }
.v2-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-8); margin: var(--space-8) 0 0; }
.v2-stats div { display: flex; flex-direction: column; gap: var(--space-2); }
.v2-stats dt { font-weight: 600; }
.v2-stats dd { margin: 0; color: var(--ink-muted); font-size: 14px; line-height: 22px; }
.v2-stats dd.stat { order: -1; margin-bottom: var(--space-3); padding-bottom: var(--space-4); border-bottom: 1.5px dashed var(--line-control); font-size: clamp(56px, 7vw, 88px); font-weight: 300; color: var(--ink); }
@media (max-width: 53.75em) { .v2-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 35em) { .v2-stats { grid-template-columns: 1fr; } }

/* ---------- Servicios (panel oscuro) ---------- */
.v2-services-shell { padding: 0 var(--shell-pad); }
.v2-services { padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 5vw, 4rem); border-radius: var(--shell-inner-radius); background: linear-gradient(160deg, var(--v2-dark), #070b13); color: var(--v2-on-dark); }
/* Dos columnas: título a la izquierda y descripción a la derecha, alineada abajo */
.v2-services-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; gap: var(--space-8); padding-bottom: var(--space-10); border-bottom: 1px solid rgba(255, 255, 255, .14); }
.v2-services-head > div { display: grid; gap: var(--space-5); justify-items: start; }
.v2-services-head .heading { max-width: 12em; font-size: clamp(32px, 4.4vw, 56px); color: var(--v2-on-dark); }
.v2-services-head p { justify-self: end; max-width: 22rem; color: var(--v2-on-dark-muted); font-size: 14px; line-height: 22px; }
.v2-inline-img { display: inline-block; width: 1.6em; height: .95em; vertical-align: -0.08em; object-fit: cover; object-position: 50% 15%; border-radius: 999px; margin: 0 .05em; background: var(--v2-dark-2); }
.v2-svc-list { list-style: none; margin: var(--space-8) 0 0; padding: 0; }
.v2-svc-list a { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: var(--space-8); padding: var(--space-5) 0; border-bottom: 1px dashed rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .42); text-decoration: none; transition: color .3s var(--ease); }
.v2-svc-name { font-size: clamp(32px, 5.4vw, 72px); line-height: 1.05; font-weight: 600; letter-spacing: -0.04em; }
.v2-svc-name sup { margin-left: var(--space-2); font-size: 14px; font-weight: 500; letter-spacing: 0; vertical-align: top; color: var(--v2-on-dark); }
.v2-svc-desc { font-size: 15px; line-height: 24px; color: var(--v2-on-dark-muted); opacity: 0; transform: translateX(-1rem); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.v2-svc-list a:hover, .v2-svc-list a:focus-visible { color: var(--v2-on-dark); }
.v2-svc-list a:hover .v2-svc-desc, .v2-svc-list a:focus-visible .v2-svc-desc { opacity: 1; transform: none; }
.v2-svc-list a:focus-visible { outline-color: var(--accent-mist); }
@media (max-width: 45em) { .v2-services-head { grid-template-columns: 1fr; } .v2-services-head p { justify-self: start; } }
@media (hover: none), (max-width: 53.75em) {
  .v2-svc-list a { grid-template-columns: 1fr; gap: var(--space-2); color: var(--v2-on-dark); }
  .v2-svc-desc { opacity: 1; transform: none; }
}

/* ---------- Proyectos: título fijo y tarjetas desfasadas que pasan por encima ---------- */
.v2-work { position: relative; isolation: isolate; }
/* Cinco líneas verticales de fondo (bordes, cuartos y centro de la grilla de tarjetas) que acompañan el scroll */
.v2-work::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100% - 2 * var(--gutter), 92rem); pointer-events: none;
  background:
    linear-gradient(var(--line), var(--line)) 0 0 / 1px 100% no-repeat,
    linear-gradient(var(--line), var(--line)) 25% 0 / 1px 100% no-repeat,
    linear-gradient(var(--line), var(--line)) 50% 0 / 1px 100% no-repeat,
    linear-gradient(var(--line), var(--line)) 75% 0 / 1px 100% no-repeat,
    linear-gradient(var(--line), var(--line)) 100% 0 / 1px 100% no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); }
.v2-work-head { position: sticky; top: calc(var(--header-h, 4.5rem) + 18vh); z-index: 0; display: grid; justify-items: center; gap: var(--space-4); max-width: 40rem; margin: 0 auto; padding: 0 var(--space-4); text-align: center; }
.v2-work-head .lead { max-width: 30em; }
/* Se difumina al hacer scroll: --fade (0 a 1) lo calcula js/main.js según el avance en la sección */
.v2-work-head { opacity: calc(1 - var(--fade, 0) * .92); filter: blur(calc(var(--fade, 0) * 10px)); transform: scale(calc(1 - var(--fade, 0) * .06)); will-change: opacity, filter, transform; }
@media (prefers-reduced-motion: reduce) { .v2-work-head { filter: none; transform: none; } }
.v2-work-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-6); row-gap: clamp(4rem, 9vw, 8rem); width: min(100% - 2 * var(--gutter), 92rem); margin-top: clamp(4rem, 14vh, 9rem); }
/* align-self/align-content: la tarjeta no se estira con su vecina más alta, así el espacio entre imagen y texto es siempre el mismo */
.v2-work-card { display: grid; align-self: start; align-content: start; gap: var(--space-3); color: var(--ink); text-decoration: none; }
.v2-work-media { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-xl); overflow: hidden; overflow: clip; background: linear-gradient(180deg, var(--canvas), var(--canvas-deep)); box-shadow: var(--shadow-card); }
.v2-work-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.v2-work-media img.fit-contain { object-fit: contain; padding: var(--space-6); }
.v2-work-card:hover img { transform: scale(1.04); }
.v2-work-meta { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); }
.v2-work-meta strong { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.v2-work-meta span { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); text-align: right; }
/* Tarjetas grandes y desfasadas: dos tercios a la izquierda, mitad a la derecha (más abajo) y dos tercios al centro */
.v2-work-card:nth-child(3n+1) { grid-column: 1 / span 7; }
.v2-work-card:nth-child(3n+2) { grid-column: 8 / span 5; margin-top: clamp(6rem, 16vw, 14rem); }
.v2-work-card:nth-child(3n+3) { grid-column: 3 / span 8; }
.v2-work-card:nth-child(3n+2) .v2-work-media { aspect-ratio: 4 / 5; }
.v2-work-meta strong { font-size: clamp(18px, 1.8vw, 24px); }
@media (max-width: 45em) {
  .v2-work-head { position: static; }
  .v2-work-grid { grid-template-columns: 1fr; row-gap: var(--space-10); margin-top: var(--space-10); }
  .v2-work-card:nth-child(n) { grid-column: 1; margin-top: 0; }
  .v2-work-card:nth-child(n) .v2-work-media { aspect-ratio: 4 / 3; }
}

/* ---------- Preguntas en dos columnas ---------- */
.v2-faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--space-16); align-items: start; }
.v2-faq .section-head { margin-bottom: 0; }
@media (max-width: 57.5em) { .v2-faq { grid-template-columns: 1fr; gap: var(--space-8); } }

/* ---------- Cierre con marca gigante ---------- */
.v2-cta { margin: 0 var(--shell-pad) var(--shell-pad); border-radius: var(--shell-inner-radius); background: linear-gradient(180deg, var(--canvas), var(--canvas-deep)); overflow: hidden; overflow: clip; text-align: center; padding-bottom: 0; }
.v2-cta .container { display: grid; justify-items: center; gap: var(--space-6); }
.v2-cta-title { max-width: 14em; font-size: clamp(36px, 6vw, 80px); line-height: 1.04; font-weight: 300; letter-spacing: -0.045em; }
.v2-cta-title strong { font-weight: 700; }
.v2-wordmark { margin: clamp(3rem, 8vw, 6rem) 0 0; font-size: clamp(56px, 15.5vw, 240px); line-height: .78; font-weight: 700; letter-spacing: -0.06em; white-space: nowrap; color: transparent; background: linear-gradient(180deg, var(--ink), color-mix(in srgb, var(--ink) 0%, transparent)); -webkit-background-clip: text; background-clip: text; user-select: none; }

/* ===================== Ideas: frase gigante con collage de productos al centro ===================== */
.ideas { --ideas-pad: clamp(2rem, min(5vw, 6svh), 4.5rem); display: flex; flex-direction: column; justify-content: space-between; gap: clamp(1rem, 3svh, 2.5rem); min-height: calc(100svh - var(--header-h, 4.5rem) - var(--shell-pad)); padding: var(--ideas-pad) 0; }
.ideas-stage { --ideas-gap: clamp(7rem, min(30vw, 48svh), 32rem); --ideas-fs: clamp(28px, min(6.2vw, 10.5svh), 124px); position: relative; flex: 1; display: grid; place-items: center; padding: clamp(1.5rem, 6svh, 5rem) var(--gutter); }
/* Cuadrícula de fondo (la misma de los paneles frame-grid), visible solo alrededor del centro del collage */
.ideas-stage::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; --grid-line: color-mix(in srgb, var(--line-control) 30%, transparent); background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 64px 64px; background-position: center center; -webkit-mask-image: radial-gradient(ellipse 34% 46% at 88% 12%, #000 15%, transparent 72%); mask-image: radial-gradient(ellipse 34% 46% at 88% 12%, #000 15%, transparent 72%); }
.ideas-title { position: relative; z-index: 1; width: 100%; margin: 0; display: grid; font-family: "Anton", "Plus Jakarta Sans", sans-serif; font-weight: 400; font-size: var(--ideas-fs); line-height: .95; letter-spacing: -0.01em; text-transform: uppercase; color: var(--ink); }
/* Cada línea centrada como bloque: palabra · hueco · palabra (el hueco queda donde caiga según el largo de las palabras) */
.ideas-line { display: flex; justify-content: center; align-items: baseline; white-space: nowrap; }
.ideas-line > span:not(.ideas-gap) { display: inline-block; }
.ideas-gap { display: inline-block; width: var(--ideas-gap); }
/* Espacio entre «de las» e «ideas» (en escritorio equivale a un espacio normal) */
.ideas-w1, .ideas-w2, .ideas-split { display: inline-block; }
.ideas-split { width: .22em; }
.ideas-collage { position: absolute; z-index: 2; left: 50%; top: 50%; width: calc(var(--ideas-gap) * 1.05); height: min(112%, calc(var(--ideas-fs) * 7)); transform: translate(-50%, -50%); pointer-events: none; }
/* El alto del collage depende del tamaño de la frase (no del alto de la ventana), para que la proporción entre texto y productos sea la misma en cualquier pantalla */
/* Cada producto con su propio eje: izquierda inclinada 30° y derecha -30° (sentido de Figma: positivo = antihorario), centro recto.
   Se ubican por su centro respecto del centro del collage (--fx, --fy en % del collage; se centra en ese punto con translate -50%);
   --line indica de qué línea de la frase nace al entrar (-1 = primera, 0 = segunda, 1 = tercera) */
.ideas-item { position: absolute; left: calc(50% + var(--fx)); top: calc(50% + var(--fy)); width: auto; max-width: none; filter: drop-shadow(0 18px 28px rgba(7, 11, 19, .28)); translate: -50% -50%; rotate: var(--r, 0deg); height: var(--h); }
.ideas-item-phone { --r: -30deg; --fx: -32%; --fy: 3%; --line: -1; --line-x: -.51; --h: 62%; z-index: 1; }
.ideas-item-beer { --r: 30deg; --fx: 32%; --fy: 0%; --line: 0; --line-x: -.85; --h: 78%; z-index: 2; }
.ideas-item-spray { --r: 0deg; --fx: 0%; --fy: 2%; --line: 1; --line-x: .4; --h: 96%; z-index: 3; }

.ideas-foot { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; align-items: end; gap: clamp(1.5rem, 4vw, 3.5rem); }
.ideas-intro { display: grid; justify-items: start; gap: var(--space-5); max-width: 28rem; }
.ideas-intro p { margin: 0; color: var(--ink-muted); }
/* La píldora queda centrada en la misma línea que el botón «Conversemos» (46 px de alto) */
.ideas-pill { --pill-h: clamp(72px, 8vw, 112px); position: relative; display: block; height: var(--pill-h); margin-bottom: calc((46px - var(--pill-h)) / 2); border-radius: var(--radius-pill); overflow: hidden; overflow: clip; isolation: isolate; }
.ideas-pill img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ideas-pill:hover img { transform: scale(1.06); }
/* Círculo con flecha que, al pasar el mouse, se alarga y muestra "Ver portafolio" */
.ideas-pill-btn { position: absolute; z-index: 1; left: 0; top: 0; bottom: 0; min-width: var(--pill-h); display: flex; align-items: center; justify-content: center; padding: 0 calc(var(--pill-h) * .35); border-radius: var(--radius-pill); background: var(--night); color: var(--on-night); box-shadow: 0 0 0 3px var(--frame); transition: padding .5s var(--ease); }
.ideas-pill-btn .icon { flex-shrink: 0; width: calc(var(--pill-h) * .3); height: calc(var(--pill-h) * .3); transition: transform .3s var(--ease); }
.ideas-pill-label { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; font-size: clamp(14px, 1.3vw, 17px); font-weight: 500; transition: max-width .5s var(--ease), opacity .3s var(--ease), margin .5s var(--ease); }
.ideas-pill:hover .ideas-pill-label, .ideas-pill:focus-visible .ideas-pill-label { max-width: 12em; opacity: 1; margin-right: var(--space-3); }
.ideas-pill:hover .ideas-pill-btn .icon, .ideas-pill:focus-visible .ideas-pill-btn .icon { transform: translateX(4px); }
.ideas-stats { display: flex; gap: clamp(1.5rem, 3vw, 3rem); margin: 0; }
.ideas-stats div { display: grid; gap: var(--space-1); }
.ideas-stats dt { font-family: "Anton", "Plus Jakarta Sans", sans-serif; font-size: clamp(40px, 4.4vw, 64px); line-height: 1; color: var(--ink); }
.ideas-stats dd { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }

@media (max-width: 53.75em) {
  /* Móvil: la frase en 5 líneas (El mundo / de las ideas / en los / productos / del día a día), con letra grande
     y sin huecos; el collage queda centrado sobre la frase */
  .ideas-stage { --ideas-gap: 72vw; --ideas-fs: min(17vw, 9svh); }
  .ideas-title { justify-items: center; }
  .ideas-line:nth-child(-n+2) { display: contents; }
  .ideas-line:nth-child(-n+2) > span:not(.ideas-gap) { display: block; text-align: center; }
  .ideas-line:nth-child(-n+2) > .ideas-gap { display: none; }
  /* Línea 5: hueco del ancho de una M entre «del día» y «a día», donde nace el eliminador */
  .ideas-line:nth-child(3) > .ideas-gap { width: .75em; }
  .ideas-collage { height: calc(var(--ideas-fs) * 5.4); }
  /* Cada producto nace entre líneas de texto (las líneas están a -2, -1, 0, 1 y 2 alturas del centro):
     teléfono entre «de las ideas» y «en los», cerveza entre «en los» y «productos», eliminador entre «del día» y «a día» */
  /* Teléfono: nace dentro de «de las · ideas» (línea 2) con el alto de una M (0,86em); el hueco mide lo que una M (0,75em).
     Su centro queda 0,2em a la derecha del centro de la línea («de las» 2,42em · M 0,75em · «ideas» 2,03em) */
  .ideas-item-phone { --line: -1; --line-x: .25; --h0: .86; }
  .ideas-line:nth-child(1) > span:last-child { display: flex; justify-content: center; }
  .ideas-split { width: .75em; }
  /* Cerveza: nace dentro de «en · los» (línea 3), centro 0,21em a la izquierda («en» 0,88em · «los» 1,31em).
     Eliminador: nace dentro de «del día · a día» (línea 5), centro 0,4em a la derecha («del día» 2,67em · «a día» 1,87em).
     Ambos parten con el alto de una M y en un hueco del ancho de una M, igual que el teléfono */
  .ideas-item-beer { --line: 0; --line-x: -.16; --h0: .86; }
  .ideas-item-spray { --line: 2; --line-x: .45; --h0: .86; }
  .ideas-line:nth-child(2) > span:first-child { display: flex; justify-content: center; }
  .ideas-foot { grid-template-columns: minmax(0, 1fr); }
  .ideas-pill { max-width: 26rem; margin-bottom: 0; }
}

/* Entrada ligada al scroll (primera mitad del recorrido de la sección): las palabras se abren desde el centro
   al mismo ritmo en que crecen los productos, y la frase queda siempre legible (sin cambios de opacidad) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* El avance se mide sobre toda la sección: todo termina cuando la sección queda encuadrada */
    .ideas { view-timeline: --ideas; }
    .ideas-line > span:first-child { animation: ideas-from-left linear both; animation-timeline: --ideas; animation-range: entry 0% cover 46%; }
    .ideas-line > span:last-child { animation: ideas-from-right linear both; animation-timeline: --ideas; animation-range: entry 0% cover 46%; }
    /* Cada línea se abre junto con el producto que nace de su hueco */
    /* Empieza cuando la frase ya está a la vista. Las palabras se abren solo durante la primera mitad del
       crecimiento de su producto; después quedan quietas y el producto sigue creciendo hasta taparlas */
    .ideas-line:nth-child(1) > span { animation-range: cover 52% cover 60%; }
    .ideas-line:nth-child(2) > span { animation-range: cover 55% cover 64%; }
    .ideas-line:nth-child(3) > span { animation-range: cover 58% cover 68%; }
    .ideas-item { animation: ideas-item-in linear both; animation-timeline: --ideas; }
    .ideas-item-phone { animation-range: cover 60% cover 76%; }
    .ideas-item-beer { animation-range: cover 63% cover 80%; }
    .ideas-item-spray { animation-range: cover 66% cover 84%; }
  }
  /* En móvil la frase no tiene huecos que abrir: las palabras quedan quietas y solo crecen los productos */
  @media (prefers-reduced-motion: no-preference) and (max-width: 53.75em) {
    .ideas-line > span:first-child, .ideas-line > span:last-child { animation: none; }
    /* Las palabras que separa cada producto se apartan hacia los costados mientras crece, solo en la primera mitad de su recorrido */
    .ideas-w1, .ideas-line:nth-child(3) > span:first-child { animation: ideas-push-left linear both; animation-timeline: --ideas; }
    .ideas-w2, .ideas-line:nth-child(3) > span:last-child { animation: ideas-push-right linear both; animation-timeline: --ideas; }
    /* Cada par de palabras se aparta durante la primera mitad del crecimiento de su producto */
    .ideas-line:nth-child(1) .ideas-w1, .ideas-line:nth-child(1) .ideas-w2 { animation-range: cover 30% cover 39%; }
    .ideas-line:nth-child(2) .ideas-w1, .ideas-line:nth-child(2) .ideas-w2 { animation-range: cover 34% cover 43%; }
    .ideas-line:nth-child(3) > span:first-child, .ideas-line:nth-child(3) > span:last-child { animation-range: cover 38% cover 46%; }
  }
}
/* Al inicio el hueco de cada línea mide lo justo para que su producto quepa entre las palabras (~0,8em) */
@keyframes ideas-push-left { from { transform: none; } to { transform: translateX(-.1em); } }
@keyframes ideas-push-right { from { transform: none; } to { transform: translateX(.1em); } }
@keyframes ideas-from-left { from { transform: translateX(calc((var(--ideas-gap) - .8em) / 2)); } to { transform: none; } }
@keyframes ideas-from-right { from { transform: translateX(calc((var(--ideas-gap) - .8em) / -2)); } to { transform: none; } }
/* Sin cambios de opacidad: cada producto parte del alto de una línea, dentro del hueco de su línea, y crece hasta su lugar */
@keyframes ideas-item-in {
  /* --line-x: desplazamiento horizontal del hueco de su línea respecto del centro, en em de la frase */
  from { height: calc(var(--ideas-fs) * var(--h0, .8)); rotate: 0deg; left: calc(50% + var(--line-x) * var(--ideas-fs)); top: calc(50% + var(--line) * .95 * var(--ideas-fs)); }
  /* A mitad de camino ya está en su lugar e inclinado; la segunda mitad solo termina de crecer.
     Así, mientras crece, no baja sobre el texto inferior */
  45% { rotate: var(--r); left: calc(50% + var(--fx)); top: calc(50% + var(--fy)); }
  to { height: var(--h); rotate: var(--r); left: calc(50% + var(--fx)); top: calc(50% + var(--fy)); }
}

/* ===================== Más proyectos: arco curvo de imágenes en perspectiva ===================== */
.more { overflow: hidden; overflow: clip; }
.more-head { display: grid; justify-items: center; gap: var(--space-4); text-align: center; }
.more-head .heading { max-width: 14em; }
.more-head .lead { max-width: 34em; margin: 0; }
.more-head .btn { margin-top: var(--space-2); }
/* Las tarjetas de los extremos son más altas y miran hacia el centro, como el interior de un cilindro */
.more-arc { --arc-h: clamp(150px, 20vw, 300px); display: flex; justify-content: center; align-items: center; gap: clamp(6px, 1vw, 16px); margin: clamp(2.5rem, 6vw, 4.5rem) 0 0; padding: 0; list-style: none; perspective: 1400px; }
.more-arc > li { position: relative; flex: 0 0 auto; width: calc(var(--arc-h) * .78 * var(--s)); height: calc(var(--arc-h) * var(--s)); border-radius: clamp(14px, 1.8vw, 26px); overflow: hidden; overflow: clip; transform: rotateY(var(--ry)); box-shadow: 0 18px 40px rgba(7, 11, 19, .16); }
.more-arc img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.more-arc > li:hover img { transform: scale(1.06); }
.more-arc > li:nth-child(1) { --s: 1.4; --ry: 34deg; }
.more-arc > li:nth-child(2) { --s: 1.05; --ry: 20deg; }
.more-arc > li:nth-child(3) { --s: .85; --ry: 6deg; }
.more-arc > li:nth-child(4) { --s: .85; --ry: -6deg; }
.more-arc > li:nth-child(5) { --s: 1.05; --ry: -20deg; }
.more-arc > li:nth-child(6) { --s: 1.4; --ry: -34deg; }
.more-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); max-width: 56rem; margin-top: clamp(2rem, 5vw, 3.5rem); padding: 0; list-style: none; text-align: center; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.more-steps li { display: grid; gap: var(--space-2); justify-items: center; }
.more-steps span { font-family: var(--mono); font-size: 12px; color: var(--accent); }
@media (max-width: 53.75em) {
  .more-arc { --arc-h: clamp(120px, 34vw, 200px); }
  .more-arc > li:nth-child(1), .more-arc > li:nth-child(6) { display: none; }
  .more-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Carrusel movido por el scroll (main.js agrega .is-live y actualiza --k en cada tarjeta):
   --k es la posición en el arco (0 = centro); el tamaño, el giro y la posición se calculan a partir de ella */
/* Perspectiva marcada: punto de vista cercano y giro fuerte por posición; main.js separa las tarjetas 8 px entre sí (--x) */
.more-arc.is-live { --arc-turn: -22deg; position: relative; display: block; height: calc(var(--arc-h) * 1.6); perspective: 650px; }
.more-arc.is-live > li { display: block; position: absolute; left: 50%; top: 50%;
  --ak: max(var(--k), calc(var(--k) * -1));
  --s: calc(.82 + .07 * var(--k) * var(--k));
  width: calc(var(--arc-h) * .78 * var(--s)); height: calc(var(--arc-h) * var(--s));
  transform: translate(-50%, -50%) translateX(var(--x, 0px)) rotateY(calc(var(--k) * var(--arc-turn)));
  z-index: calc(10 - round(var(--ak)));
  /* Con 6 tarjetas, la que pasa de un extremo al otro lo hace en la posición 3: se desvanece justo antes para que el salto no se vea en pantallas anchas */
  opacity: clamp(0, calc((3 - var(--ak)) * 2.5), 1); }

/* Detalle del proyecto al pasar el mouse o enfocar: etiquetas con viñeta arriba; nombre y botón con flecha abajo */
.more-info { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(.75rem, 1.4vw, 1.2rem); background: linear-gradient(180deg, rgba(7, 11, 19, .55), transparent 30%, transparent 55%, rgba(7, 11, 19, .82)); color: #ffffff; opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); }
.more-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; translate: 0 -.5rem; transition: translate .35s var(--ease); }
.more-tags li { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border: 1px solid rgba(255, 255, 255, .55); border-radius: var(--radius-pill); font-size: 11px; line-height: 14px; background: rgba(7, 11, 19, .25); white-space: nowrap; }
.more-tags li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #ffffff; }
.more-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-3); translate: 0 .5rem; transition: translate .35s var(--ease); }
.more-info strong { font-size: clamp(15px, 1.3vw, 19px); line-height: 1.2; font-weight: 600; }
.more-go { flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #ffffff; color: #0b1220; transition: transform .3s var(--ease); }
.more-go .icon { width: 18px; height: 18px; }
.more-go:hover { transform: translateX(3px); }
.more-arc > li:hover .more-info, .more-arc > li:focus-within .more-info { opacity: 1; pointer-events: auto; }
.more-arc > li:hover .more-tags, .more-arc > li:focus-within .more-tags, .more-arc > li:hover .more-foot, .more-arc > li:focus-within .more-foot { translate: none; }

/* Flechas de navegación en las esquinas superiores del carrusel */
.more-stage { position: relative; }
.more-nav { position: absolute; z-index: 20; left: var(--gutter); right: var(--gutter); top: 0; display: flex; justify-content: space-between; pointer-events: none; }
.more-nav[hidden] { display: none; }
.more-nav button { pointer-events: auto; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line-control); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; transition: background-color .2s var(--ease), transform .2s var(--ease); }
.more-nav button:hover { background: var(--surface-sunken); }
.more-nav button:active { transform: scale(.94); }
.more-nav .icon { width: 18px; height: 18px; }
.more-prev .icon { transform: rotate(180deg); }

/* ===== Landing Marcas (fase 2 de tools/narrativa/00-PLAN-para-claude-code.md) ===== */
.card-title { font-size: clamp(20px, 2vw, 26px); line-height: 1.15; font-weight: 500; letter-spacing: -0.03em; text-wrap: balance; }

/* Manifiesto: dos párrafos y sin indicadores */
.ideas-intro { max-width: 34rem; }
.ideas-foot { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }

/* ¿Cuándo es momento de trabajar tu marca? */
.momentos-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
@media (max-width: 72em) { .momentos-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } .momento { grid-column: span 2; } .momento:nth-child(n+4) { grid-column: span 3; } }
@media (max-width: 40em) { .momentos-grid { grid-template-columns: 1fr; } .momento, .momento:nth-child(n+4) { grid-column: auto; } }
.momento { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); }
.momento-num { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.momento p { color: var(--ink-muted); font-size: 15px; line-height: 24px; }
.momento .momento-casos { margin-top: auto; padding-top: var(--space-3); border-top: 1px solid var(--line); font-size: 13px; line-height: 20px; }
.momento-casos a, .svc-casos a { color: var(--ink); text-underline-offset: 3px; }
.momentos-cierre { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-3); margin-top: var(--space-10); font-size: 18px; text-align: center; }

/* Servicios: dos niveles con imagen y el detalle debajo (opción B; diseño a trabajar después) */
.svc-levels-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.svc-level { display: flex; flex-direction: column; gap: var(--space-5); }
.svc-level .svc-card { flex: none; height: clamp(18rem, 28vw, 24rem); }
.svc-level .svc-card-img { filter: none; transform: none; }
.svc-level .svc-card::after { box-shadow: none; background: linear-gradient(180deg, rgba(7, 11, 19, .4) 0%, rgba(7, 11, 19, 0) 35%, rgba(7, 11, 19, .78) 100%); }
.svc-level .svc-tags { opacity: 1; visibility: visible; transform: none; }
.svc-level .svc-card-desc { max-height: none; opacity: 1; -webkit-line-clamp: unset; font-size: 15px; line-height: 22px; }
.svc-level .svc-card-title { margin: 0; }
.svc-level-detail { display: flex; flex-direction: column; gap: var(--space-4); flex: 1; padding-inline: var(--space-2); color: var(--ink-muted); font-size: 15px; line-height: 24px; }
.svc-level-detail strong { color: var(--ink); font-weight: 600; }
.svc-level-detail .btn { align-self: flex-start; margin-top: auto; }
.svc-fit { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin: 0; }
.svc-fit div { padding-top: var(--space-3); border-top: 1px solid var(--line); }
.svc-fit dt, .svc-casos span { font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-subtle); }
.svc-fit dd { margin: var(--space-1) 0 0; font-size: 14px; line-height: 22px; }
.svc-casos { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2); font-size: 14px; }
.svc-extra { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-6); margin-top: var(--space-6); padding: clamp(1.5rem, 3vw, 2.5rem); }
.svc-extra > div { display: grid; gap: var(--space-3); max-width: 44rem; }
.svc-extra p { color: var(--ink-muted); }
@media (max-width: 53.75em) { .svc-levels-grid, .svc-fit { grid-template-columns: 1fr; } .svc-levels-grid { gap: var(--space-12); } }

/* Cómo trabajo: cinco pasos */
.proceso .steps { grid-template-columns: repeat(5, minmax(13.75rem, 1fr)); margin: 0; padding: 0; list-style: none; }

/* Proyectos: caso destacado, línea de cada tarjeta y botón al final */
.feat-case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 4vw, 4rem); margin-top: clamp(2rem, 5vw, 3.5rem); }
.feat-case img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-2xl); }
.feat-case-text { display: grid; justify-items: start; gap: var(--space-4); }
.feat-case-text .card-title { font-size: clamp(32px, 4vw, 56px); line-height: 1; }
.feat-case-text p { color: var(--ink-muted); font-size: 17px; line-height: 28px; }
@media (max-width: 53.75em) { .feat-case { grid-template-columns: 1fr; } }
.more-foot p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: var(--space-1) 0 0; font-size: 12px; line-height: 17px; color: rgba(255, 255, 255, .82); }
.more-arc > li > .media-ph { display: grid; place-content: center; justify-items: center; gap: var(--space-2); width: 100%; height: 100%; background: var(--surface-sunken); color: var(--ink-subtle); font-size: 12px; }
.more-arc > li > .media-ph .icon { width: 22px; height: 22px; }
.more-foot-cta { display: flex; justify-content: center; margin-top: clamp(2rem, 5vw, 3.5rem); }

/* Sobre mí: dos enlaces */
.about-links { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); }
.about-links .link-arrow { min-height: 44px; text-align: left; }

/* ===== Landing Producto digital (fase 3): reutiliza las piezas de la landing Marcas ===== */
.pd-lang { align-self: flex-start; font-size: 13px; color: var(--v2-on-dark-muted); text-underline-offset: 3px; }
.pd-lang:hover { color: var(--v2-on-dark); }
.pd-signal { color: var(--ink) !important; font-size: 17px !important; line-height: 26px !important; letter-spacing: -0.01em; }
.pd-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.pd-role { display: flex; flex-direction: column; gap: var(--space-4); padding: clamp(1.5rem, 2.5vw, 2rem); }
.pd-role > p { color: var(--ink-muted); font-size: 15px; line-height: 24px; }
.pd-role .pd-small { font-size: 14px; line-height: 22px; }
.pd-role .pd-small strong { color: var(--ink); font-weight: 600; }
.pd-role .svc-casos { margin-top: auto; padding-top: var(--space-3); border-top: 1px solid var(--line); }
.pd-fit { margin-top: var(--space-4); padding: clamp(1.5rem, 2.5vw, 2rem); }
.pd-fit dd { color: var(--ink-muted); font-size: 15px; line-height: 24px; }
.pd-learned { max-width: 44rem; margin: var(--space-10) auto 0; padding: var(--space-6) var(--space-8); border-left: 3px solid var(--accent); }
.pd-learned figcaption { font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-subtle); }
.pd-learned blockquote { margin: var(--space-3) 0 0; font-size: 20px; line-height: 30px; letter-spacing: -0.015em; }
.pd-feat-ph { display: grid; place-content: center; justify-items: center; gap: var(--space-2); aspect-ratio: 1; border-radius: var(--radius-2xl); background: var(--surface-sunken); color: var(--ink-subtle); font-size: 14px; }
.pd-feat-ph .icon { width: 28px; height: 28px; }
.pd-cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); margin: clamp(2rem, 5vw, 3.5rem) 0 0; padding: 0; list-style: none; }
.pd-case { display: flex; flex-direction: column; gap: var(--space-4); padding: clamp(1.5rem, 2.5vw, 2rem); }
.pd-case p { color: var(--ink-muted); font-size: 15px; line-height: 24px; }
.pd-case .link-arrow { margin-top: auto; }
.pd-modes { margin-top: 0; }
@media (max-width: 53.75em) { .pd-roles, .pd-cases, .pd-modes { grid-template-columns: 1fr; } }

/* Sobre mí: subtítulo de formación */
.about-subtitle { margin: var(--space-12) 0 var(--space-2); }
#trayectoria .benefits { margin-top: var(--space-4); }
