/* Nereida · Pila de casos (Core 1.5.0; composición «Vídeo» desde la 1.19.0). Números medidos en humaan.com. */
.n-casos {
	--nc-espuma: #A9E2CF;
	--nc-lavanda: #C6BEF4;
	--nc-azul: #B9E4FA;
	--nc-ink: var(--color-ink, #070035);
	--nc-ink-soft: color-mix(in srgb, var(--nc-ink) 70%, transparent);
	--nc-radius: var(--radius-block, clamp(28px, 3.4vw, 48px));
	--nc-ease: cubic-bezier(.22, 1, .36, 1);
	display: flex; flex-direction: column; gap: clamp(72px, 24vh, 220px); width: 100%;
}
.n-caso { --nc-card: var(--nc-espuma); --nc-media: #0A3438; position: sticky; top: var(--stick, 104px); display: grid; grid-template-columns: minmax(0, 6.4fr) minmax(0, 5.6fr); gap: clamp(24px, 3.6vw, 72px); align-items: stretch; min-height: clamp(500px, 42vw, 640px); padding: clamp(12px, 1.3vw, 20px); border-radius: var(--nc-radius); background: radial-gradient(110% 80% at 0% 0%, rgba(255, 255, 255, .42), rgba(255, 255, 255, 0) 62%), var(--nc-card); color: var(--nc-ink); transform-origin: 50% 0; will-change: transform; }
.n-caso--lavanda { --nc-card: var(--nc-lavanda); }
.n-caso--azul { --nc-card: var(--nc-azul); }
.n-caso--blanco { --nc-card: #fff; }
.elementor-editor-active .n-caso { position: relative; top: auto; }

.n-caso-media { position: relative; display: block; border-radius: calc(var(--nc-radius) - 10px); overflow: hidden; isolation: isolate; min-height: 360px; text-decoration: none; color: inherit;
	background: radial-gradient(70% 80% at 30% 20%, color-mix(in srgb, var(--nc-media), #fff 24%), transparent 70%), radial-gradient(60% 70% at 90% 100%, color-mix(in srgb, var(--nc-media), #fff 10%), transparent 70%), var(--nc-media); }
.n-casos[data-cursor]:not([data-cursor=""]) a.n-caso-media { cursor: none; }
.n-caso-foto, .n-caso-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.n-caso-go { display: none; }

.n-caso-texto { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(20px, 3vw, 52px) clamp(12px, 2.6vw, 44px) clamp(16px, 2vw, 32px) 0; }
.n-casos .n-caso-q { margin: 0; font-size: clamp(22px, 2.15vw, 33px); line-height: 1.22; letter-spacing: -.03em; font-weight: 500; color: var(--nc-ink); text-wrap: pretty; max-width: 19em; }
.n-caso-pie { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 28px; flex-wrap: wrap; }
.n-casos .n-caso-t { margin: 0; padding: 0; font-family: inherit; font-size: 17px; line-height: 1.35; letter-spacing: -.01em; font-weight: 600; color: var(--nc-ink); }
.n-casos .n-caso-s { margin: 0; font-size: var(--font-kicker, 14px); line-height: 1.4; color: var(--nc-ink-soft); }
.n-casos a.n-caso-link { display: inline-flex; align-items: center; gap: 8px; font-family: inherit; font-size: var(--font-body, 17px); font-weight: 500; color: var(--nc-ink); text-decoration: none; }
.n-caso-link span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 2px; transition: background-size .5s var(--nc-ease); }
.n-caso-link:hover span { background-size: 100% 1px; }
.n-caso-link svg { width: 14px; height: 14px; transition: transform .45s var(--nc-ease); }
.n-caso-link:hover svg { transform: translate(2px, -2px); }

/* composición «Vídeo» (1.19.0): una pantalla sin marco. La sombra llega como mucho a 12 px por los lados y 38 por abajo: entre la pantalla y el borde de la caja quedan desde 19 px (a 1024), y lo que pase de ahí se corta en seco (1.19.1), apoyada en el color de la tarjeta. La imagen llega a ras
   del borde de la tarjeta (margen negativo igual al relleno): lo que sale por un lado se corta en el borde real. */
.n-caso--video { --nc-pad: clamp(12px, 1.3vw, 20px); }
.n-caso--video .n-caso-media { margin: calc(-1 * var(--nc-pad)) 0 calc(-1 * var(--nc-pad)) calc(-1 * var(--nc-pad)); border-radius: var(--nc-radius) 0 0 var(--nc-radius); background: transparent; }
.n-pantalla { position: absolute; overflow: hidden; background: #fff; border-radius: 14px; box-shadow: 0 26px 38px -26px rgba(7, 0, 53, .42), 0 0 0 1px rgba(7, 0, 53, .07); transition: transform 1s var(--nc-ease); will-change: transform; }
.n-pantalla--esc { left: 4%; top: 50%; width: 92%; aspect-ratio: 16 / 10; translate: 0 -50%; }
.n-pantalla--mov { display: none; left: 50%; top: 50%; width: 36%; aspect-ratio: 540 / 1168; translate: -50% -50%; border-radius: 26px; }
.n-video { display: block; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.n-caso-media:hover .n-pantalla--esc { transform: translateY(-6px); }

/* los dispositivos */
.n-navegador { position: absolute; left: 8%; top: 12%; width: 72%; aspect-ratio: 16 / 10.4; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06); transition: transform 1s var(--nc-ease); }
.n-navegador-barra { position: relative; height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #F2F5F9; border-bottom: 1px solid rgba(7, 0, 53, .06); }
.n-navegador-barra > i { width: 9px; height: 9px; border-radius: 50%; background: #D4DBE4; flex: none; }
.n-navegador-url { position: absolute; left: 50%; top: 50%; translate: -50% -50%; max-width: 62%; height: 22px; padding: 0 12px; border-radius: 7px; background: #fff; display: flex; align-items: center; font-size: 12px; font-weight: 500; color: rgba(7, 0, 53, .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.n-navegador-pantalla { position: absolute; left: 0; right: 0; top: 34px; bottom: 0; overflow: hidden; background: #fff; }
.n-movil { position: absolute; right: 7%; bottom: -10%; width: 23%; aspect-ratio: 390 / 844; padding: 8px; border-radius: 38px; background: #0C0A1D; box-shadow: 0 60px 100px -30px rgba(0, 0, 8, .85), inset 0 0 0 1.5px rgba(255, 255, 255, .14); transition: transform 1s var(--nc-ease); }
.n-duo .n-movil::after { content: ""; position: absolute; top: 15px; left: 50%; width: 27%; height: 15px; translate: -50% 0; border-radius: 99px; background: #0C0A1D; z-index: 2; }
.n-movil-pantalla { position: relative; width: 100%; height: 100%; border-radius: 31px; overflow: hidden; background: #fff; }
.n-movil-pantalla img, .n-navegador-pantalla img { position: absolute; left: 0; top: 0; width: 100%; height: auto; max-width: none; display: block; }
.n-scroll { will-change: transform; }
.n-loop .n-scroll { animation: n-scroll-loop var(--dur, 18s) cubic-bezier(.65, 0, .35, 1) infinite alternate; animation-play-state: paused; }
.n-loop.is-playing .n-scroll { animation-play-state: running; }
@keyframes n-scroll-loop { 0%, 8% { transform: translateY(0); } 92%, 100% { transform: translateY(calc(var(--dist, 0) * -1px)); } }

.n-fan { --fan: 1; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.n-fan .n-movil { right: auto; bottom: auto; top: 50%; left: 50%; width: clamp(150px, 15.5vw, 226px); translate: -50% -46%; transition: transform .9s var(--nc-ease); }
.n-fan .n-movil--l { transform: translateX(calc(-24% - 48% * var(--fan))) rotate(calc(-1deg - 6deg * var(--fan))) scale(.9); z-index: 1; }
.n-fan .n-movil--r { transform: translateX(calc(24% + 48% * var(--fan))) rotate(calc(1deg + 6deg * var(--fan))) scale(.9); z-index: 1; }
.n-fan .n-movil--c { z-index: 2; transform: translateY(-2%); }
.n-caso-media:hover .n-fan .n-movil--l { transform: translateX(-86%) rotate(-10deg) scale(.9); }
.n-caso-media:hover .n-fan .n-movil--r { transform: translateX(86%) rotate(10deg) scale(.9); }
.n-caso-media:hover .n-fan .n-movil--c { transform: translateY(-5%); }
.n-caso-media:hover .n-duo .n-navegador { transform: translate3d(-8px, -6px, 0); }
.n-caso-media:hover .n-duo .n-movil { transform: translate3d(6px, -14px, 0); }

/* el cursor propio, solo con ratón */
.n-caso-cursor { position: fixed; left: 0; top: 0; z-index: 1200; width: 104px; height: 104px; margin: -52px 0 0 -52px; border-radius: 50%; background: #fff; color: var(--color-ink, #070035); display: grid; place-items: center; font-size: 14px; font-weight: 500; pointer-events: none; transform: scale(0); transition: transform .45s cubic-bezier(.22, 1, .36, 1); box-shadow: 0 18px 40px -18px rgba(7, 0, 53, .4); }
.n-caso-cursor.is-on { transform: scale(1); }
.n-caso-cursor span { display: inline-flex; align-items: center; gap: 5px; }
.n-caso-cursor svg { width: 12px; height: 12px; }

@media (max-width: 900px) {
	.n-caso--video { --nc-pad: 10px; }
	.n-caso--video .n-caso-media { aspect-ratio: 1 / 1.18; margin: -10px -10px 0; border-radius: var(--nc-radius) var(--nc-radius) 0 0; }
	.n-pantalla--esc { display: none; }
	/* sin capa propia en móvil (1.19.2): no hay hover que mover, y la capa se ajustaba a píxel mientras la tarjeta se movía */
	.n-pantalla--mov { display: block; width: 52%; will-change: auto; transition: none; }
	.n-casos { gap: clamp(56px, 16vh, 140px); }
	.n-caso { grid-template-columns: 1fr; min-height: 0; gap: 4px; padding: 10px; }
	/* en móvil la imagen manda: marco alto, dispositivos grandes que se abren o suben con el scroll, y un botón redondo */
	.n-caso-media { min-height: 0; aspect-ratio: 1 / 1.04; }
	.n-casos[data-cursor] a.n-caso-media { cursor: auto; }
	.n-caso-go { position: absolute; z-index: 5; right: 12px; top: 12px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--nc-ink); box-shadow: 0 14px 30px -14px rgba(0, 0, 10, .5); }
	.n-caso-go svg { width: 15px; height: 15px; }
	.n-caso-texto { padding: 20px 10px 12px; gap: 28px; }
	.n-casos .n-caso-q { font-size: clamp(21px, 5.8vw, 25px); line-height: 1.2; }
	.n-casos .n-caso-t { font-size: var(--font-body, 17px); }
	.n-casos .n-caso-s { font-size: var(--font-kicker, 14px); }
	.n-fan { --fan: 0; }
	.n-fan .n-movil { width: 43%; translate: -50% -44%; transition: none; border-radius: 30px; padding: 6px; }
	.n-fan .n-movil--l { transform: translateX(calc(-20% - 42% * var(--fan))) rotate(calc(-1deg - 7deg * var(--fan))) scale(.88); }
	.n-fan .n-movil--r { transform: translateX(calc(20% + 42% * var(--fan))) rotate(calc(1deg + 7deg * var(--fan))) scale(.88); }
	.n-duo { --sube: 0; }
	.n-duo .n-navegador { left: -16%; top: 9%; width: 124%; transition: none; transform: translateY(calc(6% * (1 - var(--sube)))); }
	.n-duo .n-movil { right: 7%; bottom: -14%; width: 47%; border-radius: 30px; padding: 6px; transition: none; transform: translateY(calc(26% * (1 - var(--sube)))); }
	.n-duo .n-movil::after { top: 11px; height: 12px; }
	.n-movil-pantalla { border-radius: 25px; }
	.elementor-editor-active .n-fan { --fan: 1; }
	.elementor-editor-active .n-duo { --sube: 1; }
	.n-caso-cursor { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.n-loop .n-scroll { animation: none; }
	.n-fan { --fan: 1; }
	.n-duo { --sube: 1; }
	.n-caso-cursor { display: none; }
}
