/* ============================================================
   INVITASURI — Estilos principales
   ============================================================ */

:root {
  --purple:       #7B6E9E;   /* ciruela suave / mauve */
  --purple-dark:  #4A3868;   /* ciruela profundo */
  --purple-light: #EDE8F5;   /* lavanda muy tenue */
  --pink:         #B8849A;   /* rosa polvoriento */
  --pink-light:   #F2E4EC;   /* blush muy tenue */
  --gold:         #C9A96A;   /* champán / oro cálido */
  --wa:           #25D366;

  --white:        #FFFFFF;
  --gray-50:      #FAF8F5;   /* crema cálido */
  --gray-100:     #F2EDE8;   /* marfil cálido */
  --gray-200:     #E0D6CF;   /* borde tenue cálido */
  --gray-600:     #6B5C55;   /* texto muted cálido */
  --gray-800:     #3C2E2A;   /* marrón oscuro */
  --gray-900:     #261C18;   /* casi negro cálido */

  --grad:       linear-gradient(135deg, #4A3868 0%, #7B6E9E 50%, #B8849A 100%);
  --grad-gold:  linear-gradient(90deg, #EDD9A8, #D4B87C, #C9A96A);
  --grad-hero:  linear-gradient(135deg, #130D1E 0%, #2A1A3E 30%, #4A3868 60%, #6B3A58 100%);

  --sh-md:  0 4px 20px rgba(0,0,0,0.09);
  --sh-lg:  0 12px 40px rgba(0,0,0,0.14);
  --sh-xl:  0 20px 60px rgba(0,0,0,0.18);

  --r:   16px;
  --r-l: 24px;
  --r-xl:32px;
}

/* === BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--gray-900);
  background: var(--gray-50);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
.center { text-align: center; }

/* === TIPOGRAFIA === */
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.2; }

.sec-tag {
  display: inline-block;
  background: var(--purple-light);
  color: var(--purple-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.sec-title {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  color: var(--gray-900);
  margin-bottom: 16px;
}
.sec-sub {
  font-size: 1rem;
  color: var(--gray-600);
  text-align: center;
  max-width: 580px;
  margin: 0 auto 64px;
  line-height: 1.7;
}

/* === BOTONES === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9375rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  line-height: 1;
}
.btn-primary {
  background: var(--grad);
  color: white;
  box-shadow: 0 4px 24px rgba(74,56,104,.3);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(74,56,104,.45); }
.btn-ghost {
  background: rgba(255,255,255,.12);
  color: white;
  border: 1.5px solid rgba(255,255,255,.3);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-wa {
  background: var(--wa);
  color: white;
  box-shadow: 0 4px 24px rgba(37,211,102,.35);
}
.btn-wa:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(37,211,102,.5); }
.btn-outline-dark {
  background: transparent;
  color: var(--gray-900);
  border: 1.5px solid var(--gray-200);
}
.btn-outline-dark:hover { border-color: var(--purple); color: var(--purple); }
.btn-lg { padding: 18px 40px; font-size: 1.0625rem; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 24px 0;
  transition: all .4s ease;
}
.navbar.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(24px);
  box-shadow: 0 2px 24px rgba(0,0,0,.06);
  padding: 14px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-logo-wrap { flex-shrink: 0; display: flex; align-items: center; }
.nav-logo-img {
  height: 42px;
  width: auto;
  transition: opacity .2s;
  filter: brightness(0) invert(1); /* blanco sobre hero oscuro */
}
.navbar.scrolled .nav-logo-img {
  filter: none; /* color original cuando navbar es claro */
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: .9375rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  transition: color .2s;
}
.navbar.scrolled .nav-links a { color: var(--gray-800); }
.nav-links a:hover { color: var(--purple) !important; }
.nav-cta .btn { padding: 10px 24px; font-size: .875rem; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: white;
  border-radius: 2px;
  transition: background .3s;
}
.navbar.scrolled .hamburger span { background: var(--gray-900); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(19,13,30,.97);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: white;
  font-weight: 700;
  transition: color .2s;
}
.mobile-menu a:hover { color: var(--purple); }
.mobile-close {
  position: absolute;
  top: 24px; right: 24px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: var(--grad-hero);
}
.orb { position: absolute; border-radius: 50%; }
.orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(184,132,154,.22) 0%, transparent 70%);
  top: -200px; right: -200px;
  animation: orbFloat 9s ease-in-out infinite;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(123,110,158,.28) 0%, transparent 70%);
  bottom: -150px; left: -100px;
  animation: orbFloat 7s ease-in-out infinite reverse;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(201,169,106,.16) 0%, transparent 70%);
  top: 35%; left: 58%;
  animation: orbFloat 11s ease-in-out infinite;
}
@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(20px,-30px) scale(1.04); }
  66%      { transform: translate(-20px,20px) scale(.97); }
}
.hero-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 36px 36px;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 48px 0;
}
.hero-logo {
  display: block;
  width: min(320px, 85%);
  height: auto;
  margin-bottom: 28px;
  filter: brightness(0) invert(1); /* blanco sobre el fondo oscuro del hero */
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.95);
  padding: 9px 20px;
  border-radius: 50px;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .03em;
  margin-bottom: 28px;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.hero-title {
  font-size: clamp(2.75rem, 6vw, 5rem);
  color: white;
  margin-bottom: 24px;
  line-height: 1.1;
}
.hero-title em {
  font-style: normal;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.78);
  margin-bottom: 44px;
  line-height: 1.75;
  max-width: 560px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-trust {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255,255,255,.65);
  font-size: .875rem;
}
.trust-avatars { display: flex; }
.trust-avatars span {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
  margin-left: -10px;
}
.trust-avatars span:first-child { margin-left: 0; }
.hero-scroll {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 1;
}
.hero-scroll span {
  font-size: .625rem;
  color: rgba(255,255,255,.4);
  letter-spacing: .15em;
  text-transform: uppercase;
}
.scroll-mouse {
  width: 22px; height: 34px;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 11px;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 6px;
}
.scroll-mouse::after {
  content: '';
  width: 3px; height: 7px;
  background: rgba(255,255,255,.5);
  border-radius: 2px;
  animation: scrollDown 2s ease infinite;
}
@keyframes scrollDown {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(8px); opacity: 0; }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar { background: white; border-bottom: 1px solid var(--gray-100); }
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--gray-100);
}
.stat-item {
  padding: 36px 24px;
  text-align: center;
  border-right: 1px solid var(--gray-100);
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}
.stat-label { font-size: .875rem; color: var(--gray-600); }

