:root {
  /* Colors - Pure Linear Light Theme */
  --bg-color: #FAFAFA; /* Off-white, extremely premium */
  --bg-section-alt: #FFFFFF; /* Pure white for section contrast */
  --bg-dark: #F0F0F0;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F9F9F9;
  --border-color: rgba(0, 0, 0, 0.08); /* Dark subtle border */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.06);
  
  --text-main: #111111; /* Deep charcoal */
  --text-muted: #666666; /* Elegant slate grey */

  --accent-blue: #0077c2;
  --accent-blue-hover: #005a94;
  --accent-gold: #e5a420;
  --accent-glow: rgba(0, 119, 194, 0.15);
  
  --grid-color: rgba(0, 0, 0, 0.04); /* Subtle dark grid line */

  /* Fonts */
  --font-main: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Space Grotesk', var(--font-main);
  
  /* Layout */
  --container-width: 1440px; /* Reduced lateral limits across the whole site */
  --anchor-offset: 72px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.deck-card {
  box-shadow: 0 -20px 40px rgba(0,0,0,0.03); /* Extremely soft shadow for light mode */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
  font-family: var(--font-main);
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Apple crisp font rendering */
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  min-height: 100vh;
}

/* Linear-style Fading Grid Background */
body::before {
  content: '';
  position: fixed;
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100vh;
  pointer-events: none;
  background-image: 
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center top;
  mask-image: radial-gradient(ellipse at center top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
  -webkit-mask-image: radial-gradient(ellipse at center top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
  z-index: -1;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-main);
  font-weight: 500;
  color: var(--text-main);
  letter-spacing: -0.02em;
  /* Linear style modern slight negative tracking */
}

.text-accent-blue {
  color: var(--accent-blue) !important;
}

.text-accent-gold {
  color: var(--accent-gold);
}

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

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

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

.mb-2 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 2rem;
}

.mt-5 {
  margin-top: 3rem;
}

/* About Us Specific Styles */
.about-section-wrapper {
  max-width: 1120px;
  margin: 0 auto;
}

.about-lead-text {
  max-width: 100%;
  margin: 0 0 1.4rem;
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.about-header {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: start;
}

.about-lead-text {
  font-size: clamp(1.08rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: var(--text-main);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.about-story-text {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.principles-intro-wrapper {
  border-top: 1px solid var(--border-color);
}

.principles-entry-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-blue);
  letter-spacing: -0.01em;
}

/* --- QUIÉNES SOMOS / CÓMO TRABAJAMOS TWO-COLUMN SPLIT --- */
.about-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
  margin-top: 2rem;
}

.about-story-col {
  position: static;
}

#quienes-somos,
#areas,
#forma-trabajo,
#ecosistema,
#equipo,
#contacto {
  scroll-margin-top: 0;
}

.about-lead-text {
  font-size: clamp(1.05rem, 1.8vw, 1.18rem);
  line-height: 1.7;
  color: var(--text-main);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.about-principles-col {
  display: flex;
  flex-direction: column;
}

.principles-entry-text {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-blue);
}

.principles-vertical-list {
  display: flex;
  flex-direction: column;
  gap: clamp(1.8rem, 4vw, 2.5rem);
}

.principle-vertical-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.5rem;
  cursor: pointer;
  padding: 0.5rem 0;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.principle-icon-wrapper {
  width: 52px;
  height: 52px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
              border-color 0.4s ease, 
              box-shadow 0.4s ease, 
              background-color 0.4s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
  color: var(--accent-blue);
}

.clinical-icon {
  width: 28px;
  height: 28px;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.principle-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.principle-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
  transition: color 0.4s ease;
}

.principle-desc {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  transition: color 0.4s ease;
}

/* Micro-animations on hover */
.principle-vertical-item:hover {
  transform: translateX(6px);
}

.principle-vertical-item:hover .principle-icon-wrapper {
  border-color: rgba(16, 104, 235, 0.28);
  background: var(--bg-color);
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(16, 104, 235, 0.05);
}

.principle-vertical-item:hover .clinical-icon {
  transform: scale(1.08);
}

.principle-vertical-item:hover .principle-title {
  color: var(--accent-blue);
}

.principle-vertical-item:hover .principle-desc {
  color: var(--text-main);
}

@media (max-width: 992px) {
  .about-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-story-col {
    position: static;
  }
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: start;
}

.about-h3 {
  font-weight: 600;
  font-size: 1.55rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.qualities-list {
  list-style: none;
  padding: 0;
}

.qualities-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
  color: var(--text-main);
  font-weight: 500;
  font-size: 1.05rem;
}

.check-icon {
  color: var(--accent-blue);
  flex-shrink: 0;
}

strong {
  font-weight: 600;
  color: var(--text-main);
}

.main-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Utilities */
.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-start {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.gap-3 {
  gap: 1.5rem;
}

/* Feature Lists for Clinical Areas */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  position: relative;
  margin-bottom: 0.6rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.bullet {
  color: var(--text-main);
  font-family: var(--font-main);
  opacity: 0.6;
}

/* Sections */
.section {
  padding: 6rem 0;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

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

.section-header {
  margin-bottom: 3rem;
  position: relative;
}

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

.section-header h2 {
  display: inline-block;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: var(--transition);
  background: transparent;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  padding: 1rem 0;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 3rem;
  /* Reduced from 4rem */
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme Toggle Button & Icon Logic */
.btn-icon {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
  margin-left: 0.5rem;
}
.btn-icon:hover {
  background: var(--bg-card);
}

.moon-icon { display: block; }
.sun-icon { display: none; }

[data-theme='light'] .moon-icon { display: none; }
[data-theme='light'] .sun-icon { display: block; }

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-logo-img {
  height: 24px;
  width: auto;
  object-fit: contain;
}

.brand-island {
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

[data-theme='dark'] .brand-island {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.nav-logo-island {
  padding: 0.3rem 0.8rem;
}

.hero-logo-island {
  padding: 0.8rem 1.5rem;
  background: white;
}

.hero-logo-wrapper {
  position: relative;
  width: 70px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-animation-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.iteration-circle {
  filter: drop-shadow(0 0 4px rgba(255, 215, 0, 1));
}

.logo-text-hero {
  font-family: var(--font-main);
  font-size: 2.2rem;
  /* Increased for more presence */
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.logo-text-hero .logo-accent {
  font-weight: 300;
}

.logo-accent {
  color: var(--accent-blue);
  font-weight: 400;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

.nav-links a,
.nav-dropdown-trigger {
  color: var(--text-main);
  /* Darker for more contrast */
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  /* Slightly larger too */
  transition: var(--transition);
}

.nav-dropdown-trigger {
  border: 0;
  background: transparent;
  font-family: var(--font-main);
  cursor: pointer;
}

.nav-dropdown-trigger::after {
  content: '';
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  margin-left: 0.45rem;
  border-right: 2px solid var(--accent-blue);
  border-bottom: 2px solid var(--accent-blue);
  transform: translateY(-0.16rem) rotate(45deg);
  transition: transform 0.2s ease;
}

.nav-dropdown.is-open .nav-dropdown-trigger::after {
  transform: translateY(0.08rem) rotate(225deg);
}

.nav-contact-mobile {
  display: none;
}

.floating-whatsapp {
  display: none;
}

.nav-links a:hover,
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger:focus-visible {
  color: var(--text-main);
}

.nav-dropdown-trigger:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 4px;
  border-radius: 4px;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 0.85rem;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.85rem);
  left: 50%;
  width: min(360px, 86vw);
  padding: 0.6rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-dropdown-menu a {
  position: relative;
  display: block;
  padding: 0.85rem 0.95rem;
  padding-left: 1.55rem;
  border-radius: 12px;
  color: var(--text-main);
  font-size: 0.88rem;
  line-height: 1.35;
  text-transform: none;
}

.nav-dropdown-menu a::before {
  content: '';
  position: absolute;
  top: 1.25rem;
  left: 0.65rem;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--accent-blue);
}

.nav-dropdown-menu a:hover {
  background: rgba(0, 119, 194, 0.07);
}

.nav-dropdown-menu small {
  display: block;
  margin-top: 0.25rem;
  color: var(--accent-gold);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Buttons */
.btn-primary-outline {
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-main) !important;
  background: transparent;
  transition: var(--transition);
  font-weight: 500;
  font-size: 0.85rem;
  text-decoration: none;
}

.btn-primary-outline:hover {
  background: var(--bg-card-hover);
  border-color: #bdc1c6;
}

.btn-primary {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: var(--accent-blue);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-blue-hover);
  box-shadow: 0 4px 6px rgba(54, 176, 227, 0.2);
}

.hero-title,
.section-title,
.phase-title,
.section-header h2,
footer h2 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.section-title,
.phase-title,
.section-header h2,
footer h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
}

/* Auth modal */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.auth-modal.is-open {
  display: flex;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.auth-modal-card {
  position: relative;
  width: min(100%, 420px);
  padding: 2rem;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  background: var(--bg-card);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.auth-modal-card h2 {
  margin-bottom: 0.75rem;
  font-size: 1.6rem;
}

.auth-modal-description {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.auth-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  font-size: 1.2rem;
}

.auth-form {
  display: grid;
  gap: 0.75rem;
}

.auth-form label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
}

.auth-form input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-main);
}

.auth-form input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.auth-message {
  min-height: 1.4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.auth-message.is-error {
  color: #ff6b6b;
}

.auth-message.is-success {
  color: #3cba92;
}

.auth-submit {
  margin-top: 0.5rem;
}

.auth-password-field,
.auth-confirm-password {
  display: grid;
  gap: 0.75rem;
}

.auth-password-field[hidden],
.auth-confirm-password[hidden] {
  display: none;
}

.auth-google-button {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-main);
  font-weight: 600;
  cursor: pointer;
}

.auth-google-button:hover {
  border-color: var(--accent-blue);
}

.auth-mode-toggle {
  margin-top: 0.25rem;
  border: none;
  background: transparent;
  color: var(--accent-blue);
  font-family: var(--font-main);
  font-weight: 600;
  cursor: pointer;
}

.auth-forgot-toggle {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-weight: 500;
  cursor: pointer;
}

.auth-forgot-toggle:hover {
  color: var(--accent-blue);
}

.auth-forgot-toggle[hidden],
.auth-google-button[hidden] {
  display: none;
}

.auth-mode-toggle:hover {
  color: var(--accent-blue-hover);
}

/* Dashboard */
.dashboard-page {
  min-height: 100vh;
  padding: 2rem 0 4rem;
  background:
    radial-gradient(circle at 12% 8%, var(--accent-glow), transparent 28rem),
    radial-gradient(circle at 85% 18%, rgba(253, 195, 78, 0.08), transparent 24rem),
    var(--bg-color);
}

.dashboard-card {
  position: relative;
  width: min(100%, 1180px);
  padding-top: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 42%), var(--glass-bg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  overflow: hidden;
}

.dashboard-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(71, 193, 245, 0.16), transparent) top / 100% 1px no-repeat,
    radial-gradient(circle at 80% 0%, rgba(71, 193, 245, 0.16), transparent 28rem);
}

.dashboard-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  padding: 1.75rem 0 2.5rem;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border-color);
}

