/* ===== VARIABLES CSS ===== */
:root {
  /* Colores principales - Azul a Aguamarina */
  --primary-color: #0066cc;
  --primary-light: #4da6ff;
  --primary-dark: #004499;
  --secondary-color: #00d4aa;
  --secondary-light: #40e0d0;
  --secondary-dark: #00a085;
  --accent-color: #0099dd;

  /* Gradientes */
  --gradient-primary: linear-gradient(135deg, #0066cc 0%, #00d4aa 100%);
  --gradient-secondary: linear-gradient(135deg, #00d4aa 0%, #40e0d0 100%);
  --gradient-hero: linear-gradient(135deg, #001122 0%, #004499 50%, #0066cc 100%);
  --gradient-glass: rgba(255, 255, 255, 0.1);

  /* Colores neutros */
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --gray: #6c757d;
  --dark-gray: #343a40;
  --black: #000000;

  /* Tipografía */
  --font-family: 'Raleway', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-size-base: 1rem;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Espaciado */
  --section-padding: 100px 0;
  --container-padding: 0 15px;

  /* Sombras */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
  --shadow-glass: 0 8px 32px rgba(0, 102, 204, 0.3);

  /* Bordes */
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --border-radius-xl: 30px;

  /* Transiciones */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ===== RESET Y BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.7;
  color: var(--dark-gray);
  background-color: var(--white);
  overflow-x: hidden;
}

/* ===== LAYOUT CORPORATIVO ===== */
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
}

/* ===== UTILIDADES ===== */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.75);
}

.smooth-scroll {
  scroll-behavior: smooth;
}

/* ===== LOADING SCREEN ===== */
#loading-screen {
  background: var(--gradient-hero);
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.3em;
}

/* ===== NAVEGACIÓN CORPORATIVA ===== */
.glass-nav {
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: all var(--transition-normal);
  padding: 1rem 0;
  z-index: 1050;
}

.glass-nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 102, 204, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  padding: 0.7rem 0;
}

.navbar-brand {
  font-size: 1.4rem;
  font-weight: var(--font-weight-bold);
  color: var(--primary-dark) !important;
}

.navbar-brand img {
  height: 32px;
  transition: transform var(--transition-fast), filter var(--transition-fast);
  filter: invert(0) brightness(10);
}

.glass-nav.scrolled .navbar-brand img {
  filter: invert(1);
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.navbar-nav .nav-link {
  color: var(--white) !important;
  font-weight: var(--font-weight-medium);
  padding: 0.6rem 1.2rem !important;
  transition: all var(--transition-fast);
  position: relative;
  font-size: 0.95rem;
}

.glass-nav.scrolled .navbar-nav .nav-link {
  color: var(--dark-gray) !important;
}

.navbar-nav .nav-link.active {
  color: var(--white) !important;
}

.glass-nav.scrolled .navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
}

.navbar-nav .nav-link:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

.glass-nav.scrolled .navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--white);
  transition: all var(--transition-fast);
  transform: translateX(-50%);
}

.glass-nav.scrolled .navbar-nav .nav-link::after {
  background: var(--primary-color);
}

.navbar-nav .nav-link.active::after,
.navbar-nav .nav-link:hover::after {
  width: 70%;
}

