/* ==========================================================================
   TELEC CONSULTING - DESIGN SYSTEM & STYLESHEET (LIGHT CORPORATE THEME)
   Consultoría Tecnológica & Desarrollo de Software
   ========================================================================== */

:root {
  /* Color Palette - Elegant Light Theme */
  --bg-main: #ffffff;
  --bg-alt: #f8fafc;
  --bg-subtle: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;

  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --primary-light: #eef2ff;
  --primary-glow: rgba(79, 70, 229, 0.15);

  --secondary: #0284c7;
  --secondary-light: #e0f2fe;

  --accent: #7c3aed;
  --emerald: #059669;
  --emerald-light: #ecfdf5;

  --text-title: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;

  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-focus: #818cf8;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #2563eb 0%, #4f46e5 50%, #7c3aed 100%);
  --grad-accent: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  --grad-subtle: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);

  /* Typography */
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout & Spacing */
  --container-max: 1240px;
  --nav-height: 80px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-hover: 0 20px 35px -10px rgba(79, 70, 229, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.04);
  --shadow-float: 0 15px 30px rgba(15, 23, 42, 0.1);

  /* Transitions */
  --trans-fast: 0.18s ease;
  --trans-smooth: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: light;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background-color: var(--bg-main);
  color: var(--text-body);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Subtle atmosphere on light theme */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(37, 99, 235, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(79, 70, 229, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(124, 58, 237, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.015) 1px, transparent 1px);
  pointer-events: none;
  z-index: -1;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-title);
  letter-spacing: -0.025em;
}

p {
  color: var(--text-body);
}

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

img, svg {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

/* Utility Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.text-gradient-cyan {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Badges & Chips */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  border: 1px solid rgba(79, 70, 229, 0.2);
  color: var(--primary-dark);
}

.badge-emerald {
  background: var(--emerald-light);
  border-color: rgba(5, 150, 105, 0.25);
  color: #065f46;
}

.dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px rgba(5, 150, 105, 0.6);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--trans-smooth);
  border: none;
  outline: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: 0.5s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.5);
  color: #ffffff;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-outline {
  background: #ffffff;
  color: var(--text-title);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  background: var(--bg-alt);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
}

/* Top Announcement Bar */
.top-bar {
  background: #eef2ff;
  border-bottom: 1px solid #e0e7ff;
  padding: 0.55rem 1rem;
  text-align: center;
  font-size: 0.825rem;
  color: #3730a3;
  font-weight: 500;
  line-height: 1.45;
  word-break: normal;
}

.top-bar strong {
  color: #1e40af;
  font-weight: 700;
}

.top-bar a {
  text-decoration: underline;
  margin-left: 0.5rem;
  color: #1d4ed8;
  font-weight: 600;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--trans-smooth);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: var(--border-medium);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex-wrap: nowrap;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 48px;
  flex-shrink: 0;
}

.brand-logo img {
  height: 42px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-body);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-primary);
  transition: var(--trans-fast);
  border-radius: var(--radius-full);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* IMPORTANT FIX: Hide mobile drawer completely on desktop! */
.mobile-drawer {
  display: none !important;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #0f172a;
}

.mobile-toggle svg {
  stroke: #0f172a;
  display: block;
}

/* Section Common Header */
.section-padding {
  padding: 6.5rem 0;
}

.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 4rem auto;
}

.section-head .badge {
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.85rem);
  margin-bottom: 1.25rem;
  font-weight: 800;
  color: var(--text-title);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* HERO SECTION */