.dashboard-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.dashboard-logo-island {
  width: 42px;
  height: 42px;
  padding: 0.35rem;
}

.dashboard-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dashboard-eyebrow {
  margin-bottom: 0.5rem;
  color: var(--accent-blue);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dashboard-header h1 {
  max-width: 780px;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.dashboard-description {
  max-width: 650px;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.dashboard-status {
  position: relative;
  z-index: 1;
  margin: 1.5rem 0;
  padding: 0.9rem 1rem 0.9rem 2.85rem;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}

.dashboard-status::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 1rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: var(--accent-blue);
  box-shadow: 0 0 18px var(--accent-glow);
  transform: translateY(-50%);
}

.dashboard-status.is-success {
  color: #3cba92;
}

.dashboard-status.is-success::before {
  background: #3cba92;
}

.dashboard-status.is-error {
  color: #ff6b6b;
}

.dashboard-status.is-error::before {
  background: #ff6b6b;
}

.dashboard-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  background: var(--border-color);
}

.dashboard-panel {
  position: relative;
  z-index: 1;
  padding: 1.75rem;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  background: color-mix(in srgb, var(--bg-card) 92%, transparent);
  transition: var(--transition);
}

.dashboard-grid .dashboard-panel {
  border: 0;
  border-radius: 0;
}

.dashboard-panel:hover {
  background: var(--bg-card-hover);
}

.dashboard-panel h2 {
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
  font-weight: 500;
}

.dashboard-user-data {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.dashboard-user-data dt {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.dashboard-user-data dd {
  margin-top: 0.25rem;
  color: var(--text-main);
  font-weight: 600;
}

.subscription-summary {
  margin: 1.5rem 0;
}

.subscription-empty {
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: var(--bg-color);
}

.subscription-empty strong {
  display: block;
  margin-bottom: 0.35rem;
}

.subscription-empty p {
  color: var(--text-muted);
}

.plans-panel {
  margin-top: 1px;
}

.features-panel {
  margin-top: 1px;
}

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

.features-grid h3 {
  margin-bottom: 0.85rem;
  font-size: 1rem;
}

.feature-list-box {
  display: grid;
  gap: 0.75rem;
}

.feature-card {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: var(--bg-color);
}

.feature-card span,
.feature-card small,
.feature-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  margin-top: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background: var(--border-color);
}

.plan-card {
  display: grid;
  gap: 0.9rem;
  padding: 1.35rem;
  border: 0;
  border-radius: 0;
  background: var(--bg-color);
  transition: var(--transition);
}

.plan-card:hover {
  background: var(--bg-card-hover);
}

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

.plan-code {
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.plan-price {
  color: var(--text-main);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.devices-panel {
  margin-top: 1px;
}

.device-limit-summary {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: var(--bg-color);
  color: var(--text-muted);
}

.device-limit-summary.is-warning {
  border-color: rgba(255, 107, 107, 0.45);
  color: #ff6b6b;
}

.pairing-box {
  margin: 1.5rem 0;
  padding: 1.5rem;
  border: 1px solid var(--accent-blue);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(71, 193, 245, 0.12), transparent), var(--bg-color);
  box-shadow: 0 0 40px rgba(71, 193, 245, 0.08);
}

.pairing-box strong {
  display: block;
  margin: 0.35rem 0;
  font-size: clamp(2rem, 6vw, 3.2rem);
  letter-spacing: 0.18em;
}

.pairing-box span {
  color: var(--text-muted);
}

.devices-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.device-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  background: var(--bg-color);
}

.device-card > div {
  display: grid;
  gap: 0.25rem;
}

.device-card span,
.device-card small {
  color: var(--text-muted);
}

.btn-danger-outline {
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(255, 107, 107, 0.45);
  border-radius: 999px;
  background: transparent;
  color: #ff6b6b;
  font: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.btn-danger-outline:hover:not(:disabled) {
  background: rgba(255, 107, 107, 0.1);
}

.btn-danger-outline:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.dashboard-actions {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .dashboard-page {
    padding: 0;
  }

  .dashboard-header,
  .dashboard-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-card {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    padding: 0 1.25rem 1.25rem;
  }

  .dashboard-brand {
    margin-bottom: 1.75rem;
  }

  .dashboard-header h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .dashboard-status,
  .device-limit-summary {
    border-radius: 18px;
  }

  .device-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-actions .btn-primary,
  .device-card .btn-danger-outline,
  .dashboard-header .btn-primary-outline,
  .dashboard-panel .btn-primary,
  .plan-card .btn-primary {
    width: 100%;
    text-align: center;
  }
}

/* Language Switcher */
.btn-lang {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  border-radius: 4px;
  padding: 0.4rem 0.6rem;
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.btn-lang:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 950px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-logo-placeholder {
  width: 80px;
  height: 80px;
  margin-bottom: 2rem;
  background: #f8f9fa;
  border: 1px dashed var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  margin: 0 auto;
  color: var(--text-main);
  max-width: 1000px;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 1rem;
  max-width: 600px;
}

.hero-subtitle {
  max-width: 760px;
  margin: 1.5rem auto 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
}

/* Trust Section */
.trust-band {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card);
}

.trust-logos {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-logo-placeholder {
  font-weight: 500;
  color: var(--text-muted);
  opacity: 0.6;
  font-size: 1rem;
  cursor: default;
}

/* Content Text */
.content-text {
  max-width: 800px;
}

.content-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Services Grid Layout (Ex-Áreas de Desarrollo)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 4rem;
}

/* ==========================================================================
   Kuelipa Scientific-Applied Model
   ========================================================================== */
.kuelipa-model-section {
  --model-sticky-top: clamp(86px, 9vh, 112px);
  --model-content-sticky-top: calc(var(--model-sticky-top) + clamp(210px, 24vh, 250px));
  --model-platform-sticky-top: calc(var(--model-content-sticky-top) + clamp(28px, 5vh, 56px));
  --model-end-hold: clamp(80px, 14vh, 180px);
  --model-last-card-hold: clamp(280px, 42vh, 480px);
  padding-bottom: 1.5rem;
  background:
    radial-gradient(circle at 50% 18%, rgba(71, 193, 245, 0.08), transparent 34rem),
    var(--bg-color);
}

.model-bg-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.model-bg-layer {
  --model-bg-accent: rgba(71, 193, 245, 0.18);
  --model-bg-secondary: rgba(252, 179, 34, 0.1);
  --model-bg-line: rgba(71, 193, 245, 0.1);
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.85s ease;
}

.model-bg-layer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, var(--model-bg-secondary) 0%, transparent 52%),
    linear-gradient(250deg, var(--model-bg-accent) 0%, transparent 58%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg-color) 86%, transparent) 0%, color-mix(in srgb, var(--bg-color) 62%, transparent) 42%, color-mix(in srgb, var(--bg-color) 88%, transparent) 100%);
}