/* Navbar Toggler Custom */
.navbar-toggler {
  border: none;
  padding: 0.5rem;
  position: relative;
  width: 40px;
  height: 40px;
  background: transparent;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

.navbar-toggler:hover {
  background: rgba(255, 255, 255, 0.1);
}

.glass-nav.scrolled .navbar-toggler:hover {
  background: rgba(0, 102, 204, 0.1);
}

.navbar-toggler-icon {
  display: block;
  position: relative;
  width: 24px;
  height: 18px;
  background: transparent;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after,
.navbar-toggler-icon span {
  content: '';
  display: block;
  position: absolute;
  width: 100%;
  height: 2.5px;
  background-color: var(--white);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
  top: 0;
}

.navbar-toggler-icon::after {
  bottom: 0;
}

.navbar-toggler-icon span {
  top: 50%;
  transform: translateY(-50%);
}

/* Color cuando el navbar hace scroll */
.glass-nav.scrolled .navbar-toggler-icon::before,
.glass-nav.scrolled .navbar-toggler-icon::after,
.glass-nav.scrolled .navbar-toggler-icon span {
  background-color: var(--dark-gray);
}

/* Animación al abrir */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
  transform: translateY(8px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
  transform: translateY(-8px) rotate(-45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon span {
  opacity: 0;
  transform: translateY(-50%) scale(0);
}

/* Navbar mobile menu */
@media (max-width: 991px) {
  .glass-nav .navbar-collapse {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.98) 100%);
    backdrop-filter: blur(15px);
    margin: 1.5rem -15px 0 -15px;
    padding: 1.5rem 0;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 40px rgba(0, 102, 204, 0.15);
    border-top: 2px solid rgba(0, 102, 204, 0.1);
  }

  .glass-nav .navbar-nav {
    padding: 0 1rem;
  }

  .glass-nav .navbar-nav .nav-item {
    margin-bottom: 0.25rem;
  }

  .glass-nav .navbar-nav .nav-link {
    color: var(--dark-gray) !important;
    padding: 1rem 1.25rem !important;
    border-radius: 12px;
    font-weight: 500;
    font-size: 1rem;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .glass-nav .navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: var(--gradient-primary);
    border-radius: 0 4px 4px 0;
    transition: height 0.3s ease;
  }

  .glass-nav .navbar-nav .nav-link:hover,
  .glass-nav .navbar-nav .nav-link.active {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.08) 0%, rgba(0, 212, 170, 0.08) 100%);
    color: var(--primary-color) !important;
    transform: translateX(8px);
  }

  .glass-nav .navbar-nav .nav-link:hover::before,
  .glass-nav .navbar-nav .nav-link.active::before {
    height: 60%;
  }

  .glass-nav .navbar-nav .nav-link::after {
    display: none;
  }
}

/* Overlay para menú móvil */
.navbar-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1045;
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.navbar-backdrop.show {
  display: block;
  opacity: 1;
}

/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  opacity: 1;
}

.hero-section h1,
.hero-section .lead,
.hero-section .btn {
  opacity: 1;
  transform: translateY(0);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-hero);
  z-index: -2;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(0, 212, 170, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(64, 224, 208, 0.1) 0%, transparent 50%);
  z-index: -1;
}

.hero-tech-grid {
  position: relative;
  height: 400px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2rem;
  align-items: center;
  justify-items: center;
  padding: 2rem;
}

.tech-item {
  font-size: 3rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.tech-item:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* ===== HERO IMAGE ===== */
.hero-image-container {
  height: 400px;
  width: 100%;
}

.hero-image {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

.scroll-indicator {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-arrow {
  width: 30px;
  height: 30px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg);
}

/* ===== BOTONES ===== */
.btn {
  border-radius: var(--border-radius-md);
  font-weight: var(--font-weight-semibold);
  text-transform: none;
  transition: all var(--transition-normal);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--gradient-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  filter: brightness(1.1);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
  background: transparent;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===== ESTADÍSTICAS ===== */
.stat-card {
  background: var(--white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid rgba(0, 102, 204, 0.1);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.stat-card h3 {
  font-size: 2.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== FEATURES ===== */
.feature-item {
  transition: all var(--transition-normal);
  padding: 1rem;
  border-radius: var(--border-radius-md);
}

.feature-item:hover {
  background: rgba(0, 102, 204, 0.05);
  transform: translateX(10px);
}

.feature-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

/* ===== TARJETAS DE SERVICIOS ===== */
.service-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 102, 204, 0.1);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: all var(--transition-normal);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow-md);
}

.service-card h4 {
  color: var(--dark-gray);
  margin-bottom: 1rem;
}

.service-card ul li {
  padding: 0.25rem 0;
  color: var(--gray);
}

.service-card ul li i {
  color: var(--primary-color);
}

/* ===== TARJETAS DE SOLUCIONES ===== */
.solution-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  border: 1px solid rgba(0, 212, 170, 0.2);
}

.solution-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.solution-header {
  background: var(--gradient-secondary);
  padding: 1.8rem;
  color: var(--white);
  text-align: center;
  position: relative;
}

.solution-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 20px;
  background: var(--white);
  border-radius: 20px 20px 0 0;
}

.solution-icon {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1rem;
  backdrop-filter: blur(10px);
}

.solution-content {
  padding: 1.8rem;
  padding-top: 1rem;
}

.feature-badge {
  background: rgba(0, 102, 204, 0.1);
  color: var(--primary-color);
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  text-align: center;
  border: 1px solid rgba(0, 102, 204, 0.2);
  transition: all var(--transition-normal);
}

.feature-badge:hover {
  background: rgba(0, 102, 204, 0.15);
  transform: translateY(-2px);
}

/* ===== CTA BOX ===== */
.cta-box {
  background: var(--white);
  border-radius: var(--border-radius-xl);
  padding: 3rem 2rem;
  box-shadow: var(--shadow-lg);
  border: 3px solid;
  border-image: var(--gradient-primary) 1;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 102, 204, 0.05), rgba(0, 212, 170, 0.05));
  z-index: -1;
}

