/* ============ SEGA INGENIERÍA — estilos ============ */

:root{
  --bg: #ffffff;
  --bg-alt: #fbf4f4;
  --surface: #ffffff;
  --surface-glass: rgba(255,255,255,.65);
  --text: #1a1c1f;
  --text-muted: #5c636c;
  --border: #ecdede;
  --border-glass: rgba(190,50,55,.12);
  --accent: #ed4243;
  --accent-2: #f26364;
  --accent-dark: #c92d2e;
  --navy: #201113;
  --navy-2: #2a1618;
  --shadow: 0 20px 45px -22px rgba(190,50,55,.22);
  --shadow-lg: 0 30px 70px -28px rgba(190,50,55,.3);
  --radius: 16px;
  --nav-h: 76px;
  --ease: cubic-bezier(.16,1,.3,1);
  color-scheme: light;
}

:root[data-theme="dark"]{
  --bg: #090c11;
  --bg-alt: #0d1117;
  --surface: #11161f;
  --surface-glass: rgba(23,29,41,.55);
  --text: #eef1f4;
  --text-muted: #93a0ac;
  --border: #202834;
  --border-glass: rgba(255,255,255,.08);
  --accent: #e6484d;
  --accent-2: #ff6b6f;
  --accent-dark: #ff8b8e;
  --navy: #050810;
  --navy-2: #0a0f1a;
  --shadow: 0 25px 60px -20px rgba(0,0,0,.6);
  --shadow-lg: 0 35px 90px -25px rgba(0,0,0,.7);
  color-scheme: dark;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background .4s ease, color .4s ease;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,h2,h3,h4{
  font-family: 'Sora', 'Inter', sans-serif;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
p{ margin:0 0 1em; color: var(--text-muted); line-height: 1.7; }
a{ color: inherit; text-decoration: none; }
img{ max-width:100%; display:block; }
.container{ max-width: 1180px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }

::selection{ background: color-mix(in srgb, var(--accent) 35%, transparent); color: var(--text); }

body.is-loading{ overflow: hidden; }

/* ---------- preloader ---------- */
.preloader{
  position: fixed; inset:0; z-index: 3000;
  display:flex; align-items:center; justify-content:center;
  background: var(--navy);
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
}
.preloader::before{
  content:''; position:absolute; inset:0;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%);
}
.preloader.is-hidden{ opacity:0; visibility:hidden; pointer-events:none; }
.preloader-inner{ position:relative; display:flex; flex-direction:column; align-items:center; gap:18px; }
.preloader-mark{
  display:inline-flex; align-items:center; justify-content:center;
  width:64px; height:64px; border-radius:16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color:#fff; font-family:'Sora',sans-serif; font-weight:800; font-size:1.3rem; letter-spacing:.02em;
  box-shadow: 0 12px 32px -10px color-mix(in srgb, var(--accent) 70%, transparent);
  animation: preloaderPulse 1.4s ease-in-out infinite;
}
@keyframes preloaderPulse{ 0%,100%{ transform: scale(1); } 50%{ transform: scale(1.08); } }
.preloader-bar{
  width: 160px; height:3px; border-radius:999px; overflow:hidden;
  background: rgba(255,255,255,.12);
}
.preloader-bar span{
  display:block; height:100%; width:40%; border-radius:999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  animation: preloaderBar 1.1s ease-in-out infinite;
}
@keyframes preloaderBar{
  0%{ transform: translateX(-120%); }
  100%{ transform: translateX(340%); }
}
.preloader-label{
  margin:0; color: rgba(255,255,255,.75); font-family:'Sora',sans-serif; font-weight:600;
  font-size:.85rem; letter-spacing:.08em; text-transform:uppercase;
}
.preloader-label strong{ color: var(--accent-2); }

/* ---------- cursor glow ---------- */
.cursor-glow{
  position: fixed; inset:0; z-index: 3; pointer-events:none;
  background: radial-gradient(420px circle at var(--mx,50%) var(--my,50%), color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%);
  opacity: 0; transition: opacity .4s ease;
  mix-blend-mode: plus-lighter;
}
:root[data-theme="light"] .cursor-glow{ mix-blend-mode: multiply; background: radial-gradient(420px circle at var(--mx,50%) var(--my,50%), color-mix(in srgb, var(--accent) 6%, transparent), transparent 70%); }
.cursor-glow.active{ opacity:1; }

/* ---------- progress bar ---------- */
.progress-bar{
  position: fixed; top:0; left:0; height:3px; width:0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 1000; transition: width .1s ease-out;
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 70%, transparent);
}

