@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800;900&family=Geist:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* ── Core Color Tokens (Brand Manual v4.0 - Light Premium) ── */
  --color-bg: #FFFFFF;
  --color-bg-white: #FFFFFF;
  --color-bg-alt: #F4F5F7;
  --color-text-primary: #111827;
  --color-text-secondary: #4B5563;
  --color-text-tertiary: #9CA3AF;
  
  --color-border-default: #E5E7EB;
  --color-border-strong: #9CA3AF;
  --color-border: #E5E7EB; /* compatibility with existing classes */
  
  /* Brand Accent & Colors */
  --color-brand-purple: #7B4FFF;
  --color-brand-cian: #00BFFF;
  --color-brand-purple-tint: rgba(123, 79, 255, 0.1);
  --color-brand-cian-tint: rgba(0, 191, 255, 0.1);
  --color-brand-gradient: linear-gradient(135deg, #00BFFF 0%, #7B4FFF 100%);
  
  --color-accent: #7B4FFF;
  --color-accent-hover: #6030F0;
  --color-accent-light: rgba(123, 79, 255, 0.06);
  --color-accent-light-hover: rgba(123, 79, 255, 0.12);
  
  /* Neutral scale */
  --color-neutral-50: #F9FAF8;
  --color-neutral-100: #F3F4F6;
  --color-neutral-200: #E5E7EB;
  --color-neutral-300: #D1D5DB;
  --color-neutral-700: #374151;
  --color-neutral-900: #111827;

  /* Typography */
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Figtree', var(--font-sans);
  
  /* Layout & Spacing */
  --container-max-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-soft: 0 4px 30px rgba(0, 0, 0, 0.02), 0 2px 10px rgba(0, 0, 0, 0.01);
  --shadow-hover: 0 20px 40px rgba(123, 79, 255, 0.08), 0 4px 20px rgba(0, 191, 255, 0.04);
  --shadow-cta: 0 10px 25px -5px rgba(123, 79, 255, 0.3), 0 8px 20px -6px rgba(123, 79, 255, 0.2);
}

/* ── Reset & General ── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Typography Scale ── */
h1, h2 {
  font-family: var(--font-display);
  color: var(--color-text-primary);
  line-height: 1.15;
}

h3, h4 {
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  line-height: 1.25;
}

h1 {
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.5rem); /* 32px to 40px */
  letter-spacing: -0.03em;
}

h2 {
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 1.875rem); /* 25px to 30px */
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

h3 {
  font-weight: 600;
  font-size: 1.25rem; /* 20px */
  letter-spacing: -0.02em;
}

h4 {
  font-weight: 500;
  font-size: 1rem; /* 16px */
  letter-spacing: -0.03em;
}

p {
  color: var(--color-text-secondary);
  font-size: 1rem; /* 16px */
  line-height: 1.65;
  letter-spacing: -0.005em;
}

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

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

/* ── Layout Elements ── */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 7.5rem 0; /* 120px padding */
  position: relative;
}

.section.alt {
  background-color: var(--color-bg-alt);
}

.section.white {
  background-color: var(--color-bg-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-header {
  max-width: 640px;
  margin-bottom: 4rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: var(--color-brand-purple-tint);
  color: var(--color-brand-purple);
  border: 1px solid rgba(123, 79, 255, 0.15);
  margin-bottom: 1rem;
}

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

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  align-items: center;
}

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

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

/* ── UI Components ── */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  gap: 0.5rem;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-bg-white) !important;
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  color: var(--color-bg-white) !important;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--color-bg-white);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background-color: var(--color-bg-alt);
  border-color: var(--color-text-primary);
}

.btn-text {
  background: transparent;
  color: var(--color-accent);
  padding: 0.5rem 0;
  font-weight: 600;
  gap: 0.25rem;
  transition: gap var(--transition-fast);
}

.btn-text:hover {
  color: var(--color-accent-hover);
  gap: 0.5rem;
}

