/* ============================================
   Creativity - Agencia Digital Premium
   Archivo: style.css
   Descripción: Estilos premium con diseño moderno,
   minimalista y responsive inspirado en Meta
   ============================================ */

/* ============================================
   1. VARIABLES CSS (Custom Properties)
   Definimos colores, espaciados y transiciones
   para mantener consistencia en toda la web
   ============================================ */
:root {
  /* Paleta de colores principal */
  --color-primary: #D6E39A;
  --color-primary-dark: #B8CC7A;
  --color-primary-light: #E2ECB8;
  --color-primary-ultralight: #F5F9E8;

  /* Colores neutros */
  --color-white: #FFFFFF;
  --color-gray-50: #F9FAFB;
  --color-gray-100: #F3F4F6;
  --color-gray-200: #E5E7EB;
  --color-gray-300: #D1D5DB;
  --color-gray-400: #9CA3AF;
  --color-gray-500: #6B7280;
  --color-gray-600: #4B5563;
  --color-gray-700: #374151;
  --color-gray-800: #1F2937;
  --color-gray-900: #111827;

  /* Tipografía */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Tamaños de fuente */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;

  /* Espaciados */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Bordes y sombras */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Sombras suaves y elegantes */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 8px 32px rgba(214, 227, 154, 0.25);

  /* Transiciones */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Container max width */
  --container-width: 1200px;
}

/* ============================================
   2. RESET Y BASE
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-gray-700);
  background-color: var(--color-white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-base);
}

ul { list-style: none; }
img { max-width: 100%; display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* ============================================
   3. UTILIDADES
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ============================================
   4. ANIMACIONES KEYFRAMES
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-15px) rotate(3deg); }
  66% { transform: translateY(8px) rotate(-2deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes scrollDown {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ============================================
   5. SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }

/* ============================================
   6. NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-5) 0;
  transition: all var(--transition-slow);
}

.navbar.scrolled {
  padding: var(--space-3) 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}

.navbar-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  z-index: 1001;
}

.navbar-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.footer-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-gray-900);
  letter-spacing: -0.02em;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-gray-600);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.nav-link:hover {
  color: var(--color-gray-900);
  background: var(--color-gray-100);
}

.nav-link-cta {
  background: var(--color-primary);
  color: var(--color-white) !important;
  font-weight: 600;
  margin-left: var(--space-2);
}

.nav-link-cta:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

/* Botón hamburguesa */
.navbar-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

.hamburger {
  width: 24px;
  height: 2px;
  background: var(--color-gray-800);
  position: relative;
  transition: all var(--transition-base);
  border-radius: 2px;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--color-gray-800);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.navbar-toggle.active .hamburger { background: transparent; }
.navbar-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
.navbar-toggle.active .hamburger::after { top: 0; transform: rotate(-45deg); }

/* Menú mobile */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(30px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-slow);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.mobile-nav-link {
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--color-gray-800);
  padding: var(--space-2) var(--space-4);
  transition: color var(--transition-base);
}

.mobile-nav-link:hover { color: var(--color-primary); }
.mobile-nav-cta { color: var(--color-primary) !important; }

/* ============================================
   7. HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-24) var(--space-6) var(--space-16);
  background: linear-gradient(
    180deg,
    var(--color-primary-ultralight) 0%,
    var(--color-white) 40%,
    var(--color-gray-50) 100%
  );
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(214, 227, 154, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 227, 154, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-glow {
  position: absolute;
  width: 800px;
  height: 800px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(214, 227, 154, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
}

.shape-1 {
  width: 400px; height: 400px;
  top: -100px; right: -100px;
  background: radial-gradient(circle, rgba(214, 227, 154, 0.15) 0%, transparent 70%);
  animation: float 12s ease-in-out infinite;
}

.shape-2 {
  width: 300px; height: 300px;
  bottom: 10%; left: -80px;
  background: radial-gradient(circle, rgba(226, 236, 184, 0.12) 0%, transparent 70%);
  animation: float 15s ease-in-out infinite reverse;
}

.shape-3 {
  width: 150px; height: 150px;
  top: 30%; left: 15%;
  background: radial-gradient(circle, rgba(214, 227, 154, 0.08) 0%, transparent 70%);
  animation: float 10s ease-in-out infinite 2s;
}

.shape-4 {
  width: 80px; height: 80px;
  top: 25%; right: 20%;
  background: rgba(214, 227, 154, 0.1);
  animation: float 8s ease-in-out infinite 1s;
}

.shape-5 {
  width: 120px; height: 120px;
  bottom: 20%; right: 15%;
  background: rgba(184, 204, 122, 0.08);
  animation: float 14s ease-in-out infinite 3s;
}

/* Hero layout: two columns - más ancho */
.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-12);
  align-items: center;
  max-width: 1400px;
  width: 100%;
  padding: 0 var(--space-8);
}

