/* ========== IONESIS - Design System ========== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ========== TECH BACKGROUND ELEMENTS (DOT GRID & CIRCUITS) ========== */
.tech-bg-dots {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(184, 150, 62, 0.15) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}

.tech-grid-lines {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 100px 100px;
  pointer-events: none;
  z-index: 0;
}


:root {
  --green-dark: #022118; 
  --green-primary: #043927; 
  --green-light: #0A5C41;
  --gold: #C5A028; /* Dorado más metálico y definido */
  --gold-light: #F2E3B5;
  --gold-gradient: linear-gradient(135deg, #9C7C1E 0%, #C5A028 50%, #E8D18C 100%);
  --white: #FFFFFF;
  --gray-50: #F9FBFA;
  --gray-100: #F0F4F2;
  --gray-200: #E2EAE6;
  --gray-500: #5C6B64;
  --gray-800: #121A17;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow-elegant: 0 20px 40px rgba(2, 33, 24, 0.08);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========== TEXTURA DE GRANO (ESTILO CINE) ========== */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 9999;
}

/* ========== ANIMACIONES DE SCROLL ========== */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}


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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; line-height: 1.15; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.gradient-text {
  background: linear-gradient(135deg, var(--green-primary), var(--green-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== HEXAGONAL BACKGROUNDS (VOLVIENDO AL ORIGINAL LIMPIO) ========== */

/* ========== CYBER-HEX BACKGROUND (TECH REFINEMENT) ========== */
.hex-bg {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='138' viewBox='0 0 80 138'%3E%3Cpath d='M40 92L0 70L0 23L40 0L80 23L80 70L40 92L40 138' fill='none' stroke='%23C5A028' stroke-width='0.4' stroke-opacity='0.15'/%3E%3C/svg%3E");
  background-size: 80px 138px;
  pointer-events: none;
  z-index: 0;
}

.hex-bg-gold, .section-dark .hex-bg {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='138' viewBox='0 0 80 138'%3E%3Cpath d='M40 92L0 70L0 23L40 0L80 23L80 70L40 92L40 138' fill='none' stroke='%23C5A028' stroke-width='0.5' stroke-opacity='0.25'/%3E%3C/svg%3E");
  background-size: 80px 138px;
  pointer-events: none;
  z-index: 0;
}

.hex-bg-fade {
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, transparent 0%, var(--white) 90%);
  z-index: 1;
}

/* ========== NAVBAR PREMIUM ========== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 32px 0; /* Más alto */
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  padding: 16px 0;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}
.nav-container {
  max-width: 1400px; margin: 0 auto; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem; /* Logo más grande */
  font-weight: 800;
  color: var(--white);
  letter-spacing: 4px;
  transition: var(--transition);
}
.navbar.scrolled .nav-logo-text {
  color: var(--green-dark);
}

.nav-menu { display: flex; gap: 15px; align-items: center; } 
.nav-link {
  font-size: 0.9rem; 
  font-weight: 700; 
  letter-spacing: 2px;
  color: rgba(255,255,255,0.9); 
  transition: all 0.3s ease;
  padding: 10px 18px;
  border-radius: 6px;
  border: 1px solid transparent;
}
.navbar.scrolled .nav-link { color: var(--gray-500); }

.nav-link:hover, .nav-link.active { 
  background: rgba(197, 160, 40, 0.15); 
  border-color: rgba(197, 160, 40, 0.3);
  color: var(--gold); 
}
.navbar.scrolled .nav-link:hover, .navbar.scrolled .nav-link.active { 
  background: rgba(197, 160, 40, 0.1);
  border-color: rgba(197, 160, 40, 0.2);
  color: var(--gold); 
}

.nav-cta-premium {
  background: var(--green-primary);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 4px;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 1.5px;
  transition: var(--transition);
}
.nav-cta-premium:hover { background: var(--green-light); transform: translateY(-2px); }

/* ========== HERO ASIMÉTRICO ========== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 180px 0 100px; /* Mayor padding superior para evitar que se pegue al menú */
}
.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
  position: relative; z-index: 2;
}

