/* ============================================
   ORGANIZACIÓN SUSTENTABLE CABERON S.A. DE C.V.
   Landing Page - Modern Corporate Theme
   Colores basados en el logo: Verde, Teal, Turquesa
   ============================================ */

/* CSS Property for animated border */
@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* CSS Variables */
:root {
  /* Primary Colors - Teal/Esmeralda */
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #14b8a6;
  --primary-rgb: 13, 148, 136;

  /* Secondary Colors - Cyan/Turquesa */
  --secondary: #06b6d4;
  --secondary-dark: #0891b2;
  --secondary-light: #22d3ee;
  --secondary-rgb: 6, 182, 212;

  /* Accent Colors - Mint/Verde Menta */
  --accent: #6ee7b7;
  --accent-light: #a7f3d0;
  --accent-dark: #34d399;
  --accent-rgb: 110, 231, 183;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Functional */
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;

  /* Gradients */
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--secondary) 100%
  );
  --gradient-accent: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--primary-light) 100%
  );
  --gradient-subtle: linear-gradient(
    135deg,
    var(--gray-50) 0%,
    var(--white) 100%
  );

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-primary: 0 10px 40px -10px rgba(var(--primary-rgb), 0.4);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Typography */
  --font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;

  /* Spacing */
  --container-width: 1200px;
  --section-padding: 100px;
}

/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--white);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-primary), 0 0 20px rgba(var(--primary-rgb), 0.3);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 50%,
    transparent 100%
  );
  opacity: 0;
  transition: var(--transition);
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px -10px rgba(var(--primary-rgb), 0.5),
    0 0 30px rgba(var(--primary-rgb), 0.4),
    0 0 60px rgba(var(--secondary-rgb), 0.2);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

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

.btn-ghost {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  border-color: transparent;
}

.btn-ghost:hover {
  background: rgba(var(--primary-rgb), 0.15);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.header.scrolled .navbar {
  padding: 12px 0;
}

.logo {
  display: flex;
  align-items: center;
  margin-left: 20px;
  overflow: visible;
}

.logo img {
  height: 110px;
  width: auto;
  transition: height 0.2s ease;
  margin: -22px 0;
}

.header.scrolled .logo img {
  height: 90px;
  margin: -18px 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.08);
}

.nav-link.active {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.1);
}

.btn-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--gradient-primary);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-primary);
  transition: var(--transition);
}

.btn-header svg {
  width: 16px;
  height: 16px;
  transition: var(--transition);
}

.btn-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(var(--primary-rgb), 0.5);
}

.btn-header:hover svg {
  transform: translateX(3px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  transition: var(--transition);
  border-radius: 2px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background: var(--gradient-subtle);
  overflow: hidden;
}

.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

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

.shape-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(var(--accent-rgb), 0.3) 0%,
    transparent 70%
  );
  top: -200px;
  right: -200px;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(var(--secondary-rgb), 0.2) 0%,
    transparent 70%
  );
  bottom: -100px;
  left: -100px;
}

.shape-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(var(--primary-rgb), 0.15) 0%,
    transparent 70%
  );
  top: 40%;
  left: 30%;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  max-width: 600px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.hero-tag svg {
  width: 16px;
  height: 16px;
  fill: var(--primary);
  stroke: none;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card-stack {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 400px;
}

.hero-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  transition: var(--transition);
}

.hero-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-2xl);
}

.hero-card .card-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
}

.hero-card .card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--white);
}

.hero-card span {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
}

.hero-card-1 {
  top: 0;
  left: 0;
  animation: float 6s ease-in-out infinite;
}

.hero-card-2 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: float 6s ease-in-out infinite 1s;
}

.hero-card-3 {
  bottom: 0;
  right: 0;
  animation: float 6s ease-in-out infinite 2s;
}

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

