/* Reset y tokens */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-bg-light: rgba(255, 255, 255, 0.15);
  --glass-bg-subtle: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.3);

  --text-primary: #1d1d1f;
  --text-secondary: #5b5b60;
  --text-tertiary: #59595f;

  --apple-blue: #007aff;
  --apple-blue-light: rgba(0, 122, 255, 0.1);
  --apple-green: #30d158;

  --background-primary: #ffffff;
  --background-secondary: #f5f5f7;

  --shadow-sm: 0 1px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: linear-gradient(135deg, #fbfbfd 0%, #f5f5f7 50%, #ffffff 100%);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accesibilidad */
:focus-visible {
  outline: 2px solid var(--apple-blue);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  padding: 12px 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  /* Blur desactivado en móvil más abajo */
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.header-inner {
  width: 100%;
  padding: 0 20px;
  position: relative;
}
nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.3px;
  padding-left: 160px;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  flex: 1;
  justify-content: center;
  margin: 0 32px 0 20px;
}
.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  opacity: 0.85;
  transition: 0.2s;
}
.nav-links a:hover {
  opacity: 1;
  color: var(--apple-blue);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 48px;
}
.header-lang {
  flex-shrink: 0;
  justify-self: end;
}
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.lang-toggle__btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.lang-toggle__btn.is-active {
  background: rgba(0, 122, 255, 0.12);
  color: var(--apple-blue);
  box-shadow: inset 0 0 0 1px rgba(0, 122, 255, 0.25);
}
.lang-toggle__btn:focus-visible {
  outline: 2px solid var(--apple-blue);
  outline-offset: 2px;
}

.cta-button {
  background: var(--apple-blue);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 17px;
  border: none;
  transition: 0.2s;
}
.cta-button:hover {
  background: #0056cc;
  transform: translateY(-1px);
}

.site-header .cta-button {
  background: linear-gradient(135deg, #007aff, #5ac8fa);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -6px 12px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}
.site-header .cta-button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0.05) 45%,
    rgba(255, 255, 255, 0) 60%
  );
  mix-blend-mode: screen;
  transform: translateX(-150%);
  animation: hero-btn-glint 4s ease-in-out infinite;
}
.site-header .cta-button::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.3);
  opacity: 0.7;
  pointer-events: none;
}
.site-header .cta-button:hover {
  transform: translateY(-2px) scale(1.01);
  background: linear-gradient(135deg, #0088ff, #6dd3ff);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -6px 14px rgba(0, 0, 0, 0.25);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 60px;
  position: relative;
}

/* Nota: removido el bloque móvil de .hero--with-bg porque ya no se usa */

.hero-content {
  max-width: 980px;
  text-align: center;
  width: 100%;
}
.hero h1 {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 16px;
  letter-spacing: -0.015em;
}
.hero-subtitle {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}
.hero-description {
  font-size: clamp(19px, 2.5vw, 21px);
  color: var(--text-tertiary);
  margin: 0 auto 32px;
  max-width: 640px;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.btn-primary,
.btn-secondary {
  min-width: 160px;
  border-radius: 28px;
  font-size: 17px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary {
  background: var(--apple-blue);
  color: #fff;
  border: none;
  position: relative;
  overflow: hidden;
}
.btn-primary:hover {
  background: #0056cc;
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 122, 255, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--apple-blue);
  border: 1px solid rgba(0, 122, 255, 0.2);
  position: relative;
  overflow: hidden;
}
.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 122, 255, 0.3);
}
.hero .btn-primary,
.hero .btn-secondary {
  background: linear-gradient(135deg, #007aff, #5ac8fa);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -6px 12px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}
.hero .btn-primary::after,
.hero .btn-secondary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0.05) 45%,
    rgba(255, 255, 255, 0) 60%
  );
  mix-blend-mode: screen;
  transform: translateX(-150%);
  animation: hero-btn-glint 4s ease-in-out infinite;
}
.hero .btn-primary::before,
.hero .btn-secondary::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.3);
  opacity: 0.7;
  pointer-events: none;
}
.hero .btn-primary:hover,
.hero .btn-secondary:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -6px 14px rgba(0, 0, 0, 0.25);
}

