/* =========================================================================
   Narrativa 7 — más web, menos presentación.
   Fondo claro con auras suaves, esquinas redondeadas, botones píldora,
   títulos contenidos, el producto en fragmentos de UI que flotan.
   ========================================================================= */
.a7, :root {
  --n7: #020A35; --b7: #204DE5; --b7l: #4F7BFF; --ink7: #3E4763; --mut7: #7A839C;
  --line7: #E6E9F2; --soft7: #F5F7FC;
  --r7: 24px; --r7s: 14px;
  --sh7: 0 1px 2px rgba(2,10,53,.06), 0 18px 40px -18px rgba(2,10,53,.22);
  --sh7f: 0 2px 6px rgba(2,10,53,.06), 0 30px 60px -20px rgba(2,10,53,.30);
}
.a7 body { background: #fff; color: var(--ink7); }

/* tipografía: títulos contenidos, texto de lectura */
.a7 h2 { font-size: clamp(30px, 2.9vw, 44px) !important; line-height: 1.12 !important; letter-spacing: -.02em !important; font-weight: 700 !important; color: var(--n7); }
.a7 .section p.lead, .a7 .s7__head p { font-size: 18px !important; line-height: 1.6 !important; }
.a7 .kicker { display: none !important; }
.a7 .hl { color: var(--b7) !important; }

/* secciones: sin bordes ni franjas; aire generoso */
.a7 .section, .a7 .s7 { padding: 112px 0 !important; border: 0 !important; background: #fff !important; }
.a7 .section--bg { background: var(--soft7) !important; }

/* botones píldora */
.a7 .btn, .a7 .b7 { border-radius: 999px !important; }
.b7 { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 24px; border: 1.5px solid var(--n7); color: var(--n7); font-weight: 600; font-size: 15px; text-decoration: none; transition: background .2s, color .2s, transform .2s; }
.b7:hover { background: var(--n7); color: #fff; }
.b7--fill { background: var(--b7); border-color: var(--b7); color: #fff !important; }
.b7--fill:hover { background: #1A3FC4; border-color: #1A3FC4; }
.pill-tag { display: inline-block; padding: 7px 14px; border-radius: 999px; background: #EAF0FF; color: var(--b7); font-size: 13px; font-weight: 600; }

/* fragmento de UI real, flotando */
.ui { border-radius: var(--r7s); overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(2,10,53,.06), var(--sh7f); }
.ui img { display: block; width: 100%; height: auto; }

/* ---------- HERO ---------- */
.h7 { position: relative; overflow: hidden; padding: 150px 0 110px; background: #fff; }
.h7__aura { position: absolute; inset: 0; pointer-events: none; }
.h7__aura i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: aura 18s ease-in-out infinite alternate; }
.h7__aura i:nth-child(1) { width: 720px; height: 560px; right: -120px; top: -120px; background: radial-gradient(closest-side, #4F7BFF, transparent); }
.h7__aura i:nth-child(2) { width: 520px; height: 460px; right: 280px; bottom: -200px; background: radial-gradient(closest-side, #C9C1FF, transparent); animation-duration: 22s; }
.h7__aura i:nth-child(3) { width: 420px; height: 380px; left: -160px; top: 120px; background: radial-gradient(closest-side, #DCE5FF, transparent); animation-duration: 26s; }
@keyframes aura { from { transform: translate(0,0) scale(1); } to { transform: translate(-40px, 30px) scale(1.08); } }
.h7__grid { position: relative; display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.h7 h1 { margin-top: 22px; font-size: clamp(44px, 4.6vw, 66px) !important; line-height: 1.04 !important; letter-spacing: -.03em; color: var(--n7); }
.h7 .h7__txt > p { margin-top: 22px; font-size: 19px; line-height: 1.6; color: var(--ink7); max-width: 34ch; }
.h7__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.h7__comp { position: relative; height: 520px; }
.h7__comp .ui { position: absolute; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.ui--base { left: 6%; right: -6%; top: 40px; animation: fl1 9s ease-in-out infinite alternate; }
.ui--kpi { right: 2%; top: -6px; width: 58%; animation: fl2 7s ease-in-out infinite alternate; }
.ui--chart { left: -4%; bottom: 0; width: 40%; animation: fl3 8s ease-in-out infinite alternate; }
@keyframes fl1 { to { translate: 0 -8px; } }
@keyframes fl2 { to { translate: 0 10px; } }
@keyframes fl3 { to { translate: 0 -12px; } }

/* ---------- BENTO de módulos ---------- */
.s7__head { max-width: 760px; margin: 0 auto; text-align: center; }
.s7__head p { margin-top: 16px; color: var(--ink7); }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.c7 { position: relative; display: flex; flex-direction: column; min-height: 400px; border-radius: var(--r7); overflow: hidden; background: linear-gradient(160deg, #F4F7FF 0%, #FBFCFF 55%, #F1F0FF 100%); box-shadow: inset 0 0 0 1px var(--line7); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; scroll-margin-top: 110px; }
.c7:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px #D7DEF5, var(--sh7); }
.c7--wide { grid-column: span 2; }
.c7__t { padding: 32px 32px 0; }
.c7 h3 { font-size: 22px; line-height: 1.25; color: var(--n7); }
.c7 p { margin-top: 8px; font-size: 15.5px; line-height: 1.55; color: var(--ink7); max-width: 40ch; }
.c7__m { position: relative; flex: 1; margin-top: 28px; }
.c7__m .ui { position: absolute; left: 32px; right: -40px; top: 0; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.c7:hover .c7__m .ui { transform: translateY(-6px); }
.c7--wide .c7__m .ui:first-child { left: 32px; right: auto; width: 54%; }
.c7--wide .c7__m .ui:nth-child(2) { left: auto; right: -30px; width: 46%; top: 36px; }
.c7:target, .c7.is-hl { box-shadow: inset 0 0 0 2px var(--b7l), var(--sh7); }

/* ---------- PELÍCULA ---------- */
.cine--a7 { background: #fff !important; padding: 40px 0 112px !important; }
.cine--a7 .cine__head { text-align: center; }
.cine--a7 .cine__head h2 { margin: 0 auto !important; max-width: 20ch; }
.cine--a7 .cine__stage { margin-top: 48px; padding: 56px; border-radius: 32px; background: radial-gradient(60% 70% at 85% 10%, #C9D5FF 0%, transparent 70%), radial-gradient(50% 60% at 10% 90%, #DCD6FF 0%, transparent 70%), #F3F5FC; }
.cine--a7 .cine__scr { border-radius: 16px !important; overflow: hidden; box-shadow: 0 0 0 1px rgba(2,10,53,.06), 0 40px 80px -30px rgba(2,10,53,.35) !important; }
.cine--a7 .cine__chs { margin-top: 40px; }

/* ---------- AGENTE, CASO, FAQ, CTA: mismo lenguaje redondeado ---------- */
.a7 .ag { border-radius: var(--r7) !important; box-shadow: 0 0 0 1px var(--line7), var(--sh7) !important; }
.a7 .ab__ln, .a7 .ab__ex, .a7 .ab__o { border-radius: 10px !important; }
.a7 #agente .split { align-items: center; }
.a7 .agent-steps > div { border-radius: 0; }
.a7 .cz { border-radius: var(--r7) !important; overflow: hidden; box-shadow: 0 0 0 1px var(--line7) !important; transition: transform .35s, box-shadow .35s; }
.a7 .cz:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px #D7DEF5, var(--sh7) !important; }
.a7 .cz__tags span { border-radius: 999px !important; }
.a7 .faq details { border-radius: var(--r7s) !important; }
.a7 .ix__txt h3 { font-size: clamp(26px, 2.4vw, 36px); }
.a7 .section--bg:last-of-type .wrap > div, .a7 .cta, .a7 [class*="cta"] { border-radius: 28px !important; }

@media (max-width: 900px) {
  .h7 { padding: 120px 0 64px; }
  .h7__grid { grid-template-columns: 1fr; gap: 40px; }
  .h7__comp { height: 380px; }
  .bento { grid-template-columns: 1fr; }
  .c7--wide { grid-column: auto; }
  .c7 { min-height: 340px; }
  .cine--a7 .cine__stage { padding: 16px; border-radius: 20px; }
}
.a7 .header.on-light a, .a7 .header.on-light button { color: inherit; }
.a7 .ui--base { left: 0; right: -8%; top: 64px; }
.a7 .ui--kpi { right: -2%; top: 0; width: 64%; }
.a7 .ui--chart { left: -6%; bottom: -10px; width: 38%; }
/* CTA final sobre navy: títulos en blanco */
.a7 .section--bg:last-of-type h2, .a7 [class*="cta"] h2 { color: #fff !important; }
.a7 .c7__m .ui { right: 24px; }
.a7 .c7--wide .c7__m .ui:nth-child(2) { right: -30px; }
.a7 .ui--base { left: -2%; right: -10%; }

/* ===== Ajuste hacia Globant: sobrio, blanco, tarjetas blancas con foto ===== */
.a7 .h7__aura i { opacity: .28; }
.a7 .h7__aura i:nth-child(2) { background: radial-gradient(closest-side, #B8C6FF, transparent); }
.a7 .h7 { padding: 140px 0 96px; }
.h7__media { position: relative; }
.g7-shot { border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(2,10,53,.06), 0 24px 60px -24px rgba(2,10,53,.28); }
.g7-shot img { display: block; width: 100%; }
.a7 .s7__head--left { margin: 0; text-align: left; max-width: 820px; }
.g7s { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 48px; }
.g7 { display: flex; flex-direction: column; padding: 18px 18px 26px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgba(2,10,53,.05), 0 8px 24px -10px rgba(2,10,53,.14); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; scroll-margin-top: 110px; }
.g7:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(2,10,53,.06), 0 20px 40px -16px rgba(2,10,53,.22); }
.g7__img { aspect-ratio: 16 / 9; border-radius: 10px; background: #E9ECF4 center / cover; }
.g7 h3 { margin-top: 22px; font-size: 20px; line-height: 1.25; color: var(--n7); }
.g7 p { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--ink7); }
.g7.is-hl { box-shadow: 0 0 0 2px var(--b7), 0 20px 40px -16px rgba(2,10,53,.22); }
.a7 .cine--a7 .cine__head { text-align: left; }
.a7 .cine--a7 .cine__head h2 { margin: 0 !important; max-width: none; }
.a7 .cine--a7 .cine__stage { padding-top: 0; padding-bottom: 0; background: none; border-radius: 0; }
@media (max-width: 1100px) { .g7s { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .g7s { grid-template-columns: 1fr; } }
.g7 h3 { hyphens: none; -webkit-hyphens: none; font-size: 19px; } .g7 h3 span { white-space: normal; }

/* ===== v3: menos redondeado + movimiento ===== */
.a7 { --r7: 16px; --r7s: 14px; }
.a7 .btn, .a7 .b7 { border-radius: 6px !important; }
.a7 .pill-tag { border-radius: 4px; }
.g7 { border-radius: 10px; }
.g7__img { border-radius: 4px; overflow: hidden; position: relative; background: none; }
.g7-shot { border-radius: 10px; }
.a7 .cine--a7 .cine__scr { border-radius: 10px !important; }
.a7 .cz, .a7 .ag, .a7 .faq details { border-radius: 10px !important; }
.a7 .section--bg:last-of-type .wrap > div, .a7 .cta, .a7 [class*="cta"] { border-radius: 12px !important; }
.a7 .cz__tags span { border-radius: 4px !important; }

/* reveal más fino, con escalonado */
.a7 .reveal { transform: translateY(32px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--i, 0) * 90ms); }

/* título del hero: cada línea sube desde una máscara */
.m7-title .m7-l { display: block; overflow: hidden; padding-bottom: .06em; }
.m7-title .m7-l > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--i) * 120ms + 100ms); }
.m7-title.is-in .m7-l > span { transform: none; }

/* pantalla del hero: entra desde abajo y luego acompaña el scroll */
.m7-rise { opacity: 0; transform: translateY(60px) scale(.97); transition: opacity 1.1s .35s cubic-bezier(.16,1,.3,1), transform 1.1s .35s cubic-bezier(.16,1,.3,1); }
.m7-rise.is-in { opacity: 1; transform: translateY(var(--py, 0px)); transition-property: opacity, transform; }
.m7-rise.is-in.is-done { transition: none; }

/* foto de cada módulo: parallax suave y zoom al pasar el mouse */
.g7__img i { position: absolute; inset: -12% 0; background: inherit; background-image: var(--ph); background-size: cover; background-position: center; transform: translateY(var(--py, 0px)) scale(1.02); transition: scale .6s cubic-bezier(.16,1,.3,1); }
.g7:hover .g7__img i { scale: 1.07; }
.g7 h3 { transition: color .25s; }
.g7:hover h3 { color: var(--b7); }

/* película: crece hasta el ancho completo mientras entra en pantalla */
.m7-grow .cine__scr { transform: scale(var(--g, .9)); transform-origin: 50% 0; will-change: transform; }

/* encabezado: se oculta al bajar y vuelve al subir */
.a7 .header { transition: transform .45s cubic-bezier(.16,1,.3,1), background .3s, box-shadow .3s; }
.a7 .header.is-hid { transform: translateY(-100%); }

@media (prefers-reduced-motion: reduce) {
  .a7 .reveal, .m7-title .m7-l > span, .m7-rise { transition: none !important; transform: none !important; opacity: 1 !important; }
}
