/* ═══════════════════════ TOKENS ═══════════════════════ */
:root {
  --white:   #ffffff;
  --black:   #0a0a0a;
  --gray:    #4d4d4d;
  --purple:  #a945c6;
  --purple2: #b967d2;
  --purple-dim: rgba(169,69,198,0.12);
  --purple-glow: rgba(169,69,198,0.25);
  --header-h: 72px;
  --gutter: clamp(20px, 5vw, 80px);
  --site-max: 1280px;
  --card-bg: rgba(18, 18, 18, 0.96);
}

@font-face {
  font-family: 'TypoGraphica';
  src: url('assets/fonts/TypoGraphica.ttf') format('truetype');
  font-display: swap;
}

/* ═══════════════════════ BASE ═══════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: 'DM Mono', monospace;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
}

/* ═══════════════════════ INTRO OVERLAY ═══════════════════════ */
#intro-overlay {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: none;
}

#intro-overlay.exit {
  animation: overlayExit 1.0s cubic-bezier(0.76, 0, 0.24, 1) forwards;
  pointer-events: none;
}

@keyframes overlayExit {
  0%   { opacity: 1; transform: translateY(0); }
  30%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-40px); }
}

/* stage de la animación — ocupa toda la pantalla en intro */
#stage {
  background: transparent;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

#stage canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#logo-svg {
  width: 285.75px;
  height: 285.75px;
  overflow: visible;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: none;
}

#cursor-layer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 285.75px;
  height: 285.75px;
  pointer-events: none;
  overflow: visible;
}

#audio-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: #bbb;
  font-family: 'DM Mono', monospace;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  letter-spacing: 0.08em;
}

/* ═══════════════════════ SCROLLBAR ═══════════════════════ */
:root {
  --scroll-track: #0a0a0a;
}

/* evita que la página "salte" al abrir un modal (que bloquea el scroll) */
html { scrollbar-gutter: stable; }

/* Chrome, Edge, Safari, Opera */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--scroll-track);
  border-left: 1px solid rgba(255, 255, 255, 0.04);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--purple2), var(--purple));
  border: 3px solid transparent;
  background-clip: padding-box;     /* efecto "inset": queda aire alrededor */
  border-radius: 99px;
  min-height: 48px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #c985de, var(--purple2));
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:active {
  background: var(--purple);
  background-clip: padding-box;
}

::-webkit-scrollbar-corner { background: transparent; }

/* En los modales: track transparente y separado de los bordes redondeados */
#modal-box::-webkit-scrollbar,
#wayra-modal::-webkit-scrollbar { width: 10px; }

#modal-box::-webkit-scrollbar-track,
#wayra-modal::-webkit-scrollbar-track {
  background: transparent;
  border-left: none;
  margin: 28px 0;
}

/* Firefox (no soporta ::-webkit-scrollbar) */
@supports not selector(::-webkit-scrollbar) {
  * {
    scrollbar-width: thin;
    scrollbar-color: var(--purple) var(--scroll-track);
  }
  #modal-box,
  #wayra-modal {
    scrollbar-color: var(--purple) transparent;
  }
}

/* ═══════════════════════ HEADER ═══════════════════════ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--white);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  opacity: 0;
  transform: translateY(-100%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

#site-header.visible {
  animation: headerIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes headerIn {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}

/* logo en header — SVG pequeño inline */
#header-logo {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
}

#header-logo svg {
  height: 56px;
  width: auto;
  overflow: visible;
  display: block;
}

nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
/* hamburger mobile */
#nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--gray);
}
#nav-toggle svg { display: block; }

nav a {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  font-weight: 400;
  color: var(--gray);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  transition: color 0.2s;
}

nav a:not(.nav-cta) {
  position: relative;
  padding: 6px 2px;
  transition: color 0.25s;
}
nav a:not(.nav-cta):hover,
nav a:not(.nav-cta):focus-visible,
nav a:not(.nav-cta).is-active {
  color: var(--purple);
}

nav a:not(.nav-cta)::before,
nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 2px solid var(--purple2);
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 0 5px rgba(169, 69, 198, 0.6));
  transition: opacity 0.3s, transform 0.45s var(--ease-premium);
}
nav a:not(.nav-cta)::before {
  left: -12px;
  border-right: 0;
  border-top: 0;
  transform: translate(10px, -50%) rotate(45deg);
}
nav a:not(.nav-cta)::after {
  right: -12px;
  border-left: 0;
  border-bottom: 0;
  transform: translate(-10px, -50%) rotate(45deg);
}
nav a:not(.nav-cta):hover::before,
nav a:not(.nav-cta):focus-visible::before,
nav a:not(.nav-cta).is-active::before,
nav a:not(.nav-cta):hover::after,
nav a:not(.nav-cta):focus-visible::after,
nav a:not(.nav-cta).is-active::after {
  opacity: 1;
  transform: translate(0, -50%) rotate(45deg);
}

.nav-cta {
  background: var(--purple) !important;
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 4px;
  font-weight: 500 !important;
  transition: background 0.2s, transform 0.15s !important;
}

.nav-cta:hover {
  background: var(--purple2) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(169, 69, 198, 0.4);
}

/* brillo que cruza el botón */
.nav-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.nav-cta:hover::after { left: 140%; }

/* ═══════════════════════ SITE CONTENT ═══════════════════════ */
#site-content {
  opacity: 0;
  transition: opacity 0.6s ease 0.3s;
  padding-top: var(--header-h);
}
#site-content.visible { opacity: 1; }

/* ═══════════════════════ HERO ═══════════════════════ */
.hero {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  overflow: hidden;
  background: linear-gradient(135deg, #0c0516 0%, #080310 100%);
  display: block;
}

/* grid decorativo */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(169,69,198,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169,69,198,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* glow esquina */
.hero::after {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(169,69,198,0.2) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-orb-1 {
  width: 700px; height: 700px;
  top: -250px; left: -150px;
  background: radial-gradient(circle, rgba(169,69,198,0.18) 0%, transparent 65%);
  filter: blur(50px);
  z-index: 0;
  animation: orbFloat1 9s ease-in-out infinite;
}

.hero-orb-2 {
  width: 600px; height: 600px;
  bottom: -200px; right: -100px;
  background: radial-gradient(circle, rgba(185,103,210,0.14) 0%, transparent 65%);
  filter: blur(60px);
  z-index: 0;
  animation: orbFloat2 11s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(30px,20px) scale(1.08); }
}
@keyframes orbFloat2 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(-20px,-30px) scale(1.06); }
}

.btn-primary {
  background: var(--purple);
  color: var(--white);
  border: none;
  padding: 14px 32px;
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-primary:hover {
  background: var(--purple2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(169,69,198,0.35);
}

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 14px 32px;
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-radius: 4px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover {
  border-color: var(--purple);
  color: var(--white);
}

/* En pantallas estrechas los slides comparten una fila para que el más alto
   determine la altura del hero sin saltos al cambiar de slide. */
@media (max-width: 900px) {
  .hero {
    height: auto;
  }

  .hero .hero-slides {
    position: relative;
    display: grid;
    min-height: calc(100svh - var(--header-h));
  }

  .hero .hero-slide {
    position: relative;
    inset: auto;
    grid-area: 1 / 1;
    min-width: 0;
    padding: 24px var(--gutter) 80px;
  }

  .hero-slide > div,
  .hero-inner > div {
    min-width: 0;
    max-width: 100%;
  }
}

/* ── SLIDES ── */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero-slide{
  position:absolute;
  inset:0;

  display:flex;
  align-items:center;
  padding: 0 clamp(64px, 7vw, 110px); 

  opacity:0;

  transform:
    translateX(50px)
    scale(.985);

  transition:
    opacity .9s cubic-bezier(.22,1,.36,1),
    transform .9s cubic-bezier(.22,1,.36,1);

  filter:
    blur(16px);

  pointer-events:none;
}

/* slide activo */

.hero-slide.s-active{
  opacity:1;

  transform:
    translateX(0)
    scale(1);
    
  filter:blur(0);

  pointer-events:auto;
}

/* slide saliendo */

.hero-slide.s-leaving{
  opacity:0;

  transform:
    translateX(-80px)
    scale(1.04);

  filter:blur(20px);
}

.hero-slide .hero-eyebrow,
.hero-slide .hero-title,
.hero-slide .hero-sub,
.hero-slide .hero-actions,
.hero-slide .hero-visual,
.hero-slide .slide2-grid,
.hero-slide .slide2-footer,
.hero-slide .social-content,
.hero-slide .social-visual,
.hero-slide .branding-content,
.hero-slide .branding-visual{

  opacity:0;

  transform:
    translateY(40px);

  transition:
    opacity .8s ease,
    transform 1s cubic-bezier(.22,1,.36,1);
}

.hero-slide.s-active .hero-eyebrow,
.hero-slide.s-active .hero-title,
.hero-slide.s-active .hero-sub,
.hero-slide.s-active .hero-actions,
.hero-slide.s-active .hero-visual,
.hero-slide.s-active .slide2-grid,
.hero-slide.s-active .slide2-footer,
.hero-slide.s-active .social-content,
.hero-slide.s-active .social-visual,
.hero-slide.s-active .branding-content,
.hero-slide.s-active .branding-visual{
  opacity:1;
  transform:translateY(0);
}

.hero-slide.s-active .hero-eyebrow{
  transition-delay:.05s;
}

.hero-slide.s-active .hero-title{
  transition-delay:.15s;
}

.hero-slide.s-active .hero-sub{
  transition-delay:.25s;
}

.hero-slide.s-active .hero-actions{
  transition-delay:.35s;
}

.hero-slide.s-active .hero-visual{
  transition-delay:.45s;
}

.hero-transition{
  position:absolute;
  inset:0;

  pointer-events:none;

  z-index:999;

  opacity:0;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,.08),
      transparent
    );

  transform:
    translateX(-120%);
}

.hero-transition.run{
  animation:sweep .9s ease;
}

@keyframes sweep{

  0%{
    opacity:0;
    transform:translateX(-120%);
  }

  20%{
    opacity:1;
  }

  100%{
    opacity:0;
    transform:translateX(120%);
  }
}

/* ── HERO INNER (slide 1) ── */
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  align-items: center;
  gap: clamp(40px, 5vw, 80px);
  max-width: var(--site-max);
  margin: 0 auto;
  width: 100%;
}

.hero-inner--centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: var(--site-max);
  margin: 0 auto;
}

.hero-text { position: relative; z-index: 1; }

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--purple);
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--purple);
  flex-shrink: 0;
}

.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: 1.06;
  color: white;
  margin-bottom: 28px;
  font-weight: 400;
}
.hero-title em { font-style: italic; color: var(--purple2); }

.hero-sub {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
  max-width: 420px;
  margin-bottom: 44px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── SLIDE TÍTULOS ── */
.slide-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(169,69,198,0.8);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.slide-eyebrow::before,
.slide-eyebrow::after {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: rgba(169,69,198,0.4);
}

.slide-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(34px, 4.5vw, 62px);
  font-weight: 400;
  color: white;
  line-height: 1.12;
  margin-bottom: 20px;
}
.slide-title em { font-style: italic; color: #b967d2; }
.slide-title--big {
  font-size: clamp(44px, 6vw, 82px);
}

/* ── SLIDE 2: servicios ── */
.slide2-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;

  width:100%;
  max-width:980px;

  margin:0 auto 46px;

  perspective:1600px;
}

/* CARD */

.slide2-card{
  position:relative;

  padding:34px 26px;

  border-radius:28px;

  overflow:hidden;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.06),
      rgba(255,255,255,.025)
    );

  border:
    1px solid rgba(255,255,255,.07);

  backdrop-filter:blur(18px);

  text-align:center;

  transform-style:preserve-3d;

  box-shadow:
    0 20px 60px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.05);

  transition:
    transform .45s cubic-bezier(.22,1,.36,1),
    border-color .3s,
    background .3s,
    box-shadow .4s;
}

.hero-slide.s-active .slide2-card:nth-child(1){
  animation:
    cardReveal .9s .15s both,
    cardFloat1 7s 1s ease-in-out infinite;
}

.hero-slide.s-active .slide2-card:nth-child(2){
  animation:
    cardReveal .9s .25s both,
    cardFloat2 8s 1s ease-in-out infinite;
}

.hero-slide.s-active .slide2-card:nth-child(3){
  animation:
    cardReveal .9s .35s both,
    cardFloat3 6.5s 1s ease-in-out infinite;
}