.hero-card-2:hover {
  transform: translate(-50%, calc(-50% - 5px));
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 60px;
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  margin-top: 80px;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-number::after {
  content: "+";
}

.stat-label {
  font-size: 14px;
  color: var(--gray-500);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: var(--gray-200);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.section-tag::before {
  content: "";
  width: 40px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-tag {
  justify-content: center;
}

.section-header .section-tag::after {
  content: "";
  width: 40px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  padding: var(--section-padding) 0;
  background: var(--white);
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-content {
  max-width: 550px;
}

.about-lead {
  font-size: 1.125rem;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-lead strong {
  color: var(--primary);
}

.about-text {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 32px;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.highlight-item:hover {
  background: rgba(var(--primary-rgb), 0.05);
  transform: translateX(8px);
}

.highlight-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
}

.highlight-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--white);
}

.highlight-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 4px;
}

.highlight-text p {
  font-size: 14px;
  color: var(--gray-500);
}

/* About Visual */
.about-visual {
  position: relative;
  overflow: visible;
}

@media (max-width: 768px) {
  .about-visual {
    overflow: hidden;
  }
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

.about-image-wrapper img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 165px;
  height: 165px;
  background: var(--gradient-primary);
  border-radius: 50%;
  box-shadow: var(--shadow-xl);
  padding: 18px;
}

.badge-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}

.badge-text {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  line-height: 1.3;
}

.about-floating-card {
  position: absolute;
  top: 50%;
  right: -40px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.floating-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-rgb), 0.2);
  border-radius: var(--radius-md);
}

.floating-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
}

.floating-content {
  display: flex;
  flex-direction: column;
}

.floating-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-800);
}

.floating-subtitle {
  font-size: 13px;
  color: var(--gray-500);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
  padding: var(--section-padding) 0;
  background: var(--gray-50);
  overflow: hidden;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  position: relative;
  padding: 40px 32px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  border: 1px solid transparent;
}

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

.service-card.featured {
  background: var(--gradient-primary);
}

.service-card.featured .service-icon,
.service-card.featured h3,
.service-card.featured p,
.service-card.featured .service-link {
  color: var(--white);
}

.service-card.featured .service-icon {
  background: rgba(255, 255, 255, 0.2);
}

.service-card.featured .service-icon svg {
  stroke: var(--white);
}

.featured-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.service-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

.service-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--primary);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 24px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.service-link svg {
  width: 16px;
  height: 16px;
  transition: var(--transition);
}

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

/* ============================================
   SOLUTIONS SECTION
   ============================================ */
.solutions {
  padding: var(--section-padding) 0;
  background: var(--gray-900);
  overflow: hidden;
}

.solutions .section-tag {
  color: var(--accent);
}

.solutions .section-tag::before,
.solutions .section-tag::after {
  background: var(--gradient-accent);
}

.solutions .section-title {
  color: var(--white);
}

.solutions .section-subtitle {
  color: var(--gray-400);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Solution Card Wrapper for animated border */
.solution-card-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 2px;
  background: transparent;
  transition: var(--transition);
}

.solution-card-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 2px;
  background: conic-gradient(
    from var(--border-angle, 0deg),
    var(--primary),
    var(--secondary),
    var(--accent),
    var(--primary-light),
    var(--secondary-light),
    var(--accent-dark),
    var(--primary)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  animation: rotateBorder 3s linear infinite;
  transition: opacity 0.4s ease;
}

.solution-card-wrapper:hover::before {
  opacity: 1;
}

.solution-card-wrapper:hover {
  transform: translateY(-8px);
}

@keyframes rotateBorder {
  0% {
    --border-angle: 0deg;
  }
  100% {
    --border-angle: 360deg;
  }
}

/* Fallback animation for browsers that don't support @property */
@supports not (
  background: conic-gradient(from var(--border-angle, 0deg), red, blue)
) {
  .solution-card-wrapper::before {
    background: linear-gradient(
      90deg,
      var(--primary),
      var(--secondary),
      var(--accent),
      var(--primary-light),
      var(--secondary-light),
      var(--accent-dark),
      var(--primary)
    );
    background-size: 300% 100%;
    animation: gradientMove 3s linear infinite;
  }

  @keyframes gradientMove {
    0% {
      background-position: 0% 50%;
    }
    100% {
      background-position: 300% 50%;
    }
  }
}