@keyframes hero-btn-glint {
  0% {
    transform: translateX(-150%) rotate(0deg);
    opacity: 0.6;
  }
  50% {
    transform: translateX(50%) rotate(0deg);
    opacity: 0;
  }
  100% {
    transform: translateX(150%) rotate(0deg);
    opacity: 0;
  }
}

/* Glass base */
.liquid-glass {
  position: relative;
  background: var(--glass-bg);
  border-radius: 2.5rem;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  isolation: isolate;
}
.liquid-glass::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: inherit;
  border-radius: inherit;
  backdrop-filter: blur(20px) saturate(200%) contrast(120%);
  -webkit-backdrop-filter: blur(20px) saturate(200%) contrast(120%);
  z-index: -1;
}
.liquid-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0.1) 25%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0.1) 75%,
    rgba(255, 255, 255, 0.4) 100%
  );
  box-shadow: inset 2px 2px 5px rgba(255, 255, 255, 0.8),
    inset -2px -2px 5px rgba(255, 255, 255, 0.3),
    inset 0 0 20px rgba(255, 255, 255, 0.2);
}
.liquid-glass-content {
  position: relative;
  z-index: 2;
}

.liquid-glass-enhanced {
  background: var(--glass-bg-light);
  border-radius: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.liquid-glass-enhanced::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  z-index: -1;
  backdrop-filter: blur(25px) saturate(180%) brightness(110%);
  -webkit-backdrop-filter: blur(25px) saturate(180%) brightness(110%);
}
.liquid-glass-droplet {
  border-radius: 4rem;
  background: var(--glass-bg-subtle);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.liquid-glass-droplet::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  z-index: -1;
  backdrop-filter: blur(15px) saturate(150%) contrast(105%);
  -webkit-backdrop-filter: blur(15px) saturate(150%) contrast(105%);
}
.liquid-glass-droplet::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    ellipse at 30% 20%,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0.3) 25%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 75%,
    rgba(255, 255, 255, 0.2) 100%
  );
  box-shadow: inset 4px 4px 12px rgba(255, 255, 255, 0.8),
    inset -2px -2px 8px rgba(255, 255, 255, 0.4),
    inset 0 0 25px rgba(255, 255, 255, 0.3);
}

/* Social Proof */
.social-proof {
  padding: 60px 20px;
  background: var(--background-primary);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.social-proof-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* Título con líneas a los lados (Opción A) */
.social-proof-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto 28px;
  color: var(--text-secondary);
  font-size: 38px;
  font-weight: 500;
  letter-spacing: 0.2px;
  text-align: center;
}
.social-proof-title::before,
.social-proof-title::after {
  content: "";
  height: 1px;
  flex: 1 1 160px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0, 0, 0, 0.08),
    transparent
  );
}
.social-proof-title::after {
  background: linear-gradient(
    to left,
    transparent,
    rgba(0, 0, 0, 0.08),
    transparent
  );
}

/* Contenedor de la parrilla de logos */
.client-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px;
  opacity: 0.95;
}

/* Caja estándar del logo */
.logo-box {
  width: 280px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px; /* margen de seguridad */
}

/* Imagen del logo dentro de su caja */
.logo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease;
}
.logo-box:hover img {
  transform: scale(1.03);
}

/* Ajuste para pantallas pequeñas */
@media (max-width: 640px) {
  .social-proof-title {
    font-size: 14px;
    gap: 10px;
    margin-bottom: 24px;
  }
  .social-proof-title::before,
  .social-proof-title::after {
    flex-basis: 80px;
  }
  .client-logos {
    gap: 20px;
  }
  .logo-box {
    width: 140px;
    height: 32px;
    padding: 4px 6px;
  }
}