/* Izquierda: Visuales */
.hero-visuals {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  width: 100%;
}

/* ========== MOBILE MOCKUP ANIMATION ========== */
.mobile-mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 340px; 
  margin: -80px auto 0; /* Margen superior negativo para subir la imagen */
  animation: float-mockup 6s ease-in-out infinite;
  z-index: 10;
}

.mobile-mockup-wrapper::after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 15px;
  background: radial-gradient(ellipse at center, rgba(197, 160, 40, 0.3) 0%, transparent 70%);
  filter: blur(8px);
  animation: shadow-pulse 6s ease-in-out infinite;
  z-index: -1;
}

.mobile-mockup-img {
  width: 100%;
  border-radius: 24px; /* Bordes suaves estilo tarjeta/app */
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(197, 160, 40, 0.15);
  display: block;
}

@keyframes float-mockup {
  0% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}

@keyframes shadow-pulse {
  0% { transform: translateX(-50%) scale(1); opacity: 0.8; }
  50% { transform: translateX(-50%) scale(0.85); opacity: 0.4; }
  100% { transform: translateX(-50%) scale(1); opacity: 0.8; }
}

.floating-stat {
  position: absolute;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(197, 160, 40, 0.2);
  padding: 16px 20px;
  border-radius: 12px;
  display: flex; flex-direction: column;
  min-width: 140px;
  z-index: 20; /* Por encima de la imagen */
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}
.stat-1 { top: 15%; left: -30px; }
.stat-2 { bottom: 15%; right: -20px; }
.stat-val { font-size: 1.6rem; font-weight: 800; color: var(--gold); line-height: 1.1; }
.stat-txt { font-size: 0.7rem; font-weight: 600; color: rgba(255,255,255,0.8); margin-top: 4px; }

/* Derecha: Contenido */
.hero-tag {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 4px;
  color: var(--gold); display: block; margin-bottom: 24px;
}
.hero-title-premium {
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 400; line-height: 1.1;
  color: var(--white); margin-bottom: 32px;
}
.hero-title-premium em {
  font-family: 'Outfit', sans-serif;
  font-style: italic; font-weight: 300;
  color: var(--gold);
}
.hero-description {
  font-size: 1.1rem; color: rgba(255,255,255,0.7);
  max-width: 500px; margin-bottom: 40px;
  line-height: 1.7;
}

.hero-features { margin-bottom: 48px; }
.feature-item {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 16px;
}
.check-icon {
  width: 18px; height: 18px; color: var(--gold);
  margin-top: 4px;
}
.feature-item span { font-size: 0.95rem; color: rgba(255,255,255,0.9); }

.hero-btns-wrapper { display: flex; align-items: center; gap: 30px; }
.btn-primary-premium {
  background: var(--green-primary);
  color: var(--white);
  padding: 18px 40px;
  border-radius: 4px;
  font-size: 0.85rem; font-weight: 700;
}
.btn-link-premium {
  color: var(--white); font-weight: 600; font-size: 0.9rem;
}


.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem; font-weight: 600;
  transition: var(--transition);
  cursor: pointer; border: none;
}

.btn-primary {
  background: var(--green-dark);
  color: var(--white);
  padding: 16px 36px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 10px 20px rgba(2, 33, 24, 0.15);
}
.btn-primary:hover {
  background: var(--green-primary);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(2, 33, 24, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--green-dark);
  border: 2px solid var(--gold);
  padding: 16px 36px;
  border-radius: 12px;
}
.btn-secondary:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-4px);
}

.scroll-indicator {
  position: absolute; bottom: 30px; left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}
.scroll-line {
  width: 2px; height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  border-radius: 2px;
}

/* ========== SECTIONS ========== */
.section {
  position: relative;
  padding: 100px 0;
}