/* ---------- navbar ---------- */
.navbar{
  position: fixed; top:0; left:0; right:0; z-index: 900;
  height: var(--nav-h);
  display:flex; align-items:center;
  background: transparent;
  transition: background .35s ease, box-shadow .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled{
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: var(--shadow);
}
.navbar-inner{
  width:100%; max-width:1180px; margin:0 auto; padding: 0 28px;
  display:flex; align-items:center; justify-content:space-between; gap: 24px;
}
.brand{ display:flex; align-items:center; gap:10px; font-family:'Sora',sans-serif; font-weight:700; font-size: 1.05rem; }
.brand-mark{
  display:inline-flex; align-items:center; justify-content:center;
  width:38px; height:38px; border-radius:10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color:#fff; font-size:.85rem; font-weight:800; letter-spacing:.02em;
  box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: transform .4s var(--ease);
}
.brand:hover .brand-mark{ transform: rotate(-8deg) scale(1.06); }
.brand-text strong{ color: var(--accent); }
.brand-logo{ height: 40px; width:auto; }

/* Espacio reservado para el logotipo del cliente */
.brand-logo-placeholder{
  display:inline-flex; flex-direction:column; align-items:center; justify-content:center;
  min-width:52px; height:44px; padding: 0 12px; border-radius:10px;
  border: 1.5px dashed color-mix(in srgb, var(--accent) 55%, transparent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  color: var(--accent); line-height: 1.05; text-align:center;
  transition: transform .4s var(--ease), background .3s ease;
}
.brand:hover .brand-logo-placeholder{ transform: scale(1.04); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.blp-line{ font-size:.5rem; font-weight:600; text-transform:uppercase; letter-spacing:.06em; opacity:.8; }
.blp-strong{ font-size:.62rem; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
.footer-logo-placeholder{ height:40px; }

.nav-links{ display:flex; gap: 28px; }
.nav-links a{
  font-size:.92rem; font-weight:500; color: var(--text-muted);
  position:relative; padding: 6px 0; transition: color .25s ease;
  overflow: hidden; display:inline-block;
}
.nav-links a span{ position:relative; display:inline-block; }
.nav-links a::after{
  content:''; position:absolute; left:0; bottom:0; width:0; height:2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .3s var(--ease);
}
.nav-links a:hover{ color: var(--text); }
.nav-links a:hover::after{ width:100%; }

.navbar-actions{ display:flex; align-items:center; gap: 14px; }
.theme-toggle{
  width:40px; height:40px; border-radius:50%; border:1px solid var(--border);
  background: var(--surface); color: var(--text); cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition: transform .4s var(--ease), border-color .3s ease, background .3s ease;
}
.theme-toggle:hover{ transform: rotate(25deg) scale(1.08); border-color: var(--accent); }
.theme-toggle svg{ width:18px; height:18px; }
.theme-toggle .icon-moon{ display:none; }
:root[data-theme="dark"] .theme-toggle .icon-sun{ display:none; }
:root[data-theme="dark"] .theme-toggle .icon-moon{ display:block; }

.menu-toggle{
  display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:8px;
}
.menu-toggle span{ width:22px; height:2px; background: var(--text); border-radius:2px; transition: all .3s ease; }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 13px 26px; border-radius: 999px; font-weight:600; font-size:.92rem;
  border: 1px solid transparent; cursor:pointer; transition: transform .25s var(--ease), box-shadow .3s ease, background .3s ease, border-color .3s ease, color .3s ease;
  white-space:nowrap; position:relative;
}
.btn span{ position:relative; z-index:1; }
.btn-primary{
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color:#fff; box-shadow: 0 10px 28px -10px color-mix(in srgb, var(--accent) 75%, transparent);
}
.btn-primary:hover{ box-shadow: 0 16px 36px -10px color-mix(in srgb, var(--accent) 85%, transparent); }
.btn-ghost{ background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover{ border-color: var(--accent); color: var(--accent); }
.btn-lg{ padding: 15px 32px; font-size: .98rem; }
.btn-nav{ padding: 10px 20px; font-size:.85rem; }
.btn-block{ width:100%; }
.magnetic{ will-change: transform; }

/* ---------- hero ---------- */
.hero{
  position: relative; min-height: 100svh; display:flex; align-items:center;
  overflow:hidden; padding-top: var(--nav-h);
}
.hero-media{ position:absolute; inset:0; z-index:0; background: var(--navy); }
.hero-bg-img, .hero-bg-video{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.5;
}
.hero-particles{ position:absolute; inset:0; width:100%; height:100%; opacity:.7; }
.hero-overlay{
  position:absolute; inset:0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 15%, color-mix(in srgb, var(--accent) 32%, transparent), transparent),
    radial-gradient(ellipse 60% 50% at 80% 85%, color-mix(in srgb, #ff7a4d 26%, transparent), transparent),
    linear-gradient(180deg, rgba(26,10,12,.55) 0%, rgba(20,8,10,.78) 60%, rgba(16,6,8,.96) 100%);
}
.hero-grid-pattern{
  position:absolute; inset:0; opacity:.1;
  background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent 85%);
}

/* floating decorative icons */
.floating-icons{ position:absolute; inset:0; z-index:1; pointer-events:none; }
.ficon{
  position:absolute; color: rgba(255,255,255,.16); display:flex;
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--accent) 35%, transparent));
}
.ficon svg{ width:100%; height:100%; }
.fi-1{ width:54px; height:54px; top:18%; left:8%; animation: floatA 9s ease-in-out infinite; }
.fi-2{ width:38px; height:38px; top:28%; right:12%; animation: floatB 11s ease-in-out infinite; animation-delay: -2s; }
.fi-3{ width:46px; height:46px; bottom:22%; left:14%; animation: floatC 10s ease-in-out infinite; animation-delay: -4s; }
.fi-4{ width:60px; height:60px; bottom:16%; right:9%; animation: floatA 12s ease-in-out infinite; animation-delay: -6s; }
.fi-5{ width:34px; height:34px; top:55%; left:48%; animation: floatB 8s ease-in-out infinite; animation-delay: -1s; }
@keyframes floatA{ 0%,100%{ transform: translate(0,0) rotate(0deg); } 50%{ transform: translate(14px,-22px) rotate(10deg); } }
@keyframes floatB{ 0%,100%{ transform: translate(0,0) rotate(0deg); } 50%{ transform: translate(-18px,16px) rotate(-12deg); } }
@keyframes floatC{ 0%,100%{ transform: translate(0,0) scale(1); } 50%{ transform: translate(10px,14px) scale(1.08); } }

.hero-content{
  position:relative; z-index:2; max-width: 760px; margin: 0 auto; padding: 100px 28px 60px;
  text-align:center;
}
.hero-eyebrow{
  color: #ffb3b5; text-transform:uppercase; letter-spacing:.16em; font-size:.78rem; font-weight:600; margin-bottom: 18px;
  display:inline-flex; align-items:center; gap:8px;
}
.hero-eyebrow::before{
  content:''; width:6px; height:6px; border-radius:50%; background: var(--accent-2);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-2) 25%, transparent);
  animation: pulseDot 2s ease infinite;
}
@keyframes pulseDot{ 0%,100%{ opacity:1; } 50%{ opacity:.4; } }
.hero-title{
  color:#fff; font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight:800; margin-bottom: 22px;
}
.hero-title .line{ display:block; }
.hero-title em{
  font-style:normal;
  background: linear-gradient(100deg, var(--accent-2), #ffb199 60%, var(--accent-2));
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip:text; color:transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer{ to{ background-position: 200% center; } }
.hero-subtitle{ color: rgba(255,255,255,.82); font-size: 1.08rem; max-width: 620px; margin: 0 auto 32px; }
.hero-cta{ display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }
.hero .btn-ghost{ color:#fff; border-color: rgba(255,255,255,.35); }
.hero .btn-ghost:hover{ border-color: #fff; }

.scroll-cue{
  position:absolute; bottom: 34px; left:50%; transform: translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:8px; z-index:2;
  color: rgba(255,255,255,.7); font-size:.72rem; letter-spacing:.08em; text-transform:uppercase;
}
.scroll-cue span{
  width:22px; height:36px; border:2px solid rgba(255,255,255,.5); border-radius:20px; position:relative;
}
.scroll-cue span::before{
  content:''; position:absolute; top:6px; left:50%; width:4px; height:4px; background:#fff; border-radius:50%;
  transform: translateX(-50%); animation: scrollDot 1.8s ease infinite;
}
@keyframes scrollDot{ 0%{ opacity:1; top:6px; } 70%{ opacity:0; top:20px; } 100%{ opacity:0; top:6px; } }

/* ---------- reveal (GSAP-driven, JS sets initial/animated state) ---------- */
[data-reveal]{ will-change: transform, opacity; }

/* ---------- sections ---------- */
.section{ padding: 110px 0; position: relative; overflow: hidden; }
.section-alt{ background: var(--bg-alt); }
.eyebrow{
  color: var(--accent); text-transform:uppercase; letter-spacing:.14em; font-size:.78rem; font-weight:700; margin-bottom: 12px;
}
.lead{ font-size: 1.12rem; }
.center{ text-align:center; }
h2.center, .lead.center{ max-width: 680px; margin-left:auto; margin-right:auto; }
.section h2{ font-size: clamp(1.7rem, 3.2vw, 2.5rem); }

/* ---------- gradient blobs ---------- */
.blob{
  position:absolute; z-index:0; border-radius:50%; pointer-events:none;
  filter: blur(70px); opacity:.35; animation: blobDrift 16s ease-in-out infinite;
}
.blob-red{ background: radial-gradient(circle, var(--accent) 0%, transparent 70%); width:480px; height:480px; }
.blob-navy{ background: radial-gradient(circle, #ff8f6a 0%, transparent 70%); width:520px; height:520px; }
.blob-tl{ top:-160px; left:-160px; }
.blob-tr{ top:-140px; right:-160px; animation-delay:-4s; }
.blob-br{ bottom:-180px; right:-140px; animation-delay:-8s; }
.blob-bl{ bottom:-160px; left:-160px; animation-delay:-12s; }
.blob-center{ top:50%; left:50%; transform: translate(-50%,-50%); width:600px; height:600px; opacity:.18; }
:root[data-theme="dark"] .blob{ opacity:.28; }
@keyframes blobDrift{ 0%,100%{ transform: translate(0,0) scale(1); } 50%{ transform: translate(30px,-30px) scale(1.1); } }
.stats{ padding: 64px 0; background: var(--navy); position:relative; overflow:hidden; }
.stats .blob{ opacity:.4; top:50%; left:10%; transform:translateY(-50%); }

/* ---------- glass card base ---------- */
.glass{
  background: var(--surface-glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--border-glass);
}

/* ---------- split (nosotros) ---------- */
.split{ display:grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items:center; }
.visual-card{
  background: var(--surface-glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border:1px solid var(--border-glass); border-radius: var(--radius);
  padding: 40px 34px; box-shadow: var(--shadow-lg); position:relative; overflow:hidden;
  transform-style: preserve-3d;
}
.visual-badge{
  position:absolute; top:-18px; right:-18px; width:90px; height:90px; border-radius:50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color:#fff;
  display:flex; align-items:center; justify-content:center; font-weight:800; font-size:1.1rem;
  opacity:.95; box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--accent) 60%, transparent);
}
.ficon-inline{
  position:absolute; bottom:18px; right:22px; width:64px; height:64px; color: color-mix(in srgb, var(--accent) 30%, transparent);
  animation: floatC 7s ease-in-out infinite;
}
.visual-card h3{ font-size:1.2rem; margin-bottom:18px; }
.check-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:14px; }
.check-list li{ position:relative; padding-left: 30px; color: var(--text-muted); line-height:1.5; }
.check-list li::before{
  content:'✓'; position:absolute; left:0; top:0; width:20px; height:20px; border-radius:50%;
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent);
  display:flex; align-items:center; justify-content:center; font-size:.72rem; font-weight:800;
}

/* ---------- stats ---------- */
.stats-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align:center; }
.stat-number{ font-family:'Sora',sans-serif; font-size: clamp(2.2rem,4vw,3rem); font-weight:800; color:#fff; }
.stat-suffix{ font-family:'Sora',sans-serif; font-size: clamp(1.4rem,2.5vw,2rem); font-weight:800; color: var(--accent-2); }
.stat p{ color: rgba(255,255,255,.65); margin: 6px 0 0; font-size:.92rem; }

/* ---------- services ---------- */
.services-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 56px; }
.service-card{
  background: var(--surface-glass);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border:1px solid var(--border-glass); border-radius: var(--radius);
  padding: 32px 28px; transition: transform .4s var(--ease), box-shadow .4s ease, border-color .4s ease;
  transform-style: preserve-3d; position:relative; overflow:hidden;
  display:flex; flex-direction:column;
}
.service-card:hover{ box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 45%, var(--border-glass)); }
/* imagen banner en cada tarjeta (full-bleed sobre el padding del card) */
.service-media{
  order:-1; margin: -32px -28px 22px; aspect-ratio: 16/10; overflow:hidden; position:relative;
}
.service-media::after{
  content:''; position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--accent) 22%, transparent));
  mix-blend-mode: multiply; opacity:.6; transition: opacity .4s ease;
}
.service-card:hover .service-media::after{ opacity:.85; }
.service-media img{ width:100%; height:100%; object-fit:cover; display:block; transition: transform .6s var(--ease); }
.service-card:hover .service-media img{ transform: scale(1.07); }
.service-icon{
  width:52px; height:52px; border-radius: 12px; margin-bottom: 20px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, transparent), color-mix(in srgb, var(--accent) 6%, transparent));
  color: var(--accent);
  display:flex; align-items:center; justify-content:center;
  transition: transform .5s var(--ease);
}
.service-card:hover .service-icon{ transform: rotate(-8deg) scale(1.12); }
.service-icon svg{ width:26px; height:26px; }
.service-card h3{ font-size: 1.08rem; margin-bottom: 10px; }
.service-card p{ font-size:.94rem; margin:0 0 14px; }
.service-benefit{
  display:block; font-size:.82rem; font-weight:600; color: var(--accent);
  padding-top: 12px; border-top: 1px solid var(--border-glass); line-height:1.45;
}