.btn-text svg {
  transition: transform var(--transition-fast);
}
.btn-text:hover svg {
  transform: translateX(2px);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background-color: var(--color-accent-light);
  color: var(--color-accent);
  border: 1px solid rgba(99, 102, 241, 0.15);
  text-transform: uppercase;
}

/* Cards */
.card, .value-card, .problem-card, .team-card {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-normal);
}

.card:hover, .value-card:hover, .problem-card:hover, .team-card:hover {
  transform: translateY(-4px);
  border-color: rgba(123, 79, 255, 0.3);
  box-shadow: var(--shadow-hover);
}

.card-hover-purple:hover {
  border-color: var(--color-brand-purple) !important;
  box-shadow: 0 20px 40px rgba(123, 79, 255, 0.12), 0 1px 3px rgba(123, 79, 255, 0.05) !important;
}

.card-hover-cian:hover {
  border-color: var(--color-brand-cian) !important;
  box-shadow: 0 20px 40px rgba(0, 191, 255, 0.12), 0 1px 3px rgba(0, 191, 255, 0.05) !important;
}

.gradient-border-card {
  position: relative;
  border: 1.5px solid transparent !important;
  border-radius: 12px !important;
  background: #ffffff padding-box,
              linear-gradient(135deg, #00BFFF 0%, #7B4FFF 100%) border-box !important;
  transition: all var(--transition-normal);
}

.gradient-border-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(123, 79, 255, 0.15) !important;
  background: #ffffff padding-box,
              linear-gradient(135deg, #00BFFF 0%, #7B4FFF 100%) border-box !important;
}

/* ── Header / Navbar ── */
.navbar {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: var(--container-max-width);
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border-default);
  border-radius: 9999px;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-normal);
  padding: 0 2rem;
  height: 68px;
}

.navbar.scrolled {
  padding: 0 2rem;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  height: 100%;
}

.navbar-brand img {
  height: 72px !important;
  width: auto !important;
  position: relative;
  z-index: 10;
}

.navbar-brand .dot {
  width: 7px;
  height: 7px;
  background-color: var(--color-brand-purple);
  border-radius: 50%;
  display: inline-block;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  transition: all var(--transition-fast);
}

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

.nav-links a.active,
.nav-links a.current-page {
  background-color: transparent;
  color: var(--color-brand-purple) !important;
  font-weight: 700;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.navbar-actions .btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  border-radius: 9999px;
}

.mobile-only-btn {
  display: none !important;
}

@media (max-width: 1100px) {
  .navbar-actions a.mobile-only-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.85rem !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    border-radius: var(--radius-md) !important;
    text-decoration: none !important;
    transition: opacity var(--transition-fast) !important;
    margin-right: 0.5rem;
  }
  .navbar-actions a.mobile-only-btn:hover {
    opacity: 0.9 !important;
  }
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-primary);
  padding: 0.25rem;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}
.mobile-menu-btn:hover {
  opacity: 0.7;
}
.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
  display: block;
}

.mobile-only-lang {
  display: none !important;
}

/* ── Lang Switcher Style ── */
.lang-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.5rem;
  border-left: 1px solid var(--color-border);
  padding-left: 1rem;
}

.lang-flag {
  font-size: 1.15rem;
  opacity: 0.45;
  transition: opacity var(--transition-fast);
  cursor: pointer;
  user-select: none;
}

.lang-flag.active {
  opacity: 1;
}

.lang-toggle {
  position: relative;
  width: 36px;
  height: 20px;
  background-color: var(--color-neutral-200);
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.lang-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background-color: var(--color-bg-white);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: transform var(--transition-fast);
}

body.lang-en .lang-toggle::after {
  transform: translateX(16px);
}

body.lang-en .lang-toggle {
  background-color: var(--color-accent);
}

/* Bilingual content hide/show */
[data-lang="en"] {
  display: none;
}
body.lang-en [data-lang="es"] {
  display: none;
}
body.lang-en [data-lang="en"] {
  display: inline;
}
body.lang-en p[data-lang="en"],
body.lang-en h1[data-lang="en"],
body.lang-en h2[data-lang="en"],
body.lang-en h3[data-lang="en"],
body.lang-en h4[data-lang="en"],
body.lang-en div[data-lang="en"],
body.lang-en li[data-lang="en"] {
  display: block;
}
body.lang-en span[data-lang="en"] {
  display: inline;
}