@keyframes cardReveal{
  from{
    opacity:0;
    transform:
      translateY(70px)
      rotateX(18deg)
      scale(.9);
  }

  to{
    opacity:1;
    transform:
      translateY(0)
      rotateX(0)
      scale(1);
  }
}

/* GLOW INTERNO */

.slide2-card::before{
  content:"";

  position:absolute;
  inset:0;

  background:
    radial-gradient(
      circle at top right,
      rgba(169,69,198,.18),
      transparent 42%
    );

  opacity:.7;
  pointer-events:none;
}

/* REFLEJO */

.slide2-card::after{
  content:"";

  position:absolute;

  top:0;
  left:-60%;

  width:45%;
  height:100%;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,.08),
      transparent
    );

  transform:skewX(-20deg);

  transition:left .8s ease;
}

/* HOVER */

.slide2-card:hover{

  transform:
    translateY(-10px)
    rotateX(4deg)
    rotateY(-3deg);

  border-color:
    rgba(169,69,198,.28);

  background:
    linear-gradient(
      180deg,
      rgba(169,69,198,.09),
      rgba(255,255,255,.03)
    );

  box-shadow:
    0 30px 80px rgba(0,0,0,.45),
    0 0 40px rgba(169,69,198,.12);
}

.slide2-card:hover::after{
  left:140%;
}

/* CARD CENTRAL MÁS IMPORTANTE */

.slide2-card--accent{

  transform:
    translateY(-12px)
    scale(1.03);

  border-color:
    rgba(169,69,198,.2);

  background:
    linear-gradient(
      180deg,
      rgba(169,69,198,.12),
      rgba(255,255,255,.03)
    );

  box-shadow:
    0 26px 70px rgba(169,69,198,.12),
    0 20px 60px rgba(0,0,0,.38);
}

/* ICONO */

.slide2-icon{

  width:62px;
  height:62px;

  margin:0 auto 22px;

  display:flex;
  align-items:center;
  justify-content:center;

  border-radius:18px;

  background:
    linear-gradient(
      180deg,
      rgba(169,69,198,.16),
      rgba(169,69,198,.08)
    );

  border:
    1px solid rgba(169,69,198,.22);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 10px 24px rgba(169,69,198,.12);

  backdrop-filter:blur(10px);
}

.slide2-icon svg{
  width:32px;
  height:32px;
}

/* TITULO */

.slide2-card h3{

  font-family:'DM Serif Display',serif;
  font-size:22px;
  font-weight:400;

  color:white;

  margin-bottom:12px;
}

/* TEXTO */

.slide2-card p{

  font-size:13px;
  line-height:1.8;

  color:rgba(255,255,255,.42);

  max-width:220px;
  margin:0 auto;
}

/* ─────────────────────────────
   FLOATING ANIMATIONS
───────────────────────────── */

.slide2-card:nth-child(1){
  animation:cardFloat1 7s ease-in-out infinite;
}

.slide2-card:nth-child(2){
  animation:cardFloat2 8s ease-in-out infinite;
}

.slide2-card:nth-child(3){
  animation:cardFloat3 6.5s ease-in-out infinite;
}

/* DIFERENTES ALTURAS */

@keyframes cardFloat1{

  0%,100%{
    transform:
      translateY(0px)
      rotateX(0deg);
  }

  50%{
    transform:
      translateY(-14px)
      rotateX(2deg);
  }
}

@keyframes cardFloat2{

  0%,100%{
    transform:
      translateY(-10px)
      scale(1.03);
  }

  50%{
    transform:
      translateY(-22px)
      scale(1.03);
  }
}

@keyframes cardFloat3{

  0%,100%{
    transform:
      translateY(0px)
      rotateY(0deg);
  }

  50%{
    transform:
      translateY(-12px)
      rotateY(-2deg);
  }
}

/* FOOTER */

.slide2-footer{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:16px;
}


/* ── SLIDE 3: redes sociales ── */

.social-visual{
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:640px;
}

.social-visual::after{
  content:"";
  position:absolute;
  inset:auto 0 -80px 0;
  margin:auto;
  width:320px;
  height:120px;
  background:rgba(123,47,247,.25);
  filter:blur(80px);
  z-index:0;
}

.social-content{
  position:relative;
  z-index:2;

  max-width:540px;
}

/* atmósfera detrás del texto */

.social-content::before{
  content:"";

  position:absolute;

  width:420px;
  height:420px;

  left:-120px;
  top:-120px;

  border-radius:50%;

  background:
    radial-gradient(
      circle,
      rgba(169,69,198,.12),
      transparent 72%
    );

  filter:blur(40px);

  z-index:-1;

  pointer-events:none;
}

.slide-title--social{
  font-family:'DM Serif Display', serif;

  font-size:clamp(44px,5vw,72px);

  line-height:1.04;

  letter-spacing:-0.03em;

  margin-bottom:28px;

  color:white;
}

.slide-title--social em{
  color:#b967d2;
  font-style:italic;
}

/* DESCRIPCION */

.social-description{
  font-size:15px;

  line-height:1.9;

  color:rgba(255,255,255,.48);

  max-width:460px;

  margin-bottom:28px;

  font-weight:300;

  position:relative;
}

/* CTA TEXT */

.social-cta{
  position:relative;

  font-size:14px;

  line-height:1.8;

  color:rgba(255,255,255,.82);

  max-width:440px;

  margin-bottom:40px;

  padding-left:22px;

  font-weight:400;
}

/* linea premium */

.social-cta::before{
  content:"";

  position:absolute;

  left:0;
  top:4px;
  bottom:4px;

  width:1px;

  background:
    linear-gradient(
      180deg,
      rgba(169,69,198,.9),
      rgba(169,69,198,.1)
    );

  box-shadow:
    0 0 18px rgba(169,69,198,.4);
}

/* ACTIONS */

.social-actions{
  display:flex;
  align-items:center;
  gap:16px;

  flex-wrap:wrap;
}

/* ORBS */

.social-orb{
  position:absolute;
  border-radius:50%;
  filter:blur(80px);
  opacity:.45;
}

.social-orb-1{
  width:260px;
  height:260px;
  background:#7b2ff7;
  top:15%;
  right:10%;
}

.social-orb-2{
  width:180px;
  height:180px;
  background:#00c2ff;
  bottom:10%;
  left:15%;
}

/* STAGE */

.phone-stage{
  position:relative;
  width:420px;
  height:560px;

  display:flex;
  justify-content:center;
  align-items:center;

  perspective:1600px;
}

.phone-stage::before{
  content:"";

  position:absolute;

  width:460px;
  height:460px;

  border-radius:50%;

  background:
    radial-gradient(
      circle,
      rgba(169,69,198,.18),
      transparent 70%
    );

  filter:blur(40px);

  opacity:.9;

  z-index:0;
}

.hero-inner--social{
  display:grid;

  grid-template-columns:
    minmax(0,540px)
    minmax(0,1fr);

  align-items:center;

  gap:clamp(40px,7vw,120px);

  width:100%;
  max-width:var(--site-max);

  margin:0 auto;
}

/* PHONE */

.premium-phone{
  position:relative;

  width:220px;
  height:460px;

  border-radius:42px;

  padding:10px;

  background:
    linear-gradient(
      145deg,
      #2d2d3f 0%,
      #151520 40%,
      #09090f 100%
    );

  border:
    1px solid rgba(255,255,255,.06);

  box-shadow:
    0 80px 120px rgba(0,0,0,.55),
    0 30px 50px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.08);

  transform:
    perspective(1800px)
    rotateY(-18deg)
    rotateX(10deg)
    rotateZ(4deg);

  transform-style:preserve-3d;

  animation:phoneFloat3d 8s ease-in-out infinite;

  z-index:5;
}

/* REFLEJO PREMIUM */

.premium-phone::before{
  content:"";

  position:absolute;

  top:0;
  left:0;

  width:45%;
  height:100%;

  border-radius:40px;

  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,.14),
      transparent
    );

  opacity:.35;
  pointer-events:none;
}

/* SOMBRA SUAVE */

.premium-phone::after{
  content:"";

  position:absolute;

  width:85%;
  height:40px;

  left:50%;
  bottom:-30px;

  transform:translateX(-50%);

  background:rgba(0,0,0,.45);

  filter:blur(24px);

  border-radius:50%;
}

/* FLOAT */

@keyframes phoneFloat3d{

  0%,100%{
    transform:
      rotateX(10deg)
      rotateY(-14deg)
      rotateZ(2deg)
      translateY(0px);
  }

  50%{
    transform:
      rotateX(10deg)
      rotateY(-14deg)
      rotateZ(2deg)
      translateY(-14px);
  }
}

/* NOTCH */

.phone-notch{
  position:absolute;

  top:12px;
  left:50%;

  transform:translateX(-50%);

  width:100px;
  height:26px;

  border-radius:20px;

  background:#050505;

  z-index:10;

  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.08);
}

/* SCREEN */

.phone-screen{
  width:100%;
  height:100%;

  border-radius:30px;

  overflow:hidden;

  padding:64px 16px 16px;

  background:
    linear-gradient(
      180deg,
      #101827 0%,
      #090d18 100%
    );

  position:relative;
}

.phone-screen::before{
  content:"";

  position:absolute;

  inset:0;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.04),
      transparent 20%
    );

  pointer-events:none;
}

/* MOCKUP */

.mockup-topbar{
  margin-bottom:20px;
}

.mockup-profile{
  display:flex;
  align-items:center;
  gap:12px;
}

.mockup-avatar{
  width:42px;
  height:42px;
  border-radius:50%;
  background:
    linear-gradient(135deg,#7b2ff7,#f107a3);
}

.mockup-line{
  border-radius:20px;
  background:rgba(255,255,255,.14);
}

.line-1{
  width:110px;
  height:10px;
  margin-bottom:8px;
}

.line-2{
  width:70px;
  height:8px;
}

.mockup-post{
  width:100%;
  height:240px;
  border-radius:24px;
  margin-bottom:20px;

  background:
    linear-gradient(
      135deg,
      rgba(123,47,247,.9),
      rgba(0,194,255,.7)
    );

  position:relative;
  overflow:hidden;
}

.mockup-post{
  width:100%;
  height:200px;

  border-radius:22px;

  margin-bottom:18px;

  position:relative;
  overflow:hidden;

  background:
    linear-gradient(
      135deg,
      rgba(123,47,247,.95),
      rgba(0,194,255,.75)
    );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.15),
    0 10px 30px rgba(123,47,247,.25);
}

/* BRILLO */

.mockup-post::before{
  content:"";

  position:absolute;
  inset:0;

  background:
    radial-gradient(
      circle at top right,
      rgba(255,255,255,.35),
      transparent 45%
    );
}

/* GLOW */

.mockup-post::after{
  content:"";

  position:absolute;

  width:180px;
  height:180px;

  right:-60px;
  top:-60px;

  background:rgba(255,255,255,.25);

  filter:blur(40px);

  border-radius:50%;
}

.mockup-actions{
  display:flex;
  gap:14px;
  margin-bottom:20px;
}

.mockup-actions span{
  width:22px;
  height:22px;
  border-radius:8px;
  background:rgba(255,255,255,.16);
}

.mockup-text{
  width:80%;
  height:10px;
  border-radius:20px;
  background:rgba(255,255,255,.12);
  margin-bottom:12px;
}

.mockup-text.small{
  width:55%;
}

.mockup-card{
  margin-top:22px;

  width:100%;
  height:90px;

  border-radius:18px;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.05),
      rgba(255,255,255,.015)
    );

  border:
    1px solid rgba(255,255,255,.05);
}

/* FLOATING ICONS */

.floating-socials{
  position:absolute;
  inset:0;
  z-index:8;
  pointer-events:none;
}

.social-badge{
  position:absolute;

  width:58px;
  height:58px;

  display:flex;
  align-items:center;
  justify-content:center;

  border-radius:20px;

  background:
    rgba(18,18,28,.52);

  border:
    1px solid rgba(255,255,255,.08);

  backdrop-filter:blur(18px);

  box-shadow:
    0 10px 30px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.06);

  animation:badgeFloat 5s ease-in-out infinite;

  z-index:9;
}

.social-badge svg{
  width:34px;
  height:34px;
}

@keyframes badgeFloat{
  0%,100%{
    transform:translateY(0px);
  }
  50%{
    transform:translateY(-10px);
  }
}

