/* Nova Grid - Modern Minimalist CSS Architecture */

/* ================================
   CSS Custom Properties (Variables)
   Nova Grid - Colores Pantone Oficiales
   ================================ */
:root {
  /* Primary Colors - PANTONE Oficial Nova Grid */
  --primary: #D22630;              /* PANTONE 1795 C - Rojo brillante */
  --primary-solid: #D22630;        /* PANTONE 1795 C - Rojo brillante */
  --primary-light: #E84855;        /* Rojo más claro para hovers */
  --primary-dark: #971B2F;         /* PANTONE 7427 C - Rojo vino */

  /* Secondary - PANTONE Oficial */
  --secondary: #1C1F2A;            /* PANTONE 532 C - Azul oscuro/negro */
  --secondary-light: #3F4444;      /* PANTONE 446 C */

  /* Accent Colors */
  --accent: #D22630;
  --accent-light: #E84855;

  /* Status Colors */
  --success: #10b981;
  --warning: #F59E0B;
  --danger: #D22630;

  /* Nova Grid Gradients - Sutiles */
  --gradient-primary: linear-gradient(130deg, #D22630 20%, #971B2F 100%);
  --gradient-dark: linear-gradient(135deg, #1C1F2A 0%, #3F4444 100%);
  --gradient-icon: linear-gradient(130deg, #D22630 20%, #971B2F 100%);
  --gradient-cta: linear-gradient(130deg, #D22630 20%, #971B2F 100%);
  --gradient-hero: linear-gradient(135deg, rgba(28, 31, 42, 0.95) 0%, rgba(151, 27, 47, 0.9) 100%);
  --gradient-hero-alt: linear-gradient(135deg, #971B2F 0%, #D22630 50%, #1C1F2A 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);

  /* WhatsApp */
  --whatsapp-green: #25D366;
  --whatsapp-dark: #128C7E;

  /* Neutral Colors - PANTONE Oficial Nova Grid */
  --white: #FFFFFF;                /* PANTONE WHITE */
  --off-white: #FAFAFA;
  --gray-50: #F7F7F7;              /* Fondo claro */
  --gray-100: #D0D0CE;             /* PANTONE Cool Gray 2 C */
  --gray-200: #9EA2A2;             /* PANTONE 422 C */
  --gray-300: #707372;             /* PANTONE 424 C */
  --gray-400: #4B4F54;             /* PANTONE 7540 C */
  --gray-500: #3F4444;             /* PANTONE 446 C */
  --gray-600: #3F4444;             /* PANTONE 446 C */
  --gray-700: #1C1F2A;             /* PANTONE 532 C */
  --gray-800: #1C1F2A;
  --gray-900: #0D0F14;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Layout */
  --container-max-width: 1280px;
  --navbar-height: 5rem;
}

/* ================================
   Modern CSS Reset
   ================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
}

body {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ================================
   Typography System
   ================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  color: var(--gray-900);
}

.display-1 { font-size: clamp(3rem, 8vw, 6rem); font-weight: var(--font-weight-extrabold); }
.display-2 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: var(--font-weight-extrabold); }
.display-3 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: var(--font-weight-bold); }

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

/* ================================
   Modern Navigation - Transparente en Hero
   ================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  box-shadow: none;
  transition: all var(--transition-base);
  padding: var(--space-lg) 0;
}

.navbar.scrolled {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: var(--space-sm) 0;
}

.navbar-brand img {
  transition: all var(--transition-base);
}

.navbar-brand .logo-white {
  display: block;
}

.navbar-brand .logo-color {
  display: none;
}

.navbar.scrolled .navbar-brand .logo-white {
  display: none;
}

.navbar.scrolled .navbar-brand .logo-color {
  display: block;
}

.navbar.scrolled .navbar-brand img {
  transform: scale(0.95);
}

.nav-link {
  position: relative;
  font-weight: var(--font-weight-medium);
  color: rgba(255, 255, 255, 0.9) !important;
  transition: all var(--transition-base);
  padding: var(--space-sm) var(--space-md) !important;
}

.navbar.scrolled .nav-link {
  color: var(--gray-600) !important;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--white);
  transition: all var(--transition-base);
  transform: translateX(-50%);
}

.navbar.scrolled .nav-link::before {
  background: var(--primary-solid);
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 60%;
}

.nav-link:hover {
  color: var(--white) !important;
}

.navbar.scrolled .nav-link:hover {
  color: var(--primary-solid) !important;
}

/* Botón del navbar */
.navbar .btn-primary {
  background: var(--white);
  color: var(--primary-solid);
}

.navbar .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-dark);
}

.navbar.scrolled .btn-primary {
  background: var(--primary-solid);
  color: var(--white);
}

.navbar.scrolled .btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
}

/* Navbar toggler para móvil */
.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.scrolled .navbar-toggler {
  border-color: rgba(0, 0, 0, 0.2);
}

.navbar.scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.dropdown-menu {
  border: 1px solid var(--gray-100);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  background: var(--white);
  padding: var(--space-sm);
  margin-top: var(--space-xs);
}

.dropdown-item {
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  transition: all var(--transition-fast);
  font-weight: var(--font-weight-normal);
  color: var(--gray-600);
}

.dropdown-item:hover {
  background: var(--gray-50);
  color: var(--primary-solid);
}

/* ================================
   Modern Button System - Minimalista
   ================================ */
.btn {
  font-weight: var(--font-weight-medium);
  border-radius: 4px;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  display: none;
}

.btn-primary {
  background: var(--primary-solid);
  border: none;
  color: var(--white);
  padding: var(--space-md) var(--space-xl);
  box-shadow: none;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(210, 38, 48, 0.25);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--gray-600);
  color: var(--gray-600);
  padding: calc(var(--space-md) - 1px) calc(var(--space-xl) - 1px);
}

.btn-secondary:hover {
  border-color: var(--primary-solid);
  color: var(--primary-solid);
  background: transparent;
}

.btn-accent {
  background: var(--primary-solid);
  border: none;
  color: var(--white);
  padding: var(--space-md) var(--space-xl);
}

.btn-accent:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.btn-dark {
  background: var(--secondary);
  border: none;
  color: var(--white);
  padding: var(--space-md) var(--space-xl);
}

.btn-dark:hover {
  background: var(--secondary-light);
  color: var(--white);
}

.btn-outline-light {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--white);
  padding: calc(var(--space-md) - 1px) calc(var(--space-xl) - 1px);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
}