/* ── Hero Section ── */
.hero {
  position: relative;
  padding-top: 8rem;
  padding-bottom: 5rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--color-bg);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 3.5rem;
  align-items: center;
  width: 100%;
  z-index: 5;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 10;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem); /* up to 68px */
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.125rem; /* 18px (Text-L) */
  color: var(--color-text-secondary);
  line-height: 1.6;
  letter-spacing: -0.015em;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

/* Cover Layout variant (for index.html & ar-home.html) */
@media (min-width: 992px) {
  .hero-cover-layout {
    padding: 0;
  }
  
  .hero-cover-layout .hero-inner {
    grid-template-columns: 45% 55%;
    height: 100vh;
    max-width: 100%;
    padding-left: 8%;
    padding-right: 0;
    gap: 0;
  }
  
  .hero-cover-layout .hero-content {
    padding-right: 2rem;
  }

  .hero-cover-layout .hero-visual {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100vh;
    display: block;
    padding: 0;
    z-index: 1;
  }
  
  .hero-cover-layout .hero-visual .mockup-container,
  .hero-cover-layout .hero-visual img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    object-fit: cover !important;
    object-position: 70% 38% !important;
  }

  .hero-cover-layout .hero-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 140px;
    height: 100%;
    background: linear-gradient(to right, var(--color-bg) 0%, rgba(255, 255, 255, 0.8) 30%, rgba(255, 255, 255, 0) 100%);
    z-index: 2;
  }
}

/* Default card styling for the hero team image on tablet/medium screen if cover is not used */
.hero-team-img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: 0 20px 50px -15px rgba(0,0,0,0.06);
}

/* Mobile full-bleed for the Cover Layout Hero */
@media (max-width: 991px) {
  .hero-cover-layout .hero-inner {
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
  }
  .hero-cover-layout .hero-content {
    position: relative;
    z-index: 3;
  }
  .hero-cover-layout .hero-visual {
    width: 100vw;
    position: relative;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: -6.5rem; /* Overlap button with photo */
    margin-bottom: -5rem; /* Bleeds exactly to the bottom boundary of the hero padding */
  }
  .hero-cover-layout .hero-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 220px; /* 4x button height smooth gradient */
    background: linear-gradient(to bottom, var(--color-bg) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 2;
    pointer-events: none;
  }
  .hero-cover-layout .hero-visual .mockup-container {
    max-width: none;
    width: 100%;
  }
  .hero-cover-layout .hero-visual img {
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
    height: 500px !important;
    object-fit: cover !important;
    object-position: center 10% !important; /* Keep heads clear under gradient and button */
    display: block;
  }
}

/* ── UI Mockups / Visuals in Hero ── */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mockup-container {
  width: 100%;
  max-width: 440px;
  position: relative;
}

/* WhatsApp Message Mockup */
.mockup-phone {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: 0 20px 50px -15px rgba(0,0,0,0.06);
  position: relative;
}

.phone-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1rem;
}

.phone-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: var(--color-bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
}

.phone-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.phone-status {
  font-size: 0.7rem;
  color: var(--color-accent);
  display: block;
}