.hero-text { text-align: left; }

/* Hero visual (right column) */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
}

.hero-3d-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  animation: heroFloat 6s ease-in-out infinite;
}

/* Animación de flotación */
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.hero-illustration {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}

/* Sombra debajo del logo que se agranda/achica sincronizada */
.hero-3d-shadow {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 30px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: shadowSync 6s ease-in-out infinite;
  z-index: 0;
}

@keyframes shadowSync {
  0%, 100% {
    transform: translateX(-50%) scaleX(1) scaleY(1);
    opacity: 0.6;
  }
  50% {
    transform: translateX(-50%) scaleX(1.3) scaleY(1.4);
    opacity: 0.25;
  }
}

/* Métricas debajo del logo */
.hero-metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding: var(--space-5) var(--space-8);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  animation: none;
}

/* Título en 3 líneas */
.hero-title {
  font-size: clamp(var(--text-4xl), 5.5vw, var(--text-7xl));
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--color-gray-900);
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.8s ease-out 0.15s both;
}

.title-line {
  display: block;
}

.highlight {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-dark) 50%,
    var(--color-primary-light) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

.hero-subtitle {
  font-size: clamp(var(--text-lg), 1.8vw, var(--text-xl));
  color: var(--color-gray-500);
  max-width: 520px;
  margin: 0 0 var(--space-10) 0;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-gray-600);
  margin-bottom: var(--space-8);
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.8s ease-out forwards;
}

.badge-dot {
  width: 8px; height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
  animation: fadeInUp 0.8s ease-out 0.45s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  cursor: pointer;
}

.btn-primary {
  background: var(--color-gray-900);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-gray-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.hero-btn-mobile { display: none; }

.btn-secondary {
  background: var(--color-white);
  color: var(--color-gray-800);
  border: 1.5px solid var(--color-gray-200);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero-metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding: var(--space-6) var(--space-10);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.metric-number {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-gray-900);
  letter-spacing: -0.02em;
}

.metric-label {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  font-weight: 500;
}

.metric-divider {
  width: 1px;
  height: 40px;
  background: var(--color-gray-200);
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  animation: fadeInUp 0.8s ease-out 0.9s both;
}

.scroll-mouse {
  width: 24px; height: 38px;
  border: 2px solid var(--color-gray-300);
  border-radius: var(--radius-full);
  position: relative;
  overflow: hidden;
}

.scroll-wheel {
  width: 4px; height: 8px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollDown 1.5s ease-in-out infinite;
}

.scroll-text {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================
   8. SECCIONES - Estilos compartidos
   ============================================ */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-16);
}

.section-tag {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary-ultralight);
  border-radius: var(--radius-full);
}

.section-title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 800;
  color: var(--color-gray-900);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-gray-500);
  line-height: 1.7;
}

/* ============================================
   9. SERVICIOS
   ============================================ */
.services {
  padding: var(--space-24) 0;
  background: var(--color-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.service-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--transition-slow);
  overflow: hidden;
}

.service-card:hover {
  border-color: var(--color-primary-light);
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(214, 227, 154, 0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

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

.service-card.featured {
  border-color: var(--color-primary-light);
  background: linear-gradient(180deg, var(--color-primary-ultralight) 0%, var(--color-white) 30%);
}

.card-badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  padding: var(--space-1) var(--space-3);
  background: var(--color-primary);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
}

.card-content { position: relative; z-index: 1; }

.card-icon {
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-ultralight);
  color: var(--color-primary-dark);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  transition: all var(--transition-base);
}

.service-card:hover .card-icon {
  background: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.05);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

.card-description {
  font-size: var(--text-base);
  color: var(--color-gray-500);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.card-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-gray-100);
}