.hero-section {
  position: relative;
  padding: 5.5rem 0 6rem 0;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

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

.hero-title {
  font-size: clamp(1.85rem, 4.2vw, 3.85rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 1.25rem 0 1.5rem 0;
  letter-spacing: -0.035em;
  color: var(--text-title);
  word-wrap: break-word;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.25rem;
  max-width: 600px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.stat-item h3 {
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--text-title);
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.stat-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.25rem;
}

/* Hero Showcase Visual */
.hero-visual {
  position: relative;
}

.hero-mockup-card {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  position: relative;
}

.mockup-header {
  background: #f8fafc;
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #f87171; }
.dot-yellow { background: #fbbf24; }
.dot-green { background: #34d399; }

.mockup-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.mockup-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.mockup-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #ffffff;
}

.mockup-panel {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.panel-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-title);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.panel-tag {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-family: var(--font-mono);
  font-weight: 600;
}

.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  font-size: 0.8125rem;
}

.metric-row:last-child {
  border-bottom: none;
}

.metric-label {
  color: var(--text-muted);
}

.metric-value {
  color: var(--text-title);
  font-family: var(--font-mono);
  font-weight: 600;
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  margin-top: 0.5rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
}

.fill-indigo {
  background: var(--grad-primary);
  width: 94%;
}

.fill-cyan {
  background: var(--grad-accent);
  width: 98.4%;
}

/* Floating Widget */
.floating-widget {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-float);
  border-radius: var(--radius-md);
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  animation: floatSlow 4s ease-in-out infinite;
}

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

.floating-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-text h5 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-title);
}

.floating-text p {
  font-size: 0.75rem;
  color: #059669;
  font-weight: 600;
}

/* LOGO / CLIENT TICKER */
.partners-section {
  padding: 2.75rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-alt);
}

.partners-title {
  text-align: center;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.tech-ticker {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.tech-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-body);
  padding: 0.5rem 1.15rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  transition: var(--trans-fast);
}

.tech-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.12);
}

.tech-pill svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

/* SERVICES SECTION */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  transition: all var(--trans-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity var(--trans-smooth);
}

.service-card:hover {
  border-color: rgba(79, 70, 229, 0.3);
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

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

.service-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  border: 1px solid rgba(79, 70, 229, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
  transition: var(--trans-fast);
}

.service-card:hover .service-icon-box {
  background: var(--grad-primary);
  color: #ffffff;
  transform: scale(1.05);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--text-title);
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-features {
  margin-bottom: 1.75rem;
}

.service-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--text-body);
  margin-bottom: 0.625rem;
}

.service-feature-item svg {
  width: 16px;
  height: 16px;
  color: var(--emerald);
  flex-shrink: 0;
  margin-top: 3px;
}

.service-stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

.stack-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-alt);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

/* Secondary Consulting Banner */
.consulting-banner {
  margin-top: 2.5rem;
  background: linear-gradient(135deg, #eef2ff 0%, #f0fdf4 100%);
  border: 1px solid #c7d2fe;
  border-radius: var(--radius-xl);
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: var(--shadow-card);
}

.consulting-content h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-title);
}

.consulting-content p {
  color: var(--text-body);
  max-width: 650px;
}

/* INTERACTIVE DEEP DIVE TABS */
.deepdive-section {
  background: var(--bg-alt);
  position: relative;
}

.tab-nav-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.tab-nav {
  display: inline-flex;
  background: #e2e8f0;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 0.375rem;
  gap: 0.375rem;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--trans-smooth);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tab-btn.active {
  background: #ffffff;
  color: var(--text-title);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  font-weight: 700;
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.tab-card-left h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-title);
}

.tab-card-left p {
  font-size: 1.05rem;
  color: var(--text-body);
  margin-bottom: 2rem;
}

.tab-spec-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.spec-item {
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  padding: 1rem;
  border-radius: var(--radius-md);
}

.spec-title {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-title);
  margin-bottom: 0.25rem;
}

.spec-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.tab-card-right {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  font-family: var(--font-mono);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

.code-body {
  font-size: 0.825rem;
  line-height: 1.6;
  color: #e2e8f0;
}

.code-keyword { color: #f43f5e; }
.code-fn { color: #38bdf8; }
.code-string { color: #86efac; }
.code-comment { color: #64748b; font-style: italic; }
.code-num { color: #fbbf24; }

/* METHODOLOGY SECTION */
.methodology-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.method-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: var(--trans-smooth);
}

.method-card:hover {
  border-color: rgba(79, 70, 229, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.method-step {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 800;
  color: #cbd5e1;
  line-height: 1;
  margin-bottom: 1rem;
  transition: color var(--trans-fast);
}

.method-card:hover .method-step {
  color: var(--primary);
}

.method-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--text-title);
}

.method-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* WHY US SECTION */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.why-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-card);
  transition: var(--trans-smooth);
}

.why-card:hover {
  border-color: rgba(2, 132, 199, 0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.why-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.why-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-title);
}

.why-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* TESTIMONIALS / CASE STUDIES */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.case-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--trans-smooth);
}

.case-card:hover {
  border-color: rgba(79, 70, 229, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.case-quote {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 1.75rem;
  position: relative;
  font-style: normal;
}

.case-client {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

.client-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #ffffff;
}

.client-info h5 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-title);
}

.client-info span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.case-metrics-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

/* FAQ SECTION */
.faq-container {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--trans-fast);
}