.chat-bubble {
  background: var(--color-bg-alt);
  padding: 1rem;
  border-radius: 4px var(--radius-md) var(--radius-md) var(--radius-md);
  max-width: 88%;
  font-size: 0.88rem;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.chat-bubble.out {
  background-color: var(--color-accent-light);
  border-radius: var(--radius-md) 4px var(--radius-md) var(--radius-md);
  margin-left: auto;
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.chat-time {
  font-size: 0.65rem;
  color: var(--color-text-secondary);
  text-align: right;
  margin-top: 0.35rem;
  display: block;
}

/* Interactive flow simulation card */
.mockup-flow {
  position: absolute;
  bottom: -2.5rem;
  right: -1.5rem;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: 0 15px 35px -10px rgba(0,0,0,0.08);
  width: 250px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8rem;
}

.flow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

.flow-dot.done {
  background-color: #10B981;
}

.flow-text {
  font-weight: 500;
  color: var(--color-text-primary);
}

.flow-desc {
  font-size: 0.72rem;
  color: var(--color-text-secondary);
}

/* ── Problem Section ── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.problem-card {
  padding: 2.5rem;
}

.problem-card h3 {
  margin-bottom: 1rem;
  color: var(--color-text-primary);
}

.problem-quote {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  border-left: 2px solid var(--color-border);
  padding-left: 1rem;
  margin-top: 1.25rem;
}

.problem-author {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-top: 0.5rem;
  display: block;
}

/* ── Table & Compare style ── */
.compare-table-wrapper {
  overflow-x: auto;
  margin-top: 3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.01);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background-color: var(--color-bg-white);
}

.compare-table th, 
.compare-table td {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.compare-table th {
  background-color: var(--color-bg-alt);
  font-weight: 600;
  color: var(--color-text-primary);
  font-family: var(--font-display);
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table td:first-child,
.compare-table th:first-child {
  font-weight: 500;
  color: var(--color-text-primary);
}

.compare-table td:nth-child(2) {
  color: var(--color-text-secondary);
}

.compare-table td:nth-child(3) {
  font-weight: 500;
}

.compare-check {
  color: #10B981;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.compare-cross {
  color: var(--color-text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Split Compare Block for UX Lives (Hoy vs Con Axel) */
.split-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background-color: var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.split-side {
  background-color: var(--color-bg-white);
  padding: 3rem;
}

.split-side.bad {
  background-color: #FAF5F5; /* subtle warm red */
}

.split-side.good {
  background-color: #F7FAF9; /* subtle mint green */
}

.split-side h3 {
  margin-bottom: 2rem;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.split-side.bad h3 {
  color: #DC2626;
}

.split-side.good h3 {
  color: #059669;
}

.split-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.split-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.split-item-icon {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.split-side.bad .split-item-icon {
  color: #EF4444;
}

.split-side.good .split-item-icon {
  color: #10B981;
}

.split-item-content {
  color: var(--color-neutral-700);
}

.split-side.good .split-item-content {
  color: var(--color-text-primary);
  font-weight: 500;
}

/* ── Mision, Vision, Valores ── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.value-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: default;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(123, 79, 255, 0.1);
  border-color: rgba(123, 79, 255, 0.25);
}

.value-num {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-brand-purple);
  background-color: var(--color-brand-purple-tint);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.value-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-primary);
}

.value-card p {
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ── Team Grid ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.team-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(123, 79, 255, 0.12) !important;
  border-color: rgba(123, 79, 255, 0.25) !important;
}

.team-member-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.team-member-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(123, 79, 255, 0.13) !important;
  border-color: rgba(123, 79, 255, 0.28) !important;
}



.team-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text-primary);
}

.team-role {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
  display: block;
}

.team-bio {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ── Implementations / Sectors Roster ── */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.sector-card {
  padding: 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-white);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: border-color var(--transition-fast);
}

.sector-card:hover {
  border-color: var(--color-accent);
}

.sector-header-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.sector-icon {
  font-size: 1.5rem;
}

.sector-card h3 {
  font-size: 1.35rem;
  margin: 0;
}

.sector-card p {
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

/* ── Pricing Styles ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 992px) {
  .pricing-grid-2cols {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
  }
}


.pricing-card {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
}

.pricing-card.popular {
  border-color: var(--color-accent);
  box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.12);
}

.pricing-card.popular .popular-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background-color: var(--color-accent-light);
  color: var(--color-accent);
  padding: 0.25rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 9999px;
  text-transform: uppercase;
}

.pricing-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--color-text-primary);
  margin: 1.5rem 0;
  display: flex;
  align-items: baseline;
}

.pricing-price span {
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--color-text-secondary);
  font-weight: 400;
  margin-left: 0.25rem;
}

.pricing-desc {
  font-size: 0.92rem;
  margin-bottom: 2rem;
  color: var(--color-text-secondary);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.pricing-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-primary);
}

.pricing-feature-item svg {
  color: var(--color-accent);
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.pricing-card .btn {
  width: 100%;
}

/* ── FAQ Acordeon Style ── */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 0.5rem 0;
}

.faq-question {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--color-text-primary);
  padding-right: 2rem;
}

.faq-icon {
  color: var(--color-text-secondary);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}

.faq-answer {
  padding-top: 1rem;
  padding-bottom: 0.5rem;
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--color-accent);
}

/* ── Testimonials ── */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 3rem;
}

.testimonial-quote {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--color-text-primary);
  margin-bottom: 2rem;
  position: relative;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-accent-light);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
}

.testimonial-author-name {
  font-weight: 600;
  color: var(--color-text-primary);
  font-size: 0.95rem;
}

.testimonial-author-role {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

/* ── CTA Final Panel ── */
.cta-banner {
  background-color: var(--color-neutral-900);
  color: var(--color-bg-white);
  border-radius: var(--radius-xl);
  padding: 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  color: var(--color-bg-white);
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  font-size: 1.1rem;
}

.cta-banner-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* ── Footer ── */
.footer {
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 5rem 0 3rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 30% 17% 17% 17% 19%;
  gap: 2rem;
  margin-bottom: 4rem;
}

.footer-brand-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.footer-slogan {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  max-width: 240px;
}

.footer-column h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  color: var(--color-text-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

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

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

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

/* ── Animations ── */
.fade-in-up {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Mobile / Tablet Responsive ── */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }
  
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }

  /* Mobile menu & navigation rules */
  .nav-links {
    display: none !important;
  }
  
  .nav-links.active {
    display: flex !important;
    flex-direction: column !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 100% !important;
    background: #FFFFFF !important;
    padding: 1.5rem !important;
    gap: 1rem !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
    z-index: 1000 !important;
  }

  .navbar-actions .btn {
    display: none !important;
  }
  
  .mobile-menu-btn {
    display: flex !important;
  }

  .navbar {
    padding: 0 1rem !important;
    height: 56px !important;
  }
  
  .navbar-brand {
    height: 100% !important;
  }

  .navbar-brand img {
    height: 60px !important;
  }

  .navbar-actions .lang-toggle-wrap {
    display: none !important;
  }

  .mobile-only-lang {
    display: flex !important;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 5rem 0;
  }
  .navbar-inner {
    gap: 1.5rem;
  }
  .footer {
    padding-top: 2rem !important;
  }
  #contacto {
    padding-bottom: 2.5rem !important;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  #especializacion .grid-2 {
    display: flex;
    flex-direction: column-reverse;
  }
  
  .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .problem-grid,
  .testimonial-grid,
  .split-compare,
  .values-grid,
  .team-grid,
  .sectors-grid {
    grid-template-columns: 1fr;
  }
  
  .split-side {
    padding: 2rem;
  }
  
  .cta-banner {
    padding: 3rem 1.5rem;
  }
  
  .cta-banner-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .footer-brand-side {
    grid-column: span 2;
    align-items: center;
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

.footer-social-row {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.footer-social-row a {
  color: var(--color-text-secondary);
  font-size: 1.25rem;
  transition: color var(--transition-normal);
}

.footer-social-row a:hover {
  color: var(--color-brand-purple);
}

/* ── Shared Pain Card Styles (imported from agentes.html) ── */
.problem-grid-restyled {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

@media (max-width: 991px) {
  .problem-grid-restyled {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 3.5rem auto 0;
  }
}

.pain-card {
  background: #ffffff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--color-border-default);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(106, 58, 255, 0.08);
  border-color: var(--color-brand-purple-tint);
}

.pain-card.highlight {
  border: 1px solid var(--color-brand-purple-tint);
  box-shadow: 0 15px 35px rgba(106, 58, 255, 0.1);
}

.pain-card.highlight:hover {
  box-shadow: 0 25px 45px rgba(106, 58, 255, 0.15);
  border-color: var(--color-brand-purple);
}

.pain-card-img-wrap {
  width: 100%;
  height: 240px;
  position: relative;
  overflow: hidden;
}

.pain-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.4s ease;
}

.pain-card:hover .pain-card-img-wrap img {
  filter: grayscale(0%);
}

.pain-card-badge {
  position: absolute;
  top: 216px;
  left: 24px;
  width: 48px;
  height: 48px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 10;
  font-size: 1.35rem;
  border: 1px solid var(--color-border-default);
}

.pain-card-content {
  padding: 2.5rem 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  margin-top: 12px;
}

.pain-card-quote-wrapper {
  border-left: 3px solid var(--color-border-default);
  padding-left: 1.25rem;
  flex-grow: 1;
  transition: border-color 0.3s ease;
}

.pain-card.highlight .pain-card-quote-wrapper {
  border-left-color: var(--color-border-default);
}

.pain-card.grey-accent .pain-card-quote-wrapper {
  border-left-color: #4a4a4a;
}

.pain-card.light-grey-accent .pain-card-quote-wrapper {
  border-left-color: #d1d1d6;
}

.pain-card-quote {
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin: 0;
  transition: color 0.3s ease;
}

.pain-card-author {
  margin-top: 1.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-text-secondary);
  display: block;
  text-transform: uppercase;
  white-space: normal;
  transition: color 0.3s ease;
}

.pain-card:hover .pain-card-quote-wrapper {
  border-left-color: #8f5cf6;
}
.pain-card:hover .pain-card-quote {
  color: #8f5cf6;
}
.pain-card:hover .pain-card-author {
  color: #8f5cf6;
}

/* ── Benefit Cards restyling (from agentes.html) ── */
.benefit-row-card {
  background: #ffffff;
  border: 1px solid var(--color-border-default);
  border-radius: 20px;
  padding: 1.5rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.benefit-row-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(106, 58, 255, 0.08);
  border-color: var(--color-brand-purple-tint);
}

/* ── Chat Mockup Card (Sectores Page) ── */
.chat-mockup-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(106, 58, 255, 0.04);
  max-width: 380px;
  width: 100%;
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.chat-mockup-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px rgba(106, 58, 255, 0.08);
  border-color: var(--color-brand-purple-tint);
}

.chat-mockup-header {
  background: #fbfbfe;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-mockup-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00BFFF 0%, #6a3aff 100%);
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.chat-mockup-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.chat-mockup-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-text-primary);
}