.price-label {
  font-size: var(--text-sm);
  color: var(--color-gray-400);
  font-weight: 500;
}

.price-value {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-gray-900);
  letter-spacing: -0.02em;
}

.card-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.feature {
  font-size: var(--text-sm);
  padding: var(--space-1) var(--space-3);
  background: var(--color-gray-50);
  color: var(--color-gray-600);
  border-radius: var(--radius-full);
  font-weight: 500;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary-dark);
  transition: all var(--transition-base);
}

.card-link:hover {
  gap: var(--space-3);
  color: var(--color-primary);
}

.card-link svg {
  transition: transform var(--transition-base);
}

.card-link:hover svg { transform: translateX(4px); }

.services-dots { display: none; }
.portfolio-dots { display: none; }

/* ============================================
   10. PORTFOLIO
   ============================================ */
.portfolio {
  padding: var(--space-24) 0;
  background: var(--color-gray-50);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.portfolio-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-slow);
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.portfolio-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-gray-200);
  background: var(--color-white);
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.portfolio-img-contain {
  object-fit: contain;
  background: var(--color-gray-50);
}

.portfolio-card:hover .portfolio-img { transform: scale(1.05); }

.portfolio-placeholder { width: 100%; height: 100%; }

.placeholder-gradient {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-slow);
}

.portfolio-card:hover .placeholder-gradient { transform: scale(1.05); }

.gradient-1 { background: linear-gradient(135deg, #D6E39A 0%, #B8CC7A 50%, #9AB35A 100%); }
.gradient-2 { background: linear-gradient(135deg, #06B6D4 0%, #0891B2 50%, #0E7490 100%); }
.gradient-3 { background: linear-gradient(135deg, #F59E0B 0%, #D97706 50%, #B45309 100%); }
.gradient-4 { background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 50%, #6D28D9 100%); }

.placeholder-text {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.01em;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  opacity: 0;
  transition: opacity var(--transition-base);
  border-radius: var(--radius-xl);
}

.portfolio-card:hover .portfolio-overlay { opacity: 1; }

.overlay-label {
  color: var(--color-white);
  font-size: var(--text-base);
  font-weight: 600;
}

.portfolio-overlay svg { color: var(--color-white); }

.portfolio-info { padding: var(--space-4) var(--space-2); }

.portfolio-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: var(--space-1);
  letter-spacing: -0.01em;
}

.portfolio-category {
  font-size: var(--text-sm);
  color: var(--color-gray-400);
  font-weight: 500;
}

/* ============================================
   11. PROCESO
   ============================================ */
.process {
  padding: var(--space-24) 0;
  background: var(--color-white);
}

.process-timeline {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-5);
  padding: var(--space-8) var(--space-4);
  flex: 1;
  min-width: 0;
  position: relative;
}

.step-number {
  font-size: var(--text-5xl);
  font-weight: 900;
  color: var(--color-gray-100);
  line-height: 1;
  letter-spacing: -0.04em;
}

.step-icon {
  position: relative;
  z-index: 1;
  width: 64px; height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-ultralight);
  color: var(--color-primary-dark);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
  transition: all var(--transition-base);
  border: 2px solid transparent;
}

.process-step:hover .step-icon {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary-light);
  transform: scale(1.05);
  box-shadow: var(--shadow-glow);
}

.step-content {
  flex: none;
  padding-left: 0;
}

.step-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
}

.step-description {
  font-size: var(--text-base);
  color: var(--color-gray-500);
  line-height: 1.7;
  max-width: 240px;
}

.step-connector {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary-light) 0%, var(--color-gray-200) 100%);
  margin-top: 108px;
  position: relative;
  flex-shrink: 0;
}

.step-connector::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  background: var(--color-primary-light);
  border-radius: 50%;
}

/* ============================================
   12. CTA FINAL
   ============================================ */
.cta {
  padding: var(--space-24) 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    var(--color-white) 0%,
    var(--color-primary-ultralight) 50%,
    var(--color-gray-50) 100%
  );
}

.cta-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.cta-shape { position: absolute; border-radius: 50%; }

.cta-shape-1 {
  width: 500px; height: 500px;
  top: -200px; left: -200px;
  background: radial-gradient(circle, rgba(214, 227, 154, 0.1) 0%, transparent 70%);
  animation: float 16s ease-in-out infinite;
}