/* POSITIONS */

.badge-instagram{
  top:90px;
  left:25px;
}

.badge-whatsapp{
  top:170px;
  right:20px;
  animation-delay:1s;
}

.badge-youtube{
  bottom:120px;
  left:30px;
  animation-delay:2s;
}

.badge-facebook{
  bottom:70px;
  right:30px;
  animation-delay:1.5s;
}


/* ── SLIDE 4: Diseño gráfico ── */
/* =========================================
   BRANDING SLIDE
========================================= */

.hero-inner--branding{
  display:grid;

  grid-template-columns:
    minmax(0,540px)
    minmax(0,1fr);

  align-items:center;

  gap:clamp(40px,7vw,120px);

  width:100%;
  max-width:var(--site-max);

  margin:0 auto;
}

/* =========================================
   TEXT
========================================= */

.branding-content{
  position:relative;
  z-index:2;
  max-width:540px;
}

.slide-title--branding{
  font-family:'DM Serif Display', serif;

  font-size:clamp(44px,5vw,72px);

  line-height:1.04;

  margin-bottom:28px;

  color:white;
}

.slide-title--branding em{
  color:#b967d2;
  font-style:italic;
}

.branding-description{
  font-size:15px;

  line-height:1.9;

  color:rgba(255,255,255,.5);

  max-width:470px;

  margin-bottom:28px;
}

.branding-cta{
  position:relative;

  padding-left:22px;

  font-size:14px;

  line-height:1.8;

  color:rgba(255,255,255,.82);

  max-width:450px;

  margin-bottom:42px;
}

.branding-cta::before{
  content:"";

  position:absolute;

  left:0;
  top:4px;
  bottom:4px;

  width:1px;

  background:
    linear-gradient(
      180deg,
      rgba(169,69,198,.9),
      rgba(169,69,198,.1)
    );

  box-shadow:
    0 0 18px rgba(169,69,198,.4);
}

/* =========================================
   VISUAL
========================================= */

.branding-visual{
  position:relative;

  display:flex;
  align-items:center;
  justify-content:center;

  min-height:620px;
}

.branding-scene{
  position:relative;

  width:100%;
  max-width:560px;
  height:560px;

  display:flex;
  align-items:center;
  justify-content:center;

  perspective:1800px;
}

/* glow */

.branding-glow{
  position:absolute;

  width:420px;
  height:420px;

  border-radius:50%;

  background:
    radial-gradient(
      circle,
      rgba(169,69,198,.22),
      transparent 70%
    );

  filter:blur(40px);

  animation:brandingGlow 6s ease-in-out infinite;
}

@keyframes brandingGlow{
  0%,100%{
    transform:scale(1);
  }
  50%{
    transform:scale(1.08);
  }
}

/* =========================================
   BOARD
========================================= */

.brand-board{
  position:relative;

  width:460px;
  height:360px;

  border-radius:32px;

  overflow:hidden;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.08),
      rgba(255,255,255,.03)
    );

  border:
    1px solid rgba(255,255,255,.08);

  backdrop-filter:blur(18px);

  box-shadow:
    0 50px 100px rgba(0,0,0,.45),
    0 0 60px rgba(169,69,198,.08);

  transform:
    rotateX(10deg)
    rotateY(-12deg)
    rotateZ(1deg);

  animation:boardFloat 7s ease-in-out infinite;
}

@keyframes boardFloat{

  0%,100%{
    transform:
      rotateX(10deg)
      rotateY(-12deg)
      rotateZ(1deg)
      translateY(0);
  }

  50%{
    transform:
      rotateX(10deg)
      rotateY(-10deg)
      rotateZ(1deg)
      translateY(-14px);
  }
}

.brand-board-top{
  height:48px;

  border-bottom:
    1px solid rgba(255,255,255,.06);

  display:flex;
  align-items:center;
  gap:8px;

  padding:0 20px;
}

.brand-board-top span{
  width:9px;
  height:9px;

  border-radius:50%;

  background:rgba(255,255,255,.16);
}

/* =========================================
   INTERNAL LAYOUT
========================================= */

.brand-layout{
  padding:28px;

  display:grid;

  grid-template-columns:1fr 1fr;

  gap:18px;
}

/* LOGO CARD */

.logo-card{
  height:130px;

  border-radius:24px;

  background:
    linear-gradient(
      135deg,
      rgba(123,47,247,.95),
      rgba(0,194,255,.75)
    );

  padding:24px;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.15),
    0 10px 30px rgba(123,47,247,.25);
}

.logo-symbol{
  width:52px;
  height:52px;

  border-radius:18px;

  background:white;

  margin-bottom:18px;
}

.line{
  height:8px;

  border-radius:999px;

  background:rgba(255,255,255,.3);
}

.w1{
  width:80%;
  margin-bottom:10px;
}

.w2{
  width:50%;
}

/* palette */

.palette-card{
  height:130px;

  border-radius:24px;

  background:
    rgba(255,255,255,.04);

  border:
    1px solid rgba(255,255,255,.06);

  padding:22px;
}

.palette-row{
  display:flex;
  gap:10px;

  margin-bottom:20px;
}

.palette-row span{
  width:42px;
  height:42px;

  border-radius:14px;
}

.palette-row span:nth-child(1){
  background:#7b2ff7;
}
.palette-row span:nth-child(2){
  background:#00c2ff;
}
.palette-row span:nth-child(3){
  background:#111827;
}
.palette-row span:nth-child(4){
  background:#f4f4f4;
}

.palette-text{
  width:80%;
  height:10px;

  border-radius:999px;

  background:rgba(255,255,255,.1);
}

/* BUSINESS CARD */

.business-card{
  height:110px;

  border-radius:22px;

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,.08),
      rgba(255,255,255,.03)
    );

  border:
    1px solid rgba(255,255,255,.06);

  padding:20px;
}

.bc-logo{
  width:42px;
  height:42px;

  border-radius:14px;

  background:
    linear-gradient(
      135deg,
      #7b2ff7,
      #d946ef
    );

  margin-bottom:14px;
}

.bc-lines div{
  height:7px;

  border-radius:999px;

  background:rgba(255,255,255,.1);

  margin-bottom:8px;
}

.bc-lines div:nth-child(1){
  width:80%;
}
.bc-lines div:nth-child(2){
  width:55%;
}
.bc-lines div:nth-child(3){
  width:40%;
}

/* TYPO */

.typo-card{
  height:110px;

  border-radius:22px;

  background:
    rgba(255,255,255,.03);

  border:
    1px solid rgba(255,255,255,.06);

  display:flex;
  flex-direction:column;
  justify-content:center;

  padding:22px;
}

.typo-card h4{
  font-family:'DM Serif Display', serif;

  font-size:42px;

  color:white;

  margin-bottom:6px;
}

.typo-card p{
  font-size:11px;

  letter-spacing:.14em;

  text-transform:uppercase;

  color:rgba(255,255,255,.35);
}

/* =========================================
   FLOATING TAGS
========================================= */

.floating-brand{
  position:absolute;

  padding:12px 18px;

  border-radius:18px;

  background:
    rgba(18,18,28,.55);

  border:
    1px solid rgba(255,255,255,.08);

  backdrop-filter:blur(18px);

  font-size:11px;

  letter-spacing:.18em;

  text-transform:uppercase;

  color:rgba(255,255,255,.7);

  box-shadow:
    0 10px 30px rgba(0,0,0,.3);

  animation:brandFloat 5s ease-in-out infinite;
}

@keyframes brandFloat{
  0%,100%{
    transform:translateY(0);
  }
  50%{
    transform:translateY(-10px);
  }
}

.floating-brand-1{
  top:80px;
  right:10px;
}

.floating-brand-2{
  left:0;
  bottom:130px;
  animation-delay:1s;
}

.floating-brand-3{
  right:40px;
  bottom:40px;
  animation-delay:2s;
}

/* ── FLECHAS LATERALES ── */
.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
  opacity: 0.5;
}
.hero-nav-btn:hover {
  background: rgba(169,69,198,0.25);
  border-color: rgba(169,69,198,0.5);
  color: white;
  opacity: 1;
}
.hero-nav-btn.prev { left: clamp(12px, 2vw, 32px); }
.hero-nav-btn.next { right: clamp(12px, 2vw, 32px); }

/* ── DOTS Y PROGRESS ABAJO ── */
.hero-nav-bottom {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hero-dot {
  height: 7px;
  width: 7px;
  min-width: 7px;
  border-radius: 99px;
  background: rgba(255,255,255,0.18);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width 0.35s cubic-bezier(0.22,1,0.36,1),
              min-width 0.35s cubic-bezier(0.22,1,0.36,1),
              background 0.35s ease;
}
.hero-dot.active {
  width: 26px;
  min-width: 26px;
  background: #a945c6;
}

.hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255,255,255,0.04);
  z-index: 10;
}

.hero-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #a945c6, #d17de8);
  width: 0%;
}

/* ocultar en mobile muy pequeño */
@media (max-width: 480px) {
  .hero-nav-btn { display: none; }
}

/* ── MOCKUP (slide 1) ── */
.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-scene {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-glow {
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(169,69,198,0.24) 0%,
    rgba(169,69,198,0.08) 40%,
    transparent 72%);
  filter: blur(20px);
  animation: glowPulse 6s ease-in-out infinite;
}
@keyframes glowPulse {
  0%,100% { transform: scale(1); opacity: 0.8; }
  50%      { transform: scale(1.08); opacity: 1; }
}

.floating-window {
  position: relative;
  width: 100%;
  max-width: 460px;
  height: 500px;
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  overflow: hidden;
  backdrop-filter: blur(16px);
  transform: perspective(1600px) rotateY(-12deg) rotateX(7deg);
  box-shadow: 0 40px 100px rgba(0,0,0,0.5), 0 0 80px rgba(169,69,198,0.12);
  animation: floatMockup 7s ease-in-out infinite;
}
@keyframes floatMockup {
  0%,100% { transform: perspective(1600px) rotateY(-12deg) rotateX(7deg) translateY(0); }
  50%      { transform: perspective(1600px) rotateY(-10deg) rotateX(6deg) translateY(-14px); }
}

.window-topbar {
  height: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 18px;
  background: rgba(255,255,255,0.03);
}
.window-topbar span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
}

.window-sidebar {
  position: absolute;
  top: 48px; left: 0; bottom: 0;
  width: 80px;
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 20px 14px;
}
.sb-line {
  height: 9px; border-radius: 20px;
  background: rgba(255,255,255,0.06);
  margin-bottom: 12px;
}
.sb-line.short { width: 60%; background: rgba(169,69,198,0.4); }

.window-content { margin-left: 80px; padding: 28px; }

.content-badge {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(169,69,198,0.14);
  color: var(--purple2);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.window-content h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 40px;
  line-height: 1;
  font-weight: 400;
  margin-bottom: 18px;
  color: white;
}
.window-content p {
  font-size: 12px;
  line-height: 1.8;
  color: rgba(255,255,255,0.45);
  margin-bottom: 28px;
  max-width: 220px;
}
.content-visual {
  width: 100%; height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.content-visual img {
  width: 100%;
  max-width: 240px;
  object-fit: contain;
  filter: drop-shadow(0 16px 32px rgba(0,0,0,0.45))
          drop-shadow(0 0 20px rgba(169,69,198,0.25));
}
.content-cards { display: flex; gap: 12px; }
.mini-card {
  flex: 1; height: 70px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.05);
}

.floating-panel {
  position: absolute;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(10,10,15,0.88);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  animation: panelFloat 5s ease-in-out infinite;
}
.floating-panel span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple2);
  margin-bottom: 4px;
}
.floating-panel strong {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  font-weight: 400;
  color: white;
}
.panel-1 { top: 70px; right: -14px; }
.panel-2 { bottom: 80px; left: -28px; animation-delay: 2s; }

@keyframes panelFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ═══════════════════════ MARQUEE ═══════════════════════ */
.marquee-strip {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 19px 0;
  background: rgba(255,255,255,0.018);
  /* máscara que desvanece los bordes */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    black 15%,
    black 85%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    black 15%,
    black 85%,
    transparent 100%
  );
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 22s linear infinite;
}

.marquee-track span {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding: 0 28px;
  white-space: nowrap;
  transition: color 0.2s;
}

.marquee-group {
  display: flex;
  flex-shrink: 0;
}

.marquee-track span:hover { color: var(--purple2); }