.solution-card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border-radius: calc(var(--radius-xl) - 2px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.solution-card-wrapper {
  height: 100%;
}

.solution-card-wrapper:hover .solution-card {
  border-color: transparent;
}

.solution-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

.solution-card:hover .solution-image img {
  transform: scale(1.1);
}

.solution-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(var(--primary-rgb), 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

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

.solution-btn {
  padding: 12px 28px;
  background: var(--white);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-lg);
  transform: translateY(20px);
  transition: var(--transition);
}

.solution-card:hover .solution-btn {
  transform: translateY(0);
}

.solution-content {
  padding: 24px;
}

.solution-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(var(--accent-rgb), 0.2);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.solution-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.solution-content p {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.6;
}

/* ============================================
   PROCESS SECTION
   ============================================ */
.process {
  padding: var(--section-padding) 0;
  background: var(--white);
  overflow: hidden;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
}

.process-step {
  position: relative;
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 24px;
  box-shadow: var(--shadow-primary);
}

.step-content {
  padding: 30px 24px;
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  transition: var(--transition);
}

.process-step:hover .step-content {
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.step-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: var(--radius-lg);
  margin: 0 auto 20px;
}

.step-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary);
}

.step-content h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 12px;
}

.step-content p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
}

.step-connector {
  position: absolute;
  top: 30px;
  right: -15px;
  width: 30px;
  height: 2px;
  background: var(--gray-200);
}

.step-connector::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--gray-200);
}

.process-step:last-child .step-connector {
  display: none;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
  padding: 80px 0;
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.cta-text {
  max-width: 600px;
}

.cta-tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
}

.cta h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 16px;
}

.cta h2 .text-gradient {
  background: linear-gradient(
    135deg,
    var(--accent-light) 0%,
    var(--accent) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
}

.cta-actions {
  display: flex;
  gap: 16px;
}

.cta .btn-primary {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.cta .btn-primary:hover {
  box-shadow: var(--shadow-2xl);
}

.cta .btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
  padding: var(--section-padding) 0;
  background: var(--gray-50);
  overflow: hidden;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-description {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 40px;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.contact-method:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.method-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: var(--radius-md);
}

.method-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
}

.method-content h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 4px;
}

.method-content span,
.method-content a {
  font-size: 14px;
  color: var(--gray-500);
  display: block;
}

.method-content a:hover {
  color: var(--primary);
}

/* Contact Map */
.contact-map {
  margin-top: 24px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.contact-map iframe {
  display: block;
  width: 100%;
  min-height: 200px;
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: 48px;
  box-shadow: var(--shadow-xl);
}

.form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 32px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 18px;
  font-family: var(--font-family);
  font-size: 15px;
  color: var(--gray-800);
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 48px;
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding-top: 80px;
  overflow: hidden;
}

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

.footer-logo {
  height: 150px;
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

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

.social-link svg {
  width: 20px;
  height: 20px;
  fill: var(--gray-400);
  stroke: var(--gray-400);
}

.social-link:hover svg {
  fill: var(--white);
  stroke: var(--white);
}

.footer-links h4,
.footer-contact h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links a {
  font-size: 14px;
  color: var(--gray-400);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 8px;
}

.footer-contact p {
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.6;
}

.footer-contact strong {
  color: var(--gray-300);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
}

.footer-bottom p {
  font-size: 14px;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 14px;
  color: var(--gray-400);
}

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

/* ============================================
   NOTIFICATION
   ============================================ */
.notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 18px 28px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2xl);
  transform: translateY(150%);
  opacity: 0;
  transition: var(--transition);
  z-index: 9999;
}

.notification.show {
  transform: translateY(0);
  opacity: 1;
}

.notification.success {
  border-left: 4px solid var(--success);
}