.cta-shape-2 {
  width: 400px; height: 400px;
  bottom: -150px; right: -150px;
  background: radial-gradient(circle, rgba(184, 204, 122, 0.08) 0%, transparent 70%);
  animation: float 14s ease-in-out infinite reverse;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 800;
  color: var(--color-gray-900);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.cta-subtitle {
  font-size: var(--text-xl);
  color: var(--color-gray-500);
  margin-bottom: var(--space-10);
  line-height: 1.6;
}

.btn-cta {
  background: var(--color-gray-900);
  color: var(--color-white);
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-lg);
  box-shadow: var(--shadow-lg);
}

.btn-cta:hover {
  background: var(--color-gray-800);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

/* ============================================
   13. FOOTER
   ============================================ */
 .footer {
  padding: var(--space-16) 0 var(--space-8);
  background: var(--color-primary);
  color: var(--color-white);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand { max-width: 300px; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer-logo .logo-text { color: var(--color-white); }

.footer-description {
  font-size: var(--text-base);
  color: var(--color-white);
  line-height: 1.6;
}

.footer-social-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.social-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-2) 0;
  transition: all var(--transition-base);
}

.social-link:hover {
  color: rgba(255, 255, 255, 0.8);
  transform: translateX(4px);
}

.social-link svg { flex-shrink: 0; }

.footer-bottom { text-align: center; }

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
  margin-bottom: var(--space-8);
}

 .footer-copyright {
  font-size: var(--text-sm);
  color: var(--color-white);
}

/* ============================================
   14. CLIENTES / MARCAS - Marquee Premium
   ============================================
   ANIMACIÓN:
   - "marquee" mueve el track horizontalmente
   - Velocidad controlada por la duración (40s)
   - El track tiene 2 copias idénticas para loop
     infinito seamless: cuando llega a -50%
     vuelve al inicio sin salto visual
   ============================================
   CÓMO AJUSTAR VELOCIDAD:
   - Cambiar "40s" en la animación "marquee"
   - A menor duración, más rápido
   ============================================ */
/* Contenedor del carrusel dentro del hero */
.hero-clients-marquee {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: auto;
  padding-top: var(--space-16);

  /* Fade suave en ambos extremos para que los logos
     aparezcan/desaparezcan gradualmente */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 5%,
    black 95%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 5%,
    black 95%,
    transparent 100%
  );
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

/* Track que contiene todos los logos (2 sets) */
.clients-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: fit-content;

  /* Animación infinita, continua y fluida */
  animation: marquee 40s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Cada contenedor de logo individual */