.marquee-track .sep {
  color: var(--purple);
  opacity: 0.5;
  padding: 0 4px;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-strip:hover .marquee-track {
  animation-play-state: paused;
}

/* =========================================
   FLOATING UI CARDS
========================================= */

.social-floating-card{
  position:absolute;

  min-width:140px;

  padding:16px 18px;

  border-radius:20px;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.08),
      rgba(255,255,255,.025)
    );

  border:
    1px solid rgba(255,255,255,.08);

  backdrop-filter:blur(20px);

  box-shadow:
    0 20px 40px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.04);

  z-index:12;

  animation:cardFloat 6s ease-in-out infinite;
}

.social-floating-card::before{
  content:"";

  position:absolute;
  inset:0;

  border-radius:inherit;

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,.06),
      transparent 50%
    );

  pointer-events:none;
}

.social-floating-card span{
  display:block;

  font-size:10px;
  letter-spacing:.16em;
  text-transform:uppercase;

  color:rgba(185,103,210,.8);

  margin-bottom:6px;

  font-family:'DM Mono', monospace;
}

.social-floating-card strong{
  font-family:'DM Serif Display', serif;

  font-size:28px;
  font-weight:400;

  color:white;

  line-height:1;
}

/* POSITIONS */

.social-card-1{
  top:120px;
  right:-20px;
}

.social-card-2{
  bottom:110px;
  left:-30px;

  animation-delay:1.5s;
}

.social-card-3{
  top:250px;
  left:-85px;

  animation-delay:3s;
}

/* FLOAT */

@keyframes cardFloat{
  0%,100%{
    transform:translateY(0px);
  }

  50%{
    transform:translateY(-10px);
  }
}

.social-mini{
  width:34px;
  height:34px;

  border-radius:12px;

  display:flex;
  align-items:center;
  justify-content:center;

  background:
    rgba(255,255,255,.05);

  border:
    1px solid rgba(255,255,255,.06);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05);

  transition:
    transform .25s ease,
    background .25s ease;
}

.social-mini:hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,.08);
}

.social-mini svg{
  width:20px;
  height:20px;
}

.mockup-actions{
  display:flex;
  gap:12px;
  margin-bottom:18px;
}


/* ================= SERVICIOS ================= */

.section {
  padding: clamp(70px,8vw,100px) var(--gutter);
}

.section-inner {
  max-width: var(--site-max);
  margin: 0 auto;
}

.section-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--purple);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 64px;
  max-width: 600px;
  line-height: 1.15;
}

.section-title em {
  font-style: italic;
  color: var(--purple2);
}

/* ================= GRID ================= */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  perspective: 1400px; /* prepara el terreno para el tilt 3D */
}

/* ================= CARD ================= */

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 26px;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.service-card:hover::before { opacity: 1; }

/* ================= MEDIA ================= */

.service-media {
  position: relative;
  height: 240px;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
}

.service-media::after {
  /* degradado inferior que funde imagen con el panel */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,
      rgba(12, 10, 18, 0.85) 0%,
      rgba(12, 10, 18, 0.25) 40%,
      transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.6s ease;
  filter: saturate(0.9) contrast(1.02);
}

/* ================= PANEL GLASS ================= */

.service-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-content: start;
  align-items: center;
  gap: 12px 12px;
  flex: 1;
  width: 90%;
  margin: -36px auto 0;
  padding: 20px;
  background:
    linear-gradient(180deg,
      rgba(28, 22, 38, 0.15) 0%,
      rgba(16, 12, 22, 0.25) 100%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid rgba(165, 82, 198, 0.28);
  border-radius: 22px;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 0.35s ease,
              box-shadow 0.35s ease,
              transform 0.35s ease;
  overflow: hidden;
}

/* línea de acento superior tipo "scan" */
.service-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(205, 151, 226, 0.9),
    rgba(120, 220, 255, 0.7),
    transparent);
  opacity: 0.7;
}

.service-card:hover .service-content::after { opacity: 1; }

/* ================= ICONO ================= */

.service-icon {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f4dfff;
  background:
    linear-gradient(135deg, #73318c, #73318c);
  border: 1px solid rgba(228, 179, 249, 0.55);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 6px 18px rgba(0, 0, 0, 0.3),
    0 0 0 0 rgba(180, 120, 230, 0);
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s ease;
}

.service-icon svg {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ================= TEXTO ================= */

.service-name {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0.01em;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.service-desc {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(220, 208, 226, 0.85);
  transition: color 0.3s ease;
}

/* ================= HOVER ================= */

.service-card:hover {
  transform: translateY(-6px);
}

.service-card:hover .service-media img {
  transform: scale(1.08);
  filter: saturate(1.15) contrast(1.05);
}

.service-card:hover .service-content {
  border-color: rgba(205, 151, 226, 0.6);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(205, 151, 226, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.service-card:hover .service-icon {
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 10px 28px rgba(169, 69, 198, 0.45),
    0 0 0 4px rgba(169, 69, 198, 0.12);
}

.service-card:hover .service-name {
  color: #e9c4ff;
  text-shadow: 0 0 18px rgba(205, 151, 226, 0.45);
}

.service-card:hover .service-desc {
  color: rgba(235, 226, 240, 0.95);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .services-grid { grid-template-columns: 1fr; gap: 20px; }
  .service-media { height: 210px; }
}

/* ================= REDUCED MOTION ================= */

@media (prefers-reduced-motion: reduce) {
  .service-content,
  .service-icon,
  .service-media img,
  .service-card {
    transition: none;
  }
  .service-card:hover { transform: none; }
  .service-card:hover .service-icon,
  .service-card:hover .service-media img { transform: none; }
}

/* ═══════════════════════ PROCESO ═══════════════════════ */
.process {
  position: relative;
  padding: clamp(70px, 8vw, 110px) var(--gutter);
  background: radial-gradient(ellipse at 50% 60%, rgba(169, 69, 198, 0.07), transparent 65%);
}
.process-inner { max-width: var(--site-max); margin: 0 auto; }
.process .section-title { margin-bottom: 60px; }

/* Un recorrido abierto: tipografía, espacio y una única línea conductora. */
.process .process-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.process .process-steps::before,
.process .process-steps::after {
  content: '';
  display: block;
  position: absolute;
  top: 110px;
  left: 0;
  right: 0;
  height: 1px;
  pointer-events: none;
}
.process .process-steps::before { background: rgba(208, 173, 225, 0.19); }
.process .process-steps::after {
  background: linear-gradient(90deg, #a945c6, #efd5ff 65%, rgba(169, 69, 198, 0.1));
  transform: scaleX(0);
  transform-origin: left;
  box-shadow: 0 0 16px rgba(210, 150, 245, 0.55);
}
.process.is-visible .process-steps::after { animation: process-route 1.8s ease-out both; }
.process .step {
  position: relative;
  padding: 0;
  text-align: left;
  min-width: 0;
}
.process .step-content { display: contents; }
.process .step::before {
  content: '';
  position: absolute;
  top: 106px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d4a1e9;
  box-shadow: 0 0 0 6px #110d15, 0 0 22px rgba(204, 135, 235, 0.4);
  z-index: 1;
  transition: box-shadow 0.35s ease;
}
.process .step-number {
  display: block;
  width: fit-content;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(64px, 7vw, 94px);
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(210, 164, 231, 0.48);
  transition: color 0.4s ease, text-shadow 0.4s ease;
}
.process .step-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(25px, 2.5vw, 32px);
  font-weight: 400;
  line-height: 1.2;
  margin: 56px 0 14px;
  color: #fff;
}
.process .step-particles {
  position: absolute;
  inset: -16px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.process .step-particles i {
  position: absolute;
  left: var(--particle-x);
  top: var(--particle-y);
  width: var(--particle-size);
  height: var(--particle-size);
  border-radius: 50%;
  background: #c784e0;
  box-shadow: 0 0 8px rgba(185, 103, 210, 0.6);
  opacity: 0;
  animation: process-dust var(--particle-duration) linear infinite;
  animation-delay: var(--particle-delay);
  animation-play-state: paused;
}
.process .step-desc {
  margin: 0;
  max-width: 27ch;
  font-size: 13px;
  line-height: 1.8;
  color: #c6bdce;
}
@media (hover: hover) {
  .process .step:hover .step-particles { opacity: 1; }
  .process .step:hover .step-particles i { animation-play-state: running; }
  .process .step:hover .step-number {
    color: #e6bdf7;
    text-shadow: 0 0 38px rgba(190, 100, 225, 0.35);
  }
  .process .step:hover::before {
    box-shadow: 0 0 0 6px rgba(169, 69, 198, 0.15), 0 0 30px #a945c6;
  }
}
@keyframes process-dust {
  0% { transform: translate(-18px, 8px); opacity: 0; }
  25% { opacity: 0.6; }
  70% { opacity: 0.35; }
  100% { transform: translate(48px, -18px); opacity: 0; }
}
@keyframes process-route {
  to { transform: scaleX(1); }
}
@media (max-width: 800px) {
  .process .section-title { margin-bottom: 44px; }
  .process .process-steps { grid-template-columns: 1fr; gap: 0; }
  .process .process-steps::before,
  .process .process-steps::after {
    top: 12px;
    bottom: 24px;
    left: 8px;
    right: auto;
    width: 1px;
    height: auto;
  }
  .process .process-steps::after {
    transform: scaleY(0);
    transform-origin: top;
    background: linear-gradient(#a945c6, #efd5ff 65%, rgba(169, 69, 198, 0.1));
  }
  .process.is-visible .process-steps::after { animation-name: process-route-vertical; }
  .process .step {
    padding: 0 0 40px 36px;
  }
  .process .step.reveal { transform: none; }
  .process .step-content {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    column-gap: 20px;
    min-width: 0;
    scale: 1;
    transform-origin: left center;
    transition: scale 0.4s ease;
  }
  .process .step.is-current .step-content { scale: 1.03; }
  .process .step-particles { inset: -8px 0 28px 28px; }
  .process .step.is-current .step-particles { opacity: 1; }
  .process .step.is-current .step-particles i { animation-play-state: running; }
  .process .step.is-current .step-number {
    color: #e6bdf7;
    text-shadow: 0 0 38px rgba(190, 100, 225, 0.35);
  }
  .process .step.is-current::before {
    box-shadow: 0 0 0 6px rgba(169, 69, 198, 0.15), 0 0 30px #a945c6;
  }
  .process .step:last-child { padding-bottom: 0; }
  .process .step::before {
    top: 12px;
    left: 8.5px;
    transform: translate(-50%, -50%);
  }
  .process .step-number { grid-row: 1 / 3; font-size: 58px; }
  .process .step .step-title { margin: 0 0 10px; font-size: 27px; }
  .process .step-desc { grid-column: 2; max-width: 44ch; }
}
@keyframes process-route-vertical {
  to { transform: scaleY(1); }
}
@media (max-width: 380px) {
  .process .step { padding-left: 28px; }
  .process .step-content { grid-template-columns: 46px minmax(0, 1fr); column-gap: 14px; }
  .process .step-number { font-size: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .process .step-particles { display: none; }
  .process .step-content,
  .process .step.is-current .step-content { scale: 1; transition: none; }
  .process .step-particles i { animation: none; }
  .process .step-number, .process .step::before { transition: none; }
  .process.is-visible .process-steps::after { animation: none; transform: none; }
}

/* ═══════════════════════ CLIENTES ═══════════════════════ */
.clients{
  position: relative;

  padding: clamp(70px,8vw,100px) var(--gutter);

  overflow: hidden;
}

.clients::after{
  content: "";

  position: absolute;

  left: 0;
  bottom: 0;

  width: 100%;
  height: 800px;

  background:
    url("../assets/img/fondo_puna.png")
    center bottom / cover
    no-repeat;

  opacity: .6;

  pointer-events: none;

  z-index: 0;
}

.clients-inner{
  position: relative;

  z-index: 2;

  max-width: var(--site-max);

  margin: 0 auto;
}


/* ═══════════════════════ CTA FINAL ═══════════════════════ */
.cta-section {
  padding: clamp(80px,10vw,120px) var(--gutter);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  bottom: -300px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(circle, rgba(169,69,198,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.cta-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.1;
  position: relative;
}

.cta-title em { font-style: italic; color: var(--purple2); }

.cta-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 48px;
  font-weight: 300;
  position: relative;
}

.cta-contacts {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-contact-sep {
  color: rgba(255,255,255,0.2);
  font-size: 18px;
}
.cta-contact-link {

  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding:
    14px 22px;

  border-radius: 999px;

  font-size: 13px;
  font-weight: 500;

  letter-spacing: .04em;

  color: rgba(255,255,255,.88);

  text-decoration: none;

  background:
    rgba(255,255,255,.03);

  border:
    1px solid rgba(255,255,255,.06);

  backdrop-filter: blur(10px);

  transition:
    transform .28s ease,
    border-color .28s ease,
    background .28s ease,
    box-shadow .28s ease,
    color .28s ease;
}

.cta-contact-link:hover {

  transform:
    translateY(-2px);

  color: white;

  border-color:
    rgba(169,69,198,.28);

  background:
    rgba(169,69,198,.08);

  box-shadow:
    0 10px 24px rgba(169,69,198,.10);
}

.cta-contact-link svg {

  flex-shrink: 0;

  transition:
    transform .3s ease,
    opacity .3s ease;
}

.cta-contact-link:hover svg {

  transform: scale(1.08);

  opacity: 1;
}

.cta-contact-sep {
  display: none;
}

/* ═══════════════════════ FOOTER ═══════════════════════ */
footer {
  padding: 32px var(--gutter);

  border-top:
    1px solid rgba(255,255,255,0.06);

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;
}

.footer-copy {

  font-size: 12px;

  color:
    rgba(255,255,255,0.25);

  letter-spacing: 0.06em;
}

/* redes */
.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-links a {

  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  text-decoration: none;

  color:
    rgba(255,255,255,.38);

  background:
    rgba(255,255,255,.025);

  border:
    1px solid rgba(255,255,255,.05);

  transition:
    transform .28s ease,
    color .28s ease,
    border-color .28s ease,
    background .28s ease,
    box-shadow .28s ease;
}

.footer-links a:hover {

  transform:
    translateY(-2px);

  color: white;

  border-color:
    rgba(169,69,198,.24);

  background:
    rgba(169,69,198,.08);

  box-shadow:
    0 8px 18px rgba(169,69,198,.10);
}

.footer-links svg {
  width: 15px;
  height: 15px;
}

/* ═══════════════════════ SCROLL REVEAL ═══════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ═══════════════════════ CANVAS DE PARTÍCULAS (UNIFICADO) ═══════════════════════ */
#modal-wind-canvas,
#wind-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  display: block;
}

/* ═══════════════════════ 1. OVERLAY (EFECTO AHUMADO) ═══════════════════════ */
#modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  /* sin background ni backdrop-filter acá */
}

/* el fondo ahumado va en un pseudo-elemento */
#modal-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(5, 5, 8, 0.88);
  backdrop-filter: blur(45px) brightness(0.9);
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(60, 30, 90, 0.25) 0%, transparent 60%),
    radial-gradient(circle at 15% 15%, rgba(169, 69, 198, 0.08) 0%, transparent 35%),
    radial-gradient(circle at 85% 85%, rgba(169, 69, 198, 0.08) 0%, transparent 35%);
  z-index: 0;
  pointer-events: none;
}

#modal-overlay.open { opacity: 1; pointer-events: all; }

/* ═══════════════════════ 2. CONTENEDOR MODAL ═══════════════════════ */
#modal-box {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  max-width: 1250px;
  background: linear-gradient(
    135deg,
    rgba(30, 18, 45, 0.88),
    rgba(12, 12, 18, 0.92)
  );
  border: 1px solid rgba(169, 69, 198, 0.35);
  box-shadow:
    0 60px 140px rgba(0,0,0,0.9),
    0 0 100px rgba(169, 69, 198, 0.15);
  backdrop-filter: blur(20px);
  border-radius: 35px;
  overflow: hidden;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
}

#modal-box::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 35px;
  background: linear-gradient(
    135deg,
    rgba(169, 69, 198, 0.4),
    transparent 60%,
    rgba(169, 69, 198, 0.2)
  );
  z-index: -1;
  filter: blur(6px);
  opacity: 0.7;
}

/* ═══════════════════════ 3. ESTRUCTURA Y DIVISIÓN ═══════════════════════ */
.modal-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  width: 100%;
}

/* Panel Izquierdo (Negro Mate) */
.modal-left {
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 60px;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

/* Línea divisoria sutil como en la imagen */
.modal-left::after {
  content: "";
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.1), transparent);
}

/* Panel Derecho (Midnight con Resplandor) */
.modal-right {
  min-width: 0;
  padding: 50px;
  background: rgba(20, 14, 30, 0.55);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: visible;
}

/* Resplandor púrpura suave en la esquina */
.modal-right::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  height: 500px;
  max-width: 100%;
  max-height: 100%;

  background: radial-gradient(
    circle,
    rgba(169, 69, 198, 0.12),
    transparent 60%
  );

  filter: blur(60px);
  pointer-events: none;

  z-index: 0;
}

/* ═══════════════════════ 4. TEXTOS Y LOGO ═══════════════════════ */
.modal-logo-container {
  width: 120px;
  height: 120px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 35px;

  background: radial-gradient(
    circle at 30% 30%,
    #ffffff,
    #f2f2f2
  );

  border: 1px solid rgba(169, 69, 198, 0.5);

  box-shadow:
    0 10px 35px rgba(0,0,0,0.4),
    0 0 40px rgba(169, 69, 198, 0.35),
    inset 0 2px 10px rgba(255,255,255,0.6);
    
  position: relative;
  overflow: hidden;
}

.modal-logo-container::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: radial-gradient(
    circle,
    rgba(169, 69, 198, 0.25),
    transparent 60%
  );
  filter: blur(20px);
  opacity: 0.6;
}