.section-dark {
  background: var(--green-dark);
  color: var(--white);
  border-top: none;
  border-bottom: none;
}
.section-dark .section-tag { 
  color: var(--gold); 
  border-color: rgba(184, 150, 62, 0.3);
  background: rgba(184, 150, 62, 0.05);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
  position: relative;
  z-index: 5; /* Por encima de las abejas */
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem; font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  padding: 8px 24px;
  border: 1px solid rgba(184, 150, 62, 0.3);
  border-radius: 50px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.5);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.section-description {
  font-size: 1.05rem;
  color: var(--gray-500);
  line-height: 1.8;
}

/* ========== ABOUT CARDS ========== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.85); /* Más sólido para que resalte */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(184, 150, 62, 0.2); /* Borde de oro suave siempre visible */
  border-radius: var(--radius);
  padding: 48px 36px;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 15px 35px rgba(2, 33, 24, 0.06); /* Sombra más profunda */
  z-index: 5; /* Por encima de las abejas */
}

.about-card:hover {
  transform: translateY(-12px);
  background: var(--white);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
  border-color: var(--green-primary);
}


/* ========== RAYO SECUENCIAL (BORDE ANIMADO CUADRADO) ========== */
.about-card span[class^="line-"] {
  position: absolute;
  display: block;
  z-index: 2;
}

.line-top {
  top: 0; left: -100%;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-light));
  animation: move-top 6s linear infinite;
  filter: drop-shadow(0 0 5px var(--gold));
}

.line-right {
  top: -100%; right: 0;
  width: 3px; height: 100%;
  background: linear-gradient(180deg, transparent, var(--gold-light));
  animation: move-right 6s linear infinite;
  animation-delay: 1.5s;
  filter: drop-shadow(0 0 5px var(--gold));
}

.line-bottom {
  bottom: 0; right: -100%;
  width: 100%; height: 3px;
  background: linear-gradient(270deg, transparent, var(--gold-light));
  animation: move-bottom 6s linear infinite;
  animation-delay: 3s;
  filter: drop-shadow(0 0 5px var(--gold));
}

.line-left {
  bottom: -100%; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(0deg, transparent, var(--gold-light));
  animation: move-left 6s linear infinite;
  animation-delay: 4.5s;
  filter: drop-shadow(0 0 5px var(--gold));
}

@keyframes move-top { 
  0% { left: -100%; } 
  30%, 100% { left: 100%; } 
}
@keyframes move-right { 
  0% { top: -100%; } 
  30%, 100% { top: 100%; } 
}
@keyframes move-bottom { 
  0% { right: -100%; } 
  30%, 100% { right: 100%; } 
}
@keyframes move-left { 
  0% { bottom: -100%; } 
  30%, 100% { bottom: 100%; } 
}

.about-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(13,107,69,0.08), rgba(13,107,69,0.04));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--green-primary);
}

.about-card h3 {
  font-size: 1.2rem; font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 12px;
}
.about-card p {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ========== SERVICES ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(184, 150, 62, 0.15);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gold);
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}
.service-card::after {
  content: '';
  position: absolute; bottom: 0; right: 0;
  width: 60px; height: 60px;
  background: linear-gradient(135deg, transparent, rgba(184, 150, 62, 0.1));
  border-radius: 100% 0 0 0;
}

.service-icon {
  width: 60px; height: 60px;
  background: var(--gold-metallic);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--green-dark);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.service-card h3 {
  font-size: 1.15rem; font-weight: 700;
  margin-bottom: 12px;
  color: var(--white);
}
.service-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.service-tags span {
  font-size: 0.75rem; font-weight: 500;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(184,150,62,0.15);
  color: var(--gold-light);
  border: 1px solid rgba(184,150,62,0.2);
}

/* ========== STATS ========== */
.stats-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--gray-50), var(--white));
  position: relative;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item { padding: 20px; }

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 3.5rem; font-weight: 900;
  color: var(--green-primary);
  display: inline;
  text-shadow: 0 0 15px rgba(0, 143, 90, 0.3);
}
.stat-suffix {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem; font-weight: 700;
  color: var(--gold);
}
.stat-label {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-top: 8px;
  font-weight: 500;
}