.client-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Espaciado horizontal entre logos */
  padding: 0 40px;

  /* Opacidad reducida por defecto para aspecto elegante */
  opacity: 0.55;

  /* Transición suave para hover */
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* La imagen del logo */
.client-logo-img {
  height: 64px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;

  /* Filtro para teñir los logos con el color
     primario de la marca (#D6E39A) y mantener
     consistencia visual.
     Ajustar estos valores si se cambia el color
     primario. */
  filter: brightness(0);

  /* Transición suave para hover */
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover: aumenta tamaño, opacidad y nitidez */
.client-logo:hover {
  opacity: 1;
}

.client-logo:hover .client-logo-img {
  transform: scale(1.1);
  filter: brightness(0);
  /* En hover también mostramos el color original sin filtro:
     descomentar la línea de abajo para color original:
     filter: none; */
}

/* Pausar animación al hover general */
.hero-clients-marquee:hover .clients-track {
  animation-play-state: paused;
}

/* RESPONSIVE: menos separación y logos más chicos */
@media (max-width: 768px) {
  .hero-clients-marquee {
    padding-top: var(--space-10);
  }

  .client-logo {
    padding: 0 24px;
  }

  .client-logo-img {
    height: 48px;
    max-width: 130px;
  }
}

@media (max-width: 480px) {
  .client-logo {
    padding: 0 16px;
  }

  .client-logo-img {
    height: 38px;
    max-width: 100px;
  }
}

/* ============================================
   15. RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .hero-metrics {
    padding: var(--space-4) var(--space-6);
    gap: var(--space-6);
  }

  .hero-3d-wrapper { max-width: 400px; }
}

@media (max-width: 768px) {
  .navbar-toggle { display: flex; }
  .navbar-menu { display: none; }

  .hero {
    min-height: auto;
    padding: var(--space-28) var(--space-5) var(--space-16);
  }

  .hero-container { display: contents; }
  .hero-visual { display: contents; }
  .hero-text { display: contents; text-align: center; }

  .hero-3d-wrapper { order: -4; }
  .hero-clients-marquee { order: -3; padding-top: 0; margin: 0 0 var(--space-6) 0; }
  .hero-title { order: -2; }
  .hero-btn-mobile { order: -1; }
  .hero-subtitle { order: 0; }
  .hero-metrics { order: 1; margin-bottom: var(--space-3); }

  .hero-buttons { display: none; }
  .hero-btn-mobile { display: flex; margin: var(--space-5) auto; padding: var(--space-4) var(--space-8); font-size: var(--text-lg); border-radius: var(--radius-full); box-shadow: var(--shadow-lg); width: auto; }
  .hero-badge { display: none; }
  .badge-premium { display: none; }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-3);
    max-width: 320px;
    padding: 0 var(--space-4);
  }

  .hero-badge { margin-bottom: var(--space-6); }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    padding: 0 var(--space-4);
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-btn-mobile.btn { width: auto; }

  .hero-metrics {
    flex-direction: row;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    margin: 0 var(--space-4);
  }

  .hero-metrics .metric-number {
    font-size: var(--text-lg);
  }

  .hero-metrics .metric-label {
    font-size: var(--text-xs);
  }

  .hero-metrics .metric-divider {
    height: 28px;
  }

  .hero-visual { order: -1; }
  .hero-3d-wrapper { max-width: 320px; padding-top: var(--space-6); }
  .navbar-logo .logo-text { display: none; }
  .scroll-indicator { display: none; }

  .portfolio-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--space-4);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
    padding: 0 var(--space-4) var(--space-4);
    margin: 0 calc(var(--space-4) * -1);
  }

  .portfolio-grid::-webkit-scrollbar { display: none; }
  .portfolio-grid { grid-template-columns: none; }

  .portfolio-card {
    flex: 0 0 calc(100% - var(--space-8));
    scroll-snap-align: center;
    margin: 0 var(--space-4);
  }

  .portfolio-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-4);
  }

  .portfolio-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-gray-300);
    transition: all var(--transition-base);
  }

  .portfolio-dots .dot.active {
    background: var(--color-primary-dark);
    width: 24px;
    border-radius: var(--radius-full);
  }

  .process-timeline {
    flex-direction: column;
    align-items: center;
  }

  .process-step {
    padding: var(--space-6) var(--space-4);
    gap: var(--space-4);
    max-width: 400px;
  }

  .step-number { font-size: var(--text-4xl); }
  .step-content { padding-left: 0; }

  .step-connector {
    width: 2px;
    height: 32px;
    margin-top: 0;
    background: linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-gray-200) 100%);
  }

  .step-connector::after {
    right: auto;
    top: auto;
    transform: none;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
  }

  .cta { padding: var(--space-16) 0; }
  .btn-cta { padding: var(--space-4) var(--space-8); }

  .footer-content { flex-direction: column; gap: var(--space-8); }

  .social-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-6);
  }

  .services,
  .portfolio,
  .process { padding: var(--space-16) 0; }

  .container { padding: 0 var(--space-4); }
  .section-header { margin-bottom: var(--space-10); }

  .shape-1, .shape-2 { width: 200px; height: 200px; }

  .services-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--space-4);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  .services-grid::-webkit-scrollbar { display: none; }

  .service-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }

  .service-card:first-child { margin-left: 7.5%; }
  .service-card:last-child { margin-right: 7.5%; }

  .services-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-4);
  }

  .services-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-gray-300);
    transition: all var(--transition-base);
  }

  .services-dots .dot.active {
    background: var(--color-primary-dark);
    width: 24px;
    border-radius: var(--radius-full);
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: var(--text-3xl); }
  .section-title { font-size: var(--text-2xl); }
  .service-card { padding: var(--space-6); }
  .card-features { flex-direction: column; }
}

/* ============================================
   16. PREFERS REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .shape, .cta-shape { animation: none; }
}