.faq-item.active {
  border-color: #818cf8;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.08);
}

.faq-question {
  width: 100%;
  padding: 1.35rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-title);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--primary);
  transition: transform var(--trans-smooth);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--trans-smooth);
}

.faq-answer-inner {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* CONTACT SECTION */
.contact-section {
  position: relative;
  background: var(--bg-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
}

.contact-info-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  box-shadow: var(--shadow-card);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.contact-info-card h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-title);
}

.contact-info-card p {
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  font-size: 1.05rem;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.channel-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.channel-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-light);
  border: 1px solid rgba(79, 70, 229, 0.2);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-text span {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.channel-text a, .channel-text h5 {
  font-size: 1.05rem;
  color: var(--text-title);
  font-weight: 700;
  margin-top: 2px;
}

.channel-text a:hover {
  color: var(--primary);
}

.guarantee-box {
  margin-top: auto;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.guarantee-box svg {
  color: #059669;
  flex-shrink: 0;
}

.guarantee-box p {
  margin: 0;
  font-size: 0.85rem;
  color: #065f46;
  font-weight: 500;
}

/* Contact Form */
.contact-form-wrapper {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  box-shadow: var(--shadow-card);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-title);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-title);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  transition: all var(--trans-fast);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.form-group select option {
  background: #ffffff;
  color: var(--text-title);
}

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

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.checkbox-group input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
}

.checkbox-group a {
  color: var(--primary);
  text-decoration: underline;
}

.form-feedback {
  display: none;
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.form-feedback.success {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.form-feedback.error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

/* FOOTER */
.footer {
  background: #f8fafc;
  border-top: 1px solid var(--border-light);
  padding: 5rem 0 2rem 0;
  color: var(--text-muted);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 320px;
  color: var(--text-muted);
}

.footer-col h5 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: var(--text-muted);
}

.footer-bottom-links a:hover {
  color: var(--primary);
}

/* MODAL SYSTEM (Legal, Privacidad, Cookies) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.open {
  display: flex;
}

.modal-content {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.2);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-title);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans-fast);
  font-size: 1.2rem;
}

.modal-close:hover {
  background: #e2e8f0;
}

.modal-body h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-title);
}

.modal-body p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--text-body);
}

.modal-body h4 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem 0;
  color: var(--text-title);
}

/* Back to Top Floating Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--trans-smooth);
  box-shadow: var(--shadow-float);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-3px);
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .methodology-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cases-grid {
    grid-template-columns: 1fr;
  }
  
  .tab-card {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 960px) {
  :root {
    --nav-height: 70px;
  }

  .nav-links, .nav-actions .btn {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .floating-widget {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
  }

  .mobile-drawer {
    display: none !important;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border-medium);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(20px);
    padding: 1.5rem 2rem;
    flex-direction: column;
    gap: 1.25rem;
    z-index: 999;
  }

  .mobile-drawer.open {
    display: flex !important;
  }

  .mobile-drawer .nav-link {
    font-size: 1.1rem;
    padding: 0.5rem 0;
    color: var(--text-title);
    border-bottom: 1px solid var(--border-light);
  }

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

  .consulting-banner {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }

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

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

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

  .form-group.full-width {
    grid-column: span 1;
  }

  .tab-spec-list {
    grid-template-columns: 1fr;
  }

  .tab-nav {
    flex-direction: column;
    border-radius: var(--radius-lg);
    width: 100%;
  }

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

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