.chat-mockup-status {
  font-size: 0.75rem;
  color: #10B981;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.chat-mockup-status::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10B981;
}

.chat-mockup-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: #6a3aff;
  background: rgba(106, 58, 255, 0.08);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

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

.chat-bubble {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 0 16px 16px 16px;
  padding: 1rem 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  max-width: 90%;
  position: relative;
}

.chat-bubble-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #6a3aff;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}

.chat-bubble-text {
  font-size: 0.88rem;
  color: var(--color-text-primary);
  line-height: 1.5;
  margin: 0;
}

.chat-bubble-time {
  font-size: 0.68rem;
  color: var(--color-text-secondary);
  position: absolute;
  bottom: 0.4rem;
  right: 0.75rem;
}

.chat-mockup-desc {
  border-top: 1px solid var(--color-border);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
}

/* ── Profiles Grid (Sectores Page) ── */
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  width: 100%;
  margin-top: 2rem;
}

.profile-card-small {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  min-height: 170px;
  justify-content: center;
}

.profile-card-small:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(106, 58, 255, 0.08);
  border-color: var(--color-brand-purple-tint);
}

.profile-card-icon-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(106, 58, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6a3aff;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.profile-card-small:hover .profile-card-icon-circle {
  background: #6a3aff;
  color: #ffffff;
  transform: scale(1.05);
}

.profile-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0;
  line-height: 1.4;
}