/* ---------- misión & visión ---------- */
.mv-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 56px; }
.mv-card{
  background: var(--surface-glass);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border:1px solid var(--border-glass); border-radius: var(--radius);
  padding: 40px 36px; box-shadow: var(--shadow); position:relative; overflow:hidden;
  transform-style: preserve-3d; transition: box-shadow .4s ease, border-color .4s ease;
}
.mv-card:hover{ box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 40%, var(--border-glass)); }
.mv-icon{
  width:56px; height:56px; border-radius:14px; margin-bottom:22px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 20%, transparent), color-mix(in srgb, var(--accent) 7%, transparent));
  color: var(--accent); display:flex; align-items:center; justify-content:center;
  transition: transform .5s var(--ease);
}
.mv-card:hover .mv-icon{ transform: rotate(-8deg) scale(1.1); }
.mv-icon svg{ width:28px; height:28px; }
.mv-card h3{ font-size:1.3rem; margin-bottom:14px; }
.mv-card p{ margin:0; }

/* ---------- galería ---------- */
.gallery-grid{
  display:grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px;
  gap: 16px; margin-top: 56px;
}
.gallery-item{
  margin:0; position:relative; overflow:hidden; border-radius: var(--radius);
  border:1px solid var(--border-glass); box-shadow: var(--shadow); cursor: pointer;
}
.gallery-item img{
  width:100%; height:100%; object-fit:cover; display:block;
  transition: transform .7s var(--ease);
}
.gallery-item::after{
  content:''; position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--accent-dark) 78%, transparent));
  opacity:0; transition: opacity .4s ease;
}
.gallery-item figcaption{
  position:absolute; left:16px; bottom:14px; right:16px; z-index:2;
  color:#fff; font-family:'Sora',sans-serif; font-weight:600; font-size:.95rem;
  transform: translateY(10px); opacity:0; transition: transform .4s var(--ease), opacity .4s ease;
}
.gallery-item:hover img{ transform: scale(1.08); }
.gallery-item:hover::after{ opacity:1; }
.gallery-item:hover figcaption{ transform: translateY(0); opacity:1; }
.gi-tall{ grid-row: span 2; }
.gi-wide{ grid-column: span 2; }