.modal-logo-container::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(169, 69, 198, 0.3), transparent);
  z-index: -1;
}

#modal-logo {
  max-width: 65%;
  height: auto;
  object-fit: contain;

  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

#modal-label {
  font-size: 13px;
  letter-spacing: 0.3em;
  color: #a945c6;
  margin-bottom: 15px;
  font-weight: 600;
}

#modal-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1.1;
  color: white;
  margin-bottom: 25px;
  font-weight: 400;
}

#modal-body p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  line-height: 1.6;
  max-width: 450px;
  margin: 0;
}

/* Tags */
.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.modal-tags span {
  padding: 7px 15px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  font-size: 10px;
  color: #ccc;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Botón Visitar Sitio */
.modal-site-link {
  width: fit-content;
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 40px;
  text-decoration: none;
  background: rgba(169, 69, 198, 0.15);
  border: 1px solid rgba(169, 69, 198, 0.4);
  color: white;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: all 0.3s ease;
}

.modal-site-link:hover {
  background: rgba(169, 69, 198, 0.3);
  border-color: #a945c6;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(169, 69, 198, 0.2);
}

/* Contenedor: botón de sitio + redes alineados horizontalmente */
.modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* Neutraliza el margin-top del botón de sitio cuando está dentro de .modal-actions */
.modal-actions .modal-site-link {
  margin-top: 0;
}

/* Contenedor de redes */
.modal-social-links {
  display: flex;
  gap: 10px;
}

/* Botón circular — mismo estilo que .modal-site-link */
.modal-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  text-decoration: none;
  background: rgba(169, 69, 198, 0.15);
  border: 1px solid rgba(169, 69, 198, 0.4);
  color: white;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.modal-social-btn svg {
  width: 20px;
  height: 20px;
}

.modal-social-btn:hover {
  background: rgba(169, 69, 198, 0.3);
  border-color: #a945c6;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(169, 69, 198, 0.2);
}

/* Ocultar si no hay enlace */
.modal-social-btn[hidden] {
  display: none !important;
}

/* Responsive: en móvil pasan debajo del botón de sitio */
@media (max-width: 480px) {
  .modal-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ═══════════════════════ 5. PREVIEW Y GALERÍA ═══════════════════════ */
.modal-preview-container {
  position: relative;
  width: 100%;
  min-width: 0;
}

.modal-preview-main {
  width: 100%;
  height: 450px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #16161e;
}

.image-stack {
  position: relative;

  width: 100%;
  height: 100%;

  overflow: hidden;
  border-radius: 24px;

  background: rgba(255,255,255,.02);
}

.img-layer {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: top;

  opacity: 0;

  transform: scale(1);

  transition:
    opacity 700ms cubic-bezier(.22,1,.36,1),
    transform 900ms cubic-bezier(.22,1,.36,1),
    filter 700ms ease;

  will-change: transform, opacity;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.img-layer.active {
  opacity: 1;
  z-index: 2;
}

/* Contador tipo pastilla */
.modal-counter {
  position: absolute;
  bottom: 20px;
  right: 20px;
  top: auto;
  left: auto;

  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  padding: 6px 14px;
  border-radius: 20px;
  color: white;
  font-size: 13px;
  z-index: 5;
  border: 1px solid rgba(169, 69, 198, 0.2);
}

.modal-caption {
  position: absolute;

  left: 20px;
  bottom: 20px;

  z-index: 5;

  padding: 8px 16px;

  border-radius: 18px;

  background:
    linear-gradient(
      135deg,
      rgba(169,69,198,.88),
      rgba(130,50,170,.82)
    );

  border: 1px solid rgba(255,255,255,.14);

  color: white;

  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;

  backdrop-filter: blur(14px);

  box-shadow:
    0 10px 30px rgba(169,69,198,.35),
    inset 0 1px 0 rgba(255,255,255,.12);

  max-width: 70%;

  transition:
    opacity .35s ease,
    transform .35s ease;

  pointer-events: none;
}

/* Navegación */
.modal-btn {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 100;
  transform: translateY(-50%) scale(1);
  background: rgba(169, 69, 198, 0.68);
  border: 1px solid rgba(169, 69, 198, 0.5);
  color: white;
  box-shadow: 0 0 20px rgba(169, 69, 198, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}

.modal-btn:hover {
  background: rgba(169, 69, 198, 0.88);
  box-shadow: 0 0 30px rgba(169, 69, 198, 0.6);
  transform: translateY(-50%) scale(1.15);
}

.modal-btn.disabled {
  opacity: 0 !important;
  box-shadow: none !important;
  pointer-events: none;
  cursor: default;
}

.modal-btn.disabled:hover {
  transform: translateY(-50%) scale(1);
  background: rgba(169, 69, 198, 0.18);
}

.modal-btn.prev { left: -24px; }
.modal-btn.next { right: -24px; }

.modal-preview-container:hover .modal-btn {
  opacity: 1;
  pointer-events: auto;
}

/* Miniaturas */
.modal-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
  max-width: 100%;
  gap: 15px;
  margin-top: 20px;
}

.modal-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
  cursor: pointer;

  opacity: .55;
  transform: translateZ(0) scale(.96);

  transition:
    transform .35s cubic-bezier(.22,1,.36,1),
    opacity .35s ease,
    border-color .35s ease,
    box-shadow .35s ease,
    filter .35s ease;

  border: 1px solid transparent;

  will-change: transform;
  backface-visibility: hidden;

  filter: saturate(.9);
}

.modal-thumb:hover {
  opacity: .95;

  transform:
    translateZ(0)
    translateY(-4px)
    scale(1.03);

  filter: saturate(1.05);
}

.modal-thumb.active {
  opacity: 1;

  border-color:
    rgba(169,69,198,.8);

  box-shadow:
    0 0 0 1px rgba(169,69,198,.35),
    0 10px 25px rgba(169,69,198,.25);

  transform:
    translateZ(0)
  }

/* ═══════════════════════ 6. INTERFAZ ═══════════════════════ */
#modal-close {
  position: sticky;
  top: 12px;
  margin: 12px 12px -52px auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  z-index: 20;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

#modal-close:hover {
  background: #a945c6;
  transform: rotate(90deg);
}

/* ═══════════════════════ MODAL WAYRA ═══════════════════════ */
#wayra-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

#wayra-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(4, 3, 8, 0.92);
  backdrop-filter: blur(32px);
  z-index: 0;
  pointer-events: none;
}

#wayra-overlay.open {
  opacity: 1;
  pointer-events: all;
}

#wayra-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  cursor: pointer;
  z-index: 10;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s;
}
#wayra-close:hover {
  background: #a945c6;
  transform: rotate(90deg);
}

#wayra-modal {
  position: relative;
  z-index: 2; /* encima del canvas */
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  width: 95%;
  max-width: 1100px;
  max-height: 90vh;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(169,69,198,0.25);
  box-shadow:
    0 60px 120px rgba(0,0,0,0.8),
    0 0 80px rgba(169,69,198,0.1);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  background: transparent; /* ← sin background propio */
}