/* Features */
.features {
  padding: 100px 20px;
  background: var(--background-secondary);
}
.features-container {
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-badge {
  display: inline-block;
  background: rgba(0, 122, 255, 0.1);
  color: var(--apple-blue);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 500;
  border: 1px solid rgba(0, 122, 255, 0.2);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.section-description {
  font-size: clamp(17px, 2vw, 19px);
  color: var(--text-tertiary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  padding: 32px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  position: relative;
  contain: content;
  will-change: transform;
  text-align: center;
}
.feature-card:hover,
.feature-card.is-centered {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.feature-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.feature-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  color: var(--apple-blue);
}
.feature-description {
  color: var(--text-tertiary);
  font-size: 17px;
  line-height: 1.5;
}

/* Team */
.team {
  padding: 100px 20px;
  background: var(--background-primary);
}
.team-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Centrado y sin columnas fantasma */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 48px;
  justify-items: center;
  align-items: start;
}

.team-card {
  width: 100%;
  max-width: 320px;
  text-align: center;
  padding: 24px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  position: relative;
  contain: content;
  will-change: transform;
}
.team-card:hover,
.team-card.is-centered {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.team-avatar {
  width: 130px;
  height: 130px;
  background: linear-gradient(135deg, var(--apple-blue), #5ac8fa);
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 122, 255, 0.3);
}
.team-name {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 4px;
}
.team-role {
  color: var(--apple-blue);
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 500;
}
.team-bio {
  color: var(--text-tertiary);
  font-size: 15px;
  line-height: 1.4;
}

/* Implementations */
.implementations {
  padding: 80px 20px 100px;
  background: var(--background-primary);
}
.implementations-container {
  max-width: 1200px;
  margin: 0 auto;
}
.implementation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 48px;
}
.implementation-card {
  padding: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  position: relative;
  contain: content;
  will-change: transform;
}
.implementation-card:hover,
.implementation-card.is-centered {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
}
.implementation-card .liquid-glass-content {
  padding: 32px;
}
.implementation-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--apple-blue);
  background: rgba(0, 122, 255, 0.12);
  border: 1px solid rgba(0, 122, 255, 0.25);
  margin-bottom: 16px;
}
.implementation-title {
  font-size: 24px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.implementation-description {
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.implementation-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  margin: 0;
}
.implementation-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-tertiary);
}
.implementation-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(0, 122, 255, 0.18),
    rgba(0, 122, 255, 0.32)
  );
  color: var(--apple-blue);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  margin-top: 2px;
}
@media (min-width: 768px) {
  .implementation-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* Contact */
.contact {
  padding: 100px 20px;
  background: var(--background-secondary);
}
.contact-container {
  max-width: 900px;
  margin: 0 auto;
}
.contact-card {
  max-width: 720px;
  margin: 0 auto;
}
.contact-card .liquid-glass-content {
  padding: 40px 40px 52px;
  text-align: center;
}
.contact-badge {
  background: rgba(48, 209, 88, 0.12);
  color: #0f7a32;
  border-color: rgba(48, 209, 88, 0.35);
}
.contact-lede {
  margin: 16px auto 32px;
  max-width: 540px;
}
.contact-subtext {
  margin-top: 28px;
  color: var(--text-secondary);
  font-size: 16px;
}
.whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: #0f7a32;
  background: linear-gradient(
    135deg,
    rgba(48, 209, 88, 0.45),
    rgba(52, 199, 89, 0.3)
  );
  border: 1px solid rgba(48, 209, 88, 0.5);
  box-shadow: 0 18px 45px rgba(48, 209, 88, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -6px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(15px) saturate(160%);
  -webkit-backdrop-filter: blur(15px) saturate(160%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease,
    background 0.3s ease;
  position: relative;
  overflow: hidden;
}
.whatsapp-button:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 24px 60px rgba(48, 209, 88, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 -6px 14px rgba(0, 0, 0, 0.2);
  background: linear-gradient(
    135deg,
    rgba(48, 209, 88, 0.6),
    rgba(52, 199, 89, 0.4)
  );
}
.whatsapp-button:focus-visible {
  outline: 3px solid rgba(48, 209, 88, 0.4);
  outline-offset: 4px;
}

@media (max-width: 600px) {
  .contact-card .liquid-glass-content {
    padding: 32px 24px;
  }
  .whatsapp-button {
    width: 100%;
  }
}

/* Footer */
.site-footer {
  background: transparent;
  padding: 80px 20px;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}
.footer-column {
  flex: 1 1 220px;
  min-width: 200px;
}
.footer-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-secondary);
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--apple-blue);
}
.footer-meta {
  color: var(--text-tertiary);
  margin-bottom: 8px;
}
.footer-meta a {
  color: var(--apple-blue);
  text-decoration: none;
}
.footer-meta a:hover {
  text-decoration: underline;
}
.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  text-align: center;
  color: var(--text-tertiary);
  font-size: 14px;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
  }
}