/* ---------- features (beneficios) ---------- */
.feature-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap: 30px; margin-top: 56px; }
.benefits-grid{ grid-template-columns: repeat(5,1fr); gap: 24px; }
.feature{ padding: 10px; transition: transform .4s var(--ease); }
.feature:hover{ transform: translateY(-4px); }
.feature-number{
  display:inline-block; font-family:'Sora',sans-serif; font-weight:800; font-size:1rem;
  color: var(--accent); border:1px solid var(--border); border-radius:50%;
  width:44px; height:44px; line-height:42px; text-align:center; margin-bottom:18px;
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  transition: transform .4s var(--ease), background .3s ease;
}
.feature:hover .feature-number{ transform: scale(1.1) rotate(-6deg); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.feature h3{ font-size:1.05rem; margin-bottom:8px; }
.feature p{ font-size:.93rem; }

/* ---------- clientes ---------- */
.clients-columns{ display:grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 50px; }
.clients-col h4{ font-size:1.1rem; margin-bottom:20px; color: var(--accent); }
.clients-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap: 12px; }
.clients-list li{
  padding: 14px 18px; background: var(--surface-glass);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border:1px solid var(--border-glass); border-radius:10px;
  font-size:.94rem; font-weight:500; transition: transform .3s var(--ease), border-color .3s ease, box-shadow .3s ease;
}
.clients-list li:hover{ transform: translateX(8px); border-color: var(--accent); box-shadow: var(--shadow); }