/* Botón WhatsApp */
.btn-whatsapp {
  background: var(--whatsapp-green);
  border: none;
  color: var(--white);
  padding: var(--space-md) var(--space-xl);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
  color: var(--white);
}

/* ================================
   Hero Section - IMPACTANTE con Rojo Pantone
   ================================ */
.hero-section {
  min-height: 100vh;
  background: var(--primary-solid);
  position: relative;
  display: flex;
  align-items: center;
  padding: calc(var(--navbar-height) + var(--space-2xl)) 0 0;
  overflow: hidden;
}

/* Gradiente diagonal dramático */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    var(--primary-solid) 0%,
    var(--primary-solid) 40%,
    var(--primary-dark) 100%);
  z-index: 0;
}

/* Forma geométrica diagonal blanca */
.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 15vh;
  background: var(--white);
  clip-path: polygon(0 100%, 100% 0%, 100% 100%);
  z-index: 1;
}

/* Patrón decorativo sutil */
.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 40%);
  z-index: 1;
  pointer-events: none;
}

/* Círculos decorativos animados */
.hero-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  z-index: 1;
  pointer-events: none;
}

.hero-circle-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
  animation: floatCircle 8s ease-in-out infinite;
}

.hero-circle-2 {
  width: 250px;
  height: 250px;
  bottom: 20%;
  left: -50px;
  animation: floatCircle 6s ease-in-out infinite reverse;
}

.hero-circle-3 {
  width: 150px;
  height: 150px;
  top: 40%;
  right: 20%;
  animation: floatCircle 10s ease-in-out infinite;
}

@keyframes floatCircle {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -20px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: var(--font-weight-extrabold);
  line-height: 1.05;
  margin-bottom: var(--space-lg);
  color: var(--white);
  letter-spacing: -0.03em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.hero-title span {
  display: block;
  color: var(--white);
  position: relative;
}

.hero-title span::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  z-index: -1;
}

/* Línea decorativa bajo el título - BLANCA */
.hero-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--white);
  margin-top: var(--space-xl);
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: var(--font-weight-normal);
  margin-bottom: var(--space-lg);
  color: rgba(255, 255, 255, 0.85);
}