.model-bg-layer::after {
  display: none;
}

.model-bg-layer.is-active {
  opacity: 1;
}

.model-bg-layer-1 {
  --model-bg-accent: rgba(0, 150, 255, 0.44);
  --model-bg-secondary: rgba(0, 220, 180, 0.25);
  --model-bg-line: rgba(0, 150, 255, 0.25);
}

.model-bg-layer-2 {
  --model-bg-accent: rgba(255, 120, 0, 0.42);
  --model-bg-secondary: rgba(255, 200, 0, 0.26);
  --model-bg-line: rgba(255, 120, 0, 0.22);
}

.model-bg-layer-3 {
  --model-bg-accent: rgba(0, 110, 255, 0.40);
  --model-bg-secondary: rgba(40, 210, 120, 0.26);
  --model-bg-line: rgba(0, 110, 255, 0.20);
}

.model-bg-layer-4 {
  --model-bg-accent: rgba(255, 30, 95, 0.42);
  --model-bg-secondary: rgba(255, 150, 0, 0.26);
  --model-bg-line: rgba(255, 30, 95, 0.22);
}

.kuelipa-model-section .main-container {
  position: relative;
  z-index: 1;
}

.kuelipa-model-section .main-container.reveal-up.active {
  transform: none;
}

.kuelipa-model-section .intro-block {
  position: sticky;
  top: var(--model-sticky-top);
  z-index: 7;
  grid-column: 1 / -1;
  grid-row: 1;
  align-self: start;
  max-width: 980px;
  margin-right: auto;
  margin-left: auto;
  padding: 1rem 0 1.25rem;
  background: transparent;
  transform: translateY(calc(-1 * var(--model-title-release-y, 0px)));
}

.model-intro {
  max-width: 920px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.75;
}

.model-flow {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 250px) minmax(84px, 130px) minmax(340px, 560px) minmax(84px, 130px) minmax(220px, 260px);
  grid-template-rows: auto auto;
  gap: 0.75rem;
  justify-content: center;
  align-items: start;
  margin-top: 0;
  padding-bottom: var(--model-end-hold);
}

.model-side {
  position: sticky;
  top: var(--model-content-sticky-top);
  display: grid;
  gap: 1rem;
  min-height: 56vh;
  align-content: center;
}

.model-inputs {
  grid-column: 1;
  grid-row: 2;
  justify-items: start;
}

.model-output {
  grid-column: 5;
  grid-row: 2;
  justify-items: end;
}

.model-connector {
  position: sticky;
  top: var(--model-content-sticky-top);
  z-index: 4;
  width: 100%;
  height: 56vh;
  min-height: 360px;
  pointer-events: none;
  overflow: visible;
}

.model-connector-left {
  grid-column: 2;
  grid-row: 2;
}

.model-connector-right {
  grid-column: 4;
  grid-row: 2;
}

.model-connector path {
  fill: none;
  stroke: var(--accent-blue);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 14 12;
  filter: drop-shadow(0 0 10px var(--accent-glow));
  opacity: 0.92;
  animation: sketch-flow 5s linear infinite;
}

.model-connector path:nth-child(2) {
  stroke: var(--accent-gold);
  stroke-width: 5;
  stroke-dasharray: 11 12;
  opacity: 0.82;
  animation-duration: 6.5s;
}

@keyframes sketch-flow {
  to {
    stroke-dashoffset: -54;
  }
}

.model-side-label {
  color: var(--accent-blue);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.model-source-card,
.model-report-card,
.platform-card {
  border: 1px solid var(--border-color);
  background: color-mix(in srgb, var(--bg-card) 92%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.model-source-card {
  position: relative;
  max-width: 250px;
  padding: 1rem 1.1rem;
  border-radius: 26px;
  z-index: 3;
  overflow: visible;
}

.model-source-card::after {
  display: none;
}

.model-source-card h3,
.model-report-card h3 {
  margin-bottom: 0.45rem;
  font-size: 1rem;
  font-weight: 600;
}

.model-source-card p,
.model-report-card p {
  font-size: 0.9rem;
}

.model-source-card p,
.model-report-card p,
.platform-card p {
  color: var(--text-muted);
  line-height: 1.65;
}

.model-platforms {
  display: grid;
  grid-column: 3;
  grid-row: 2;
  gap: 16vh;
  padding-bottom: 0;
  z-index: 3;
}

.model-platforms::after {
  content: '';
  display: block;
  height: var(--model-last-card-hold);
}

/* Organic Fluid Morphing Blob keyframes */
@keyframes fluidBlob {
  0% {
    border-radius: 42% 58% 52% 48% / 50% 44% 56% 50%;
  }
  33% {
    border-radius: 45% 55% 48% 52% / 48% 52% 45% 55%;
  }
  66% {
    border-radius: 40% 60% 55% 45% / 52% 40% 58% 48%;
  }
  100% {
    border-radius: 42% 58% 52% 48% / 50% 44% 56% 50%;
  }
}

.platform-card {
  position: sticky;
  top: var(--model-platform-sticky-top);
  isolation: isolate;
  min-height: 46vh;
  width: min(100%, 540px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(1.45rem, 3.2vw, 2.6rem);
  border-radius: 42% 58% 52% 48% / 50% 44% 56% 50%;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
  animation: fluidBlob 12s ease-in-out infinite;
  overflow: hidden;
  text-align: center;
  z-index: 3;
  opacity: var(--card-fade-opacity, 0);
  filter: blur(var(--card-fade-blur, 14px));
  border: 1px solid var(--border-color);
  background: transparent;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, filter 0.2s ease, opacity 0.2s ease;
}

.platform-card:nth-child(1) {
  z-index: 3;
}

.platform-card:nth-child(2) {
  z-index: 4;
}

.platform-card:nth-child(3) {
  z-index: 5;
}

.platform-card:nth-child(4) {
  z-index: 6;
}

.platform-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.95;
  z-index: -1;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.platform-card:nth-child(1)::before {
  background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1), rgba(250, 250, 250, 0.3) 80%), url('../assets/optimized/Areas/evaluacion-clinica-1080.webp');
}

.platform-card:nth-child(2)::before {
  background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1), rgba(250, 250, 250, 0.3) 80%), url('../assets/optimized/Areas/serious-game-1080.webp');
}

.platform-card:nth-child(3)::before {
  background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1), rgba(250, 250, 250, 0.3) 80%), url('../assets/optimized/Areas/evaluacion-laboral-1080.webp');
}

.platform-card:nth-child(4)::before {
  background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1), rgba(250, 250, 250, 0.3) 80%), url('../assets/optimized/Areas/gamificacion-1080.webp');
}

.platform-card::after {
  content: '';
  position: absolute;
  inset: 1rem;
  border: 1px dashed rgba(71, 193, 245, 0.45);
  border-radius: inherit;
  pointer-events: none;
}

.platform-card > * {
  position: relative;
  z-index: 1;
}

.platform-card-glass {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 1.5rem 2.2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  max-width: 90%;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.4s ease, box-shadow 0.4s ease;
}

.platform-card-glass h3 {
  color: var(--text-main);
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
  letter-spacing: -0.03em;
}

/* Hover States */
.platform-card:hover {
  box-shadow: 0 25px 60px rgba(0, 119, 194, 0.15);
  border-color: rgba(0, 119, 194, 0.25);
}

.platform-card:hover::before {
  transform: scale(1.06);
}

.platform-card:hover .platform-card-glass {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 15px 35px rgba(0, 119, 194, 0.1);
  transform: translateY(-5px);
}

.model-report-card {
  position: relative;
  max-width: 260px;
  padding: 1.25rem;
  border-radius: 26px;
  overflow: visible;
  z-index: 3;
}

.model-report-card::before {
  display: none;
}

.report-icon {
  display: grid;
  gap: 0.45rem;
  width: 56px;
  margin-bottom: 1.25rem;
}

.report-icon span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-gold));
}

.report-icon span:nth-child(2) {
  width: 78%;
}

.report-icon span:nth-child(3) {
  width: 58%;
}

.model-report-card ul {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
}

.model-report-card li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.model-report-card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-blue);
}