#wayra-overlay.open #wayra-modal {
  transform: translateY(0) scale(1);
}

/* IZQUIERDA */
#wayra-left {
  padding: 60px 50px;
  background: rgba(8, 6, 12, 0.9);
  border-right: 1px solid rgba(169,69,198,0.12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

#wayra-left::before {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(169,69,198,0.08) 0%, transparent 65%);
  pointer-events: none;
}

#wayra-sigil {
  width: 80px;
  height: 80px;
  margin-bottom: 32px;
  opacity: 0.9;
}

#wayra-kecha {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #a945c6;
  margin-bottom: 8px;
}

#wayra-word {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(52px, 6vw, 80px);
  font-weight: 400;
  font-style: italic;
  color: white;
  line-height: 1;
  margin-bottom: 24px;
}

#wayra-meaning {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,0.45);
  font-weight: 300;
  max-width: 320px;
}

#wayra-divider {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, #a945c6, transparent);
  margin: 28px 0;
}

#wayra-attrs {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wayra-attr {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  text-transform: lowercase;
}

.attr-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(169,69,198,0.1);
  border: 1px solid rgba(169,69,198,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* DERECHA */
#wayra-right {
  padding: 60px 50px;
  background: rgba(14, 10, 22, 0.75);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

#wayra-right::before {
  content: '';
  position: absolute;
  top: -150px; right: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(169,69,198,0.1) 0%, transparent 60%);
  pointer-events: none;
}

#wayra-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #a945c6;
  margin-bottom: 20px;
}

#wayra-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  color: white;
  line-height: 1.2;
  margin-bottom: 28px;
}

#wayra-title em {
  font-style: italic;
  color: #b967d2;
}

#wayra-bio, #wayra-vision {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
  font-weight: 300;
  margin-bottom: 16px;
  max-width: 440px;
}

#wayra-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

#wayra-stack span {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: rgba(255,255,255,0.4);
  padding: 5px 12px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 99px;
  background: rgba(255,255,255,0.02);
}

#wayra-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.3);
  margin-bottom: 32px;
}

#wayra-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  width: fit-content;
  border-radius: 99px;
  background: rgba(169,69,198,0.15);
  border: 1px solid rgba(169,69,198,0.4);
  color: white;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: all 0.3s ease;
}

#wayra-cta:hover {
  background: rgba(169,69,198,0.3);
  border-color: #a945c6;
  transform: translateX(4px);
  box-shadow: 0 10px 24px rgba(169,69,198,0.2);
}

/* tablet nav drawer */
#mobile-nav {
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  background: var(--white);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 20px 24px;
  gap: 4px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  transform: translateY(-110%);
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
#mobile-nav.open { transform: translateY(0); }
#mobile-nav a {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  color: var(--gray);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: color 0.2s;
}
#mobile-nav a:last-child { border-bottom: none; color: var(--purple); }
#mobile-nav a:hover { color: var(--purple); }
#mobile-nav a {
  transition: color 0.2s, padding-left 0.3s var(--ease-premium), border-color 0.2s;
}
#mobile-nav a:active,
#mobile-nav a:focus-visible {
  padding-left: 10px;
  color: var(--purple);
  border-bottom-color: rgba(169, 69, 198, 0.4);
}

/* ═══════════════════════════════════════════════════════════════
   PORTFOLIO GRID — CONFIG
   Variables de layout y timing compartidas por todas las tarjetas
═══════════════════════════════════════════════════════════════ */

:root {
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --text-dim: rgba(255, 255, 255, 0.28);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin: 50px auto 0 auto;
}



/* ═══════════════════════════════════════════════════════════════
   TARJETA — BASE
   Estructura, fondo, borde y radio de la tarjeta
═══════════════════════════════════════════════════════════════ */

.portfolio-card {
  position: relative;
  border-radius: 16px;
  min-height: 330px;
  overflow: hidden;
  cursor: pointer;

  /* El fondo y el borde van al wrapper para que no "salten" */
  background: rgba(13, 13, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);

  transition:
    background .5s var(--ease-premium),
    border-color .5s var(--ease-premium);

  /* Importante: nada de transform acá */
  transform: none;
}

.portfolio-card:hover {
  background: rgba(17, 17, 32, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
  /* ❌ SIN transform acá */
}

/* El inner es el que se mueve */
.pf-inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  transform-origin: center center;

  transition: transform .6s var(--ease-premium);
}

.portfolio-card:hover .pf-inner {
  transform:
    translateY(-10px)
    rotateX(2deg)
    rotateY(-2deg);
}

/* La línea de luz también se queda en el wrapper para que no se deforme */
.portfolio-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  transition: background 0.5s var(--ease-premium);
  z-index: 1;
}

.portfolio-card:hover::before {
  background: linear-gradient(90deg, transparent, var(--project-color), transparent);
  opacity: 0.25;
}

/* ═══════════════════════════════════════════════════════════════
   TARJETA — BLOB DE COLOR
   Mancha difuminada en la esquina inferior derecha, única por proyecto
═══════════════════════════════════════════════════════════════ */

.pf-blob {
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;

  background: var(--purple);

  opacity:.06;

  transition:
    opacity .5s var(--ease-premium),
    transform .5s var(--ease-premium),
    background-color .5s var(--ease-premium);
  }

.portfolio-card:hover .pf-blob {
  background: var(--project-color);

  opacity:.18;

  transform:scale(1.15);
}


/* ═══════════════════════════════════════════════════════════════
   TARJETA — LAYOUT INTERIOR
   Disposición vertical del contenido con espacio entre header y footer
═══════════════════════════════════════════════════════════════ */

.pf-content {
  padding: 40px 36px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  flex: 1;
}

.pf-header {
  display: flex;
  flex-direction: column;
  padding-bottom:80px;
}


/* ═══════════════════════════════════════════════════════════════
   TARJETA — NUMERACIÓN
   Índice correlativo (01, 02…) en la parte superior de cada tarjeta
═══════════════════════════════════════════════════════════════ */

.pf-index {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.18);
  font-weight: 500;
  margin-bottom: 28px;
}


/* ═══════════════════════════════════════════════════════════════
   TARJETA — TEXTOS PRINCIPALES
   Etiqueta de tipo, nombre del proyecto y sector
═══════════════════════════════════════════════════════════════ */

.pf-type {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
  color: var(--purple);
  opacity:.65;

  transition:
    color .45s var(--ease-premium),
    opacity .45s var(--ease-premium);
}

.portfolio-card:hover .pf-type {
  color: var(--project-color);
  opacity:1;
}

.pf-name {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

/* Variante itálica para la CTA card */
.pf-name--italic {
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
}

.pf-sector {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 400;
}


/* ═══════════════════════════════════════════════════════════════
   TARJETA — DESCRIPCIÓN (REVEAL EN HOVER)
   Texto oculto que se despliega suavemente al interactuar
═══════════════════════════════════════════════════════════════ */

.pf-hover-content{
  position:absolute;

  left:36px;
  right:36px;
  bottom:90px;
  min-height:72px;

  opacity:0;

  transform:
    translateY(15px);

  transition:
    .45s var(--ease-premium);

  pointer-events:none;
}

.pf-hover-content p {
  overflow: hidden;
}

.portfolio-card:hover .pf-hover-content{
  opacity:1;
  transform:translateY(0);
}

.pf-description {
  font-size: 13px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 300;
}


/* ═══════════════════════════════════════════════════════════════
   TARJETA — FOOTER
   Línea divisoria, tags y acción (flecha o label)
═══════════════════════════════════════════════════════════════ */

.pf-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);

  transition: border-color 0.4s var(--ease-premium);
}

.portfolio-card:hover .pf-footer {
  border-color: rgba(255, 255, 255, 0.09);
}

/* Tags pill */
.pf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pf-tags span {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.28);
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  letter-spacing: 0.05em;

  transition: all 0.4s var(--ease-premium);
}

.portfolio-card:hover .pf-tags span {
  color: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.12);
}

/* Flecha circular — acción principal */
.pf-arrow {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.2);
  font-size: 13px;
  text-decoration: none;
  flex-shrink: 0;

  transition: all 0.4s var(--ease-premium);
}

.portfolio-card:hover .pf-arrow {
  background: var(--project-color);
  border-color: var(--project-color);
  color: #ffffff;
  transform: rotate(45deg);
}

/* Label "Próximamente" — solo texto, sin botón */
.pf-soon {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pf-soon::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */

@media (max-width: 992px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* En móvil la descripción queda visible sin necesidad de hover */
  .pf-hover-content {
    grid-template-rows: 1fr;
    opacity: 1;
    transform: none;
    margin-top: 14px;
  }

  .pf-blob {
    display: none; /* Desactivado en móvil para mejor rendimiento */
  }
}

/* ═══════════════════════ CLIENT CAROUSEL ═══════════════════════ */
.client-carousel-section {
  padding: clamp(70px, 8vw, 100px) var(--gutter);
  background: linear-gradient(180deg, rgba(169,69,198,0.02) 0%, transparent 100%);
  position: relative;
  overflow: hidden;
}

.client-carousel-section::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(169,69,198,0.08), transparent 70%);
  pointer-events: none;
}

.client-carousel-section::after {
  content: '';

  position: absolute;
  inset: 0;

  opacity: .025;

  pointer-events: none;

  mix-blend-mode: soft-light;
}

.carousel-inner {
  max-width: var(--site-max);
  margin: 0 auto;
}

.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 48px;
}

.carousel-track-wrapper {
  overflow: hidden;
  flex: 1;
  min-width: 0;
  border-radius: 28px;
  padding: 8px 0;
}

.carousel-track {
  display: flex;
  gap: 24px;
  will-change: transform;
  transform: translate3d(0,0,0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Tarjetas - más compactas */
.carousel-card {
  flex: 0 0 calc(25% - 22px);
  min-width: 165px;

  background:
    linear-gradient(
      180deg,
      rgba(24,24,24,.82),
      rgba(16,16,16,.88)
    );

  backdrop-filter: blur(14px);

  border: 1px solid rgba(255,255,255,.05);

  border-radius: 22px;

  cursor: pointer;

  position: relative;

  overflow: visible;

  isolation: isolate;

  transition:
    transform .35s ease,
    border-color .35s ease,
    background .35s ease,
    box-shadow .35s ease;
}

.carousel-card::before {
  content: '';

  position: absolute;
  inset: 0;

  border-radius: inherit;

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,.98),
      rgba(255,255,255,.88)
    );

  opacity: 0;

  transition:
    opacity .45s ease,
    background-position 1.8s ease;

  z-index: -1;

  background-size: 200% 100%;
}

.carousel-card:hover::before {
  opacity: 1;

  background-image:
    linear-gradient(
      120deg,
      rgba(255,255,255,.96) 20%,
      rgba(255,255,255,1) 50%,
      rgba(255,255,255,.96) 80%
    );

  animation: shineMove 1.8s ease;
}

.carousel-card::after {
  content: '';

  position: absolute;
  inset: -1px;

  border-radius: inherit;

  background:
    radial-gradient(
      circle at top,
      rgba(169,69,198,.35),
      transparent 65%
    );

  opacity: 0;

  transition: opacity .5s ease;

  z-index: -2;
}

.carousel-card:hover::after {
  opacity: 1;
}

.card-inner {
  padding: 18px 14px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  border-radius: 22px;
}

.carousel-card:hover {

  border-color:
    rgba(169,69,198,.134);

  background:
    linear-gradient(
      180deg,
      rgba(28,28,28,.96),
      rgba(18,18,18,.98)
    );

  box-shadow:
    0 12px 30px rgba(0,0,0,.22),

    /* borde fake más grueso */
    0 0 0 2px rgba(169,69,198,.18),

    /* glow */
    0 0 24px rgba(169,69,198,.10);
}

/* Logo contenedor */
.client-logo {
  width: 100%;
  min-height: 100px;

  display: flex;
  align-items: center;
  justify-content: center;

  transition:
    transform .45s cubic-bezier(.22,1,.36,1);
}

.client-logo img {

  max-width: 190px;
  max-height: 82px;

  width: auto;
  height: auto;

  object-fit: contain;

  filter:
    brightness(0)
    invert(1)
    opacity(.82);

  transition:
    transform .45s ease,
    opacity .35s ease,
    filter .35s ease;
}