.hero-description {
  font-size: 1.15rem;
  font-weight: var(--font-weight-normal);
  margin-bottom: var(--space-2xl);
  max-width: 520px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

.hero-highlight {
  display: block;
  color: var(--white);
  font-style: normal;
  font-weight: var(--font-weight-semibold);
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Botones del Hero - Estilo especial */
.hero-cta .btn-primary {
  background: var(--white);
  color: var(--primary-solid);
  font-weight: var(--font-weight-semibold);
  padding: var(--space-md) var(--space-2xl);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero-cta .btn-primary:hover {
  background: var(--white);
  color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.hero-cta .btn-secondary {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: var(--white);
  padding: calc(var(--space-md) - 2px) calc(var(--space-2xl) - 2px);
}

.hero-cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
  color: var(--white);
}

/* Imagen del Hero - Con efecto de elevación */
.hero-image {
  position: relative;
  z-index: 10;
}

.hero-image-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.3),
    0 10px 30px rgba(0, 0, 0, 0.2);
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: all 0.5s ease;
}

.hero-image-wrapper:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(210, 38, 48, 0.1) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Stats en el Hero */
.hero-stats {
  display: flex;
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

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

.hero-stat-number {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--white);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.hero-stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 20vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--white);
  opacity: 0.7;
  animation: bounceScroll 2s ease-in-out infinite;
}

.hero-scroll-indicator span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-scroll-indicator i {
  font-size: 1.5rem;
}

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

/* White button for hero */
.btn-white {
  background: var(--white);
  border: none;
  color: var(--primary-solid);
  padding: var(--space-md) var(--space-xl);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  color: var(--primary-dark);
}

.btn-outline-white {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  padding: calc(var(--space-md) - 2px) calc(var(--space-xl) - 2px);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--primary-solid);
  transform: translateY(-2px);
}

/* ================================
   Card System - Minimalista
   ================================ */
.card-modern {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  position: relative;
}

.card-modern::before {
  display: none;
}

.card-modern:hover {
  border-color: var(--primary-solid);
  box-shadow: 0 4px 20px rgba(210, 38, 48, 0.08);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--gray-100);
  transition: all var(--transition-base);
  position: relative;
}

.service-card::before,
.service-card::after {
  display: none;
}

.service-card:hover {
  border-color: var(--primary-solid);
  box-shadow: 0 4px 20px rgba(210, 38, 48, 0.08);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  font-size: 1.5rem;
  color: var(--primary-solid);
  transition: all var(--transition-base);
}

.service-icon::before {
  display: none;
}

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

/* ================================
   Grid Layout System
   ================================ */
.grid-container {
  display: grid;
  gap: var(--space-xl);
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ================================
   Section Styling
   ================================ */
.section {
  padding: var(--space-5xl) 0;
  position: relative;
}

.section-bg-light {
  background: var(--gray-50);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-sm);
  color: var(--gray-900);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--gray-400);
  font-weight: var(--font-weight-normal);
}

/* ================================
   Animation System
   ================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* ================================
   Footer Moderno - Rojo Impactante
   ================================ */
.footer-modern {
  margin-top: auto;
}

/* CTA Section del Footer */
.footer-cta {
  position: relative;
  background: var(--gradient-primary);
  padding: var(--space-3xl) 0;
  overflow: hidden;
}

.footer-cta-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 10% 50%, rgba(255,255,255,0.05) 0%, transparent 50%),
    radial-gradient(circle at 90% 20%, rgba(255,255,255,0.08) 0%, transparent 40%);
  pointer-events: none;
}

.footer-cta-title {
  color: var(--white);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-sm);
}

.footer-cta-text {
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
  margin: 0;
}

.footer-cta-btn {
  background: var(--white);
  color: var(--primary);
  border: none;
  font-weight: var(--font-weight-semibold);
  padding: var(--space-md) var(--space-xl);
  transition: all var(--transition-base);
}

.footer-cta-btn:hover {
  background: var(--off-white);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Footer Principal */
.footer-main {
  background: var(--secondary);
  padding: var(--space-4xl) 0;
}

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

.footer-logo {
  margin-bottom: var(--space-lg);
}

.footer-brand-text {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  color: var(--white);
  text-decoration: none;
  transition: all var(--transition-base);
}

.footer-social-link:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-heading {
  color: var(--white);
  font-weight: var(--font-weight-semibold);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-xl);
  position: relative;
  padding-bottom: var(--space-sm);
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
}

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