/* ========== PROCESO (TIMELINE PREMIUM) ========== */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 80px;
  position: relative;
}

/* Línea de Energía Dorada */
.process-timeline::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: rgba(184, 150, 62, 0.2); /* Línea base más suave */
  z-index: 1;
}

/* La Chispa de Energía que viaja */
.process-timeline::after {
  content: '';
  position: absolute;
  top: 39px;
  left: 10%;
  width: 15%;
  height: 4px;
  background: linear-gradient(to right, transparent, var(--gold), var(--gold-light), transparent);
  filter: blur(2px);
  box-shadow: 0 0 15px var(--gold);
  z-index: 2;
  animation: energy-flow 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes energy-flow {
  0% { left: 10%; opacity: 0; transform: scaleX(0.5); }
  20% { opacity: 1; transform: scaleX(1); }
  80% { opacity: 1; transform: scaleX(1); }
  100% { left: 75%; opacity: 0; transform: scaleX(0.5); }
}


.process-item {
  text-align: center;
  position: relative;
  z-index: 2;
}

.process-number {
  width: 80px;
  height: 80px;
  background: var(--gold-gradient);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(184, 150, 62, 0.3);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  animation: pulse-gold 2s infinite;
}

/* Retraso para efecto de ola */
.process-item:nth-child(1) .process-number { animation-delay: 0s; }
.process-item:nth-child(2) .process-number { animation-delay: 0.5s; }
.process-item:nth-child(3) .process-number { animation-delay: 1s; }
.process-item:nth-child(4) .process-number { animation-delay: 1.5s; }

@keyframes pulse-gold {
  0% { box-shadow: 0 0 0 0 rgba(184, 150, 62, 0.6); }
  70% { box-shadow: 0 0 0 15px rgba(184, 150, 62, 0); }
  100% { box-shadow: 0 0 0 0 rgba(184, 150, 62, 0); }
}

.process-item:hover .process-number {
  transform: translateY(-8px) scale(1.1);
  box-shadow: 0 20px 40px rgba(184, 150, 62, 0.4);
}


.process-item h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 12px;
  transition: var(--transition);
}

.process-item:hover h4 {
  color: var(--gold);
}

.process-item p {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.7;
  padding: 0 15px;
}


/* Responsive Proceso */
@media (max-width: 991px) {
  .process-timeline { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .process-timeline::before { display: none; }
}

@media (max-width: 576px) {
  .process-timeline { grid-template-columns: 1fr; }
}

/* ========== CLIENTS INFINITE CAROUSEL (PREMIUM) ========== */
.clients-wrapper {
  overflow: hidden;
  padding: 40px 0;
  position: relative;
  width: 100%;
}

/* El rastro por donde corren los logos */
.clients-track {
  display: flex;
  gap: 30px;
  width: calc(250px * 8 + 30px * 8); /* Ajustado al número de tarjetas (4 originales + 4 clones) */
  animation: scroll-infinite 30s linear infinite;
}

.client-card {
  flex: 0 0 250px; /* Ancho fijo para el carrusel */
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition);
}

.client-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-10px);
  border-color: var(--gold);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.client-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
}

.client-card h4 {
  font-size: 1.1rem; font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.client-card p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

@keyframes scroll-infinite {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-250px * 4 - 30px * 4)); }
}

/* Detener movimiento al pasar el mouse */
.clients-wrapper:hover .clients-track {
  animation-play-state: paused;
}


/* ========== SERVICIOS GLASS (MODO OSCURO) ========== */
.services-glass-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.service-glass-card {
  position: relative;
  overflow: hidden; /* Para que el punto parezca escanear los bordes */
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent; /* Quitamos borde fijo */
  backdrop-filter: blur(10px);
  padding: 50px 40px;
  border-radius: 16px;
  transition: var(--transition);
  text-align: left;
  z-index: 5; /* Por encima de las abejas */
}

.service-glass-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-10px);
}