@media (max-width: 1100px) {
  .kuelipa-model-section .intro-block {
    position: relative;
    top: auto;
    padding-bottom: 0;
    transform: none;
  }

  .model-flow {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 860px;
    margin-inline: auto;
    padding-bottom: 0;
  }

  .model-connector {
    display: none;
  }

  .model-side,
  .platform-card {
    position: relative;
    top: auto;
    min-height: auto;
  }

  .model-side {
    align-content: stretch;
    min-height: auto;
  }

  .model-inputs {
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 2rem;
  }

  .model-output {
    grid-column: auto;
    grid-row: auto;
    justify-items: stretch;
    margin-top: 1.25rem;
  }

  .model-side-label {
    grid-column: 1 / -1;
    width: fit-content;
    margin: 0 auto;
    padding: 0.4rem 0.85rem;
    color: var(--accent-blue);
    background: rgba(0, 119, 194, 0.06);
    border: 1px solid rgba(0, 119, 194, 0.12);
    border-radius: 999px;
    text-align: center;
  }

  .model-source-card::after,
  .platform-card::after,
  .model-report-card::before {
    display: none;
  }

  .model-platforms {
    grid-column: auto;
    grid-row: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    position: relative;
    top: auto;
    min-height: auto;
    align-items: stretch;
    margin-top: 1.25rem;
    padding-bottom: 0;
  }

  .platform-card {
    grid-area: auto;
    position: relative;
    top: auto;
    width: 100%;
    min-height: 260px;
    border-radius: 28px;
    opacity: 1 !important;
    filter: none !important;
    animation: none;
    transform: none;
  }

  .model-source-card,
  .model-report-card {
    max-width: none;
    width: 100%;
  }

  .model-report-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
    align-items: center;
  }

  .model-report-card .report-icon {
    margin: 0;
    grid-row: span 2;
  }

  .model-report-card h3,
  .model-report-card p {
    margin: 0;
  }

  .model-inputs::after,
  .model-platforms::after {
    content: '↓';
    display: grid;
    grid-column: 1 / -1;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0.25rem auto 0;
    color: var(--accent-blue);
    background: var(--bg-card);
    border: 1px dashed rgba(0, 119, 194, 0.28);
    border-radius: 50%;
    box-shadow: 0 12px 28px rgba(0, 119, 194, 0.08);
    font-size: 1.35rem;
    font-weight: 700;
  }

}

@media (max-width: 640px) {
  .model-flow {
    margin-top: 0;
  }

  .model-inputs {
    grid-template-columns: 1fr;
    margin-top: 1.75rem;
  }

  .model-platforms {
    grid-template-columns: 1fr;
    min-height: 300px;
  }

  .model-side-label {
    width: 100%;
    max-width: 340px;
  }

  .platform-card,
  .model-source-card,
  .model-report-card {
    border-radius: 20px;
  }

  .platform-card {
    min-height: 190px;
  }

  .platform-card::before {
    opacity: 0.72;
  }

  .platform-card-glass {
    width: 100%;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.86);
  }

  .model-report-card {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .model-report-card .report-icon {
    margin-bottom: 1rem;
  }
}

/* ==========================================================================
   Balanced Precision Gallery (Services Redesign)
   ========================================================================== */
/* ==========================================================================
   Cinematic Stacking Deck (Services Reversion)
   ========================================================================== */
.stack-deck {
  position: relative;
  margin-top: 5rem;
  padding-bottom: 10rem;
}

.stack-slide {
  position: sticky;
  top: 100px;
  min-height: 85vh;
  margin-bottom: 15vh;
  border-radius: 40px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 4rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.5);
  background: var(--bg-color); /* Fallback */
}

.stack-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: transform 0.6s ease;
}

.stack-slide.flip-image .stack-bg {
  transform: scaleX(-1);
}

.stack-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 1;
  pointer-events: none;
}

[data-theme='light'] .stack-slide::after {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.4) 100%
  );
}

/* Card Alternation */
.stack-slide.stack-left { justify-content: flex-start; }
.stack-slide.stack-right { justify-content: flex-end; }

.stack-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 500px;
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  padding: 4rem;
  border-radius: 30px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s ease;
}

.stack-slide:hover .stack-content {
  transform: translateY(-5px);
  border-color: var(--accent-blue);
}

/* Reusing Icon Box and Watermark Styles */
.stack-content .service-icon-box {
  width: 64px;
  height: 64px;
  background: rgba(71, 193, 245, 0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: var(--accent-blue);
}

.stack-content h3 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-main);
  line-height: 1.2;
}

.stack-content p {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Ghost Watermark in Stack */
.card-watermark {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 280px;
  height: 280px;
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

.card-watermark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1) brightness(1.2);
}

@media (max-width: 992px) {
  .stack-slide {
    min-height: 60vh;
    padding: 2rem;
    position: relative; /* Remove sticky for mobile */
    top: 0;
    margin-bottom: 2rem;
  }
  .stack-content {
    max-width: 100%;
    padding: 3rem 2rem;
  }
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

/* Bento Layout - Transformed to Linear Flat Grid */
.bento-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0; /* No gaps, borders will touch directly */
}

.bento-item {
  background: transparent !important;
  border: none !important;
  border-right: 1px solid var(--border-color) !important;
  border-radius: 0 !important;
  padding: 0 4rem 4rem 1.5rem !important;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease-in-out;
  position: relative;
  overflow: visible;
  box-shadow: none !important;
}

[data-theme='dark'] .bento-item::before {
  display: none !important;
}

/* Linear Grid Padding Logic */
.bento-container .bento-item:nth-child(3n-2) {
  padding-left: 0 !important;
  padding-right: 3rem !important;
}
.bento-container .bento-item:nth-child(3n-1) {
  padding-left: 3rem !important;
  padding-right: 3rem !important;
}
.bento-container .bento-item:nth-child(3n) {
  padding-left: 3rem !important;
  padding-right: 0 !important;
  border-right: none !important;
}

.bento-item:hover {
  transform: none !important;
  border-color: var(--border-color) !important;
  box-shadow: none !important;
}

/* Linear small top labels */
.bento-item .fig-label {
  font-family: monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 2rem;
  opacity: 0.6;
}

.bento-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  font-weight: 500;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.bento-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* For Media Placeholders in transparent cards */
.media-placeholder {
  width: 100%;
  height: 250px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px; /* Inner elements can have slight radius */
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Propuesta & Dual Grid */
.dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.custom-list {
  list-style: none;
}

.custom-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.custom-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-weight: bold;
}

/* Team Section Redesign: Founder Profile & Neural Diagram */
.equipo-dual-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  margin-top: 3.5rem;
}

.founder-showcase-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.network-diagram-column {
  display: flex;
  flex-direction: column;
}

.founder-profile-row {
  display: flex;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  height: 380px; /* Perfectly aligns with the right neural diagram's height! */
}

.founder-portrait-frame {
  position: relative;
  width: 240px;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  background: var(--bg-color);
}

.founder-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%; /* Preserves vertical portrait composition perfectly! */
  display: block;
  filter: contrast(1.01) brightness(0.99);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.founder-showcase-column:hover .founder-portrait-img {
  transform: scale(1.02);
}

.portrait-clinical-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, transparent 40%, rgba(0, 119, 194, 0.04) 100%);
  pointer-events: none;
}

.founder-quote-block {
  position: relative;
  flex-grow: 1;
  padding: 0.5rem 0.5rem 0 0.5rem;
}

.quote-mark {
  position: absolute;
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  color: rgba(0, 119, 194, 0.06);
  pointer-events: none;
  font-weight: 900;
}

.open-quote {
  top: -1.4rem;
  left: -0.6rem;
}

.close-quote {
  bottom: 0.8rem;
  right: -0.6rem;
}

.founder-quote-text {
  font-family: var(--font-main);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 2;
  letter-spacing: -0.01em;
}

.founder-signature-meta {
  margin-top: 1.2rem;
  border-left: 2px solid var(--accent-blue);
  padding-left: 0.95rem;
}

.signature-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.15rem;
}

.signature-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-blue);
  letter-spacing: -0.01em;
}

/* Neural Network Diagram styles */
.network-diagram-column {
  display: flex;
  flex-direction: column;
}

.network-diagram-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.network-diagram {
  position: relative;
  width: 100%;
  height: 380px;
  display: grid;
  place-items: center;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(0, 119, 194, 0.035) 0%, transparent 60%);
}

.network-center {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 119, 194, 0.1) 0%, rgba(252, 179, 34, 0.05) 100%);
  border: 1px solid var(--accent-blue);
  display: grid;
  place-items: center;
  box-shadow: 0 0 25px rgba(0, 119, 194, 0.15);
  z-index: 5;
}

.center-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  z-index: 6;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