/* ===== SECCIÓN DE CONTACTO ===== */
.contact-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-hero);
  z-index: -2;
}

.contact-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(0, 212, 170, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(64, 224, 208, 0.3) 0%, transparent 50%);
  z-index: -1;
}

.contact-form-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-glass);
}

.contact-form-container .form-control,
.contact-form-container .form-select {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius-md);
  padding: 0.75rem 1rem;
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-normal);
}

.contact-form-container .form-control:focus,
.contact-form-container .form-select:focus {
  background: var(--white);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.contact-form-container .form-label {
  color: var(--white);
  font-weight: var(--font-weight-semibold);
  margin-bottom: 0.5rem;
}

.contact-info-item {
  text-align: center;
  padding: 1.5rem;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--white);
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(135deg, #000000 0%, #001122 100%);
}

.social-links a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  font-size: 1.2rem;
}

.social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ===== BACK TO TOP ===== */
#backToTop {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border: none;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
}

#backToTop:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ===== ANIMACIONES AOS PERSONALIZADAS ===== */
[data-aos="fade-up"] {
  transform: translate3d(0, 40px, 0);
  opacity: 0;
}

[data-aos="fade-up"].aos-animate {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

[data-aos="fade-right"] {
  transform: translate3d(-40px, 0, 0);
  opacity: 0;
}

[data-aos="fade-right"].aos-animate {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

[data-aos="fade-left"] {
  transform: translate3d(40px, 0, 0);
  opacity: 0;
}

[data-aos="fade-left"].aos-animate {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

/* ===== RESPONSIVE ===== */

/* Laptops HD (1366x768) y resoluciones similares */
@media (max-width: 1400px) and (max-height: 900px) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }

  .hero-section h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
  }

  .hero-section .lead {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .container {
    padding: 0 20px;
  }

  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .hero-tech-grid {
    height: 300px;
    gap: 1.5rem;
  }

  .tech-item {
    font-size: 2.5rem;
  }

  .glass-nav {
    padding: 0.7rem 0;
  }

  .glass-nav.scrolled {
    padding: 0.4rem 0;
  }

  .display-5 {
    font-size: 2.2rem;
  }

  .cta-box {
    padding: 2.5rem 1.8rem;
  }

  .contact-form-container {
    padding: 2rem;
  }

  .navbar-brand {
    font-size: 1.4rem;
  }

  .btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
  }

  .hero-image-container {
    height: 300px;
  }

  .hero-image {
    max-width: 90%;
  }
}

/* Media query para tablets y pantallas medianas */
@media (max-width: 991px) {
  .hero-image-container {
    display: none !important;
  }

  .hero-mobile-cta {
    display: flex !important;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 1.5rem;
    opacity: 0.7;
  }

  .scroll-hint {
    color: #ffffff;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 300;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .scroll-arrow-mobile {
    color: #00d4aa;
    font-size: 1.2rem;
    animation: bounceDown 2s infinite;
  }
}