.notification.error {
  border-left: 4px solid var(--error);
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.notification-icon {
  width: 24px;
  height: 24px;
  display: none;
}

.notification.success .notification-icon.success {
  display: block;
  stroke: var(--success);
}

.notification.error .notification-icon.error {
  display: block;
  stroke: var(--error);
}

.notification-message {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-700);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
  .hero-content {
    gap: 40px;
  }

  .hero-card-stack {
    max-width: 350px;
    height: 350px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .step-connector {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .footer-contact {
    grid-column: span 3;
  }

  /* Botón header responsivo */
  .btn-header {
    padding: 10px 20px;
    font-size: 13px;
  }
}

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-tag {
    justify-content: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 30px;
    padding: 30px 40px;
  }

  .stat-divider {
    display: none;
  }

  .stat-item {
    flex: 1 1 40%;
    text-align: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about-content {
    max-width: 100%;
    order: 2;
    text-align: center;
  }

  .about-content .section-tag {
    justify-content: center;
  }

  .about-visual {
    order: 1;
  }

  .about-floating-card {
    right: 20px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    text-align: center;
  }

  .contact-info .section-tag {
    justify-content: center;
  }

  .cta-content {
    flex-direction: column;
    text-align: center;
  }

  .cta-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Botón header más pequeño en tablets */
  .btn-header {
    padding: 8px 16px;
    font-size: 12px;
  }

  .btn-header svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }

  /* Fix global para evitar overflow */
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  section {
    width: 100%;
    max-width: 100vw;
  }

  /* Container móvil */
  .container {
    padding: 0 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Navbar móvil */
  .logo {
    margin-left: 0;
  }

  .logo img {
    height: 75px;
    margin: -12px 0;
  }

  .header.scrolled .logo img {
    height: 65px;
    margin: -10px 0;
  }

  .navbar {
    padding: 12px 0;
  }

  .nav-menu,
  .btn-header {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--gray-200);
  }

  .nav-menu.active .nav-link {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    text-align: center;
    /* Force dark text when menu is open - fixes white text on white bg */
    color: var(--gray-700) !important;
  }

  .nav-menu.active .nav-link:hover {
    color: var(--primary) !important;
    background: rgba(var(--primary-rgb), 0.08);
  }

  .nav-menu.active .nav-link.active {
    color: var(--primary) !important;
    background: rgba(var(--primary-rgb), 0.1);
  }

  /* Hero móvil */
  .hero {
    padding: 100px 0 60px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-title {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: auto;
    max-width: 100%;
    padding: 12px 28px;
    font-size: 14px;
  }

  .btn-lg {
    padding: 14px 28px;
    font-size: 15px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
    padding: 24px 20px;
    margin-top: 40px;
  }

  .stat-item {
    width: 100%;
    text-align: center;
  }

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

  /* Secciones móvil */
  .section-tag {
    justify-content: center;
    font-size: 11px;
    letter-spacing: 1.5px;
  }

  .section-tag::before {
    width: 25px;
    height: 2px;
  }

  .section-header .section-tag::after {
    width: 25px;
    height: 2px;
  }

  .section-title {
    font-size: 1.5rem;
    text-align: center;
  }

  .section-subtitle {
    font-size: 1rem;
    text-align: center;
  }

  /* About móvil */
  .about-content {
    text-align: center;
  }

  .about-content .section-tag {
    justify-content: center;
  }

  .about-content .section-tag::before {
    width: 25px;
    height: 2px;
  }

  .about-content .section-tag::after {
    content: "";
    width: 25px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
  }

  .highlight-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .about-image-wrapper img {
    height: 280px;
  }

  .about-badge {
    width: 90px;
    height: 90px;
    left: 50%;
    transform: translateX(-50%);
    bottom: -15px;
  }

  .about-floating-card {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    margin-top: 20px;
    justify-content: center;
  }

  /* Services móvil */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    text-align: center;
    padding: 28px 20px;
  }

  .service-icon {
    margin: 0 auto 20px;
  }

  /* Solutions móvil */
  .solutions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .solution-content {
    text-align: center;
  }

  /* Process móvil */
  .process-steps {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .process-step {
    text-align: center;
  }

  /* CTA móvil */
  .cta h2 {
    font-size: 1.4rem;
  }

  .cta p {
    font-size: 0.95rem;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 12px;
  }

  .cta-actions .btn {
    width: auto;
    max-width: 280px;
  }

  /* Contact móvil */
  .contact-info {
    text-align: center;
  }

  .contact-info .section-tag {
    justify-content: center;
  }

  .contact-info .section-tag::before {
    width: 25px;
    height: 2px;
  }

  .contact-info .section-tag::after {
    content: "";
    width: 25px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
  }

  .contact-methods {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-method {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 20px 16px;
  }

  .contact-form-wrapper {
    padding: 24px 16px;
  }

  .form-title {
    text-align: center;
    font-size: 1.25rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-map {
    margin-top: 20px;
  }

  .contact-map iframe {
    min-height: 180px;
  }

  /* Footer móvil */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

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

  .footer-logo {
    margin: 0 auto 20px;
    height: 100px;
  }

  .footer-contact {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  /* Fix global */
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  .container {
    padding: 0 12px;
  }

  .hero {
    padding: 90px 0 50px;
  }

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

  .hero-description {
    font-size: 0.95rem;
  }

  .hero-buttons .btn {
    padding: 10px 20px;
    font-size: 13px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .section-subtitle {
    font-size: 0.85rem;
  }

  .btn {
    padding: 10px 18px;
    font-size: 13px;
  }

  .btn-lg {
    padding: 12px 20px;
    font-size: 14px;
  }

  .logo img {
    height: 65px;
    margin: -10px 0;
  }

  .header.scrolled .logo img {
    height: 55px;
    margin: -8px 0;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 11px;
  }

  .hero-stats {
    padding: 20px 16px;
    gap: 16px;
    margin-top: 30px;
  }

  .service-card {
    padding: 20px 14px;
  }

  .service-card h3 {
    font-size: 1.1rem;
  }

  .service-card p {
    font-size: 14px;
  }

  .service-icon {
    width: 56px;
    height: 56px;
  }

  .service-icon svg {
    width: 26px;
    height: 26px;
  }

  .about-badge {
    width: 80px;
    height: 80px;
  }

  .badge-number {
    font-size: 1.25rem;
  }

  .badge-text {
    font-size: 9px;
  }

  /* Contact Section - Mobile S Fix */
  .contact {
    padding: 50px 0;
  }

  .contact-grid {
    gap: 30px;
  }

  .contact-description {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }

  .contact-methods {
    gap: 12px;
  }

  .contact-method {
    padding: 16px 12px;
  }

  .method-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .method-icon svg {
    width: 18px;
    height: 18px;
  }

  .method-content h4 {
    font-size: 13px;
  }

  .method-content span,
  .method-content a {
    font-size: 12px;
    word-break: break-word;
  }

  .contact-form-wrapper {
    padding: 20px 14px;
  }

  .form-title {
    font-size: 1.1rem;
    margin-bottom: 20px;
  }

  .contact-form {
    gap: 16px;
  }

  .form-group label {
    font-size: 13px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 12px 14px;
    font-size: 14px;
  }

  .form-group textarea {
    min-height: 100px;
  }

  .contact-form .btn {
    padding: 14px 24px;
    font-size: 14px;
  }

  .contact-map iframe {
    min-height: 150px;
  }

  .notification {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 12px 14px;
  }

  .notification-message {
    font-size: 13px;
  }

  /* CTA Section - Mobile S */
  .cta {
    padding: 40px 0;
  }

  .cta h2 {
    font-size: 1.1rem;
  }

  .cta p {
    font-size: 0.85rem;
  }

  .cta-actions .btn {
    padding: 10px 20px;
    font-size: 13px;
    max-width: 240px;
  }

  /* Solutions - Mobile S */
  .solution-image {
    height: 160px;
  }

  .solution-content {
    padding: 16px;
  }

  .solution-content h3 {
    font-size: 1rem;
  }

  .solution-content p {
    font-size: 13px;
  }

  /* Process - Mobile S */
  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1rem;
    margin-bottom: 16px;
  }

  .step-content {
    padding: 20px 16px;
  }

  .step-icon {
    width: 50px;
    height: 50px;
  }

  .step-icon svg {
    width: 24px;
    height: 24px;
  }

  .step-content h4 {
    font-size: 1rem;
  }

  .step-content p {
    font-size: 13px;
  }

  /* Footer - Mobile S */
  .footer {
    padding-top: 40px;
  }

  .footer-grid {
    gap: 30px;
  }

  .footer-logo {
    height: 70px;
  }

  .footer-brand p {
    font-size: 13px;
  }

  .footer-links h4,
  .footer-contact h4 {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .footer-links a,
  .footer-contact p {
    font-size: 13px;
  }

  .footer-bottom {
    padding: 20px 0;
  }

  .footer-bottom p {
    font-size: 12px;
  }

  .footer-legal a {
    font-size: 12px;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Loading Animation */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.loading {
  background: linear-gradient(
    90deg,
    var(--gray-200) 25%,
    var(--gray-100) 50%,
    var(--gray-200) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* ============================================
   TECH EFFECTS - PROFESSIONAL TECHNOLOGY LOOK
   ============================================ */

/* Tech Grid Pattern for Hero */
.hero-tech-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hero-tech-grid::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(var(--primary-rgb), 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(var(--primary-rgb), 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridPulse 4s ease-in-out infinite;
}

.hero-tech-grid::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(var(--primary-rgb), 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(var(--secondary-rgb), 0.06) 0%,
      transparent 50%
    );
}

@keyframes gridPulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* Glowing Service Cards (permanent glow) */
.service-card {
  position: relative;
  padding: 40px 32px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card), 0 0 20px rgba(var(--primary-rgb), 0.08),
    0 0 40px rgba(var(--secondary-rgb), 0.04);
  transition: var(--transition);
  border: 1px solid rgba(var(--primary-rgb), 0.08);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-xl);
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.15),
    rgba(var(--secondary-rgb), 0.1),
    rgba(var(--accent-rgb), 0.05)
  );
  z-index: -1;
  opacity: 0.5;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(var(--primary-rgb), 0.15),
    0 0 60px rgba(var(--secondary-rgb), 0.08);
  border-color: rgba(var(--primary-rgb), 0.2);
}

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

/* Glassmorphism for Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 60px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-2xl);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.5);
  margin-top: 80px;
  position: relative;
  z-index: 1;
}

/* Glassmorphism for Hero Cards */
.hero-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12),
    0 0 20px rgba(var(--primary-rgb), 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.hero-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15),
    0 0 30px rgba(var(--primary-rgb), 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Neon Glow Buttons - Styles merged into main buttons section */

/* Glowing Stat Numbers */
.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.3),
    0 0 20px rgba(var(--primary-rgb), 0.2),
    0 0 30px rgba(var(--primary-rgb), 0.1);
  animation: numberGlow 3s ease-in-out infinite;
}

@keyframes numberGlow {
  0%,
  100% {
    text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.3),
      0 0 20px rgba(var(--primary-rgb), 0.2),
      0 0 30px rgba(var(--primary-rgb), 0.1);
  }
  50% {
    text-shadow: 0 0 15px rgba(var(--primary-rgb), 0.5),
      0 0 30px rgba(var(--primary-rgb), 0.3),
      0 0 45px rgba(var(--primary-rgb), 0.2);
  }
}

/* Subtle Pulse Animation for Icons */
.service-icon,
.step-icon,
.highlight-icon,
.method-icon {
  animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(var(--primary-rgb), 0.1);
  }
}

/* Enhanced Service Icon Glow */
.service-icon {
  position: relative;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.15);
}

.service-icon::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.3),
    rgba(var(--secondary-rgb), 0.2),
    transparent
  );
  opacity: 0.5;
  z-index: -1;
}