.orbital-ring-1 {
  stroke: rgba(0, 119, 194, 0.045);
  stroke-width: 1px;
  stroke-dasharray: 4 6;
  fill: none;
  pointer-events: none;
}

.orbital-ring-2 {
  stroke: rgba(229, 164, 32, 0.035);
  stroke-width: 1px;
  stroke-dasharray: 5 6;
  fill: none;
  pointer-events: none;
}

.center-pulse-ring {
  position: absolute;
  inset: -6px;
  border: 1px dashed rgba(0, 119, 194, 0.35);
  border-radius: 50%;
  animation: rotateCenter 24s linear infinite;
}

@keyframes rotateCenter {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.network-nodes-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.network-node {
  position: absolute;
  pointer-events: auto;
  background: color-mix(in srgb, var(--bg-card) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 0.55rem 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.02);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
              border-color 0.4s ease, 
              box-shadow 0.4s ease, 
              background-color 0.4s ease;
  cursor: pointer;
  z-index: 3;
}

.node-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
  transition: transform 0.4s ease, background-color 0.4s ease;
}

.network-node span:not(.node-dot) {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

/* Constellation Orbital Positions */
.node-1 { top: 6%; left: 0%; }
.node-2 { top: 6%; right: 0%; }
.node-3 { top: 38%; left: -6%; }
.node-4 { top: 38%; right: -6%; }
.node-5 { bottom: 14%; left: -2%; }
.node-6 { bottom: 14%; right: -2%; }
.node-7 { bottom: -2%; left: 50%; transform: translateX(-50%); transform-origin: center; }

/* Neural Interaction Hover States */
.network-node:hover {
  transform: scale(1.05);
  border-color: var(--accent-blue);
  background: var(--bg-card);
  box-shadow: 0 10px 25px rgba(0, 119, 194, 0.12);
}

.network-node.node-7:hover {
  transform: translateX(-50%) scale(1.05);
}

.network-node:hover .node-dot {
  transform: scale(1.4);
  background-color: var(--accent-blue-hover);
  box-shadow: 0 0 8px rgba(0, 119, 194, 0.6);
}

.network-node:hover span:not(.node-dot) {
  color: var(--accent-blue);
}

/* Constellation dynamic SVG connecting neural light paths */
.network-svg-web {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.neural-path-blue {
  fill: none;
  stroke: rgba(0, 119, 194, 0.09);
  stroke-width: 3px;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 6 8;
  transition: stroke 0.4s ease, stroke-width 0.4s ease, opacity 0.4s ease;
}

.neural-path-gold {
  fill: none;
  stroke: rgba(229, 164, 32, 0.08);
  stroke-width: 1.8px;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 5 8;
  transition: stroke 0.4s ease, stroke-width 0.4s ease, opacity 0.4s ease;
}

.neural-path-blue.active {
  stroke: var(--accent-blue);
  stroke-width: 4px;
  opacity: 1;
  animation: sketch-flow 4.5s linear infinite;
  filter: drop-shadow(0 0 5px rgba(0, 119, 194, 0.45));
}

.neural-path-gold.active {
  stroke: var(--accent-gold);
  stroke-width: 2.8px;
  opacity: 1;
  animation: sketch-flow 5.5s linear infinite;
}

@media (max-width: 992px) {
  .equipo-dual-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .founder-profile-row {
    flex-direction: column;
    height: auto;
    gap: 1.5rem;
  }
  
  .founder-portrait-frame {
    width: 100%;
    max-width: 320px;
    height: 320px;
  }
  
  .network-diagram {
    height: auto;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: none;
  }
  
  .network-nodes-container {
    position: relative;
    inset: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    width: 100%;
    margin-top: 1.5rem;
  }
  
  .network-node {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: fit-content;
  }
  
  .network-node::before {
    display: none !important;
  }
  
  .network-node:hover {
    transform: none !important;
  }
}

@media (min-width: 641px) and (max-width: 992px) {
  .founder-showcase-column {
    max-width: 760px;
    margin-inline: auto;
  }

  .founder-profile-row {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    align-items: center;
    gap: 2rem;
  }

  .founder-portrait-frame {
    width: 100%;
    max-width: none;
    height: 360px;
  }

  .founder-quote-block {
    padding: 0.25rem 0;
  }

  .quote-mark {
    font-size: 3.6rem;
  }

  .founder-quote-text {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .founder-signature-meta {
    margin-top: 1rem;
  }

  .network-diagram-column {
    max-width: 820px;
    margin-inline: auto;
  }

  .network-diagram {
    height: auto;
    padding-top: 1rem;
  }
}

/* Animations */
.reveal,
.reveal-up {
  opacity: 0;
  transition: all 0.8s ease;
}

.reveal {
  transform: scale(0.98);
}

.reveal-up {
  transform: translateY(20px);
}

.reveal.active,
.reveal-up.active {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Footer */
.footer {
  position: relative;
  padding: clamp(4.5rem, 8vw, 6rem) 0 2rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 119, 194, 0.09), transparent 26rem),
    radial-gradient(circle at 86% 24%, rgba(252, 179, 34, 0.08), transparent 22rem),
    linear-gradient(180deg, #ffffff 0%, #f5f9fc 100%);
  border-top: 1px solid var(--border-color);
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 119, 194, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(0, 119, 194, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 14%, rgba(0,0,0,0.75), transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 14%, rgba(0,0,0,0.75), transparent 70%);
}

.footer .main-container {
  position: relative;
  z-index: 1;
}

.footer-contact-shell {
  display: grid;
  justify-items: center;
  gap: clamp(2rem, 5vw, 3rem);
  text-align: center;
}

.footer-brand-block {
  display: grid;
  justify-items: center;
  max-width: 820px;
}

.footer-logo-img {
  width: clamp(58px, 7vw, 78px);
  height: auto;
  margin-bottom: 0.8rem;
  filter: drop-shadow(0 8px 18px rgba(0, 119, 194, 0.1));
}

.footer-brand-name {
  margin: 0 0 1.6rem;
  color: var(--text-main);
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.footer-brand-name span {
  color: var(--accent-blue);
  font-weight: 400;
}

.footer-brand-block h2 {
  margin-bottom: 1rem;
}

.footer-contact-intro {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
}

.footer-direct-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 1.25rem;
  width: min(100%, 720px);
}

.footer-direct-item {
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  box-shadow: 0 16px 42px rgba(0, 119, 194, 0.06);
}

.footer-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.footer-contact-copy {
  max-width: 620px;
}

.contact-info-card {
  display: grid;
  gap: 0.85rem;
  max-width: 420px;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

.contact-info-label {
  margin: 0;
  color: var(--accent-blue);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-email-link {
  width: fit-content;
  color: var(--text-main);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  border-bottom: 1px solid var(--accent-blue);
  transition: var(--transition);
}

.contact-email-link:hover {
  color: var(--accent-blue);
  border-color: var(--accent-blue-hover);
}

.whatsapp-link {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0;
  color: #0b3b25;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.36);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.whatsapp-link:hover {
  background: rgba(37, 211, 102, 0.2);
  border-color: rgba(37, 211, 102, 0.65);
  transform: translateY(-2px);
}

.whatsapp-icon {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  fill: #25d366;
}

.contact-form {
  width: min(100%, 820px);
  padding: clamp(1.25rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border-color);
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(0, 119, 194, 0.08);
  text-align: left;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.contact-botcheck {
  display: none !important;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font: inherit;
  transition: var(--transition);
}

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

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(0, 119, 194, 0.12);
}

.contact-form select option {
  color: var(--text-main);
  background: var(--bg-card);
}

.contact-submit {
  width: 100%;
}

.contact-submit:disabled {
  cursor: wait;
  opacity: 0.75;
}

.contact-form-note {
  margin: 0.85rem 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: center;
}

.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.thanks-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.thanks-card {
  max-width: 620px;
  padding: clamp(2rem, 5vw, 3.5rem) !important;
  text-align: center;
}

.thanks-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  padding: 0.65rem;
}

.thanks-card h1 {
  margin: 0.5rem 0 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.04em;
}

.thanks-description {
  max-width: 480px;
  margin: 0 auto 2rem;
}

.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.menu-toggle {
  display: none;
}

/* Responsive */
@media (max-width: 992px) {
  :root {
    --anchor-offset: 68px;
  }

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

  .footer-direct-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .contact-info-card {
    max-width: none;
  }

  .whatsapp-link {
    width: 100%;
    justify-content: center;
  }

  .thanks-actions {
    flex-direction: column;
  }

  .nav-left {
    gap: 1.25rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: auto;
    min-height: 315px;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.35s ease;
    z-index: 1000;
    padding: 5.25rem clamp(1.25rem, 5vw, 2.5rem) 1.6rem;
    overflow: hidden;
    visibility: hidden;
    box-shadow: 0 20px 55px rgba(0, 119, 194, 0.08);
  }

  .nav-links::before {
    content: '';
    position: absolute;
    top: -70px;
    right: -70px;
    width: min(58vw, 330px);
    height: min(58vw, 330px);
    background-image: url('../assets/optimized/logo/logo-384.webp');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.14;
    pointer-events: none;
    z-index: 0;
  }

  .nav-links.active {
    right: 0;
    visibility: visible;
    display: flex;
    transform: translateX(0);
  }

  .nav-links {
    height: auto;
    justify-content: flex-start;
    gap: 1rem;
    padding: 5.25rem clamp(1.25rem, 5vw, 2.5rem) 1.6rem;
  }

  .nav-links li {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    width: 100%;
    text-align: left;
    position: relative;
    z-index: 1;
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateY(0);
  }

  /* Staggered delay for menu links */
  .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
  .nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
  .nav-links.active li:nth-child(3) { transition-delay: 0.3s; }
  .nav-links.active li:nth-child(4) { transition-delay: 0.4s; }
  .nav-links.active li:nth-child(5) { transition-delay: 0.5s; }

  .nav-links a,
  .nav-dropdown-trigger {
    width: 100%;
    padding: 0;
    font-size: clamp(1rem, 2.1vw, 1.08rem);
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0;
    text-align: left;
    text-transform: none;
  }

  .nav-links a:hover,
  .nav-dropdown-trigger:hover,
  .nav-dropdown-trigger:focus-visible {
    color: var(--accent-blue);
  }

  .nav-contact-mobile {
    display: block;
  }

  .nav-dropdown-menu {
    position: static;
    width: 100%;
    margin-top: 0.65rem;
    margin-right: 0;
    margin-left: 0;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.55rem;
    opacity: 1;
    pointer-events: none;
    transform: none !important;
    background: rgba(247, 251, 255, 0.92);
    border: 1px solid rgba(0, 119, 194, 0.12);
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(0, 119, 194, 0.06);
    display: none;
  }

  .nav-dropdown.is-open .nav-dropdown-menu {
    display: block;
    pointer-events: auto;
    opacity: 1;
    transform: none !important;
  }

  .nav-dropdown-menu a {
    display: block;
    color: var(--text-main);
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.4;
    text-align: left;
    text-transform: none;
    padding: 0.7rem 0.7rem 0.7rem 1.45rem;
    border-radius: 12px;
  }

  .nav-dropdown-menu a::before {
    top: 1.12rem;
    left: 0.65rem;
    width: 0.28rem;
    height: 0.28rem;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 44px;
    height: 44px;
    align-items: center;
    position: relative;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(0, 119, 194, 0.2);
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    margin-left: 1rem;
  }

  .menu-toggle .bar {
    position: absolute;
    left: 50%;
    width: 22px;
    height: 2px;
    background-color: var(--text-muted);
    border-radius: 10px;
    transition: var(--transition);
    transform: translateX(-50%);
  }

  .menu-toggle .bar:nth-child(1) {
    top: 13px;
  }

  .menu-toggle .bar:nth-child(2) {
    top: 21px;
  }

  .menu-toggle .bar:nth-child(3) {
    top: 29px;
  }

  body.menu-active .menu-toggle {
    border-color: rgba(0, 119, 194, 0.3);
    background: rgba(255, 255, 255, 0.88);
  }

  body.menu-active .menu-toggle .bar {
    background-color: var(--accent-blue);
  }

  /* Burger Animation */
  body.menu-active .menu-toggle .bar:nth-child(1) {
    top: 21px;
    transform: translateX(-50%) rotate(45deg);
  }

  body.menu-active .menu-toggle .bar:nth-child(2) {
    opacity: 0;
  }

  body.menu-active .menu-toggle .bar:nth-child(3) {
    top: 21px;
    transform: translateX(-50%) rotate(-45deg);
  }

  .nav-right .btn-primary-outline {
    display: none;
  }

  .floating-whatsapp {
    position: fixed;
    right: clamp(1rem, 4vw, 1.4rem);
    bottom: clamp(1rem, 4vw, 1.4rem);
    z-index: 900;
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    color: #ffffff;
    background: #25d366;
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 10px 26px rgba(37, 211, 102, 0.35);
  }

  .floating-whatsapp svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
  }

  .nav-right #login-button {
    display: inline-block;
  }

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

}

@media (max-width: 768px) {
  .founder-card,
  .founder-principles {
    grid-template-columns: 1fr;
  }

  .founder-card {
    border-radius: 26px;
  }

  .founder-portrait {
    min-height: 240px;
  }

  .logo-text-hero {
    font-size: 1.6rem;
  }

  .hero-logo-wrapper {
    width: 60px;
    height: 80px;
  }

  .bento-container {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .bento-item.item-large,
  .bento-item.item-wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .bento-item {
    min-height: auto;
    padding: 2rem 1.5rem !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border-color) !important;
  }

  .bento-container .bento-item:nth-child(n) {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

@media (max-width: 480px) {
  .main-container {
    padding: 0 1.5rem;
  }

  .footer-direct-item {
    align-items: center;
    padding: 1.1rem;
  }

  .contact-email-link,
  .whatsapp-link {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .nav-links {
    gap: 0.9rem;
    padding: 5rem 1rem 1.5rem;
  }

  .nav-links::before {
    top: -18px;
    right: -54px;
    width: 230px;
    height: 230px;
    opacity: 0.16;
  }

  .nav-links a,
  .nav-dropdown-trigger {
    font-size: 1.25rem;
  }

  .nav-dropdown-menu {
    width: min(100%, 340px);
    margin-left: 0;
  }

  .nav-dropdown-menu a {
    font-size: 0.82rem;
    padding-top: 0.72rem;
    padding-bottom: 0.72rem;
  }
}

/* Utilities */
.overflow-hidden {
  overflow: hidden;
}

/* Compact Methodology Timeline Layout */
.work-model-section {
  background:
    linear-gradient(115deg, rgba(71, 193, 245, 0.08), transparent 32%),
    linear-gradient(250deg, rgba(252, 179, 34, 0.07), transparent 34%),
    var(--bg-color);
}

.work-method-header {
  gap: 4rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  padding: 0 !important;
}

.work-method-header .phase-title {
  max-width: 620px;
}

.work-method-header .split-right p {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.7vw, 1.12rem);
  line-height: 1.75;
}

.work-method-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 1.5rem);
  align-items: stretch;
}

/* Old gradient line removed */

.work-step-card {
  position: relative;
  min-height: 260px;
  padding: clamp(1.35rem, 2.8vw, 2rem);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  background: var(--bg-card);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.work-step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}

/* Removed work-step-card::before gradient */

.work-step-card span {
  display: inline-flex;
  margin-bottom: 1.1rem;
  color: var(--accent-blue);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.work-step-card h3 {
  position: relative;
  margin-bottom: 0.85rem;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.work-step-card p {
  position: relative;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .deck-card {
    flex-direction: column;
    padding: 2rem;
    gap: 2rem;
    min-height: auto;
    margin-bottom: 25vh;
  }
  
  .deck-right {
    width: 100%;
  }

  .deck-media-box {
    height: 200px;
  }

  .work-method-grid {
    grid-template-columns: 1fr;
  }

  /* Removed work-method-grid::before */
}

/* Editorial Split Layout for Sections */
.split-layout {
  display: flex !important;
  align-items: flex-start; /* Title aligned at the top with description */
  justify-content: space-between;
}

.split-left {
  flex: 1;
  max-width: 45%;
}

.split-right {
  flex: 1;
  max-width: 50%;
}

.phase-title {
  color: var(--text-main);
  display: block;
}

@media (max-width: 768px) {
  .split-layout {
    flex-direction: column !important;
    gap: 1.5rem !important;
  }

  .split-left, .split-right {
    max-width: 100% !important;
    width: 100% !important;
  }

  .phase-title {
    font-size: clamp(2rem, 9vw, 2.8rem) !important;
    margin-bottom: 0.5rem;
  }
}

/* ==========================================================================
   Dashboard & Auth Enhancement
   ========================================================================== */

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
}

.badge-success {
  background: rgba(60, 186, 146, 0.1);
  color: #3cba92;
  border-color: rgba(60, 186, 146, 0.2);
}

.badge-warning {
  background: rgba(253, 195, 78, 0.1);
  color: var(--accent-gold);
  border-color: rgba(253, 195, 78, 0.2);
}

.badge-error {
  background: rgba(255, 107, 107, 0.1);
  color: #ff6b6b;
  border-color: rgba(255, 107, 107, 0.2);
}

/* Enhanced Cards */
.dashboard-panel {
  overflow: hidden;
}

.dashboard-panel::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle at top right, var(--accent-glow), transparent 70%);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.dashboard-panel:hover::after {
  opacity: 1;
}

/* User Profile Header */
.user-profile-summary {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
  min-width: 0;
}

.user-profile-summary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(71, 193, 245, 0.3);
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #47c1f5, #36b0e3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000; /* Darker text for better contrast on bright blue */
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 0 20px rgba(71, 193, 245, 0.3);
  flex-shrink: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  min-width: 0;
}

.user-profile-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.header-user-email {
  max-width: 220px;
  overflow: hidden;
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-session-badge {
  width: fit-content;
  margin-top: 0.25rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.6rem;
}

.dashboard-back-link {
  flex-shrink: 0;
  padding: 0.75rem 1.25rem;
}

@media (max-width: 768px) {
  .header-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 0.75rem;
  }

  .user-profile-summary {
    width: 100%;
  }

  .header-user-email {
    max-width: none;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* Reset Password Centered Layout */
.auth-reset-card {
  margin: 4rem auto;
  max-width: 480px !important;
  padding: 3rem !important;
}

.auth-reset-card .dashboard-header {
  border-bottom: none;
  text-align: center;
  flex-direction: column;
  padding-bottom: 2rem;
}

.auth-reset-card h1 {
  font-size: 2.2rem;
  margin-top: 1rem;
  letter-spacing: -0.04em;
}

/* Form Styling Refinement */
.auth-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auth-form input {
  margin-bottom: 1.25rem;
}

/* Success States */
.success-check-animation {
  width: 64px;
  height: 64px;
  background: rgba(60, 186, 146, 0.2);
  color: #3cba92;
  border: 2px solid #3cba92;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  box-shadow: 0 0 30px rgba(60, 186, 146, 0.15);
}

/* --- OVERRIDES FOR STEP CARDS --- */
.work-method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 1.5rem);
  align-items: stretch;
  position: relative;
}

.step-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

/* Connectors */
.work-connector-desktop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 0;
  pointer-events: none;
}