@media (max-width: 768px) {
  .hero-section {
    text-align: center;
    padding-top: 80px;
    /* Compensar navbar fixed */
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-illustration {
    height: 300px;
    margin-top: 2rem;
  }

  .floating-icon {
    font-size: 1.5rem;
  }

  .service-card {
    padding: 2rem 1.5rem;
  }

  .solution-header,
  .solution-content {
    padding: 1.5rem;
  }

  .contact-form-container {
    padding: 2rem 1.5rem;
  }

  .cta-box {
    padding: 2rem 1.5rem;
  }

  .stat-card h3 {
    font-size: 2rem;
  }

  .hero-image-container {
    display: none !important;
  }

  .hero-mobile-cta {
    display: flex !important;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 2rem;
    opacity: 0.7;
  }

  .scroll-hint {
    color: #ffffff;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 300;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .scroll-arrow-mobile {
    color: #00d4aa;
    font-size: 1.2rem;
    animation: bounceDown 2s infinite;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding-top: 90px;
    /* Más padding para móviles pequeños */
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .display-5 {
    font-size: 2rem;
  }

  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .service-card {
    padding: 1.5rem 1rem;
  }

  .contact-form-container {
    padding: 1.5rem 1rem;
  }

  .floating-icon {
    font-size: 1.2rem;
  }

  .hero-image-container {
    display: none !important;
  }

  .hero-mobile-cta {
    display: flex !important;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 1.5rem;
    opacity: 0.7;
  }
}

@media (max-width: 425px) {

  /* Feature badges en 2x2 para pantallas pequeñas */
  .solution-content .row>[class*="col-"] {
    width: 50% !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }

  .feature-badge {
    font-size: 0.65rem;
    padding: 0.4rem 0.3rem;
    line-height: 1.3;
  }

  .feature-badge i {
    font-size: 0.9rem;
    margin-right: 0 !important;
    display: block;
    margin-bottom: 0.3rem;
  }

  .feature-badge br {
    display: none;
  }
}

/* ===== SCROLL SUAVE Y EFECTOS PARALLAX ===== */
@media (prefers-reduced-motion: no-preference) {
  .parallax-element {
    transform: translateZ(0);
    will-change: transform;
  }
}

/* ===== MEJORAS DE ACCESIBILIDAD ===== */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== FOCUS STYLES ===== */
.btn:focus,
.form-control:focus,
.form-select:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ===== HOVER EFFECTS ADICIONALES ===== */
.nav-link,
.btn,
.service-card,
.solution-card {
  will-change: transform;
}

/* ===== ANIMACIÓN DE CARGA ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ========================================
   DISEÑO CORPORATIVO MODERNO
   Inspirado en consultoras tech globales
   ======================================== */

/* HERO CORPORATIVO */
.hero-corporate {
  min-height: 100vh;
  padding: 140px 0 100px;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.03) 0%, rgba(0, 212, 170, 0.02) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-corporate::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(0, 102, 204, 0.05) 100%);
  z-index: 0;
}

.hero-corporate .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 700px;
}

.hero-label {
  display: inline-block;
  color: #f8f9faa6 !important;
  font-weight: var(--font-weight-semibold);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1.2rem;
  background: rgba(0, 102, 204, 0.3);
  border-radius: 50px;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: var(--font-weight-bold);
  color: white;
  /*var(--primary-dark);*/
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--light-gray);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: left;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: var(--font-weight-medium);
}

.hero-visual {
  position: relative;
}

.hero-image {
  width: 100%;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

/* Scroll Hint */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: max-content;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  text-align: center;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 10;
  animation: fadeInUp 1s ease-out 0.8s both;
  pointer-events: none;
}

.scroll-hint i {
  color: var(--secondary-color);
  font-size: 1.2rem;
  animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(8px);
  }
  60% {
    transform: translateY(4px);
  }
}

/* SECCIÓN DE SERVICIOS */
.services-section {
  padding: 80px 0;
  background: var(--light-gray);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-label {
  color: var(--primary-color);
  font-weight: var(--font-weight-semibold);
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: var(--font-weight-bold);
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.1rem;
  color: var(--gray);
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card-modern {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all var(--transition-normal);
  position: relative;
}

.service-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.service-card-modern:hover {
  box-shadow: 0 10px 40px rgba(0, 102, 204, 0.12);
  transform: translateY(-5px);
  border-color: rgba(0, 102, 204, 0.15);
}

.service-card-modern:hover::before {
  opacity: 1;
}

.service-icon-modern {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  margin-right: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2);
  vertical-align: middle;
  position: relative;
  top: -2px;
}

.service-card-modern h4 {
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.service-card-modern p {
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 0;
}

/* SECCIÓN DE CASOS DE ÉXITO */
.cases-section {
  padding: 80px 0;
  background: var(--light-gray);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.case-card {
  background: var(--white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.case-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-8px);
}

.case-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-color) 100%);
}