.service-glass-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.service-glass-card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  margin-bottom: 35px;
}

.service-link-glass {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  transition: var(--transition);
}

.service-link-glass.outlined {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: 4px;
}

.service-link-glass:hover {
  color: var(--white);
  letter-spacing: 3px;
}

/* Responsive */
@media (max-width: 991px) {
  .services-glass-grid { grid-template-columns: 1fr; }
}

/* ========== TESTIMONIALS ========== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.testimonial-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 40px;
  border-radius: var(--radius);
  position: relative;
  transition: var(--transition);
}
.testimonial-card:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-5px);
  border-color: var(--gold);
}

.testimonial-quote {
  font-family: 'Outfit', sans-serif;
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.2;
  position: absolute;
  top: 10px; left: 20px;
  line-height: 1;
}

.testimonial-card p {
  font-size: 1rem;
  font-style: italic;
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.testimonial-author strong {
  display: block;
  color: var(--white);
  font-size: 1rem;
}
.testimonial-author span {
  font-size: 0.85rem;
  color: var(--gold-light);
}

/* ========== FAQ PREMIUM (ESTILO MEJORADO) ========== */
.faq-premium-wrapper {
  max-width: 900px;
  margin: 60px auto 0;
}

.faq-item {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  margin-bottom: 20px;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.faq-item.active {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(184, 150, 62, 0.3);
  /* Efecto Spotlight: un brillo suave que nace del fondo */
  background-image: radial-gradient(
    circle at 50% 0%, 
    rgba(184, 150, 62, 0.15) 0%, 
    transparent 70%
  );
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  transform: translateY(-4px);
}

.faq-q-main {
  display: flex;
  align-items: center;
  gap: 24px;
}

.faq-number {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.1); /* Apagado por defecto */
  transition: all 0.4s ease;
}

.faq-item.active .faq-number {
  color: var(--gold);
  text-shadow: 0 0 15px rgba(184, 150, 62, 0.5);
}

.faq-question {
  width: 100%;
  padding: 35px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.faq-item.active .faq-question {
  color: var(--gold-light);
}

.faq-icon {
  font-style: normal;
  font-size: 1.5rem;
  color: rgba(255,255,255,0.3);
  transition: all 0.4s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--gold);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer p {
  padding: 0 40px 40px 88px; /* Alineado con el texto después del número */
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.8;
  margin: 0;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* ========== CTA SECTION ========== */
.cta-section {
  padding-bottom: 0;
  margin-bottom: -50px;
  z-index: 10;
}

.cta-card {
  background: linear-gradient(135deg, var(--green-dark), #05261d);
  border-radius: var(--radius);
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta-card::after {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 300px; height: 300px;
  border: 40px solid rgba(184,150,62,0.05);
  border-radius: 50%;
}

.cta-content h2 {
  font-size: 2.2rem;
  color: var(--white);
  margin-bottom: 16px;
  max-width: 500px;
}
.cta-content p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
}

.btn-large {
  padding: 18px 40px;
  font-size: 1.1rem;
}

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37,211,102,0.4);
  z-index: 1000;
  transition: var(--transition);
}
.whatsapp-float:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 15px 35px rgba(37,211,102,0.5);
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.8rem; font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 16px;
}
.contact-info > p {
  color: var(--gray-500);
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact-item {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 20px;
}
.contact-item-icon {
  width: 48px; height: 48px; min-width: 48px;
  background: linear-gradient(135deg, rgba(13,107,69,0.1), rgba(13,107,69,0.04));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--green-primary);
}
.contact-item-text span {
  font-size: 0.8rem; color: var(--gray-500); text-transform: uppercase;
  letter-spacing: 1px; font-weight: 600;
}
.contact-item-text p {
  font-weight: 500; color: var(--green-dark); margin-top: 2px;
}

.social-buttons {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-top: 28px;
}

.social-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 50px;
  font-weight: 600; font-size: 0.95rem;
  color: var(--white);
  transition: var(--transition);
}
.social-btn:hover {
  transform: translateY(-3px);
}