/* ============================================================
   SERVICIOS
   ============================================================ */
.services { background: var(--gray-50); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.svc-card {
  background: white;
  border-radius: var(--r-l);
  padding: 36px 28px;
  transition: all .35s ease;
  position: relative;
  overflow: hidden;
  border: 1.5px solid transparent;
}
.svc-card::after {
  content: '';
  position: absolute; inset: -1.5px;
  border-radius: var(--r-l);
  background: var(--grad);
  z-index: -1;
  opacity: 0;
  transition: opacity .35s;
}
.svc-card:hover { transform: translateY(-10px); box-shadow: var(--sh-xl); border-color: transparent; }
.svc-card:hover::after { opacity: 1; }
.svc-icon {
  width: 68px; height: 68px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.875rem;
  margin-bottom: 24px;
  transition: transform .3s;
}
.svc-card:hover .svc-icon { transform: scale(1.12) rotate(-4deg); }
.i1 { background: linear-gradient(135deg,#EDE8F5,#DDD4EE); } /* lavanda tenue */
.i2 { background: linear-gradient(135deg,#F2E4EC,#E8D0E0); } /* blush polvoriento */
.i3 { background: linear-gradient(135deg,#E2EAF2,#CDD9E8); } /* azul pizarra tenue */
.i4 { background: linear-gradient(135deg,#F5EDD8,#EDD8B8); } /* champán crema */
.i5 { background: linear-gradient(135deg,#E2EDE5,#CCDFD0); } /* salvia tenue */
.i6 { background: linear-gradient(135deg,#F2E4EC,#ECCAD8); } /* rosa palo */
.svc-card h3 { font-size: 1.1875rem; margin-bottom: 10px; color: var(--gray-900); }
.svc-card p  { font-size: .9rem; color: var(--gray-600); line-height: 1.65; }
.svc-chip {
  display: inline-block;
  margin-top: 18px;
  font-size: .75rem; font-weight: 600;
  color: var(--purple);
  background: var(--purple-light);
  padding: 4px 14px;
  border-radius: 50px;
}

/* ============================================================
   PROCESO
   ============================================================ */
.process { background: white; }
.process-steps {
  display: grid;
  grid-template-columns: 1fr 60px 1fr 60px 1fr;
  align-items: start;
  max-width: 860px;
  margin: 0 auto;
  gap: 0;
}
.proc-arrow {
  display: flex; align-items: center; justify-content: center;
  padding-top: 28px;
  color: var(--gray-200);
  font-size: 1.75rem;
}
.proc-step { text-align: center; padding: 0 8px; }
.step-bubble {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
  box-shadow: 0 8px 28px rgba(74,56,104,.3);
  position: relative;
  transition: transform .3s;
}
.proc-step:hover .step-bubble { transform: scale(1.08); }
.step-n {
  position: absolute; top: -6px; right: -6px;
  width: 26px; height: 26px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 800;
  color: var(--gray-900);
  font-family: 'Inter', sans-serif;
  border: 2px solid white;
}
.proc-step h3 { font-size: 1.125rem; margin-bottom: 10px; }
.proc-step p  { font-size: .875rem; color: var(--gray-600); line-height: 1.65; }

/* ============================================================
   PORTAFOLIO
   ============================================================ */
.portfolio { background: var(--gray-50); }
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.bento-item {
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.bento-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.bento-item:nth-child(4) { grid-column: span 2; }
.bento-inner {
  height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px 20px;
  transition: transform .5s ease;
}
.bento-item:hover .bento-inner { transform: scale(1.04); }
.bento-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  transition: background .3s;
  display: flex; align-items: flex-end;
  padding: 20px;
}
.bento-item:hover .bento-overlay { background: rgba(0,0,0,.28); }
.bento-label {
  transform: translateY(8px); opacity: 0;
  transition: all .3s;
}
.bento-item:hover .bento-label { transform: translateY(0); opacity: 1; }
.bento-chip {
  display: inline-block;
  background: rgba(255,255,255,.95);
  color: var(--gray-900);
  font-size: .8rem; font-weight: 600;
  padding: 7px 16px;
  border-radius: 50px;
}
.bento-emoji { font-size: 3rem; margin-bottom: 12px; }
.bento-item:nth-child(1) .bento-emoji { font-size: 5rem; }
.bento-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 700;
  color: white; text-align: center;
}
.bento-item:nth-child(1) .bento-title { font-size: 1.75rem; margin-bottom: 6px; }
.bento-sub { font-size: .8125rem; color: rgba(255,255,255,.8); text-align: center; margin-top: 4px; }

.b1 { background: linear-gradient(135deg,#2E1F4A,#5C4880); } /* ciruela profundo */
.b2 { background: linear-gradient(135deg,#5C2840,#9A607A); } /* vino rosado */
.b3 { background: linear-gradient(135deg,#1C3550,#3A6480); } /* azul pizarra */
.b4 { background: linear-gradient(135deg,#263D30,#4A7058); } /* bosque salvia */
.b5 { background: linear-gradient(135deg,#4A2C1E,#8A5840); } /* terracota */
.b6 { background: linear-gradient(135deg,#3A2850,#7A5E90); } /* malva violeta */

/* ============================================================
   TESTIMONIOS
   ============================================================ */
.testimonials { background: white; }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testi-card {
  background: var(--gray-50);
  border-radius: var(--r-l);
  padding: 32px;
  border: 1.5px solid var(--gray-100);
  transition: all .3s ease;
}
.testi-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
  border-color: var(--purple-light);
}
.testi-q {
  font-size: 3.5rem; line-height: .8;
  color: var(--purple-light);
  font-family: Georgia, serif;
  margin-bottom: 8px;
}
.stars { display: flex; gap: 3px; margin-bottom: 14px; font-size: 1rem; }
.testi-text {
  font-size: .9375rem;
  color: var(--gray-800);
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic;
}
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-av {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.375rem; font-weight: 700;
  color: white; flex-shrink: 0;
}
.av1 { background: linear-gradient(135deg,#5C4880,#B8849A); }
.av2 { background: linear-gradient(135deg,#2E4A6A,#4A7898); }
.av3 { background: linear-gradient(135deg,#2C4A38,#5A8068); }
.testi-name { font-weight: 700; font-size: .9375rem; color: var(--gray-900); }
.testi-event { font-size: .8125rem; color: var(--gray-600); }

/* ============================================================
   CTA
   ============================================================ */
.cta { position: relative; overflow: hidden; padding: 100px 0; }
.cta-bg { position: absolute; inset: 0; background: var(--grad-hero); }
.cta-orb {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.co1 { width: 600px; height: 600px; top: -300px; right: -150px; }
.co2 { width: 400px; height: 400px; bottom: -200px; left: -100px; }
.cta-content { position: relative; z-index: 1; text-align: center; }
.cta-title {
  font-size: clamp(2.25rem,4vw,3.5rem);
  color: white; margin-bottom: 20px;
}
.cta-title em {
  font-style: normal;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cta-sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 44px;
  max-width: 500px;
  margin-left: auto; margin-right: auto;
  line-height: 1.75;
}
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--gray-900); color: rgba(255,255,255,.6); }
.footer-top {
  padding: 72px 0 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}
.footer-desc {
  font-size: .9rem; line-height: 1.75;
  margin-bottom: 28px; max-width: 280px;
}
.social-row { display: flex; gap: 10px; }
.soc {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: 1.125rem;
  transition: all .25s;
  text-decoration: none;
}
.soc:hover { background: var(--purple); color: white; transform: translateY(-2px); }
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: .8125rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: white; margin-bottom: 20px;
}
.footer-links li { margin-bottom: 11px; }
.footer-links a {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  transition: color .2s;
}
.footer-links a:hover { color: white; }
.footer-bottom {
  padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-copy, .footer-made { font-size: .8125rem; }

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.wa-float {
  position: fixed; bottom: 32px; right: 32px;
  z-index: 999;
}
.wa-btn {
  display: flex; align-items: center; gap: 10px;
  background: var(--wa);
  color: white; font-weight: 600; font-size: .875rem;
  font-family: 'Inter', sans-serif;
  padding: 14px 22px 14px 18px;
  border-radius: 50px;
  box-shadow: 0 6px 28px rgba(37,211,102,.45);
  animation: waPulse 2.5s ease-in-out infinite;
  transition: transform .3s, box-shadow .3s;
  text-decoration: none;
}
.wa-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 36px rgba(37,211,102,.55);
}
.wa-btn svg { width: 22px; height: 22px; fill: white; flex-shrink: 0; }
@keyframes waPulse {
  0%,100% { box-shadow: 0 6px 28px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.4); }
  50%      { box-shadow: 0 6px 28px rgba(37,211,102,.45), 0 0 0 14px rgba(37,211,102,0); }
}

/* ============================================================
   GALERÍA DINÁMICA
   ============================================================ */
.gal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

/* --- Tarjeta --- */
.gal-card {
  background: white;
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  border: 1.5px solid var(--gray-100);
  outline: none;
}
.gal-card:hover,
.gal-card:focus-visible {
  transform: translateY(-8px);
  box-shadow: var(--sh-xl);
  border-color: var(--purple-light);
}

/* --- Imagen --- */
.gal-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gray-100);
}
.gal-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .4s ease, transform .5s ease;
}
.gal-img-wrap img.loaded { opacity: 1; }
.gal-card:hover .gal-img-wrap img { transform: scale(1.06); }

/* --- Placeholder cuando no hay imagen --- */
.gal-placeholder {
  position: absolute; inset: 0;
  display: none;
  align-items: center; justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, var(--purple-light), var(--pink-light));
}

/* --- Overlay hover --- */
.gal-overlay {
  position: absolute; inset: 0;
  background: rgba(74,56,104,0);
  display: flex; align-items: center; justify-content: center;
  transition: background .3s;
}
.gal-card:hover .gal-overlay,
.gal-card:focus-visible .gal-overlay { background: rgba(74,56,104,.52); }

.gal-overlay-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: white;
  color: var(--purple-dark);
  font-weight: 600; font-size: .875rem;
  padding: 10px 22px;
  border-radius: 50px;
  opacity: 0;
  transform: translateY(12px) scale(.96);
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}
.gal-overlay-btn svg { width: 16px; height: 16px; }
.gal-card:hover .gal-overlay-btn,
.gal-card:focus-visible .gal-overlay-btn { opacity: 1; transform: translateY(0) scale(1); }

/* --- Info debajo de la imagen --- */
.gal-info { padding: 16px 18px 18px; }
.gal-cat {
  display: inline-block;
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--purple);
  background: var(--purple-light);
  padding: 3px 12px; border-radius: 50px;
}
.gal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 700;
  color: var(--gray-900);
  margin: 8px 0 4px;
  line-height: 1.3;
}
.gal-desc { font-size: .8125rem; color: var(--gray-600); line-height: 1.5; }

/* --- Estado vacío --- */
.gal-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 72px 24px;
  background: var(--gray-100);
  border-radius: var(--r-l);
  border: 2px dashed var(--gray-200);
}
.gal-empty-icon { font-size: 3.5rem; margin-bottom: 16px; }
.gal-empty h3 { font-size: 1.25rem; margin-bottom: 10px; color: var(--gray-800); }
.gal-empty p  { font-size: .9375rem; color: var(--gray-600); line-height: 1.7; }
.gal-empty code {
  background: var(--purple-light); color: var(--purple-dark);
  padding: 2px 8px; border-radius: 6px; font-size: .875rem;
}

/* ============================================================
   MODAL / LIGHTBOX
   ============================================================ */
.modal {
  position: fixed; inset: 0;
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.modal.open { opacity: 1; visibility: visible; }

.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(19,13,30,.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-box {
  position: relative; z-index: 1;
  width: min(92vw, 960px);
  margin: 16px;
  transform: scale(.94) translateY(20px);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.modal.open .modal-box { transform: scale(1) translateY(0); }

/* Botón cerrar */
.modal-close {
  position: absolute;
  top: -46px; right: 0;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.2);
  color: white;
  width: 38px; height: 38px;
  border-radius: 50%;
  font-size: 1rem; line-height: 1;
  cursor: pointer;
  transition: background .2s, transform .2s;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: rgba(255,255,255,.25); transform: rotate(90deg); }

/* Contenedor imagen */
.modal-img-wrap {
  position: relative;
  background: #0d0818;
  border-radius: var(--r);
  overflow: hidden;
  line-height: 0;
  min-height: 200px;
}
.modal-img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  display: block;
}
.modal-placeholder {
  display: none;
  align-items: center; justify-content: center;
  min-height: 340px;
  font-size: 6rem;
  background: linear-gradient(135deg, #2E1F4A, #5C4880);
}

/* Flechas de navegación */
.modal-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.18);
  color: white;
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 1.75rem; line-height: 1;
  cursor: pointer;
  transition: all .2s;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
}
.modal-nav:hover:not(:disabled) {
  background: rgba(255,255,255,.22);
  transform: translateY(-50%) scale(1.08);
}
.modal-nav:disabled { opacity: .2; cursor: default; }
.modal-prev { left: 14px; }
.modal-next { right: 14px; }

/* Info debajo de la imagen */
.modal-info {
  padding: 18px 4px 4px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.modal-cat {
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--gold);
  background: rgba(201,169,106,.18);
  padding: 4px 14px; border-radius: 50px;
}
.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; font-weight: 700;
  color: white; flex: 1;
}
.modal-counter {
  font-size: .8125rem;
  color: rgba(255,255,255,.4);
  margin-left: auto;
}

@media (max-width: 600px) {
  .modal-nav { width: 40px; height: 40px; font-size: 1.375rem; }
  .modal-prev { left: 8px; }
  .modal-next { right: 8px; }
  .modal-close { top: -42px; }
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }
.d5 { transition-delay: .5s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .bento { grid-template-columns: repeat(2,1fr); }
  .bento-item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .bento-item:nth-child(4) { grid-column: span 1; }
  .stats-inner { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .testi-grid { grid-template-columns: repeat(2,1fr); }
  .process-steps { grid-template-columns: 1fr; gap: 40px; }
  .proc-arrow { display: none; }
}

@media (max-width: 768px) {
  section { padding: 72px 0; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento-item:nth-child(1),
  .bento-item:nth-child(4) { grid-column: span 1; }
  .testi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .cta-actions { flex-direction: column; align-items: center; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .wa-btn span { display: none; }
  .wa-btn { padding: 16px; border-radius: 50%; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 2.5rem; }
}