/* Tech Line Decorations */
.section-header::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  margin: 20px auto 0;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.5);
}

/* Glowing Border for Contact Form */
.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: 48px;
  box-shadow: var(--shadow-xl), 0 0 30px rgba(var(--primary-rgb), 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.1);
  position: relative;
}

.contact-form-wrapper::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-2xl);
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.2),
    rgba(var(--secondary-rgb), 0.1),
    rgba(var(--accent-rgb), 0.05),
    transparent
  );
  z-index: -1;
  opacity: 0.3;
}

/* Enhanced Floating Card */
.about-floating-card {
  position: absolute;
  top: 50%;
  right: -40px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12),
    0 0 20px rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* Tech Header Effect */
.btn-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--gradient-primary);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-primary), 0 0 15px rgba(var(--primary-rgb), 0.3);
  transition: var(--transition);
}

.btn-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(var(--primary-rgb), 0.5),
    0 0 25px rgba(var(--primary-rgb), 0.4);
}

/* Process Step Enhanced Glow */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 24px;
  box-shadow: var(--shadow-primary), 0 0 20px rgba(var(--primary-rgb), 0.4);
}

/* Solution Card Enhanced */
.solution-card-wrapper:hover .solution-card {
  box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.2),
    0 0 60px rgba(var(--secondary-rgb), 0.1);
}

