/* Natem · capa v2: ajuste a pantalla de laptop, texto más grande, onda de voz, carrusel 3D, hovers.
   Se carga después de site.css. */
body { font-size: 18px; }
section { padding: clamp(36px, 6.5vh, 64px) 0; scroll-margin-top: 44px; }
h1 { font-size: clamp(2.5rem, min(5.3vw, 9.6vh), 5rem); }
h2 { font-size: clamp(2rem, min(4vw, 7.2vh), 3.4rem); }
h3 { font-size: 1.5rem; }
h4 { font-family: var(--display); font-weight: 500; font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.15; }
.lead { font-size: clamp(1.12rem, 1.55vw, 1.3rem); }
.lead b { color: var(--ink); font-weight: 600; }
.on-dark .lead b { color: #fff; }
.eyebrow { font-size: 0.86rem; }
.pill { font-size: 0.86rem; }
.head { margin-bottom: clamp(20px, 3.6vh, 40px); gap: 14px; }
.nav nav a { font-size: 1rem; }
.tile p, .step p, .service p, .why p, .area p, .proj .meta p { font-size: 1.05rem; }
.proj .pill { font-size: 0.78rem; }
.more { font-size: 1rem; }
.aud div { font-size: 1.02rem; }
.ico.pink { background: var(--pink); }
.ico.violet { background: var(--violet); color: #fff; }
.ico { transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }

/* hero dentro de una pantalla */
.hero { padding: 96px 0 20px; }
.hero .grid { min-height: calc(100svh - 116px); }
.hero .copy { gap: clamp(14px, 2.8vh, 26px); padding: 0; }
.stage { min-height: min(620px, calc(100svh - 116px)); }
.subhero { padding: 96px 0 20px; }
.subhero .stage { min-height: min(600px, calc(100svh - 116px)); }
.subhero h1 { font-size: clamp(2.3rem, min(4.6vw, 8.4vh), 4.2rem); }
.subhero .panel { padding: clamp(24px, 4vh, 38px); gap: clamp(14px, 2.4vh, 22px); }

/* bento IA */
.tile { min-height: 0; padding: 20px 22px; gap: 10px; }
#ia .head { margin-bottom: 18px; }
.tile.voice p { max-width: 50ch; }
.tile-head { display: flex; gap: 16px; align-items: flex-start; }
.tile-head > div { display: grid; gap: 8px; }
.halves { display: grid; gap: 12px; margin-top: auto; }
.shot.wide { aspect-ratio: 16 / 4; }
.shot.wide img { object-position: center 38%; }
.shot.pos-center img, .shot img[src$=".svg"] { object-position: center; }
.case { display: grid; grid-template-columns: 42% 1fr; gap: 16px; align-items: center; padding: 10px; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.66); border: 1px solid rgba(255, 255, 255, 0.9); }
.case .shot { aspect-ratio: 16 / 10; }
.case p { font-size: 0.98rem; margin: 6px 0 10px; }
.btn.sm { height: 42px; font-size: 0.92rem; padding-left: 18px; }
.btn.sm i { width: 28px; height: 28px; }
.tile:hover .ico.lg { transform: rotate(-10deg) scale(1.08); }
.t-flow:hover .ico.lg { transform: translateX(8px); }
.t-spark:hover .ico.lg { transform: rotate(90deg); }

.bento { grid-template-columns: 1fr 1.12fr 0.88fr; gap: 16px; }
.stack { display: grid; gap: 14px; }
.tile.mini { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; align-items: center; padding: 18px 20px; }
.tile.mini .ico.lg { width: 44px; height: 44px; }
.tile.mini h3 { font-size: 1.28rem; }
.tile.mini p { grid-column: 1 / -1; font-size: 1rem; }
.tile.voice .orb { z-index: 0; }
.tile.voice > *:not(.orb) { position: relative; z-index: 1; }

.tile-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tile.voice .tile-top { padding-right: 84px; }
.tile.mini { align-content: center; padding: 16px 20px; }
.case .shot { align-self: stretch; aspect-ratio: auto; min-height: 120px; }

/* llamada grabada */
.rec { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: center; padding: 14px 18px 12px 14px; border-radius: 26px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); color: #fff; position: relative; z-index: 1; margin-top: auto; }
.rec.light { margin: 0; background: rgba(255, 255, 255, 0.1); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.rec-play { width: 58px; height: 58px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; transition: transform 0.25s; box-shadow: 0 0 0 0 rgba(200, 231, 115, 0.5); animation: ringpulse 2.6s ease-out infinite; }
.rec-play:hover { transform: scale(1.07); }
.rec.playing .rec-play { animation: none; }
.rec-play svg { width: 22px; height: 22px; }
.rec-play span { display: grid; }
.rec-play .i-pause, .rec.playing .rec-play .i-play { display: none; }
.rec.playing .rec-play .i-pause { display: grid; }
.rec-body { min-width: 0; }
.rec-top { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; }
.rec-top time { margin-left: auto; font-variant-numeric: tabular-nums; color: #b9b2c0; }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff6b7a; flex: none; }
.rec.playing .rec-dot { animation: blink 1s steps(2) infinite; }
.rec-wave { display: flex; align-items: center; gap: 3px; height: 40px; margin: 4px 0; }
.rec-wave i { flex: 1; min-width: 2px; border-radius: 3px; background: #fff; opacity: 0.38; height: calc(var(--h, 0.3) * 100%); transition: height 0.09s linear; }
.rec:not(.playing) .rec-wave i { animation: idle 2.6s ease-in-out infinite; animation-delay: calc(var(--k, 0) * -0.13s); }
.rec-wave i.on { opacity: 1; background: var(--lime); }
.rec p { font-size: 0.92rem; color: #e3dde8; line-height: 1.35; min-height: 4.05em; }
.rec.light p { min-height: 2.7em; }
.rec-note { grid-column: 1 / -1; font-size: 0.76rem; color: #9a93a1; padding-left: 4px; }
@keyframes idle { 50% { transform: scaleY(0.45); } }
@keyframes blink { 50% { opacity: 0.2; } }
@keyframes ringpulse { 70%, 100% { box-shadow: 0 0 0 16px rgba(200, 231, 115, 0); } }

/* Natalia */
.natalia { padding: clamp(28px, 5vh, 48px) 48px; gap: 36px; }
.natalia .copy { gap: clamp(14px, 2.4vh, 22px); }
.nat-side { display: grid; gap: 14px; position: relative; z-index: 1; min-width: 0; }
.natalia .shot { aspect-ratio: 16 / 8.4; }
.flow div { font-size: 0.95rem; }

/* proceso: imagen de fondo + hover */
.step { position: relative; overflow: hidden; isolation: isolate; min-height: clamp(230px, 38vh, 290px); gap: 30px; transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.45s; }
.step > .n, .step > div { position: relative; z-index: 1; }
.step .n { transform-origin: left top; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), color 0.35s, text-shadow 0.35s; }
.bgimg { position: absolute; inset: 0; background-size: cover; background-position: top left; transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.bgimg::after { content: ""; position: absolute; inset: 0; }
.step.card .bgimg { z-index: 0; }
.step.card .bgimg::after { background: linear-gradient(180deg, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0.86) 48%, #fff 82%); }
.step.glass .bgimg { z-index: -2; opacity: 0.6; filter: blur(2.5px) saturate(1.15); border-radius: inherit; }
.step.glass .bgimg::after { background: linear-gradient(180deg, rgba(244, 240, 246, 0.35), rgba(244, 240, 246, 0.9) 70%); }
.step:hover { transform: translateY(-8px); }
.step:hover .bgimg { transform: scale(1.1); }
.step:hover .n { transform: scale(1.22); color: var(--violet); }
.step.dark:hover .n { color: var(--lime); text-shadow: 0 0 34px rgba(200, 231, 115, 0.55); }
.step.dark::before { content: ""; position: absolute; width: 260px; height: 260px; right: -130px; bottom: -150px; border-radius: 50%; background: radial-gradient(circle, rgba(200, 231, 115, 0.35), transparent 65%); transition: transform 0.7s; z-index: 0; }
.step.dark:hover::before { transform: scale(1.7); }

/* servicios con ilustración */
.service { padding: 12px 12px 24px; transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.service:hover { transform: translateY(-5px); }
.service .art { position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 320 / 140; }
.service .art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.service:hover .art img { transform: scale(1.07) rotate(-1.2deg); }
.service .art .ico { position: absolute; left: 12px; bottom: 12px; box-shadow: 0 10px 22px -10px rgba(23, 20, 26, 0.6); }
.service:hover .art .ico { transform: translateY(-4px) rotate(-8deg); }
.services { grid-template-columns: repeat(2, 1fr); gap: 16px; }
.service { grid-template-columns: 38% 1fr; grid-template-rows: auto auto; gap: 6px 20px; padding: 10px 22px 10px 10px; align-content: center; }
.service .art { grid-row: 1 / 3; aspect-ratio: auto; height: 100%; min-height: clamp(118px, 19vh, 150px); }
.service h3 { align-self: end; }
.service p { align-self: start; }
.why div { transition: transform 0.4s; }
.why div:hover { transform: translateY(-5px); }
.why div:hover .ico { transform: rotate(-12deg) scale(1.12); }
.area:hover .shot img { transform: scale(1.05); }

/* carrusel 3D */
.ring { position: relative; height: 340px; perspective: 1200px; z-index: 1; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%); }
.ring-spin { position: absolute; inset: 0; transform-style: preserve-3d; animation: ring 46s linear infinite; }
.ring figure { position: absolute; left: 50%; top: 50%; width: 230px; aspect-ratio: 16 / 10; margin: -72px 0 0 -115px; border-radius: 16px; overflow: hidden; background: #2b2730; box-shadow: 0 30px 50px -24px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.22); transform: rotateY(calc(var(--i) * 360deg / var(--n))) translateZ(calc(var(--n) * 39px)); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.ring figure img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.ring figure img[src$=".svg"] { object-position: center; }
@keyframes ring { from { transform: translateY(0) rotateX(-7deg) rotateY(0); } 50% { transform: translateY(-10px) rotateX(-7deg) rotateY(-180deg); } to { transform: translateY(0) rotateX(-7deg) rotateY(-360deg); } }
.subhero .stage.has-ring .ring { position: absolute; right: -2%; top: 6%; width: 56%; height: 62%; }
.subhero .stage.has-ring .ring figure { width: 250px; margin: -78px 0 0 -125px; box-shadow: 0 30px 50px -24px rgba(74, 38, 96, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.6); }

/* cierre */
.final { padding: clamp(32px, 6vh, 60px) 48px; grid-template-columns: 1fr; align-items: center; }
.final.has-ring { grid-template-columns: 1.15fr 1fr; }
.final h2 { font-size: clamp(2.2rem, min(4.6vw, 8vh), 4rem); }
.final .copy { gap: clamp(14px, 2.6vh, 22px); max-width: 780px; }
.final .lead { color: #c9c2cf; }
.final .lead b, .final .note b { color: #fff; font-weight: 600; }
.final .note { font-size: 1.08rem; color: #dcd6e1; max-width: 44ch; }
.final .ring figure { width: 200px; margin: -62px 0 0 -100px; transform: rotateY(calc(var(--i) * 360deg / var(--n))) translateZ(calc(var(--n) * 33px)); }
.final .ring { perspective: 900px; height: 320px; margin-right: -30px; }
.final.has-ring .orb { opacity: 0.4; right: 4%; bottom: -160px; }

@media (max-width: 1020px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .stack { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
  .hero .grid { min-height: 0; }
  .stage, .subhero .stage { min-height: 540px; }
  .final.has-ring { grid-template-columns: 1fr; }
  .final .orb { opacity: 0.5; }
  .subhero .stage.has-ring { padding-top: 250px; }
  .subhero .stage.has-ring .ring { left: 0; right: 0; top: 14px; width: 100%; height: 230px; }
  .subhero .stage.has-ring .ring figure, .ring figure { width: 190px; margin: -60px 0 0 -95px; transform: rotateY(calc(var(--i) * 360deg / var(--n))) translateZ(calc(var(--n) * 32px)); }
  .ring { height: 250px; }
}
@media (max-width: 680px) {
  .services { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; padding: 10px 10px 20px; }
  .service .art { grid-row: auto; aspect-ratio: 320 / 140; height: auto; min-height: 0; }
  .service h3, .service p { padding: 0 10px; }
  .bento, .stack { grid-template-columns: 1fr; }
  .stack { grid-column: auto; }
  body { font-size: 17px; }
  .natalia, .final { padding: 28px 20px; }
  .case { grid-template-columns: 1fr; }
  .shot.wide { aspect-ratio: 16 / 7; }
  .tile-head { flex-direction: column; gap: 12px; }
  .rec { padding: 12px 14px 10px 12px; gap: 4px 12px; }
  .rec-play { width: 50px; height: 50px; }
  .rec-wave { gap: 2px; }
  .step { min-height: 0; }
  .final .cta-row .btn { width: 100%; justify-content: space-between; }
  .final .cta-row .btn.ghost { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .ring-spin, .rec-play, .rec-wave i { animation: none !important; }
}

/* fotos reales y créditos */
.service .art img { object-position: top left; }
.service .art img[src*="foto-"], .ring figure img[src*="foto-"] { object-position: center; }
.services > .service:last-child:nth-child(odd) { grid-column: 1 / -1; grid-template-columns: 18.4% 1fr; }
.credits { padding-top: 130px; }
.credits h1 { font-size: clamp(2.3rem, min(4.6vw, 8.4vh), 4.2rem); }
.credits .lead { max-width: 74ch; }
.credit-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.credit { padding: 12px 12px 20px; display: grid; gap: 14px; align-content: start; transition: transform 0.35s; }
.credit:hover { transform: translateY(-4px); }
.credit > div { padding: 0 10px; display: grid; gap: 6px; }
.credit h3 { font-size: 1.2rem; }
.credit p { color: var(--ink-2); font-size: 1rem; }
@media (max-width: 1020px) { .credit-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .credit-list { grid-template-columns: 1fr; } .services > .service:last-child:nth-child(odd) { grid-template-columns: 1fr; } }
.service .art img { position: absolute; inset: 0; }
@media (max-width: 680px) { .service .art img { position: static; } }

/* v3: hero oscuro con planeta y carrusel, cierre claro, leyenda */
.shot.wide { aspect-ratio: 1200 / 360; }
.shot.wide img { object-position: center; }
.many { text-align: center; margin-top: clamp(22px, 4vh, 40px); font-size: clamp(2rem, min(4vw, 7vh), 3.4rem); line-height: 1.1; }
.many em { font-size: 1em; }
.stage.planet { position: absolute; z-index: 0; right: -70px; bottom: -110px; width: 560px; height: 560px; min-height: 0; background: none; box-shadow: none; overflow: visible; border-radius: 0; opacity: 0.92; pointer-events: none; }
.stage.planet::after { content: none; }
.herodark { min-height: min(600px, calc(100svh - 116px)); align-items: center; padding: clamp(28px, 5vh, 56px) 52px; }
.herodark h1 { font-size: clamp(2.4rem, min(4.9vw, 8.8vh), 4.5rem); }
.herodark .copy { gap: clamp(14px, 2.6vh, 24px); }
.herodark .kicker { font-family: var(--display); font-size: clamp(1.35rem, 2.1vw, 1.9rem); letter-spacing: -0.02em; line-height: 1.15; color: #f5f1f7; }
.herodark .ring { height: 380px; }
.final.light { color: var(--ink); grid-template-columns: 1fr; }
.final.light .lead { color: var(--ink-2); }
.final.light .lead b { color: var(--ink); }
.final.light .copy { max-width: 820px; }
@media (max-width: 1020px) {
  .stage.planet { width: 420px; height: 420px; right: -90px; bottom: -90px; opacity: 0.75; }
  .herodark { padding: 34px 26px; }
  .herodark .ring { height: 250px; }
}
@media (max-width: 680px) {
  .herodark { padding: 30px 20px; min-height: 0; }
  .stage.planet { width: 340px; height: 340px; right: -110px; bottom: -70px; }
}
#ia { padding-top: 30px; }
#ia .head { margin-bottom: 12px; }