.work-connector-mobile {
  display: none;
  position: absolute;
  top: 32px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: calc(100% - 32px);
  z-index: 0;
  pointer-events: none;
}

.work-connector-desktop path,
.work-connector-mobile path {
  fill: none;
  stroke: var(--accent-blue);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 12 10;
  filter: drop-shadow(0 0 8px var(--accent-glow));
  opacity: 0.92;
  animation: sketch-flow 5s linear infinite;
}

.work-connector-desktop path:nth-child(2),
.work-connector-mobile path:nth-child(2) {
  stroke: var(--accent-gold);
  stroke-width: 3;
  stroke-dasharray: 11 12;
  opacity: 0.82;
  animation-duration: 6.5s;
}

/* Step Node Visuals */
.step-node {
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  min-height: 64px !important;
  flex-shrink: 0;
  margin: 0 auto 1.5rem auto !important;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  z-index: 2;
}

.step-content {
  flex-grow: 1 !important;
}

@media (max-width: 900px) {
  .work-method-grid {
    grid-template-columns: 1fr;
  }
  .work-connector-desktop {
    display: none;
  }
  .work-connector-mobile {
    display: block;
  }
  .step-node {
    margin: 0 auto 1.5rem auto !important;
  }
}

/* --- OVERRIDES FOR KUELIPA MODEL SECTION --- */
.kuelipa-model-section {
  --model-content-sticky-top: calc(var(--model-sticky-top) + clamp(260px, 30vh, 310px)) !important;
  --model-platform-sticky-top: calc(var(--model-content-sticky-top) + clamp(40px, 8vh, 80px)) !important;
}