.case-content {
  padding: 2rem;
}

.case-tag {
  display: inline-block;
  background: rgba(0, 102, 204, 0.08);
  color: var(--primary-color);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 1rem;
}

.case-card h5 {
  font-size: 1.3rem;
  font-weight: var(--font-weight-bold);
  color: var(--primary-dark);
  margin-bottom: 0.8rem;
}

.case-card p {
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 0;
}

/* CTA SECTION */
.cta-section {
  padding: 80px 0;
  background: var(--primary-dark);
  color: var(--white);
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: var(--font-weight-bold);
  margin-bottom: 1.5rem;
}

.cta-section p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

/* CONTACTO */
.contact-section {
  padding: 80px 0;
  background: var(--white);
}

.contact-form-wrapper {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-control,
.form-select {
  padding: 0.9rem 1.2rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.12);
  transition: all var(--transition-fast);
  font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-label {
  font-weight: var(--font-weight-medium);
  color: var(--dark-gray);
  margin-bottom: 0.6rem;
}

/* BOTONES */
.btn {
  padding: 0.9rem 2rem;
  font-weight: var(--font-weight-semibold);
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-normal);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
  transform: translateY(-2px);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-light {
  background: var(--white);
  color: var(--primary-dark);
}

.btn-light:hover {
  background: var(--light-gray);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

/* FOOTER */
footer {
  background: #001a33;
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 1.5rem;
}

footer h6 {
  color: var(--white);
  font-weight: var(--font-weight-bold);
  margin-bottom: 1rem;
}

footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-fast);
  font-size: 0.95rem;
}

footer a:hover {
  color: var(--secondary-color);
}