.footer-links li {
  margin-bottom: var(--space-md);
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all var(--transition-base);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--white);
  transform: translateX(5px);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.footer-contact-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.footer-contact-item div:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-contact-item span,
.footer-contact-item a {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer-contact-item a:hover {
  color: var(--white);
}

/* Footer Bottom */
.footer-modern .footer-bottom {
  background: #151820;
  padding: var(--space-lg) 0;
}

.footer-copyright {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  margin: 0;
}

.footer-legal {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  margin: 0;
}

.footer-legal a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer-legal a:hover {
  color: var(--white);
}

.footer-legal-divider {
  margin: 0 var(--space-sm);
  opacity: 0.3;
}

/* Responsive Footer */
@media (max-width: 991px) {
  .footer-cta {
    text-align: center;
  }

  .footer-brand {
    max-width: 100%;
    text-align: center;
    margin-bottom: var(--space-xl);
  }

  .footer-social {
    justify-content: center;
  }

  .footer-heading::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 767px) {
  .footer-main {
    padding: var(--space-2xl) 0;
  }

  .footer-contact {
    margin-top: var(--space-xl);
  }
}

/* ================================
   Form Styling
   ================================ */
.form-modern {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-weight: var(--font-weight-semibold);
  color: var(--gray-700);
  margin-bottom: var(--space-sm);
}

.form-control {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  transition: all var(--transition-base);
  background: var(--white);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-solid);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
  transform: translateY(-1px);
}

/* ================================
   Utility Classes
   ================================ */
.container-fluid { max-width: 100%; }
.container { max-width: var(--container-max-width); margin: 0 auto; padding: 0 var(--space-lg); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-90 { opacity: 0.9; }

/* ================================
   Responsive Design
   ================================ */
@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding: calc(var(--navbar-height) + var(--space-3xl)) 0 var(--space-4xl);
  }

  .hero-section::after {
    height: 8vh;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-circle {
    display: none;
  }

  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .hero-stats {
    flex-wrap: wrap;
    gap: var(--space-lg);
  }

  .hero-stat {
    flex: 0 0 45%;
  }

  .hero-stat-number {
    font-size: 2rem;
  }

  .hero-image-wrapper {
    transform: none;
  }

  .hero-scroll-indicator {
    display: none;
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .card-modern,
  .service-card {
    padding: var(--space-xl);
  }

  .nav-link::before {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
}

/* ================================
   Performance Optimizations
   ================================ */
.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000;
}

.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

/* Selection */
::selection {
  background: var(--primary-solid);
  color: var(--white);
}

::-moz-selection {
  background: var(--primary-solid);
  color: var(--white);
}

/* ================================
   Service Icon Box - Sobrio y Elegante
   ================================ */
.gradient-icon-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--gray-100);
  transition: all var(--transition-base);
  text-align: left;
}

.gradient-icon-box::before,
.gradient-icon-box::after {
  display: none;
}

.gradient-icon-box:hover {
  border-color: var(--primary-solid);
  box-shadow: 0 4px 20px rgba(210, 38, 48, 0.08);
}

.gradient-icon-box .icon-wrapper {
  width: 52px;
  height: 52px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  font-size: 1.35rem;
  color: var(--primary-solid);
  transition: all var(--transition-base);
}

.gradient-icon-box .icon-wrapper::before {
  display: none;
}

.gradient-icon-box:hover .icon-wrapper {
  background: var(--primary-solid);
  color: var(--white);
}

.gradient-icon-box h3 {
  font-size: 1.1rem;
  font-weight: var(--font-weight-semibold);
  color: var(--gray-700);
  margin-bottom: var(--space-sm);
}

.gradient-icon-box p {
  color: var(--gray-400);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.gradient-icon-box .btn-link {
  color: var(--primary-solid);
  font-weight: var(--font-weight-medium);
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  transition: all 0.2s;
}

.gradient-icon-box .btn-link:hover {
  gap: var(--space-sm);
}

.gradient-icon-box .btn-link i {
  transition: transform 0.2s;
}

.gradient-icon-box:hover .btn-link i {
  transform: translateX(4px);
}

/* ================================
   WhatsApp Floating Widget
   ================================ */
.whatsapp-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9998;
}