/* CTA Section Tech Effect */
.cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 10% 20%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(255, 255, 255, 0.08) 0%,
      transparent 40%
    );
  pointer-events: none;
}

/* Footer Tech Glow */
.social-link {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  transition: var(--transition);
  box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.1);
}

.social-link:hover {
  background: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(var(--primary-rgb), 0.4),
    0 0 30px rgba(var(--primary-rgb), 0.3);
}

/* ============================================
   CONTACT METHOD - LOCATION FULL WIDTH
   ============================================ */
.contact-method.location-full {
  grid-column: 1 / -1;
}

/* ============================================
   HERO WITH BACKGROUND IMAGE & PARALLAX
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background: transparent;
  overflow: hidden;
}

/* Hero Background Image */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  z-index: -2;
  will-change: transform;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Hero Dark Overlay for text readability */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.85) 0%,
    rgba(15, 23, 42, 0.7) 50%,
    rgba(13, 148, 136, 0.4) 100%
  );
  z-index: -1;
}

/* Hero Text Colors with Background */
.hero-title {
  color: var(--white);
}

.hero-description {
  color: rgba(255, 255, 255, 0.85);
}

.hero-tag {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-tag svg {
  fill: var(--accent);
}

/* Hero Outline Button on dark background */
.hero .btn-outline {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero .btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

/* Transparent Navbar */
.header:not(.scrolled) .nav-link {
  color: rgba(255, 255, 255, 0.9);
}

.header:not(.scrolled) .nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.header:not(.scrolled) .nav-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
}

.header:not(.scrolled) .hamburger span {
  background: var(--white);
}

/* Hero Shapes adjustment for dark background */
.hero .shape-1 {
  background: radial-gradient(
    circle,
    rgba(var(--accent-rgb), 0.2) 0%,
    transparent 70%
  );
}

.hero .shape-2 {
  background: radial-gradient(
    circle,
    rgba(var(--secondary-rgb), 0.15) 0%,
    transparent 70%
  );
}

.hero .shape-3 {
  background: radial-gradient(
    circle,
    rgba(var(--primary-rgb), 0.1) 0%,
    transparent 70%
  );
}

/* Hero Stats on dark background */
.hero-stats {
  background: rgba(255, 255, 255, 0.95);
}

/* Hero Cards on dark background - keep glassmorphism */
.hero-card {
  background: rgba(255, 255, 255, 0.95);
}

/* Tech Grid on dark background */
.hero-tech-grid::before {
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.hero-tech-grid::after {
  background: radial-gradient(
      circle at 20% 30%,
      rgba(var(--accent-rgb), 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(var(--secondary-rgb), 0.08) 0%,
      transparent 50%
    );
}

/* Solutions Grid Auto-height fix - solo para desktop */
@media (min-width: 769px) {
  .solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: stretch;
  }
}

@media (min-width: 769px) and (max-width: 1200px) {
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.solution-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.solution-content p {
  flex-grow: 1;
}

/* ============================================
   EXTRA SMALL MOBILE (320px) - MOBILE S
   ============================================ */
@media (max-width: 360px) {
  .container {
    padding: 0 10px;
  }

  .hero {
    padding: 80px 0 40px;
  }

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

  .hero-description {
    font-size: 0.9rem;
  }

  .hero-tag {
    font-size: 11px;
    padding: 6px 12px;
  }

  .hero-buttons .btn {
    padding: 10px 16px;
    font-size: 12px;
    gap: 6px;
  }

  .hero-stats {
    padding: 16px 12px;
    gap: 12px;
    margin-top: 24px;
  }

  .stat-number {
    font-size: 1.3rem;
  }

  .stat-label {
    font-size: 10px;
  }

  .section-header {
    margin-bottom: 30px;
  }

  .section-tag {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .section-tag::before,
  .section-header .section-tag::after {
    width: 20px;
  }

  .section-title {
    font-size: 1.15rem;
  }

  .section-subtitle {
    font-size: 0.8rem;
  }

  .logo img {
    height: 55px;
    margin: -8px 0;
  }

  .header.scrolled .logo img {
    height: 48px;
    margin: -6px 0;
  }

  /* Contact Section - Extra Small */
  .contact {
    padding: 40px 0;
  }

  .contact-description {
    font-size: 0.9rem;
  }

  .contact-method {
    padding: 14px 10px;
  }

  .method-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }

  .method-icon svg {
    width: 16px;
    height: 16px;
  }

  .method-content h4 {
    font-size: 12px;
  }

  .method-content span,
  .method-content a {
    font-size: 11px;
  }

  .contact-form-wrapper {
    padding: 16px 12px;
  }

  .form-title {
    font-size: 1rem;
  }

  .form-group label {
    font-size: 12px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px 12px;
    font-size: 13px;
  }

  .contact-form .btn {
    padding: 12px 20px;
    font-size: 13px;
  }

  /* Services - Extra Small */
  .service-card {
    padding: 18px 12px;
  }

  .service-icon {
    width: 50px;
    height: 50px;
  }

  .service-icon svg {
    width: 24px;
    height: 24px;
  }

  .service-card h3 {
    font-size: 1rem;
  }

  .service-card p {
    font-size: 13px;
  }

  /* Solutions - Extra Small */
  .solution-image {
    height: 140px;
  }

  .solution-content {
    padding: 14px;
  }

  .solution-tag {
    font-size: 10px;
    padding: 3px 10px;
  }

  .solution-content h3 {
    font-size: 0.95rem;
  }

  .solution-content p {
    font-size: 12px;
  }

  /* Process - Extra Small */
  .step-number {
    width: 45px;
    height: 45px;
    font-size: 0.9rem;
  }

  .step-content {
    padding: 16px 12px;
  }

  .step-icon {
    width: 45px;
    height: 45px;
  }

  .step-content h4 {
    font-size: 0.95rem;
  }

  .step-content p {
    font-size: 12px;
  }

  /* CTA - Extra Small */
  .cta {
    padding: 35px 0;
  }

  .cta h2 {
    font-size: 1rem;
  }

  .cta p {
    font-size: 0.8rem;
  }

  .cta-actions .btn {
    padding: 10px 16px;
    font-size: 12px;
    max-width: 200px;
  }

  /* About - Extra Small */
  .about-lead {
    font-size: 1rem;
  }

  .about-text {
    font-size: 0.9rem;
  }

  .highlight-item {
    padding: 16px;
  }

  .highlight-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .highlight-icon svg {
    width: 20px;
    height: 20px;
  }

  .highlight-text h4 {
    font-size: 0.95rem;
  }

  .highlight-text p {
    font-size: 13px;
  }

  .about-image-wrapper img {
    height: 220px;
  }

  .about-badge {
    width: 70px;
    height: 70px;
  }

  .badge-number {
    font-size: 1.1rem;
  }

  .badge-text {
    font-size: 8px;
  }

  /* Footer - Extra Small */
  .footer {
    padding-top: 35px;
  }

  .footer-logo {
    height: 60px;
  }

  .footer-brand p {
    font-size: 12px;
  }

  .footer-links h4,
  .footer-contact h4 {
    font-size: 12px;
  }

  .footer-links a,
  .footer-contact p {
    font-size: 12px;
  }

  .footer-bottom p,
  .footer-legal a {
    font-size: 11px;
  }

  /* Notification - Extra Small */
  .notification {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 10px 12px;
  }

  .notification-message {
    font-size: 12px;
  }
}