/* ---------- contacto ---------- */
.contact-section{ background: var(--bg-alt); }
.contact-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items:start; }
.contact-list{ list-style:none; margin: 28px 0 0; padding:0; display:flex; flex-direction:column; gap: 18px; }
.contact-list li{ display:flex; align-items:center; gap: 14px; font-weight:500; }
.contact-icon{
  width:40px; height:40px; flex-shrink:0; border-radius:10px; background: var(--surface); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center; color: var(--accent);
  transition: transform .35s var(--ease), background .3s ease;
}
.contact-list li:hover .contact-icon{ transform: scale(1.12) rotate(-6deg); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.contact-icon svg{ width:19px; height:19px; }

.contact-form{
  background: var(--surface-glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border:1px solid var(--border-glass); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow-lg); display:flex; flex-direction:column; gap:18px;
  transform-style: preserve-3d;
}
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.contact-form label{ display:flex; flex-direction:column; gap:8px; font-size:.85rem; font-weight:600; color: var(--text-muted); }
.contact-form input, .contact-form textarea{
  font-family:'Inter',sans-serif; font-size:.95rem; padding: 13px 14px; border-radius:10px;
  border:1px solid var(--border); background: var(--bg); color: var(--text); resize:vertical;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.contact-form input:focus, .contact-form textarea:focus{
  outline:none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

/* ---------- footer ---------- */
.footer{ padding: 46px 0; border-top:1px solid var(--border); background: var(--bg); }
.footer-inner{ text-align:center; display:flex; flex-direction:column; align-items:center; gap:10px; }
.footer-brand{ display:flex; align-items:center; gap:10px; font-family:'Sora',sans-serif; font-weight:700; }
.footer-tagline{ font-style:italic; color: var(--text-muted); margin:0; }
.footer-copy{ font-size:.82rem; color: var(--text-muted); margin:0; }

/* ---------- responsive ---------- */
@media (max-width: 1100px){
  .benefits-grid{ grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 960px){
  .split{ grid-template-columns:1fr; }
  .services-grid{ grid-template-columns: repeat(2,1fr); }
  .feature-grid{ grid-template-columns: repeat(2,1fr); }
  .benefits-grid{ grid-template-columns: repeat(2,1fr); }
  .mv-grid{ grid-template-columns:1fr; }
  .clients-columns{ grid-template-columns:1fr; }
  .contact-grid{ grid-template-columns:1fr; }
  .stats-grid{ grid-template-columns: repeat(2,1fr); gap: 40px; }
  .gallery-grid{ grid-template-columns: repeat(2,1fr); grid-auto-rows: 180px; }
  .gi-wide{ grid-column: span 2; }
  .gi-tall{ grid-row: span 1; }
  .cursor-glow{ display:none; }
}
@media (max-width: 760px){
  .nav-links{
    position:fixed; top: var(--nav-h); left:0; right:0; flex-direction:column;
    background: var(--surface); border-bottom:1px solid var(--border);
    padding: 20px 28px; gap: 18px; transform: translateY(-130%); opacity:0;
    transition: transform .35s ease, opacity .35s ease; z-index: 850;
  }
  .nav-links.open{ transform: translateY(0); opacity:1; }
  .menu-toggle{ display:flex; }
  .btn-nav{ display:none; }
  .services-grid{ grid-template-columns:1fr; }
  .feature-grid{ grid-template-columns:1fr; }
  .benefits-grid{ grid-template-columns:1fr; }
  .gallery-grid{ grid-template-columns:1fr; grid-auto-rows: 220px; }
  .gi-wide{ grid-column: span 1; }
  .form-row{ grid-template-columns:1fr; }
  .ficon{ display:none; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