/* Chatbot */
.chatbot-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: none; /* Oculta temporalmente el launch sin eliminar la funcionalidad */
}
.chatbot-bubble {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--apple-blue), var(--apple-green));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 122, 255, 0.4);
  transition: transform 0.3s;
  position: relative;
  overflow: hidden;
  border: 0;
}
.chatbot-bubble:hover {
  transform: scale(1.08);
}
.chatbot-bubble span {
  font-size: 24px;
}

.chatbot-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 500px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
  /* Blur pesado se desactiva en móvil abajo */
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.chatbot-window.active {
  display: flex;
  animation: slideUpFade 0.3s ease;
}
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Contenido interno del chat a columna para empujar el input al fondo */
.chatbot-window .liquid-glass-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Header con glass suave */
.chatbot-header {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.chatbot-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
}
.chatbot-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--apple-blue);
  color: #fff;
  font-size: 16px;
}
.chatbot-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 4px;
  border-radius: 50%;
}
.chatbot-close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-primary);
}

/* Zona de mensajes */
.chatbot-messages {
  flex: 1;
  padding: 16px 16px 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chatbot-message {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 20px;
  font-size: 14px;
  line-height: 1.45;
  position: relative;
  animation: fadeInSlide 0.25s ease;
}
.chatbot-message.bot {
  background: rgba(0, 122, 255, 0.12);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 6px;
}
.chatbot-message.bot::before {
  content: "";
  position: absolute;
  left: -6px;
  bottom: 0;
  width: 12px;
  height: 12px;
  background: inherit;
  border-radius: 50%;
}
.chatbot-message.user {
  background: var(--apple-blue);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 6px;
}
.chatbot-message.user::before {
  content: "";
  position: absolute;
  right: -6px;
  bottom: 0;
  width: 12px;
  height: 12px;
  background: inherit;
  border-radius: 50%;
}
@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Input bar integrada */
.chatbot-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 12px 8px;
  padding: 6px 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 24px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}
.chatbot-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  padding: 8px 10px;
  background: transparent;
}
.chatbot-send {
  background: var(--apple-blue);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.chatbot-send:hover {
  background: #0056cc;
  transform: scale(1.05);
}
.chatbot-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Indicador de escritura */
.chatbot-typing {
  display: none;
  align-self: flex-start;
  padding: 10px 14px;
  background: rgba(0, 122, 255, 0.12);
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  margin: 0 16px 12px;
}
.chatbot-typing.active {
  display: block;
}
.typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}
.typing-dot {
  width: 8px;
  height: 8px;
  background: var(--apple-blue);
  border-radius: 50%;
  animation: typing 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(2) {
  animation-delay: 0.15s;
}
.typing-dot:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes typing {
  0%,
  60%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-7px);
  }
}

/* Responsivo */
@media (max-width: 400px) {
  .chatbot-window {
    width: min(92vw, 360px);
    right: 0;
    height: 420px;
  }
}