.model-source-card h3,
.model-report-card h3 {
  font-size: 1.18rem !important;
}

/* ==========================================================================
   Mobile & tablet polish for the public landing
   ========================================================================== */
@media (max-width: 992px) {
  .main-container {
    padding-inline: clamp(1.25rem, 4vw, 2rem);
  }

  .section {
    padding: clamp(4rem, 9vw, 5.5rem) 0;
  }

  .navbar {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: transparent;
  }

  .nav-container,
  .nav-right {
    min-width: 0;
  }

  .logo {
    min-width: 0;
    font-size: clamp(0.9rem, 2.2vw, 1.02rem);
    white-space: nowrap;
  }

  .nav-logo-island {
    padding: 0.24rem 0.58rem;
  }

  .nav-logo-img {
    height: 21px;
  }

  .hero {
    min-height: 92svh;
    padding: 7.5rem 0 4.5rem;
  }

  .hero-content {
    max-width: 780px;
  }

  .hero-content > .flex-center {
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 2.25rem !important;
  }

  .hero-title {
    font-size: clamp(2.55rem, 9vw, 4.25rem);
  }

  .hero-subtitle {
    max-width: 640px;
    font-size: clamp(1rem, 2.6vw, 1.16rem);
  }

  .trust-band {
    padding: 2rem 0;
  }

  .trust-logos {
    justify-content: center;
    gap: 1rem 1.4rem;
    text-align: center;
  }

  .principle-vertical-item {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.62);
  }

  .model-source-card,
  .model-report-card {
    width: 100%;
    max-width: none;
    box-shadow: 0 18px 45px rgba(0, 119, 194, 0.08);
  }

  .platform-card-glass {
    max-width: min(92%, 460px);
  }

  .ecosystem-blueprint {
    min-height: 360px;
    margin-top: 2.5rem;
    border-radius: 28px;
  }
}