/* hover */
.carousel-card:hover .client-logo img {

  opacity: 1;

  filter:
    brightness(0)
    invert(1);

  transform:
    scale(1.025);
}

.client-logo, .client-logo img {
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
  image-rendering: auto;
}


/* Texto - oculto inicialmente */
.client-info {

  position: absolute;

  left: 0;
  right: 0;
  bottom: -18px;

  display: flex;
  justify-content: center;

  pointer-events: none;

  z-index: 5;
}

.client-info h4 {

  font-family: 'DM Serif Display', serif;

  font-size: 15px;
  font-weight: 400;

  letter-spacing: .02em;

  color: rgba(255,255,255,.98);

  margin: 0;

  padding:
    10px 18px;

  border-radius: 999px;

  background:
    linear-gradient(
      135deg,
      rgba(169,69,198,.95),
      rgba(126,58,242,.92)
    );

  border:
    1px solid rgba(255,255,255,.10);

  backdrop-filter: blur(14px);

  box-shadow:
    0 10px 30px rgba(169,69,198,.22);

  opacity: 0;

  transform:
    translateY(10px)
    scale(.96);

  transition:
    opacity .35s ease,
    transform .45s cubic-bezier(.22,1,.36,1);

  white-space: nowrap;
}

.carousel-card:hover .client-info h4 {

  opacity: 1;

  transform:
    translateY(0)
    scale(1);
}

.carousel-card:hover .client-info h4::after {
  width: 70%;
}

.client-logo img {
  image-rendering: auto;
  transform: translateZ(40px);
}

/* HOVER */
.carousel-card:hover .client-logo img {

  filter:
    brightness(1)
    invert(0)
    opacity(1);

  transform:
    scale(1.04)
    translateY(-2px);
}

.carousel-track-wrapper {
  overflow: hidden;
  flex: 1;
  border-radius: 32px;
  padding: 24px 0 42px;

  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

/* Botones de navegación */
.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(169, 69, 198, 0.15);
  border: 1px solid rgba(169, 69, 198, 0.3);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  z-index: 20;
}

.carousel-btn:hover {
  background: var(--purple);
  border-color: var(--purple);
  transform: scale(1.05);
}

.carousel-btn svg {
  width: 18px;
  height: 18px;
}

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  width: 28px;
  border-radius: 4px;
  background: var(--purple);
}

.dot:hover {
  background: var(--purple);
  transform: scale(1.2);
}


/* ═══════════════════════ MEDIA QUERIES MEJORADAS ═══════════════════════ */

/* === TABLET (hasta 1024px) === */
@media (max-width: 1024px) {
  nav {
    display: none;
  }
  
  #nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-steps {
    gap: 48px 24px;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === MÓVIL GRANDE (768px - 1024px) === */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  .hero-visual {
    order: -1;
    transform: scale(0.9);
  }
  
  .hero-eyebrow {
    justify-content: center;
  }
  
  .hero-eyebrow::before {
    display: none;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  /* Slide 2 (servicios) */
  .slide2-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    gap: 18px;
  }
  
  .slide2-card,
  .slide2-card--accent {
    transform: none !important;
    animation: none;
  }
  
  /* Slide social */
  .hero-inner--social,
  .hero-inner--branding {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .social-content,
  .branding-content {
    text-align: center;
    max-width: 100%;
  }
  
  .social-description,
  .social-cta,
  .branding-description,
  .branding-cta {
    margin-left: auto;
    margin-right: auto;
  }
  
  .social-cta,
  .branding-cta {
    padding-left: 0;
    padding-top: 20px;
  }
  
  .social-cta::before,
  .branding-cta::before {
    width: 80px;
    height: 1px;
    top: 0;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .social-actions {
    justify-content: center;
  }
  
  .phone-stage {
    width: 100%;
    min-height: 500px;
    display: flex;
    justify-content: center;
  }
  
  .premium-phone {
    transform: rotateX(8deg) rotateY(-10deg) rotateZ(2deg);
  }
  
  /* Modal */
  .modal-content {
    grid-template-columns: 1fr;
  }
  
  .modal-left {
    padding: 34px 26px 20px;
  }
  
  .modal-left::after {
    display: none;
  }
  
  .modal-right {
    padding: 0 20px 24px;
  }
  
  .modal-preview-main {
    aspect-ratio: 16 / 10;
    height: auto;
  }
  
  .modal-gallery {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 6px;
    margin-top: 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, transparent, black 10px, black calc(100% - 10px), transparent);
  }
  
  .modal-gallery::-webkit-scrollbar {
    display: none;
  }
  
  .modal-thumb {
    flex: 0 0 110px;
    width: 110px;
    height: 72px;
    border-radius: 14px;
    scroll-snap-align: start;
  }
  
  .modal-btn.prev {
    left: 10px;
  }
  
  .modal-btn.next {
    right: 10px;
  }
  
  .modal-caption {
    left: 14px;
    bottom: 14px;
    max-width: calc(100% - 110px);
    font-size: 12px;
    padding: 7px 12px;
  }
  
  .modal-counter {
    right: 14px;
    bottom: 14px;
    font-size: 12px;
  }
}

/* === MÓVIL (hasta 768px) === */
@media (max-width: 768px) {
  :root {
    --header-h: 64px;
    --gutter: 20px;
  }
  
  
  /* Header visible y contenido con padding correcto */
  #site-header {
    padding: 0 var(--gutter);
  }
  
  #site-content {
    padding-top: var(--header-h);
  }
  
  .hero-slide {
    align-items: center;
    padding: 20px var(--gutter) 70px;
    overflow: hidden;
  }

  .hero-slide[data-slide="0"] .hero-sub { display: none; }

  .hero-eyebrow { justify-content: center; }
  .hero-actions { justify-content: center; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0;
    min-height: auto;
  }
  
  .hero-visual {
    display: none;
  }

  .hero-title {
    font-size: clamp(32px, 8vw, 48px);
    margin-bottom: 20px;
  }
  
  .hero-sub {
    font-size: 14px;
    margin-bottom: 32px;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  /* slide 2 en mobile */
  .slide2-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 12px;
    margin-bottom: 28px;
  }

  .slide2-card,
  .slide2-card--accent {
    transform: none !important;
    animation: none !important;
    padding: 24px 20px;
  }

  .slide2-card p { display: none; }
  .slide2-footer .slide-title { font-size: clamp(24px, 5vw, 36px); }
  .slide2-grid { gap: 10px; margin-bottom: 20px; }
  .slide2-card { padding: 20px 16px; }
  .slide2-icon { width: 44px; height: 44px; margin-bottom: 12px; }
  
  /* slide 3 en mobile */
  .slide3-wrap .hero-sub { display: none; }
  .slide3-wrap .hero-eyebrow { margin-bottom: 16px; }
  .slide3-numbers { margin: 16px 0 24px; }
  .social-description { display: none; }
  .social-cta { display: none; }

  .slide3-sep {
    height: 50px;
    width: 1px;
  }

  .slide3-stat strong {
    font-size: clamp(36px, 10vw, 52px);
  }

  /* slide 4 en mobile */
  .slide4-wrap .hero-sub { display: none; }
  .branding-description { display: none; }
  .slide4-sigil { margin-bottom: 16px; }

  .slide-title--big {
    font-size: clamp(36px, 8vw, 52px);
  }
  
  .hero-nav-bottom {
    bottom: 16px;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
  }
  
  /* Mockup más pequeño */
  .mockup-scene {
    transform: scale(0.85);
    margin: -20px 0;
  }
  
  .floating-panel {
    display: none !important;
  }
  
  /* Servicios */
  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 40px;
  }
  
  .service-card {
    max-width: 100%;
  }
  
  .service-content {
    width: 90%;
    margin: -32px auto 0;
  }
  
  .service-media {
    height: 200px;
  }
  
  /* Proceso - 2 columnas en tablet, 1 en móvil pequeño */
  .process-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 24px;
  }
  
  .process-steps::before {
    display: none;
  }
  
  .step {
    padding: 0;
  }
  
  /* Portfolio */
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0;
    margin-top: 32px;
  }

  .portfolio-card {
    min-height: 0;
  }

  .pf-name {
    font-size: 22px;
  }

  .pf-content {
    padding: 28px 24px;
  }

  .pf-header {
    padding-bottom: 0;
  }

  /* la descripción deja de estar flotando y pasa a ser parte del flujo */
  .pf-hover-content {
    position: static;
    min-height: 0;
    margin: 14px 0 0;
  }

  .pf-footer {
    margin-top: 20px;
  }

  /* Carrusel de clientes */
  .carousel-container {
    gap: 12px;
  }
  
  .carousel-btn {
    width: 38px;
    height: 38px;
  }
  
  .carousel-card {
    flex: 0 0 calc(50% - 10px);
    min-width: 170px;
  }
  
  .client-logo img {
    max-width: 130px;
    max-height: 60px;
  }
  
  .carousel-track-wrapper {
    padding: 16px 0 32px;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  }
  
  /* CTA */
  .cta-section {
    padding: 60px var(--gutter);
  }
  
  .cta-title {
    font-size: clamp(32px, 8vw, 48px);
  }
  
  .cta-contacts {
    flex-direction: column;
    gap: 16px;
  }
  
  .cta-contact-sep {
    display: none;
  }
  
  .cta-contact-link {
    width: 100%;
    justify-content: center;
  }
  
  /* Footer */
  footer {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 24px var(--gutter);
  }
  
  /* Wayra Modal */
  #wayra-modal {
    grid-template-columns: 1fr;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 24px;
  }
  
  #wayra-left {
    padding: 40px 32px 32px;
  }
  
  #wayra-right {
    padding: 32px 32px 48px;
  }
  
  #wayra-word {
    font-size: 52px;
  }
  
  /* Secciones generales */
  .section {
    padding: 60px var(--gutter);
  }
  
  .section-title {
    font-size: clamp(28px, 6vw, 40px);
    margin-bottom: 40px;
  }
  
  /* Reveal animations - más suaves en móvil */
  .reveal {
    transform: translateY(20px);
  }
}

/* === MÓVIL PEQUEÑO (hasta 640px) === */
@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }
  
  /* Hero slides más compacto */
  .hero-slide {
    padding: 24px 16px 80px;
  }
  
  .hero-title {
    font-size: clamp(28px, 7vw, 36px);
  }
  
  .hero-sub {
    font-size: 13px;
  }
  
  /* Mockup aún más pequeño */
  .mockup-scene {
    transform: scale(0.75);
    margin: -40px 0;
  }
  
  /* Proceso - 1 columna en móvil pequeño */
  .process-steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .step-icon {
    width: 56px;
    height: 56px;
  }
  
  .step-icon svg {
    width: 30px;
    height: 30px;
  }
  
  /* Portfolio - 1 columna */
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pf-name {
    font-size: 24px;
  }
  
  /* Carrusel - 1 tarjeta visible */
  .carousel-card {
    flex: 0 0 100%;
    min-width: 0;
  }

  .carousel-track-wrapper {
    mask-image: none;
  }
  
  /* Slide social */
  .social-visual {
    min-height: auto;
    padding-top: 20px;
  }
  
  .premium-phone {
    width: 200px;
    height: 410px;
  }
  
  .phone-screen {
    padding: 58px 14px 14px;
  }
  
  .mockup-post {
    height: 150px;
  }
  
  .social-badge {
    width: 46px;
    height: 46px;
    border-radius: 16px;
  }
  
  .social-badge svg {
    width: 24px;
    height: 24px;
  }
  
  .badge-instagram {
    left: 5px;
    top: 70px;
  }
  
  .badge-whatsapp {
    right: 0;
    top: 120px;
  }
  
  .badge-youtube {
    left: 10px;
    bottom: 90px;
  }
  
  .badge-facebook {
    right: 5px;
    bottom: 60px;
  }
  
  /* Slide branding */
  .branding-visual {
    min-height: auto;
  }
  
  .branding-scene {
    height: 440px;
  }
  
  .brand-board {
    width: 320px;
    height: 290px;
  }
  
  .brand-layout {
    padding: 18px;
    gap: 12px;
  }
  
  .logo-card,
  .palette-card {
    height: 100px;
  }
  
  .business-card,
  .typo-card {
    height: 90px;
  }
  
  .floating-brand {
    font-size: 9px;
    padding: 10px 14px;
  }
  
  /* Modal */
  .modal-logo-container {
    width: 80px;
    height: 80px;
  }
  
  #modal-title {
    font-size: 32px;
  }
  
  #modal-body p {
    font-size: 13px;
  }
  
  .modal-site-link {
    width: 100%;
    justify-content: center;
  }
  
  /* Botón WhatsApp */
  .whatsapp-float {
    bottom: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
  }
  
  .whatsapp-float svg {
    width: 22px;
    height: 22px;
  }
  
  .whatsapp-tooltip {
    display: none;
  }
}