.social-btn-whatsapp {
  background: #25D366;
}
.social-btn-whatsapp:hover {
  box-shadow: 0 10px 30px rgba(37,211,102,0.35);
}

.social-btn-instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.social-btn-instagram:hover {
  box-shadow: 0 10px 30px rgba(220,39,67,0.35);
}

.social-btn-email {
  background: var(--green-dark);
  border: 2px solid var(--gold);
}
.social-btn-email:hover {
  background: var(--gold);
  box-shadow: 0 10px 30px rgba(184,150,62,0.35);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem; font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--gray-50);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(13,107,69,0.1);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--green-dark);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem; font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.form-submit:hover {
  background: var(--green-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(13,107,69,0.3);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--green-dark);
  color: var(--white);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-top: 16px;
}

/* ========== SECCIÓN FINAL: CTA + FOOTER (REDISEÑO SÓLIDO) ========== */
.final-block {
  background: var(--green-dark);
  padding: 100px 0 60px;
  color: var(--white);
}

/* Banner de CTA */
.cta-banner {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 60px;
  margin-bottom: 80px;
}

.cta-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-text h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}

.cta-text p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
}

.btn-premium-gold {
  background: var(--gold);
  color: var(--white) !important;
  padding: 18px 40px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  display: inline-block;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-premium-gold:hover {
  background: var(--gold-light);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(184, 150, 62, 0.3);
}

/* Footer Nuevo */
.footer-new {
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-new-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
}

.footer-logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--white);
  display: block;
  margin-bottom: 24px;
}

.footer-info p {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  font-size: 0.95rem;
  max-width: 350px;
}

.footer-links-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.clean-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.clean-list li {
  margin-bottom: 12px;
}

.clean-list li a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  transition: var(--transition);
}

.clean-list li a:hover {
  color: var(--white);
  padding-left: 5px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
  .navbar { padding: 20px 0; }
  .nav-logo-text { font-size: 1.5rem; }
  
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
  }
  .nav-toggle span {
    width: 30px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
  }
  .navbar.scrolled .nav-toggle span { background: var(--green-dark); }

  .nav-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 100%; height: 100vh;
    background: var(--green-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050;
  }
  .nav-menu.active { right: 0; }
  
  .nav-link {
    font-size: 1.6rem; /* Letras bien grandes para el celu */
    color: var(--white) !important;
    letter-spacing: 4px;
    font-weight: 800;
  }
  
  .nav-cta-premium { display: none; } /* Lo ocultamos en el celu para que no estorbe */
  .cta-banner-content { flex-direction: column; text-align: center; }
  .footer-new-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-info p { max-width: 100%; }
}

@media (max-width: 768px) {
  .hero-split { grid-template-columns: 1fr; text-align: center; }
  .hero-visuals { display: none; }
  .hero-text h1 { font-size: 2.8rem; }
  
  .about-grid, .service-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .about-card, .service-glass-card {
    padding: 30px 20px;
  }

  .cta-banner { padding: 40px 20px; }
  .cta-text h2 { font-size: 1.8rem; }
  
}

/* ========== PORTFOLIO (GALERÍA DE MINIATURAS) ========== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.portfolio-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(2, 33, 24, 0.1);
  cursor: zoom-in;
  transition: var(--transition);
}

.portfolio-thumb:hover {
  border-color: var(--gold);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.5s ease;
}

.portfolio-thumb:hover img {
  transform: scale(1.08);
}

.portfolio-thumb-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 16px 12px;
  background: linear-gradient(to top, rgba(2, 33, 24, 0.9), transparent);
  display: flex;
  flex-direction: column;
  gap: 2px;
  pointer-events: none;
}

.portfolio-thumb-caption .portfolio-tag {
  color: var(--gold-light);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 1px;
  font-weight: 700;
}

.portfolio-thumb-caption span:last-child {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ========== LIGHTBOX ========== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 33, 24, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 48px;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: var(--white);
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
}