@media (max-width: 600px) {
  /* ya tienes regla global que apaga blur pesado, mantenemos consistencia */
  .chatbot-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #fff;
  }
  .chatbot-input-bar {
    margin: 8px 12px;
  }
  .chatbot-message {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .cta-button {
    padding: 6px 12px;
    font-size: 15px;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .liquid-glass,
  .liquid-glass-enhanced,
  .liquid-glass-droplet {
    border-radius: 1.5rem;
  }
  .client-logos {
    gap: 16px;
  }
}

/* Desactivar blur pesado en móviles */
@media (max-width: 600px) {
  .site-header.scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.98);
  }
  .liquid-glass::before,
  .liquid-glass-enhanced::before,
  .liquid-glass-droplet::before,
  .chatbot-window {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .liquid-glass,
  .liquid-glass-enhanced,
  .liquid-glass-droplet {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  }
}

/* Header compacto en móvil — mantener al final para ganar cascada */
@media (max-width: 768px) {
  .header-inner {
    padding: 0;
  }
  nav {
    /* Fluid padding: minimum 16px, scales with viewport, max 24px */
    padding: 0 clamp(16px, 5vw, 24px);
    justify-content: space-between;
  }
  .logo {
    /* Reset desktop padding */
    padding-left: 0;
    /* Fluid font size */
    font-size: clamp(18px, 5vw, 22px);
  }
  .nav-links {
    display: none !important;
  }
  .nav-actions {
    gap: clamp(12px, 3vw, 20px);
  }
  .cta-button {
    padding: 8px clamp(12px, 4vw, 18px);
    font-size: clamp(14px, 4vw, 16px);
    border-radius: 20px;
  }
}

/* Animación al estar centrada en móvil */
@media (max-width: 768px) {
  .feature-card.is-centered,
  .team-card.is-centered,
  .implementation-card.is-centered {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
  }
}

/* Variables para teclado móvil */
:root {
  --kb-offset: 0px; /* se actualiza vía JS */
}

/* Elevar el panel cuando hay teclado y respetar safe-area */
.chatbot-window {
  /* antes: bottom: 80px; */
  bottom: calc(80px + var(--kb-offset, 0px) + env(safe-area-inset-bottom, 0px));
  /* quepa siempre en el viewport visible cuando hay teclado */
  max-height: 85dvh;
  height: clamp(380px, 70dvh, 520px);
}

/* Input: extra respiración en móviles con barra inferior */
.chatbot-input-bar {
  padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
}

/* Móviles muy angostos: usa dvh y evita desbordes */
@media (max-width: 400px) {
  .chatbot-window {
    width: min(92vw, 360px);
    right: 0;
    height: clamp(360px, 68dvh, 480px);
  }
}

/* ===== Team avatar: foto con aro glass (Opción B) ===== */
.team-avatar--photo {
  /* grosor del aro */
  --ring: 3px;
  padding: var(--ring);
  background: linear-gradient(135deg, var(--apple-blue), #5ac8fa);
  position: relative; /* para el brillo */
}

/* la foto adentro del aro */
.team-avatar--photo .team-avatar-img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  background: #fff; /* base para evitar artefactos en jpg */
  /* borde interior suave + sombra coherente con tu estilo */
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65),
    0 8px 25px rgba(0, 122, 255, 0.25);
}

/* brillo sutil del vidrio */
.team-avatar--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    110% 110% at 28% 22%,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0) 55%
  );
}

/* Mejoras para la sección de equipo - agregar al final del archivo */
.bio-highlight {
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

.bio-details {
  margin-bottom: 16px;
}

.bio-expertise {
  background: rgba(0, 122, 255, 0.06);
  padding: 12px 16px;
  border-radius: 12px;
  border-left: 3px solid var(--apple-blue);
  margin-top: 16px;
  font-size: 14px;
}

.expertise-label {
  font-weight: 600;
  color: var(--apple-blue);
  display: block;
  margin-bottom: 4px;
}

.metric-highlight {
  color: var(--apple-blue);
  font-weight: 700;
}

/* Actualizar el tamaño del avatar existente */