footer .social-links a {
  font-size: 1.3rem;
  margin-right: 1rem;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets y pantallas medianas (768px - 991px) */
@media (max-width: 991px) {
  .hero-corporate {
    padding: 100px 0 60px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-stats {
    gap: 2rem;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .stat-item {
    flex: 1 1 30%;
    min-width: 150px;
  }

  .services-grid,
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .contact-form-wrapper {
    padding: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .cta-section h2 {
    font-size: 2rem;
  }

  /* Service pages */
  .service-hero {
    padding: 120px 0 60px;
  }

  .service-hero h1 {
    font-size: 2.5rem;
  }

  .service-hero .col-lg-6:last-child {
    display: none;
  }

  .service-icon-modern {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
    margin-right: 0.6rem;
  }

  .tech-stack .tech-item,
  .tech-expertise-card,
  .managed-card {
    margin-bottom: 1rem;
  }

  .tech-stack .row > [class*="col-"] {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Móviles (< 768px) */
@media (max-width: 767px) {
  /* Typography */
  .hero-title {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-description {
    font-size: 0.95rem;
  }

  /* Hero section */
  .hero-corporate {
    padding: 120px 0 80px;
    min-height: 100vh;
    justify-content: center;
  }

  .hero-corporate .container {
    width: 100%;
    padding: 0 1.5rem;
  }

  .hero-content {
    text-align: center;
    max-width: 100%;
    padding: 0;
  }

  .hero-label {
    margin-bottom: 1.25rem;
    font-size: 0.65rem;
    padding: 0.4rem 0.8rem;
    line-height: 1.4;
  }

  .hero-title {
    font-size: 1.85rem;
    line-height: 1.25;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2rem;
  }

  .scroll-hint {
    bottom: 1rem;
  }

  .stat-item {
    width: 100%;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.9rem;
  }

  /* Buttons */
  .hero-content .d-flex,
  .cta-content .d-flex,
  .service-hero .d-flex {
    flex-direction: column;
    gap: 1rem !important;
  }

  .btn-lg {
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }

  /* Grid layouts */
  .services-grid,
  .cases-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Cards */
  .service-card-modern,
  .case-card,
  .feature-card {
    margin-bottom: 1rem;
  }

  /* Sections */
  .services-section,
  .cases-section,
  .cta-section,
  .contact-section {
    padding: 50px 0;
  }

  /* CTA Section */
  .cta-section h2 {
    font-size: 1.75rem;
  }

  .cta-section p {
    font-size: 1rem;
  }

  /* Footer */
  footer .row > div {
    margin-bottom: 2rem;
  }

  footer .social-links {
    justify-content: center;
  }

  /* Contact info icons */
  .contact-section .service-icon-modern {
    margin-left: 0;
    margin-right: 0;
  }

  /* Navigation */
  .glass-nav {
    padding: 0.5rem 0;
  }

  .navbar-brand img {
    height: 35px;
  }

  .navbar-nav {
    text-align: center;
    padding: 1rem 0;
  }

  .navbar-nav .nav-item {
    margin: 0.5rem 0;
  }

  /* Service pages */
  .service-hero {
    padding: 100px 0 50px;
  }

  .service-hero .col-lg-6 {
    text-align: center;
  }

  .service-hero h1 {
    font-size: 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }

  .service-hero .lead {
    font-size: 1rem;
  }

  .service-icon-modern {
    width: 42px;
    height: 42px;
    font-size: 1rem;
    margin-right: 0.5rem;
    margin-bottom: 0;
    top: -2px;
  }

  .breadcrumb-custom {
    font-size: 0.8rem;
    text-align: center;
  }

  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .process-step h5 {
    font-size: 1rem;
  }

  .tier-card,
  .tech-item {
    margin-bottom: 1rem;
  }

  .tech-stack .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .tech-item h6 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .tech-item p {
    font-size: 0.85rem;
  }

  .metric-stat h1,
  .roi-stat h1 {
    font-size: 2.5rem !important;
  }

  /* Back to top button */
  #backToTop {
    width: 45px !important;
    height: 45px !important;
    margin: 1rem !important;
  }

  /* Video background */
  .hero-corporate video {
    height: 100%;
    object-fit: cover;
  }
}

/* Móviles pequeños (< 480px) */
@media (max-width: 479px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .hero-label {
    font-size: 0.55rem;
    padding: 0.4rem 0.8rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .service-card-modern h4,
  .case-card h5 {
    font-size: 1.1rem;
  }

  .cta-section h2 {
    font-size: 1.5rem;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
  }

  .service-icon-modern {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
    margin-right: 0.4rem;
  }
}

/* Landscape móviles */
@media (max-height: 600px) and (orientation: landscape) {
  .hero-corporate {
    min-height: auto !important;
    padding: 80px 0 40px;
  }

  .hero-stats {
    margin-top: 1rem;
  }
}

/* Tablets en landscape */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .hero-corporate {
    padding: 100px 0 60px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .scroll-hint {
    bottom: 1.5rem;
  }
}

/* ===== ANIMATIONS ===== */
.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ===== EFECTOS DE GLASSMORPHISM ===== */
.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-glass);
}

/* ===== BARBA.JS TRANSITIONS ===== */
/* Fade transition */
.barba-transition-fade {
  transition: opacity 0.4s ease-in-out;
}

.barba-transition-fade.barba-leave-active {
  opacity: 0;
}

.barba-transition-fade.barba-enter {
  opacity: 0;
}

.barba-transition-fade.barba-enter-active {
  opacity: 1;
}

/* Service pages specific styles */
.service-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.service-hero img {
  max-height: 500px;
  object-fit: cover;
  width: 100%;
}

.breadcrumb-custom {
  font-size: 0.9rem;
  color: var(--gray);
}

.breadcrumb-custom a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-fast);
}

.breadcrumb-custom a:hover {
  color: var(--primary-dark);
}

.breadcrumb-custom span {
  color: var(--dark-gray);
  font-weight: 500;
}

.service-features {
  background: var(--white);
}

.feature-card {
  padding: 2rem;
  background: var(--white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  height: 100%;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.tech-stack .tech-item {
  transition: var(--transition-normal);
}

.tech-stack .tech-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.process-step {
  position: relative;
  padding: 1.5rem;
}

.process-number {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--white);
  margin: 0 auto 1rem;
}

.use-case-card {
  transition: var(--transition-normal);
}

.use-case-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.benefit-item {
  transition: var(--transition-normal);
}

.benefit-item:hover {
  transform: translateX(5px);
}

.roi-stat, .metric-stat {
  padding: 2rem 1rem;
}

/* Support tiers */
.tier-card {
  transition: var(--transition-normal);
}

.tier-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.managed-card {
  transition: var(--transition-normal);
}

.managed-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--primary-color);
}

/* Page loading animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.barba-enter-active {
  animation: fadeIn 0.4s ease-in-out;
}