/* === MÓVIL MUY PEQUEÑO (hasta 480px) === */
@media (max-width: 480px) {
  .hero-nav-btn {
    display: none;
  }
  
  .hero-dots {
    gap: 6px;
  }
  
  .hero-dot {
    width: 6px;
    min-width: 6px;
    height: 6px;
  }

  .hero-dot.active {
    width: 20px;
    min-width: 20px;
  }

  .hero-slide {
    padding: 24px 16px 70px;
  }

  .slide3-numbers {
    gap: 0;
  }

  .slide3-stat strong {
    font-size: clamp(32px, 9vw, 44px);
  }

  .service-name {
    font-size: 20px;
  }
  
  .service-desc {
    font-size: 12px;
  }
  
  .step-title {
    font-size: 16px;
  }
  
  .step-desc {
    font-size: 12px;
  }
  
  .premium-phone {
    width: 220px;
    height: 460px;
    border-radius: 36px;
  }
  
  .phone-screen {
    padding: 62px 14px 14px;
  }
  
  .mockup-post {
    height: 160px;
    border-radius: 20px;
  }
  
  .social-badge {
    width: 48px;
    height: 48px;
  }
  
  .social-badge svg {
    width: 24px;
    height: 24px;
  }
  
  .slide-title--social {
    font-size: 36px;
  }
  
  .slide-title--branding {
    font-size: 36px;
  }
}

/* === ORIENTACIÓN HORIZONTAL EN MÓVIL === */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: auto;
  }
  
  .hero-slide {
    padding: 20px var(--gutter) 60px;
  }
  
  .hero-inner {
    padding: 20px 0;
  }
  
  .mockup-scene {
    transform: scale(0.7);
  }
  
  .modal-preview-main {
    max-height: 60vh;
  }
  
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  
  .step-icon {
    width: 48px;
    height: 48px;
  }
  
  .step-icon svg {
    width: 26px;
    height: 26px;
  }
}

/* === DISPOSITIVOS TÁCTILES (hover → tap) === */
@media (hover: none) and (pointer: coarse) {
  
  /* Carrusel: mostrar nombre siempre o con :active */
  .carousel-card .client-info h4 {
    opacity: 0.7;
    transform: translateY(0) scale(0.95);
  }
  
  .carousel-card:active .client-info h4 {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  
  /* Botones de navegación más grandes para dedos */
  .carousel-btn,
  .hero-nav-btn {
    min-width: 44px;
    min-height: 44px;
  }
  
  .hero-dot {
    /* área táctil grande pero apariencia normal */
    width: 7px;
    min-width: 7px;
    height: 7px;
    position: relative;
    background: rgba(255,255,255,0.18);
  }

  .hero-dot::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    /* área táctil invisible */
  }

  .hero-dot::after {
    display: none; /* eliminar el after anterior que causaba el estiramiento */
  }

  .hero-dot.active {
    width: 26px;
    min-width: 26px;
    background: #a945c6;
  }
}

/* ═══════════════════════════════════
   WHATSAPP FLOATING BUTTON
══════════════════════════════════════ */

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(145deg, #b54bd4 0%, #8a32a8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(169, 69, 198, 0.7);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1000;
  text-decoration: none;
  animation: pulse-purple 2s infinite;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.15), 0 10px 30px rgba(0, 0, 0, 0.35);
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c95ce8, #a945c6);
  opacity: 0.4;
  filter: blur(10px);
  z-index: -2;
  transition: opacity 0.3s ease;
}

.whatsapp-float::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.25), transparent);
  z-index: -1;
}

/* Icono - tamaño proporcionado */
.whatsapp-float svg {
  width: 28px;
  height: 28px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  /* Centrar el icono dentro del botón */
  display: block;
  margin: 0 auto;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-4px);
  box-shadow: inset 0 1px 3px rgba(255,255,255,0.25), 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(169, 69, 198, 0.5);
  border-color: rgba(255, 255, 255, 0.55);
}

.whatsapp-float:hover svg {
  transform: scale(1.04);
}

/* Tooltip */
.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  color: #c95ce8;
  padding: 8px 15px;
  border-radius: 50px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  border: 1px solid rgba(169, 69, 198, 0.5);
  letter-spacing: 0.04em;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid rgba(169, 69, 198, 0.5);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  right: 72px;
}

@keyframes pulse-purple {
  0% {
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.15), 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(169, 69, 198, 0.7);
  }
  70% {
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.15), 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 16px rgba(169, 69, 198, 0);
  }
  100% {
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.15), 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(169, 69, 198, 0);
  }
}

/* Responsive - móvil */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 18px;
    right: 18px;
    width: 48px;
    height: 48px;
  }
  
  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
  
  .whatsapp-tooltip {
    display: none;
  }
}

@media (max-width: 480px) {
  .whatsapp-float {
    bottom: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
  }
  
  .whatsapp-float svg {
    width: 22px;
    height: 22px;
  }
}

/* Hero móvil: título, subtítulo y una muestra visual por slide. */
@media (max-width: 768px) {
  .hero .hero-inner {
    gap: 20px;
    text-align: center;
  }

  .hero .hero-eyebrow {
    font-size: 10px;
    letter-spacing: .12em;
    margin-bottom: 12px;
    line-height: 1.6;
  }

  .hero .hero-title,
  .hero .slide-title {
    font-size: clamp(28px, 7vw, 38px);
    margin-bottom: 0;
  }

  .hero .hero-sub,
  .hero .social-description,
  .hero .branding-description,
  .hero .social-cta,
  .hero .branding-cta,
  .hero .hero-actions,
  .hero .social-actions,
  .hero .slide2-footer > a,
  .hero .floating-brand,
  .hero .social-badge {
    display: none;
  }

  .hero .hero-visual,
  .hero .social-visual,
  .hero .branding-visual {
    display: flex;
    order: 1;
    min-height: 0;
    padding: 0;
    transform: none;
  }

  /* Escalar las escenas completas conserva las proporciones del mockup. */
  .hero .mockup-scene {
    width: 400px;
    max-width: none;
    height: 520px;
    flex-shrink: 0;
    zoom: .65;
    margin: 0;
    transform: none;
  }

  .hero .phone-stage {
    width: 360px;
    height: 500px;
    min-height: 0;
    flex-shrink: 0;
    zoom: .65;
  }

  .hero .premium-phone {
    width: 220px;
    height: 460px;
  }

  .hero .branding-scene {
    width: 400px;
    max-width: none;
    height: 440px;
    flex-shrink: 0;
    zoom: .65;
  }

  .hero .brand-board {
    width: 320px;
    height: 290px;
    flex-shrink: 0;
  }

  /* El slide de servicios usa sus tarjetas como muestra visual. */
  .hero .slide2-footer {
    order: -1;
    gap: 0;
  }

  .hero .slide2-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
    margin: 0;
  }

  .hero .slide2-card {
    min-width: 0;
    padding: 16px 6px;
  }

  .hero .slide2-icon {
    margin: 0 auto 12px;
    width: 36px;
    height: 36px;
  }

  .hero .slide2-card h3 {
    font-size: 13px;
    overflow-wrap: anywhere;
    margin: 0;
  }
}

/* Clientes en móvil: una empresa por página, con deslizamiento nativo. */
@media (max-width: 768px) {
  .client-carousel-section .carousel-track-wrapper {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    mask-image: none;
    border-radius: 22px;
    padding: 16px 0 24px;
  }

  .client-carousel-section .carousel-track-wrapper::-webkit-scrollbar {
    display: none;
  }

  .client-carousel-section .carousel-track {
    transform: none !important;
    will-change: auto;
    perspective: none;
    gap: 16px;
  }

  .client-carousel-section .carousel-card {
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .client-carousel-section .carousel-card[aria-hidden="true"] {
    display: none;
  }

  .client-carousel-section .client-logo {
    min-height: 120px;
  }

  .client-carousel-section .client-logo img {
    max-width: min(170px, 100%);
    max-height: 80px;
  }

  .client-carousel-section .client-info h4 {
    opacity: 1;
    transform: none;
  }

  .client-carousel-section .carousel-dots {
    margin-top: 0;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .12em;
  }
}

/* El contenido y las miniaturas deben reducirse dentro del viewport. */
#modal-box .modal-tags span,
#modal-box .modal-site-link {
  max-width: 100%;
  overflow-wrap: anywhere;
}

#modal-box .modal-caption {
  overflow-wrap: anywhere;
}

#modal-box .modal-caption:empty {
  display: none;
}

@media (max-width: 900px) {
  #modal-box {
    border-radius: 20px;
  }

  #modal-box .modal-content {
    grid-template-columns: minmax(0, 1fr);
  }

  #modal-box .modal-left {
    padding: 68px clamp(16px, 4vw, 32px) 24px;
  }

  #modal-box .modal-right {
    padding: 0 clamp(16px, 4vw, 32px) 24px;
  }

  #modal-box .modal-gallery {
    width: 100%;
    overscroll-behavior-x: contain;
  }

  #modal-box .modal-preview-main {
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: none;
  }

  #modal-box .img-layer {
    object-fit: contain;
    transform: none;
  }

  #modal-box .modal-btn {
    width: 40px;
    height: 44px;
  }

  #modal-box .modal-btn.prev { left: 4px; }
  #modal-box .modal-btn.next { right: 4px; }

  #modal-box .modal-caption {
    left: 8px;
    bottom: 8px;
    max-width: calc(100% - 88px);
    padding: 6px 8px;
    font-size: 11px;
  }

  #modal-box .modal-counter {
    right: 8px;
    bottom: 8px;
    padding: 6px 8px;
    font-size: 11px;
  }
}

/* Detalle de servicios, en la capa superior del navegador. */
.service-card[data-service] { cursor: pointer; }
.service-card[data-service]:focus-visible {
  outline: 2px solid #e6bdf7;
  outline-offset: 6px;
  border-radius: 24px;
}
.service-card[data-service]::after {
  content: '↗';
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 3;
  color: #e6bdf7;
  font-size: 28px;
  line-height: 1;
  text-shadow: 0 2px 8px #0a0a0a;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
}
.service-card[data-service]:hover::after,
.service-card[data-service]:focus-visible::after {
  opacity: 1;
}
#service-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  border: 0;
  background: transparent;
  color: var(--white);
  overflow: hidden;
}
#service-modal[open] { display: flex; align-items: center; justify-content: center; }
#service-modal::backdrop {
  background: rgba(5, 5, 8, .9);
  backdrop-filter: blur(24px);
}
#service-wind-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.service-modal-panel {
  position: relative;
  width: 100%;
  max-width: 740px;
  min-width: 0;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(169, 69, 198, .35);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(30, 18, 45, .85), rgba(12, 12, 18, .9));
  box-shadow: 0 30px 100px rgba(0, 0, 0, .6);
}
.service-modal-close {
  position: sticky;
  top: 12px;
  z-index: 2;
  display: block;
  width: 44px;
  height: 44px;
  margin: 12px 12px -56px auto;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: #21132d;
  color: white;
  cursor: pointer;
}
.service-modal-close:hover { background: var(--purple); }
.service-modal-content {
  padding: 64px clamp(20px, 5vw, 48px) 36px;
  overflow-wrap: anywhere;
}
.service-modal-label {
  color: #c784e0;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
#service-modal-title {
  margin: 12px 0 20px;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 400;
  line-height: 1.1;
}
#service-modal-description,
#service-modal-features,
#service-modal-note {
  font-size: 14px;
  line-height: 1.8;
  color: #d6cddd;
}
#service-modal-features { margin: 24px 0; padding-left: 20px; }
#service-modal-features li { margin-bottom: 10px; padding-left: 4px; }
#service-modal-features li::marker { color: #c784e0; }
#service-modal-note { font-size: 12px; color: #b7a8c0; }
#service-modal-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 28px;
  max-width: 100%;
  white-space: normal;
  line-height: 1.6;
  text-align: center;
}
@media (max-width: 480px) {
  #service-modal { padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
  .service-modal-panel { border-radius: 20px; }
  #service-modal-contact { font-size: 12px; }
}