.whatsapp-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--whatsapp-green);
  border-radius: var(--radius-full);
  color: var(--white);
  font-size: 2rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-base);
  animation: whatsappPulse 2s infinite;
}

.whatsapp-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
  color: var(--white);
}

@keyframes whatsappPulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6);
  }
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  color: var(--gray-800);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.whatsapp-widget:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  right: 75px;
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border: 4px solid transparent;
  border-left-color: var(--white);
}

/* ================================
   Swiper Carousel Styles
   ================================ */
.swiper {
  width: 100%;
  padding-bottom: 50px;
}

.swiper-slide {
  height: auto;
}

.swiper-pagination {
  bottom: 0 !important;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: var(--gray-300);
  opacity: 1;
  transition: all var(--transition-base);
}

.swiper-pagination-bullet-active {
  background: var(--primary-solid);
  transform: scale(1.2);
}

.swiper-button-next,
.swiper-button-prev {
  width: 50px;
  height: 50px;
  background: var(--white);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  color: var(--primary-solid);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--primary-solid);
  transform: scale(1.1);
}

.swiper-button-next:hover::after,
.swiper-button-prev:hover::after {
  color: var(--white);
}

/* Project Cards - Featured Style */
.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: all 0.3s ease;
  height: 100%;
}

.project-card:hover {
  border-color: var(--gray-200);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.project-card-image {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-card-image img {
  transform: scale(1.03);
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.7) 100%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-lg);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.project-card-body {
  padding: var(--space-lg);
}

.project-card-category {
  display: inline-block;
  color: var(--primary-solid);
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-sm);
}

.project-card-title {
  font-size: 1.125rem;
  font-weight: var(--font-weight-semibold);
  color: var(--gray-900);
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.project-card-location {
  color: var(--gray-400);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* Client Logo Swiper */
.client-logo-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.client-logo {
  max-width: 150px;
  height: 80px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all var(--transition-base);
}

.client-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

/* ================================
   Hero with Parallax Background
   ================================ */
.hero-parallax {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-parallax-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}

.hero-parallax-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 1;
}

.hero-parallax-content {
  position: relative;
  z-index: 2;
}

/* Stats Counter Section - Minimalist */
.stats-section {
  background: var(--gray-50);
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}

.stat-item {
  text-align: center;
  padding: var(--space-lg);
}

.stat-number {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  margin-bottom: var(--space-xs);
  color: var(--primary-solid);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--gray-400);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ================================
   CTA Banner Section - Fondo Oscuro (Único)
   ================================ */
.cta-banner {
  background: var(--secondary);
  padding: var(--space-4xl) 0;
  position: relative;
}

.cta-banner::before {
  display: none;
}

.cta-banner .container {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: var(--space-md);
  font-weight: var(--font-weight-bold);
}

.cta-banner p {
  color: var(--gray-200);
  font-size: 1.1rem;
  margin-bottom: var(--space-xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.cta-banner .btn-primary {
  background: var(--primary-solid);
}

.cta-banner .btn-primary:hover {
  background: var(--primary-light);
}

.cta-banner .btn-secondary {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.cta-banner .btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

/* ================================
   Accessibility Improvements
   ================================ */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-solid);
  color: var(--white);
  padding: var(--space-sm) var(--space-md);
  z-index: 10000;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

/* Focus styles for accessibility */
*:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Reduced motion preference */
@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;
  }

  .whatsapp-button {
    animation: none;
  }

  .hero-parallax-bg {
    background-attachment: scroll;
  }
}

/* ================================
   Newsletter Form Styles
   ================================ */
.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 400px;
}

.newsletter-form .form-control {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.newsletter-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form .form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent);
}

/* ================================
   Responsive Enhancements
   ================================ */
@media (max-width: 991px) {
  .whatsapp-widget {
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-button {
    width: 55px;
    height: 55px;
    font-size: 1.75rem;
  }

  .whatsapp-tooltip {
    display: none;
  }

  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
}

@media (max-width: 768px) {
  .gradient-icon-box {
    padding: var(--space-xl);
  }

  .gradient-icon-box .icon-wrapper {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }

  .project-card-image {
    height: 200px;
  }

  .stats-section {
    padding: var(--space-2xl) 0;
  }

  .stat-item {
    margin-bottom: var(--space-xl);
  }
}

@media (max-width: 480px) {
  .whatsapp-button {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form .btn {
    width: 100%;
  }
} 