@media (max-width: 640px) {
  body::before {
    background-size: 42px 42px;
  }

  .kuelipa-model-section {
    background:
      radial-gradient(circle at 15% 12%, rgba(0, 119, 194, 0.22), transparent 17rem),
      radial-gradient(circle at 88% 38%, rgba(252, 179, 34, 0.16), transparent 15rem),
      linear-gradient(180deg, #f3faff 0%, #ffffff 48%, #f8fbff 100%);
    overflow: hidden;
  }

  .kuelipa-model-section::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(90deg, rgba(0, 119, 194, 0.055) 1px, transparent 1px),
      linear-gradient(rgba(0, 119, 194, 0.045) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle at 50% 20%, rgba(0,0,0,0.9), transparent 72%);
    -webkit-mask-image: radial-gradient(circle at 50% 20%, rgba(0,0,0,0.9), transparent 72%);
  }

  .kuelipa-model-section .main-container {
    position: relative;
    z-index: 1;
  }

  #ecosistema {
    background:
      radial-gradient(circle at 20% 8%, rgba(252, 179, 34, 0.22), transparent 16rem),
      radial-gradient(circle at 86% 34%, rgba(0, 119, 194, 0.2), transparent 17rem),
      linear-gradient(180deg, #fff8ea 0%, #f7fbff 54%, #ffffff 100%);
  }

  #ecosistema::before {
    top: -10%;
    left: -25%;
    width: 150%;
    height: 125%;
    background:
      radial-gradient(circle at 25% 20%, rgba(252, 179, 34, 0.16) 0%, transparent 18rem),
      radial-gradient(circle at 75% 60%, rgba(0, 119, 194, 0.14) 0%, transparent 20rem),
      linear-gradient(135deg, rgba(255,255,255,0.38), transparent 60%);
    filter: blur(22px);
  }

  .main-container {
    padding-inline: 1rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .nav-left {
    min-width: 0;
    gap: 0.7rem;
  }

  .logo {
    gap: 0.55rem;
    max-width: 58vw;
    overflow: hidden;
  }

  .btn-lang {
    padding: 0.42rem 0.5rem;
  }

  .hero {
    min-height: auto;
    padding: 7rem 0 4rem;
  }

  .hero-logo-island {
    padding: 0.58rem 1rem;
  }

  .hero-logo-wrapper {
    width: 52px;
    height: 68px;
  }

  .logo-text-hero {
    width: 100%;
    font-size: clamp(1.45rem, 8vw, 2rem);
  }

  .hero-title,
  .section-title,
  .phase-title,
  .section-header h2,
  footer h2 {
    letter-spacing: -0.035em;
  }

  .hero-title {
    font-size: clamp(2.3rem, 12vw, 3.4rem);
  }

  .hero-subtitle,
  .about-lead-text,
  .model-intro,
  .footer-contact-intro {
    font-size: 1rem;
    line-height: 1.65;
  }

  .principle-vertical-item {
    gap: 1rem;
    padding: 0.9rem;
  }

  .principle-icon-wrapper {
    width: 46px;
    height: 46px;
    border-radius: 13px;
  }

  .clinical-icon {
    width: 24px;
    height: 24px;
  }

  .model-source-card,
  .model-report-card {
    padding: 1rem;
  }

  .platform-card-glass {
    padding: 1.1rem 1rem;
    border-radius: 18px;
  }

  .work-method-grid {
    gap: 0.9rem;
    padding-left: 3.1rem;
  }

  .work-connector-mobile {
    left: 1.35rem;
    top: 24px;
    width: 34px;
    height: calc(100% - 24px);
    transform: none;
    opacity: 0.45;
  }

  .work-connector-mobile path {
    stroke-width: 3;
    filter: none;
  }

  .step-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 0.8rem;
    align-items: start;
  }

  .step-node {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    font-size: 0.95rem;
    box-shadow: 0 6px 18px rgba(0, 119, 194, 0.1);
  }

  .work-step-card {
    min-height: auto;
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    text-align: left;
    align-items: flex-start;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.035);
  }

  .step-content {
    width: 100%;
    padding: 0 !important;
    border-radius: 0 !important;
  }

  .work-step-card span {
    margin-bottom: 0.4rem;
    font-size: 0.68rem;
  }

  .work-step-card h3 {
    margin-bottom: 0.45rem;
    font-size: 1.05rem;
    line-height: 1.22;
  }

  .work-step-card p {
    font-size: 0.86rem;
    line-height: 1.5;
  }

  .founder-portrait-frame {
    width: min(100%, 300px);
    height: 300px;
    margin-inline: auto;
    border-radius: 32px;
  }

  .founder-portrait-img {
    height: 145%;
    object-fit: cover;
    object-position: 50% 8%;
    transform: translateY(-24%);
    filter: none;
  }

  .founder-showcase-column:hover .founder-portrait-img {
    transform: translateY(-24%);
  }

  .network-node {
    min-height: 42px;
    padding: 0.65rem 0.85rem;
  }

  .network-node span:not(.node-dot) {
    font-size: 0.76rem;
  }

  .footer-contact-grid {
    gap: 1.5rem;
  }

  .contact-info-card,
  .contact-form {
    border-radius: 20px;
  }

  .contact-email-link {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 380px) {
  .logo {
    max-width: 52vw;
    font-size: 0.9rem;
  }

  .nav-logo-island {
    padding-inline: 0.45rem;
  }

  .btn-lang span {
    display: none;
  }

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

@media (min-width: 769px) {
  .work-method-header .split-right {
    padding-top: 1.85rem;
  }
}

/* ==========================================================================
   Ecosistema Kuelipa Section Styles
   ========================================================================== */
#ecosistema {
  position: relative;
  background:
    radial-gradient(circle at 18% 12%, rgba(252, 179, 34, 0.13), transparent 22rem),
    radial-gradient(circle at 86% 24%, rgba(0, 119, 194, 0.2), transparent 24rem),
    radial-gradient(circle at 50% 92%, rgba(71, 193, 245, 0.16), transparent 28rem),
    linear-gradient(135deg, #eef9ff 0%, #f8fcff 46%, #ffffff 100%);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

/* Beautiful custom mesh gradient stage that breaks the white monotony */
#ecosistema::before {
  content: '';
  position: absolute;
  top: -24%;
  left: -12%;
  width: 124%;
  height: 148%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 18%, rgba(0, 119, 194, 0.16) 0%, transparent 34rem),
    radial-gradient(circle at 82% 70%, rgba(252, 179, 34, 0.1) 0%, transparent 36rem),
    radial-gradient(circle at 52% 46%, rgba(255, 255, 255, 0.72) 0%, transparent 44rem);
  filter: blur(34px);
}

#ecosistema::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 119, 194, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(0, 119, 194, 0.045) 1px, transparent 1px),
    linear-gradient(120deg, transparent 0 44%, rgba(252, 179, 34, 0.1) 44% 45%, transparent 45% 100%),
    linear-gradient(300deg, transparent 0 54%, rgba(0, 119, 194, 0.1) 54% 55%, transparent 55% 100%);
  background-size: 52px 52px, 52px 52px, 100% 100%, 100% 100%;
  mask-image: radial-gradient(circle at 50% 45%, rgba(0,0,0,0.8), transparent 76%);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, rgba(0,0,0,0.8), transparent 76%);
  opacity: 0.85;
}

#ecosistema .main-container {
  position: relative;
  z-index: 2;
}

/* Pulsing Gold badge */
.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  border: 1px solid rgba(252, 179, 34, 0.36);
  background: rgba(252, 179, 34, 0.1);
  color: #8a5600;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 100px;
  text-transform: uppercase;
  box-shadow: none;
}

#ecosistema .coming-soon-badge {
  margin-bottom: 1.15rem;
}

.coming-soon-badge .pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-gold);
  animation: pulse-gold 2.2s infinite ease-in-out;
}

@keyframes pulse-gold {
  0% {
    transform: scale(0.92);
    box-shadow: 0 0 0 0 rgba(252, 179, 34, 0.6);
  }
  70% {
    transform: scale(1.08);
    box-shadow: 0 0 0 6px rgba(252, 179, 34, 0);
  }
  100% {
    transform: scale(0.92);
    box-shadow: 0 0 0 0 rgba(252, 179, 34, 0);
  }
}

/* Ecosystem blueprint redesigned for centered animated loader */
.ecosystem-blueprint {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 440px;
  margin-top: 3.5rem;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
  border: 1px solid rgba(0, 119, 194, 0.22);
  border-radius: 36px;
  background:
    linear-gradient(90deg, rgba(0, 119, 194, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(0, 119, 194, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(252, 179, 34, 0.2), transparent 22rem),
    radial-gradient(circle at 18% 20%, rgba(71, 193, 245, 0.14), transparent 18rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(235, 248, 255, 0.82));
  background-size: 46px 46px, 46px 46px, auto, auto, auto;
  box-shadow: 0 30px 90px rgba(0, 119, 194, 0.14), 0 10px 38px rgba(252, 179, 34, 0.08);
  z-index: 1;
}

/* Horizontal technical markings across blueprint */
.ecosystem-blueprint::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 119, 194, 0.22) 20%, rgba(0, 119, 194, 0.22) 80%, transparent);
  pointer-events: none;
  z-index: 0;
}

.blueprint-orbit {
  position: absolute;
  inset: 12%;
  border: 1px dashed rgba(0, 119, 194, 0.18);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: orbit-rotate 60s linear infinite;
}

@keyframes orbit-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.ecosystem-progress-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
  text-align: center;
}

.progress-ring-wrapper {
  position: relative;
  width: clamp(190px, 23vw, 250px);
  height: clamp(190px, 23vw, 250px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-ring-svg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.progress-ring-track {
  fill: none;
  stroke: rgba(0, 119, 194, 0.05);
  stroke-width: 4;
}

.progress-ring-active {
  fill: none;
  stroke-linecap: round;
  transform-origin: 50% 50%;
}

.progress-blue {
  stroke: var(--accent-blue);
  stroke-width: 4;
  stroke-dasharray: 615;
  stroke-dashoffset: 450;
  animation: rotate-progress-blue 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.progress-gold {
  stroke: var(--accent-gold);
  stroke-width: 3;
  stroke-dasharray: 552;
  stroke-dashoffset: 380;
  animation: rotate-progress-gold 3.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes rotate-progress-blue {
  0% {
    transform: rotate(0deg);
    stroke-dashoffset: 615;
  }
  50% {
    stroke-dashoffset: 180;
  }
  100% {
    transform: rotate(360deg);
    stroke-dashoffset: 615;
  }
}

@keyframes rotate-progress-gold {
  0% {
    transform: rotate(360deg);
    stroke-dashoffset: 552;
  }
  50% {
    stroke-dashoffset: 120;
  }
  100% {
    transform: rotate(0deg);
    stroke-dashoffset: 552;
  }
}

.blueprint-logo-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 78%;
  height: 78%;
  border: 1px solid rgba(252, 179, 34, 0.34);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(0, 119, 194, 0.08);
  animation: logo-shell-pulse 2.5s ease-in-out infinite alternate;
}

@keyframes logo-shell-pulse {
  0% {
    transform: scale(0.97);
    box-shadow: 0 0 0 8px rgba(0, 119, 194, 0.03), 0 10px 30px rgba(0, 119, 194, 0.06);
  }
  100% {
    transform: scale(1.03);
    box-shadow: 0 0 0 16px rgba(252, 179, 34, 0.04), 0 15px 40px rgba(0, 119, 194, 0.1);
  }
}

.blueprint-logo {
  width: 52%;
  height: auto;
}

.blueprint-core-text {
  max-width: 320px;
  margin: 0;
  color: var(--text-main);
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.019em;
  animation: text-pulse 2s ease-in-out infinite alternate;
}

@keyframes text-pulse {
  0% {
    opacity: 0.88;
    transform: scale(0.99);
  }
  100% {
    opacity: 1;
    transform: scale(1.01);
  }
}
