:root {
  --navy-950: #0a1628;
  --navy-900: #0f2240;
  --navy-800: #1a365d;
  --navy-700: #234876;
  --blue-accent: #1d4ed8;
  --blue-accent-hover: #1e40af;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(15, 34, 64, 0.06);
  --shadow-md: 0 4px 24px rgba(15, 34, 64, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 34, 64, 0.12);
  --shadow-card: 0 4px 6px -1px rgba(15, 34, 64, 0.06), 0 12px 24px -4px rgba(15, 34, 64, 0.1);
  --shadow-card-hover: 0 12px 40px -8px rgba(15, 34, 64, 0.18), 0 0 0 1px rgba(29, 78, 216, 0.12);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --header-h: 76px;
  /* FAB Elisa + WhatsApp: más arriba que el pie; el panel usa el mismo eje vertical */
  --fab-stack-bottom: 6.85rem;
  --fab-panel-offset: 4.15rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--gray-600);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--navy-950);
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  margin: 0 0 1.25rem;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.125rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--blue-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.text-accent {
  color: var(--blue-accent);
}

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.site-header.header--on-hero {
  background: rgba(10, 22, 40, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.site-header.header--on-hero .logo__line1 {
  color: rgba(255, 255, 255, 0.95);
}

.site-header.header--on-hero .logo__line2 {
  color: #93c5fd;
}

.site-header.header--on-hero .logo__img {
  filter: drop-shadow(0 0 20px rgba(147, 197, 253, 0.35)) drop-shadow(0 4px 16px rgba(0, 0, 0, 0.35));
}

.site-header.header--on-hero .nav a {
  color: rgba(255, 255, 255, 0.88);
}

.site-header.header--on-hero .nav a:hover {
  color: var(--white);
}

.site-header.header--on-hero .nav a.nav-link--external::after {
  content: " ↗";
  font-size: 0.72em;
  opacity: 0.85;
}

.site-header.header--on-hero .nav-cta {
  background: var(--white);
  color: var(--navy-950) !important;
}

.site-header.header--on-hero .nav-cta:hover {
  background: #e0e7ff;
  color: var(--navy-950) !important;
}

.site-header.header--on-hero .nav-toggle {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.site-header.header--on-hero .nav-toggle span {
  background: var(--white);
}

.site-header.header--on-hero.is-scrolled {
  background: rgba(10, 22, 40, 0.72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.header-inner {
  width: min(1140px, 92vw);
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  max-width: min(100%, 420px);
}

.logo:hover,
.logo:focus-visible {
  text-decoration: none;
}

.logo__img {
  height: 46px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(15, 34, 64, 0.12));
  transition: filter 0.25s ease;
}

.logo__wordmark {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.15;
  min-width: 0;
}

.logo__line1 {
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--navy-950);
}

.logo__line2 {
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--blue-accent);
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .logo__wordmark {
    display: none;
  }

  .logo__img {
    height: 42px;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  color: var(--gray-600);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover {
  color: var(--navy-950);
  text-decoration: none;
}

.nav a.nav-link--external::after {
  content: " ↗";
  font-size: 0.72em;
  opacity: 0.75;
}

.nav-cta {
  padding: 0.55rem 1.2rem;
  background: var(--navy-950);
  color: var(--white) !important;
  border-radius: 8px;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--navy-800);
  color: var(--white) !important;
}

@media (min-width: 901px) {
  .header-inner {
    gap: 1rem 1.5rem;
    width: min(1240px, 94vw);
  }

  .logo {
    max-width: min(260px, 26vw);
    flex-shrink: 0;
  }

  .nav {
    flex: 1;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.45rem 0.95rem;
    min-width: 0;
    overflow-x: visible;
    row-gap: 0.35rem;
  }

  .nav a {
    white-space: nowrap;
    font-size: 0.875rem;
    flex-shrink: 0;
  }

  .nav-cta {
    flex-shrink: 0;
    padding: 0.52rem 1.15rem;
    font-size: 0.875rem;
  }
}

/* Portátiles: el menú puede pasar a dos líneas; un poco más de alto para que no se corte */
@media (min-width: 901px) and (max-width: 1199px) {
  :root {
    --header-h: 88px;
  }

  .site-header {
    height: auto;
    min-height: var(--header-h);
  }

  .header-inner {
    padding-block: 0.4rem;
  }
}

/* Pantallas amplias: menú más despejado y ancho útil mayor */
@media (min-width: 1200px) {
  :root {
    --header-h: 76px;
  }

  .site-header {
    height: var(--header-h);
  }

  .header-inner {
    width: min(1420px, 96vw);
    gap: 1.25rem 2rem;
  }

  .logo {
    max-width: min(280px, 24vw);
  }

  .nav {
    flex-wrap: nowrap;
    gap: 0.5rem 1.35rem;
  }

  .nav a {
    font-size: 0.9rem;
  }

  .nav-cta {
    padding: 0.55rem 1.35rem;
    font-size: 0.9rem;
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy-950);
  border-radius: 1px;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 200;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    -webkit-overflow-scrolling: touch;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--gray-100);
  }

  .nav a:last-child {
    border-bottom: none;
    margin-top: 0.5rem;
    text-align: center;
  }

  /* El menú desplegable tiene fondo claro: forzar texto oscuro (evita enlaces blancos sobre blanco con header--on-hero). */
  .site-header.header--on-hero .nav a {
    color: var(--navy-950);
  }

  .site-header.header--on-hero .nav a:hover {
    color: var(--navy-800);
  }

  .site-header.header--on-hero .nav-cta {
    background: var(--navy-950);
    color: var(--white) !important;
  }

  .site-header.header--on-hero .nav-cta:hover {
    background: var(--navy-800);
    color: var(--white) !important;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 2.5rem) 0 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 900px) {
  .hero {
    padding: calc(var(--header-h) + 1.15rem) 0 0;
    min-height: 100svh;
    min-height: 100dvh;
    justify-content: flex-start;
  }

  .hero__inner {
    padding-bottom: 1.25rem;
    justify-content: flex-start;
    padding-top: 0.35rem;
  }

  .hero-grid {
    gap: 1.35rem;
  }

  .hero-brand {
    margin-bottom: 1rem;
  }

  .hero-brand__logo {
    width: min(64vw, 240px);
  }

  .hero-copy h1 {
    font-size: clamp(1.35rem, 5.2vw, 1.85rem);
    margin-bottom: 0.85rem;
  }

  .hero-lead {
    font-size: 0.98rem;
    line-height: 1.62;
    margin-bottom: 1.35rem;
  }

  .hero-eyebrow {
    font-size: 0.68rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.06em;
  }

  .hero-actions {
    gap: 0.65rem;
    margin-bottom: 1.25rem;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-trust {
    gap: 0.35rem 0.45rem;
  }

  .hero__marquee {
    margin-top: auto;
  }
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__photo {
  position: absolute;
  inset: -12%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  transform-origin: center center;
}

/* Fondos originales generados por IA (sin stock de terceros) */
.hero__photo--1 {
  background-image: url("assets/hero-servers-ai.png");
  animation: hero-kenburns-a 48s ease-in-out infinite alternate, hero-cycle-1 60s ease-in-out infinite;
}

.hero__photo--2 {
  background-image: url("assets/hero-globe-ai.png");
  animation: hero-kenburns-b 52s ease-in-out infinite alternate, hero-cycle-2 60s ease-in-out infinite;
}

.hero__photo--3 {
  background-image: url("assets/hero-security-ai.png");
  animation: hero-kenburns-c 46s ease-in-out infinite alternate, hero-cycle-3 60s ease-in-out infinite;
}

.hero__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 10% 20%, rgba(59, 130, 246, 0.16), transparent 50%),
    radial-gradient(ellipse 70% 60% at 90% 80%, rgba(29, 78, 216, 0.2), transparent 45%),
    radial-gradient(ellipse 50% 40% at 70% 30%, rgba(16, 185, 129, 0.08), transparent 40%);
  animation: hero-mesh-drift 28s ease-in-out infinite alternate;
  mix-blend-mode: screen;
  opacity: 0.65;
}

.hero__grid-drift {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: hero-grid-move 80s linear infinite;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, black 15%, transparent 72%);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(115deg, rgba(10, 22, 40, 0.92) 0%, rgba(10, 22, 40, 0.72) 42%, rgba(26, 54, 93, 0.38) 78%, rgba(10, 22, 40, 0.55) 100%),
    linear-gradient(180deg, transparent 50%, rgba(10, 22, 40, 0.88) 100%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding-bottom: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-grid {
  display: grid;
  gap: 2.75rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr minmax(300px, 400px);
    gap: 3.5rem;
  }
}

.hero-brand {
  margin-bottom: 1.5rem;
}

.hero-brand__logo {
  display: block;
  width: min(72vw, 300px);
  height: auto;
  margin-bottom: 0.85rem;
  filter:
    drop-shadow(0 0 32px rgba(96, 165, 250, 0.35))
    drop-shadow(0 0 60px rgba(56, 189, 248, 0.2))
    drop-shadow(0 12px 40px rgba(0, 0, 0, 0.45));
  transition: filter 0.4s ease, transform 0.4s ease;
}

.hero-brand:hover .hero-brand__logo {
  filter:
    drop-shadow(0 0 40px rgba(147, 197, 253, 0.45))
    drop-shadow(0 0 80px rgba(56, 189, 248, 0.25))
    drop-shadow(0 16px 48px rgba(0, 0, 0, 0.5));
  transform: translateY(-2px);
}

.hero-brand__name {
  margin: 0;
  max-width: 22rem;
  font-size: clamp(0.65rem, 1.5vw, 0.78rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.45;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  border-left: 3px solid rgba(56, 189, 248, 0.85);
  padding-left: 0.85rem;
}

.hero-copy h1 {
  color: var(--white);
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
}

.hero-gradient-text {
  background: linear-gradient(120deg, #93c5fd 0%, #38bdf8 45%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(147, 197, 253, 0.95);
  margin-bottom: 1.1rem;
}

.hero-eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 12px #4ade80;
  animation: hero-dot-pulse 2s ease-in-out infinite;
}

.hero-lead {
  font-size: 1.125rem;
  color: rgba(226, 232, 240, 0.9);
  max-width: 40rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-link-external {
  color: #bfdbfe;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(191, 219, 254, 0.55);
}

.hero-link-external:hover {
  color: var(--white);
  text-decoration-color: rgba(255, 255, 255, 0.85);
}

.nowrap {
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn-glow {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 8px 32px rgba(29, 78, 216, 0.45);
}

.btn-glow:hover {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 12px 40px rgba(29, 78, 216, 0.55);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-trust li {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.85);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero-card-main {
  padding: 1.5rem 1.75rem;
  color: var(--white);
}

.hero-card-main__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.hero-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5);
  animation: hero-pulse-ring 2.5s ease-out infinite;
}

.hero-card-main .hero-stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

.hero-stat-value {
  display: block;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.65rem;
}

.hero-stat-value--timeline {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  letter-spacing: -0.02em;
}

.hero-stat-desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.hero-card-stack {
  padding: 1.35rem 1.5rem;
}

.hero-stack-title {
  margin: 0 0 0.85rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.hero-mini-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-mini-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.4rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-mini-list li:last-child {
  border-bottom: none;
}

.hero-mini-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.6);
}

.hero__marquee {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 1rem 0 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.4), rgba(10, 22, 40, 0.75));
  overflow: hidden;
}

.hero__marquee-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: hero-marquee 48s linear infinite;
}

.hero__marquee-track span {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.55);
  white-space: nowrap;
}

.hero__marquee-track span::after {
  content: "·";
  margin-left: 2.5rem;
  opacity: 0.5;
}

@keyframes hero-kenburns-a {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.14) translate(-2.5%, -1.5%); }
}

@keyframes hero-kenburns-b {
  0% { transform: scale(1.08) translate(1%, 0); }
  100% { transform: scale(1.2) translate(-1.5%, -2%); }
}

@keyframes hero-kenburns-c {
  0% { transform: scale(1.05) translate(0.5%, 1%); }
  100% { transform: scale(1.16) translate(-2%, -1%); }
}

@keyframes hero-cycle-1 {
  0%, 27% { opacity: 1; }
  33% { opacity: 0; }
  93% { opacity: 0; }
  97% { opacity: 1; }
  100% { opacity: 1; }
}

@keyframes hero-cycle-2 {
  0%, 27% { opacity: 0; }
  33% { opacity: 1; }
  61% { opacity: 1; }
  66% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes hero-cycle-3 {
  0%, 61% { opacity: 0; }
  66% { opacity: 1; }
  93% { opacity: 1; }
  97% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes hero-mesh-drift {
  0% { transform: translate(0, 0) scale(1); opacity: 0.75; }
  100% { transform: translate(2%, -3%) scale(1.05); opacity: 0.95; }
}

@keyframes hero-grid-move {
  0% { background-position: 0 0; }
  100% { background-position: 56px 56px; }
}

@keyframes hero-dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

@keyframes hero-pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

@keyframes hero-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__photo--1,
  .hero__photo--2,
  .hero__photo--3,
  .hero__mesh,
  .hero__grid-drift,
  .hero-eyebrow__dot,
  .hero-pulse,
  .hero__marquee-track {
    animation: none !important;
  }

  .hero__photo--1 {
    opacity: 1;
  }

  .hero__photo--2,
  .hero__photo--3 {
    opacity: 0;
  }

  .hero__marquee-track {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    gap: 0.75rem 1.5rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.65rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--blue-accent);
  color: var(--white);
  border-color: var(--blue-accent);
}

.btn-primary:hover {
  background: var(--blue-accent-hover);
  border-color: var(--blue-accent-hover);
  text-decoration: none;
  color: var(--white);
}

.btn-outline {
  background: var(--white);
  color: var(--navy-950);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--navy-700);
  background: var(--gray-50);
  text-decoration: none;
  color: var(--navy-950);
}

/* Portada: contorno claro + texto blanco (no usar junto a .btn-outline) */
.btn.btn-hero-outline {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.btn.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.9);
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.btn-on-dark {
  background: var(--white);
  color: var(--navy-950);
  border-color: var(--white);
  flex-shrink: 0;
}

.btn-on-dark:hover {
  background: var(--gray-100);
  text-decoration: none;
  color: var(--navy-950);
}

.btn.btn-on-dark-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.btn.btn-on-dark-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
  text-decoration: none;
}

.btn-block {
  width: 100%;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--gray-50);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-kicker {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin: 0 0 0.5rem;
}

.section-sub {
  margin: 0;
  font-size: 1.05rem;
  color: var(--gray-600);
}

.section-sub a {
  color: var(--blue-accent);
  font-weight: 600;
  text-decoration: none;
}

.section-sub a:hover {
  text-decoration: underline;
}

.section-head--wide {
  max-width: 46rem;
}

/* Pilar: misión crítica */
.pillar {
  padding-bottom: 4.5rem;
}

.pillar-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .pillar-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.pillar-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.6rem 1.65rem 1.4rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.25s ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(29, 78, 216, 0.18);
}

.pillar-card__head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.65rem;
}

.pillar-card__head h3 {
  margin: 0;
  padding-top: 0.2rem;
  font-size: 1.12rem;
  line-height: 1.3;
  color: var(--navy-950);
  flex: 1;
}

.pillar-card__badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
  color: var(--navy-950);
  background: rgba(29, 78, 216, 0.12);
  border-radius: 4px;
}

.pillar-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(29, 78, 216, 0.12), rgba(10, 22, 40, 0.04));
  color: var(--blue-accent);
  border: 1px solid rgba(29, 78, 216, 0.18);
}

.pillar-card__icon svg {
  width: 24px;
  height: 24px;
}

.pillar-card__icon--light {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.28);
  color: #bfdbfe;
}

.pillar-card__intro {
  margin: 0 0 0.85rem;
  font-size: 0.94rem;
  color: var(--gray-600);
  line-height: 1.55;
}

.pillar-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pillar-card__list li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.15rem;
  font-size: 0.9rem;
  color: var(--gray-800);
  border-bottom: 1px solid var(--gray-100);
}

.pillar-card__list li:last-child {
  border-bottom: none;
}

.pillar-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78rem;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--blue-accent);
}

.pillar-card__list--light li {
  color: rgba(248, 250, 252, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.pillar-card__list--light li::before {
  background: linear-gradient(135deg, #93c5fd, #a5b4fc);
}

.pillar-card__foot {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.pillar-card__foot a {
  color: var(--blue-accent);
}

.pillar-card--security {
  border: none;
  background: linear-gradient(145deg, var(--navy-950) 0%, var(--navy-800) 50%, #1e3a5f 100%);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.pillar-card--security .pillar-card__head h3 {
  color: #fff;
}

.pillar-card--security .pillar-card__intro {
  color: rgba(226, 232, 240, 0.9);
}

.pillar-card--energy .pillar-card__foot a {
  color: var(--blue-accent);
}

.product-spotlight {
  display: grid;
  gap: 1.35rem;
  margin-top: 2.5rem;
  padding: 1.75rem 1.65rem;
  background: linear-gradient(145deg, rgba(29, 78, 216, 0.07) 0%, var(--gray-50) 55%, var(--white) 100%);
  border: 1px solid rgba(29, 78, 216, 0.2);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  align-items: start;
}

@media (min-width: 720px) {
  .product-spotlight {
    grid-template-columns: auto 1fr;
    gap: 1.75rem;
    padding: 2rem 2rem;
  }
}

.product-spotlight__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.15), rgba(99, 102, 241, 0.1));
  color: var(--blue-accent);
  border: 1px solid rgba(29, 78, 216, 0.22);
}

.product-spotlight__icon svg {
  width: 28px;
  height: 28px;
}

.product-spotlight__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-accent);
}

.product-spotlight__body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  color: var(--navy-950);
}

.product-spotlight__text {
  margin: 0 0 0.85rem;
  font-size: 0.96rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.product-spotlight__text a {
  font-weight: 600;
}

.product-spotlight__cta {
  margin: 0.35rem 0 0;
}

.product-spotlight__more {
  font-weight: 600;
  text-decoration: none;
}

.product-spotlight__more:hover {
  text-decoration: underline;
}

.product-spotlight__bullets {
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-spotlight__bullets li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.2rem;
  font-size: 0.9rem;
  color: var(--gray-800);
}

.product-spotlight__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--blue-accent);
}

/* IARNN — ficha dedicada (menú IA · IARNN → #iarnn) */
#iarnn {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.iarnn {
  padding-block: 5rem 5.25rem;
  background: linear-gradient(180deg, #f0f9ff 0%, #eef2ff 38%, var(--gray-50) 100%);
  border-block: 1px solid var(--border);
}

.iarnn-panel {
  border-color: rgba(29, 78, 216, 0.12);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(29, 78, 216, 0.04);
}

/* GestorPass — sección dedicada */
.gestorpass {
  padding-block: 5rem 5.25rem;
  background: linear-gradient(180deg, #eef2ff 0%, var(--gray-50) 42%, var(--white) 100%);
  border-block: 1px solid var(--border);
}

.gestorpass-panel {
  display: grid;
  gap: 2rem 2.75rem;
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 880px) {
  .gestorpass-panel {
    grid-template-columns: minmax(220px, 280px) 1fr;
    padding: 2.35rem 2.5rem;
    align-items: start;
  }
}

.gestorpass-panel__kicker {
  margin-bottom: 0.4rem;
}

.gestorpass-panel__logo-type {
  margin: 0 0 0.65rem;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--navy-950);
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--blue-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@supports not (background-clip: text) {
  .gestorpass-panel__logo-type {
    background: none;
    -webkit-text-fill-color: unset;
    color: var(--navy-950);
  }
}

.gestorpass-panel__tagline {
  margin: 0 0 1.35rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--gray-600);
}

.gestorpass-panel__site-btn {
  width: 100%;
  justify-content: center;
}

@media (min-width: 880px) {
  .gestorpass-panel__site-btn {
    width: auto;
  }
}

.gestorpass-lead {
  margin: 0 0 1.25rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--gray-600);
}

.gestorpass-lead strong {
  color: var(--navy-950);
}

.gestorpass-features {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.gestorpass-features li {
  position: relative;
  margin: 0;
  padding: 0.85rem 0 0.85rem 1.35rem;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}

.gestorpass-features li:last-child {
  border-bottom: none;
}

.gestorpass-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--blue-accent), #6366f1);
}

.gestorpass-features strong {
  color: var(--navy-950);
}

.gestorpass-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.gestorpass-note {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--gray-500);
}

.gestorpass-note a {
  font-weight: 600;
}

.partner-strip {
  margin-top: 2rem;
  padding: 1.5rem 1.25rem 1.65rem;
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

#energia-apc {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.energia-apc {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding-top: 4.5rem;
  padding-bottom: 4.75rem;
}

.energia-apc__card {
  margin-bottom: 1.5rem;
  max-width: 100%;
}

.energia-apc__strip {
  margin-top: 0;
}

.partner-strip__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.25rem 1.75rem;
  margin-bottom: 0.85rem;
}

.partner-badge--compact {
  padding: 0.5rem 0.85rem;
}

.partner-badge--compact img {
  height: 34px;
  width: auto;
  max-width: min(200px, 70vw);
}

.partner-strip__legal {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--gray-600);
  max-width: 36rem;
  margin-inline: auto;
}

.partner-strip__cta {
  margin-top: 0.25rem;
}

.service-grid--secondary {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.25s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.35), rgba(10, 22, 40, 0.08), transparent 55%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(29, 78, 216, 0.2);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card__head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.service-card__head h3 {
  margin: 0;
  padding-top: 0.35rem;
  flex: 1;
  font-size: 1.125rem;
  line-height: 1.3;
}

.service-card__head--featured h3 {
  color: var(--white);
}

.card-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(29, 78, 216, 0.12), rgba(10, 22, 40, 0.04));
  color: var(--blue-accent);
  border: 1px solid rgba(29, 78, 216, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover .card-icon {
  transform: scale(1.06);
  box-shadow: 0 8px 24px rgba(29, 78, 216, 0.2);
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card-icon--light {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  color: #bfdbfe;
}

.service-card-featured {
  grid-column: 1 / -1;
  border: none;
  background: linear-gradient(145deg, var(--navy-950) 0%, var(--navy-800) 48%, #1e3a5f 100%);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.service-card-featured::before {
  background: linear-gradient(135deg, rgba(147, 197, 253, 0.45), rgba(29, 78, 216, 0.2), transparent 60%);
}

.service-card-featured .service-intro {
  color: rgba(226, 232, 240, 0.88);
}

.service-card-featured .service-list li {
  color: rgba(248, 250, 252, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.service-card-featured .service-list li::before {
  background: linear-gradient(135deg, #93c5fd, #a5b4fc);
}

@media (min-width: 900px) {
  .service-card-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 2.5rem;
    align-items: start;
  }

  .service-card-featured .service-card__head--featured {
    grid-column: 1 / -1;
    margin-bottom: 0.25rem;
  }

  .service-card-featured .service-intro {
    grid-column: 1;
    margin-bottom: 0;
  }

  .service-card-featured .service-list {
    grid-column: 2;
  }
}

.service-intro {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.service-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--gray-800);
  border-bottom: 1px solid var(--gray-100);
}

.service-list li:last-child {
  border-bottom: none;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--blue-accent);
}

.service-crosslink--iarnn {
  margin: 1.15rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--gray-600);
}

.service-crosslink--iarnn a {
  color: var(--blue-accent);
  font-weight: 600;
  text-decoration: none;
}

.service-crosslink--iarnn a:hover {
  text-decoration: underline;
}

/* Competencias — bloques agrupados */
.tech-clusters {
  display: grid;
  gap: 1.25rem;
  max-width: 1040px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .tech-clusters {
    grid-template-columns: 1fr 1fr;
    gap: 1.35rem 1.5rem;
  }
}

.tech-cluster {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.35rem 1.4rem 1.25rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s ease, border-color 0.25s ease, transform 0.25s ease;
}

.tech-cluster:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(29, 78, 216, 0.14);
}

.tech-cluster--products {
  border-color: rgba(29, 78, 216, 0.22);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(29, 78, 216, 0.06);
}

.tech-cluster__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.tech-cluster__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(29, 78, 216, 0.1), rgba(10, 22, 40, 0.04));
  color: var(--blue-accent);
  border: 1px solid rgba(29, 78, 216, 0.15);
}

.tech-cluster__icon svg {
  width: 22px;
  height: 22px;
}

.tech-cluster__icon--accent {
  background: linear-gradient(145deg, rgba(29, 78, 216, 0.18), rgba(99, 102, 241, 0.1));
  border-color: rgba(29, 78, 216, 0.28);
}

.tech-cluster__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy-950);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.tech-cluster__hint {
  margin: 0 0 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.8125rem;
  color: var(--gray-600);
  line-height: 1.45;
}

.tech-cluster__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-cluster__iarnn {
  margin: 0.85rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--gray-100);
  font-size: 0.8125rem;
  font-weight: 600;
}

.tech-cluster__iarnn a {
  color: var(--blue-accent);
  text-decoration: none;
}

.tech-cluster__iarnn a:hover {
  text-decoration: underline;
}

.chip {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy-800);
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: 999px;
  line-height: 1.3;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.chip:hover {
  transform: translateY(-1px);
  border-color: rgba(29, 78, 216, 0.22);
  background: var(--white);
  box-shadow: 0 4px 14px rgba(15, 34, 64, 0.07);
}

.chip--product {
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.1) 0%, rgba(99, 102, 241, 0.06) 100%);
  border-color: rgba(29, 78, 216, 0.28);
  color: var(--navy-950);
  font-weight: 700;
}

.chip--product:hover {
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.14) 0%, rgba(99, 102, 241, 0.09) 100%);
  border-color: rgba(29, 78, 216, 0.4);
}

a.chip.chip--link {
  text-decoration: none;
  color: var(--navy-950);
  cursor: pointer;
}

a.chip.chip--link:hover,
a.chip.chip--link:focus-visible {
  text-decoration: none;
  color: var(--navy-950);
}

/* Benefits */
.benefits-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.benefit-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.85rem 1.75rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.benefit-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-accent), #6366f1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.benefit-card:hover::after {
  opacity: 1;
}

.benefit-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.1), rgba(99, 102, 241, 0.08));
  color: var(--blue-accent);
  border: 1px solid rgba(29, 78, 216, 0.15);
}

.benefit-icon svg {
  width: 24px;
  height: 24px;
}

.benefit-card h3 {
  color: var(--navy-950);
  margin-bottom: 0.65rem;
}

.benefit-card p {
  font-size: 0.98rem;
  margin: 0;
  color: var(--gray-600);
}

/* About — cinta de iconos (sin foto) */
.about-showcase {
  margin: 0 0 2.75rem;
  padding: 1.75rem 1.25rem 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, var(--white) 0%, var(--gray-50) 48%, rgba(241, 245, 249, 0.92) 100%);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.about-showcase::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  background: radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.12), transparent 55%);
  pointer-events: none;
}

.about-icons-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.25rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 720px) {
  .about-icons-row {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.about-icon-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 0.65rem 0.35rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-icon-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.about-icon-pill__ring {
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(224, 242, 254, 0.9), rgba(255, 255, 255, 0.95));
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.25),
    0 8px 24px rgba(37, 99, 235, 0.12);
}

.about-icon-pill__ring--2 {
  background: linear-gradient(145deg, rgba(209, 250, 229, 0.95), rgba(255, 255, 255, 0.95));
  box-shadow:
    0 0 0 1px rgba(52, 211, 153, 0.3),
    0 8px 24px rgba(5, 150, 105, 0.1);
}

.about-icon-pill__ring--3 {
  background: linear-gradient(145deg, rgba(237, 233, 254, 0.95), rgba(255, 255, 255, 0.95));
  box-shadow:
    0 0 0 1px rgba(167, 139, 250, 0.35),
    0 8px 24px rgba(99, 102, 241, 0.12);
}

.about-icon-pill__ring--4 {
  background: linear-gradient(145deg, rgba(254, 243, 199, 0.95), rgba(255, 255, 255, 0.95));
  box-shadow:
    0 0 0 1px rgba(251, 191, 36, 0.4),
    0 8px 24px rgba(249, 115, 22, 0.1);
}

.about-icon-pill__ring svg {
  width: 1.65rem;
  height: 1.65rem;
}

.about-icon-pill__title {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--navy-950);
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.about-icon-pill__sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gray-600);
  line-height: 1.3;
  max-width: 11rem;
}

.about-showcase-tagline {
  margin: 1.35rem 0 0;
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-800);
  letter-spacing: 0.03em;
}

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr minmax(280px, 340px);
    gap: 4rem;
  }
}

.about-copy .section-kicker {
  text-align: left;
}

.about-copy h2 {
  margin-top: 0;
}

.about-lead {
  font-size: 1.1rem;
  color: var(--gray-600);
}

.about-lead strong {
  color: var(--navy-950);
}

.about-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-block {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
}

.stat-number {
  display: block;
  font-weight: 800;
  font-size: 1.65rem;
  color: var(--blue-accent);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.about-quote {
  margin: 0;
  padding: 1.35rem 1.5rem;
  border-left: 4px solid var(--navy-800);
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  border: 1px solid var(--border);
  border-left-width: 4px;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--gray-600);
  box-shadow: var(--shadow-sm);
}

/* Mission */
.mission-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .mission-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.mission-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.mission-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.mission-card__visual {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-height: clamp(168px, 26vw, 220px);
  min-height: 160px;
  aspect-ratio: 2.4 / 1;
}

@media (min-width: 768px) {
  .mission-card__visual {
    max-height: clamp(176px, 20vw, 210px);
  }
}

/* Franja con icono ilustrado (Misión / Visión) */
.mission-card__visual--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, #0f172a 0%, #1e293b 42%, #0c4a6e 100%);
}

.mission-card__visual--vision {
  background: linear-gradient(155deg, #0f172a 0%, #14532d 38%, #064e3b 100%);
}

.mission-card__icon-blob {
  position: absolute;
  width: clamp(140px, 42vw, 200px);
  height: clamp(140px, 42vw, 200px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(56, 189, 248, 0.45), rgba(37, 99, 235, 0.15) 45%, transparent 70%);
  filter: blur(0.5px);
  opacity: 0.95;
  pointer-events: none;
}

.mission-card__icon-blob--vision {
  background: radial-gradient(circle at 40% 28%, rgba(52, 211, 153, 0.5), rgba(5, 150, 105, 0.18) 48%, transparent 72%);
}

.mission-card__visual--icon::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.35) 0%,
    transparent 42%,
    transparent 58%,
    rgba(15, 23, 42, 0.25) 100%
  );
  pointer-events: none;
}

.mission-card__icon-svg {
  position: relative;
  z-index: 2;
  width: clamp(4.25rem, 12vw, 5.25rem);
  height: clamp(4.25rem, 12vw, 5.25rem);
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35));
  transition: transform 0.4s ease;
}

.mission-card__icon-svg svg {
  width: 100%;
  height: 100%;
}

.mission-card:hover .mission-card__icon-svg {
  transform: scale(1.06) translateY(-2px);
}

.mission-card__body {
  padding: 1.75rem 2rem 2rem;
}

.mission-card h3 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-accent);
  margin: 0 0 1rem;
}

.mission-card p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--gray-600);
}

.mission-card strong {
  color: var(--navy-950);
}

.values {
  max-width: 960px;
  margin-inline: auto;
  text-align: center;
}

.values h3 {
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  margin-bottom: 0.5rem;
  color: var(--navy-950);
}

.values-intro {
  margin: 0 auto 2rem;
  max-width: 36rem;
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.55;
}

.values-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
  text-align: left;
}

@media (min-width: 640px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.35rem 1.4rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.25s ease;
}

.value-item:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
  border-color: rgba(29, 78, 216, 0.18);
}

.value-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(29, 78, 216, 0.12), rgba(10, 22, 40, 0.05));
  color: var(--blue-accent);
  border: 1px solid rgba(29, 78, 216, 0.16);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-item:hover .value-icon {
  transform: scale(1.06);
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.15);
}

.value-icon svg {
  width: 24px;
  height: 24px;
}

.value-text {
  min-width: 0;
}

.value-text strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy-950);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.value-desc {
  display: block;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--gray-600);
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 100%);
  color: var(--white);
  padding: 3.25rem 0;
}

.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-band h2 {
  color: var(--white);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin-bottom: 0.5rem;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
}

.cta-band__link {
  color: #bfdbfe;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-band__link:hover {
  color: var(--white);
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  flex-shrink: 0;
}

/* Badges de marcas (APC / Schneider en franja partner) */
.partner-badge {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.partner-badge:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.partner-badge img {
  display: block;
  height: 44px;
  width: auto;
  max-width: min(260px, 85vw);
  object-fit: contain;
}

.partner-badge--apc img {
  height: 40px;
}

/* Contact */
.contact {
  padding-bottom: 0;
  overflow-x: clip;
}

.contact-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.25rem;
  padding-bottom: 0.25rem;
}

.contact-header .section-kicker {
  color: var(--blue-accent);
}

.contact-header h2 {
  margin: 0.35rem 0 0.75rem;
  color: var(--navy-950);
}

.contact-lead {
  margin: 0;
  font-size: 1.02rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.contact-lead a {
  color: var(--blue-accent);
  font-weight: 600;
  text-decoration: none;
}

.contact-lead a:hover {
  text-decoration: underline;
}

.contact-form-wrap {
  max-width: 720px;
  margin: 0 auto 3rem;
}

.contact-form-card {
  text-align: left;
  background: linear-gradient(165deg, var(--white) 0%, var(--gray-50) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.contact-form-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.07), transparent 72%);
  pointer-events: none;
}

.contact-form-card__intro,
.contact-form,
.contact-form-footnote {
  position: relative;
  z-index: 1;
}

.contact-form-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy-950);
  letter-spacing: -0.02em;
}

.contact-form-card__subtitle {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--gray-600);
}

.contact-form-card__intro {
  margin-bottom: 1.65rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.contact-form-grid {
  display: grid;
  gap: 1rem 1.25rem;
}

@media (min-width: 640px) {
  .contact-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group--full {
  grid-column: 1 / -1;
}

.contact-form {
  margin-top: 0;
  position: relative;
}

.form-group {
  margin-bottom: 1.1rem;
}

.contact-form-grid .form-group {
  margin-bottom: 0;
}

.contact-form--layout > .form-group--full {
  margin-bottom: 1.1rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-950);
  margin-bottom: 0.4rem;
}

.form-req {
  color: #dc2626;
  font-weight: 700;
}

.form-input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--navy-950);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--blue-accent);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.75rem;
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.55;
}

.contact-form-actions {
  margin-top: 0.35rem;
}

.btn-contact-submit {
  width: 100%;
}

@media (min-width: 480px) {
  .btn-contact-submit {
    width: auto;
    min-width: 220px;
  }
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-form-footnote {
  margin: 1.25rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--gray-500);
}

.contact-form-footnote code {
  font-size: 0.85em;
  padding: 0.12rem 0.35rem;
  background: var(--gray-100);
  border-radius: 4px;
  color: var(--navy-800);
}

.contact-form-footnote a {
  color: var(--blue-accent);
  font-weight: 600;
}

.contact-form-footnote a:hover {
  text-decoration: underline;
}

/* Mapa a ancho completo del viewport */
.contact-map-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--navy-950);
  color: #fff;
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.08);
}

.contact-map-bleed__head {
  padding: 2.5rem 0 1.75rem;
}

.contact-map-bleed__head-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.35rem;
}

@media (min-width: 768px) {
  .contact-map-bleed__head-inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
  }
}

.contact-map-bleed__kicker {
  color: rgba(147, 197, 253, 0.95);
  margin-bottom: 0.35rem;
}

.contact-map-bleed__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.contact-map-bleed__address {
  font-style: normal;
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  max-width: 28rem;
}

.contact-map-bleed__address .contact-address-label {
  color: rgba(255, 255, 255, 0.5);
}

.contact-address-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-700);
  margin-bottom: 0.5rem;
}

.contact-map-bleed__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.contact-map-bleed__btn {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.42);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.contact-map-bleed__btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff !important;
  text-decoration: none;
  transform: translateY(-1px);
}

.contact-map-bleed__map {
  position: relative;
  width: 100%;
  height: min(56vh, 620px);
  min-height: 300px;
  background: #0f172a;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 1024px) {
  .contact-map-bleed__map {
    height: min(58vh, 680px);
    min-height: 400px;
  }
}

.contact-map-bleed__iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(1.02) contrast(1.02);
}

/* Footer */
.site-footer {
  padding: 2.75rem 0 2.25rem;
  background: linear-gradient(180deg, #0d1a30 0%, var(--navy-950) 45%, #070f1c 100%);
  color: rgba(255, 255, 255, 0.82);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem 2.5rem;
  padding-bottom: 1.75rem;
}

.footer-brand-block {
  max-width: min(100%, 28rem);
}

.footer-brand {
  display: inline-block;
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--white);
  letter-spacing: -0.02em;
  text-decoration: none;
  line-height: 1.3;
}

.footer-brand:hover,
.footer-brand:focus-visible {
  color: #bfdbfe;
  text-decoration: none;
}

.footer-tagline {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.72);
}

.footer-location {
  margin: 0.65rem 0 0;
  font-size: 0.8125rem;
  color: rgba(147, 197, 253, 0.85);
  font-weight: 500;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.25rem;
}

.footer-nav a {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--white);
  text-decoration: none;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
}

.footer-copyright strong {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}

.footer-legal {
  margin: 0.65rem 0 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.45);
  max-width: 52rem;
}

/* WhatsApp flotante (+504 Honduras) */
.whatsapp-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(var(--fab-stack-bottom), env(safe-area-inset-bottom));
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.85rem 0.5rem;
  background: #25d366;
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45), 0 2px 8px rgba(15, 34, 64, 0.2);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  color: #fff;
  text-decoration: none;
  transform: scale(1.04);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55), 0 4px 12px rgba(15, 34, 64, 0.22);
}

.whatsapp-float:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.whatsapp-float__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.whatsapp-float__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}

@media (min-width: 901px) {
  .whatsapp-float {
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.65rem 1rem 0.65rem 0.85rem;
  }

  .whatsapp-float__label {
    font-size: 0.8125rem;
    padding-right: 0.15rem;
  }
}

/* Elisa-IA — asistente del sitio (esquina inferior izquierda, elevado respecto al pie) */
.elisa-chat {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left));
  bottom: max(var(--fab-stack-bottom), env(safe-area-inset-bottom));
  z-index: 1001;
  font-family: var(--font);
}

.elisa-chat__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem 0.65rem 0.85rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--blue-accent) 100%);
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 24px rgba(29, 78, 216, 0.4), 0 2px 8px rgba(15, 34, 64, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.elisa-chat__toggle:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 28px rgba(29, 78, 216, 0.48), 0 4px 12px rgba(15, 34, 64, 0.28);
}

/* Evita que un clic “fantasma” reabra el chat justo al cerrar (mouseup sobre el toggle). */
.elisa-chat__toggle.elisa-chat__toggle--cooldown {
  pointer-events: none;
}

.elisa-chat__toggle:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.elisa-chat__toggle-avatar-wrap {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.elisa-chat__toggle-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Panel fijo: no queda “encima” del botón en el mismo stack; evita reapertura por clic fantasma */
/* Fondo tintado (no blanco puro) para separarse del body sin chocar con la marca navy/azul */
.elisa-chat__panel {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left));
  bottom: calc(
    max(var(--fab-stack-bottom), env(safe-area-inset-bottom)) + var(--fab-panel-offset)
  );
  width: min(100vw - 2rem, 520px);
  max-height: min(88vh, 720px);
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: linear-gradient(168deg, #f0f4fb 0%, #e8eef8 42%, #f4f7fd 100%);
  border: 1px solid rgba(10, 22, 40, 0.12);
  border-radius: var(--radius-xl);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.7) inset,
    0 4px 6px rgba(10, 22, 40, 0.05),
    0 18px 44px rgba(15, 34, 64, 0.12),
    0 36px 72px rgba(10, 22, 40, 0.07);
  overflow: hidden;
  z-index: 1002;
}

/* El atributo hidden por sí solo no basta: display:flex del panel gana al estilo UA de [hidden]. */
.elisa-chat__panel[hidden] {
  display: none !important;
}

.elisa-chat.is-open .elisa-chat__toggle {
  box-shadow: 0 4px 16px rgba(29, 78, 216, 0.35);
}

.elisa-chat__head {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  padding: 0.9rem 3.35rem 0.85rem 1rem;
  background: linear-gradient(180deg, #e2eaf6 0%, #eef3fb 55%, #f4f7fd 100%);
  border-bottom: 1px solid rgba(10, 22, 40, 0.08);
}

.elisa-chat__head-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  max-width: 100%;
}

.elisa-chat__avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 12px rgba(15, 34, 64, 0.14);
}

.elisa-chat__head-text {
  min-width: 0;
  flex: 1;
}

.elisa-chat__name {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy-950);
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.elisa-chat__role {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-600);
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.elisa-chat__lora-badge {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
  text-transform: none;
  white-space: normal;
  color: var(--gray-500);
  max-width: 100%;
}

.elisa-chat__lora-badge--on {
  color: #15803d;
}

.elisa-chat__lora-badge--off {
  color: var(--gray-500);
}

.elisa-chat__lora-badge--busy {
  color: var(--blue-accent);
}

.elisa-chat__msg--thinking .elisa-chat__typing-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.12em;
  margin: 0;
  font-style: normal;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--blue-accent);
  letter-spacing: 0.02em;
}

.elisa-chat__typing-label {
  animation: elisa-typing-label 1.35s ease-in-out infinite;
}

@keyframes elisa-typing-label {
  0%,
  100% {
    opacity: 0.72;
  }
  50% {
    opacity: 1;
  }
}

.elisa-chat__typing-dots {
  display: inline-flex;
  gap: 0.02em;
  font-weight: 800;
}

.elisa-chat__typing-dot {
  display: inline-block;
  animation: elisa-typing-dot 1.05s ease-in-out infinite;
  opacity: 0.4;
}

.elisa-chat__typing-dot:nth-child(2) {
  animation-delay: 0.18s;
}

.elisa-chat__typing-dot:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes elisa-typing-dot {
  0%,
  70%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  35% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.elisa-chat--typing .elisa-chat__toggle-avatar-wrap {
  animation: elisa-avatar-typing-pulse 1.25s ease-in-out infinite;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.45);
}

.elisa-chat__head-profile.is-elisa-typing .elisa-chat__avatar {
  animation: elisa-avatar-typing-pulse 1.25s ease-in-out infinite;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.28), 0 2px 12px rgba(15, 34, 64, 0.12);
}

@keyframes elisa-avatar-typing-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.elisa-chat__close {
  position: absolute;
  top: 0.55rem;
  right: 0.45rem;
  z-index: 20;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 44px;
  min-height: 44px;
  padding: 0.2rem 0.35rem;
  margin: 0;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy-950);
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  box-shadow: 0 1px 4px rgba(15, 34, 64, 0.12);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.elisa-chat__close-x {
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 700;
}

.elisa-chat__close-label {
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 0.1rem;
  color: var(--gray-600);
}

.elisa-chat__close:hover {
  background: var(--gray-100);
  color: var(--navy-950);
  box-shadow: 0 2px 8px rgba(15, 34, 64, 0.14);
}

.elisa-chat__close:hover .elisa-chat__close-label {
  color: var(--navy-800);
}

.elisa-chat__messages {
  flex: 1 1 auto;
  min-height: 0;
  display: block;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.65rem 1rem 0.75rem;
  scroll-behavior: auto;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(248, 250, 253, 0.5) 100%);
}

.elisa-chat__flow {
  min-height: min-content;
}

/* Fuera del scroll: no roba altura dentro del historial; solo conversación en el área superior. */
.elisa-chat__quick-block {
  flex-shrink: 0;
  padding: 0.45rem 1rem 0.55rem;
  background: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(10, 22, 40, 0.07);
  max-height: 5.25rem;
  overflow-y: auto;
  overflow-x: hidden;
}

.elisa-chat__quick-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.elisa-chat__msg {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--gray-800);
}

.elisa-chat__msg:last-child {
  margin-bottom: 0.35rem;
}

.elisa-chat__msg--user {
  margin-left: 1.5rem;
  padding: 0.65rem 0.85rem;
  background: linear-gradient(145deg, rgba(29, 78, 216, 0.08), rgba(99, 102, 241, 0.06));
  border-radius: 12px 12px 4px 12px;
  border: 1px solid rgba(29, 78, 216, 0.12);
}

.elisa-chat__msg--user p {
  margin: 0;
}

.elisa-chat__msg--bot p {
  margin: 0 0 0.65rem;
}

.elisa-chat__msg--bot p:last-child {
  margin-bottom: 0;
}

.elisa-chat__msg--bot {
  position: relative;
  padding-left: 2.85rem;
}

/* Mensaje del asesor humano (soporte en vivo) */
.elisa-chat__msg--agent {
  position: relative;
  margin-right: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: linear-gradient(145deg, rgba(21, 128, 61, 0.1), rgba(16, 185, 129, 0.06));
  border-radius: 12px 12px 12px 4px;
  border: 1px solid rgba(21, 128, 61, 0.22);
  color: var(--gray-800);
}

.elisa-chat__msg--agent p {
  margin: 0 0 0.45rem;
}

.elisa-chat__msg--agent p:last-child {
  margin-bottom: 0;
}

.elisa-chat__msg--agent strong {
  color: #166534;
  font-size: 0.8125rem;
}

.elisa-chat__msg--human-typing {
  padding-left: 0.35rem;
}

.elisa-chat__msg--human-typing .elisa-chat__typing-line--human {
  color: #15803d;
  margin: 0;
}

.elisa-chat__human-typing-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
}

.elisa-chat__agent-human-head {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
}

.elisa-chat__agent-human-head p {
  margin: 0;
}

.elisa-chat__agent-human-textcol {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.elisa-chat__agent-human-nameline {
  margin: 0 !important;
}

.elisa-chat__agent-human-subwrap {
  margin: 0 !important;
}

.elisa-chat__agent-human-sub {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: #15803d;
  letter-spacing: 0.02em;
  opacity: 0.92;
}

.elisa-chat__agent-human-head--no-photo .elisa-chat__agent-human-textcol {
  padding-left: 0;
}

.elisa-chat__agent-human-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(21, 128, 61, 0.28);
}

.elisa-chat__agent-human-avatar--typing {
  width: 32px;
  height: 32px;
}

/* Aviso visible mientras la conversación está en cola (antes de que un asesor la tome) */
.elisa-chat__msg--bot.elisa-chat__msg--queue-wait {
  margin-top: 0.35rem;
  padding: 0.65rem 0.85rem 0.65rem 2.85rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(251, 191, 36, 0.08));
  border: 1px solid rgba(217, 119, 6, 0.35);
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.elisa-chat__msg--queue-wait .elisa-chat__queue-wait-title {
  margin: 0 0 0.4rem;
  font-weight: 800;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: #b45309;
}

.elisa-chat__msg--queue-wait p:not(.elisa-chat__queue-wait-title) {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--gray-700);
}

.elisa-chat__msg--bot::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 50%;
  background: url("assets/elisa-ia-avatar.png") center top / cover no-repeat;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 6px rgba(15, 34, 64, 0.14);
}

.elisa-chat__msg--bot a {
  color: var(--blue-accent);
  font-weight: 600;
  text-decoration: none;
}

.elisa-chat__msg--bot a:hover {
  text-decoration: underline;
}

.elisa-chat__msg--bot .elisa-chat__cta-block {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--gray-200);
  font-size: 0.8125rem;
  color: var(--gray-600);
}

.elisa-chat__msg--bot .elisa-chat__cta-block a {
  white-space: nowrap;
}

.elisa-chat__hint {
  margin-top: 0.65rem !important;
  font-size: 0.8125rem !important;
  color: var(--gray-600) !important;
}

.elisa-chat__list {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
  font-size: 0.8125rem;
}

.elisa-chat__list li {
  margin-bottom: 0.35rem;
}

.elisa-chat__quick-block .elisa-chat__chip {
  padding: 0.28rem 0.55rem;
  font-size: 0.6875rem;
}

.elisa-chat__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0;
}

.elisa-chat__chip {
  padding: 0.35rem 0.65rem;
  font-family: var(--font);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--navy-800);
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.elisa-chat__chip:hover {
  background: var(--white);
  border-color: rgba(29, 78, 216, 0.25);
}

.elisa-chat__lead {
  flex-shrink: 0;
  padding: 0.85rem 1rem;
  background: linear-gradient(180deg, rgba(29, 78, 216, 0.06) 0%, var(--gray-50) 100%);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}

.elisa-chat__lead[hidden] {
  display: none !important;
}

.elisa-chat__lead-title {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--navy-950);
}

.elisa-chat__lead-desc {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--gray-600);
}

.elisa-chat__lead-grid {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.elisa-chat__lead-label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.elisa-chat__lead-lbl abbr {
  text-decoration: none;
}

.elisa-chat__lead-input {
  padding: 0.5rem 0.65rem;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
}

.elisa-chat__lead-input:focus {
  outline: none;
  border-color: rgba(29, 78, 216, 0.45);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

.elisa-chat__lead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.elisa-chat__lead-submit {
  padding: 0.55rem 1rem;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--white);
  background: var(--navy-950);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.elisa-chat__lead-submit:hover {
  background: var(--navy-800);
}

.elisa-chat__lead-cancel {
  padding: 0.55rem 0.85rem;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-600);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.elisa-chat__lead-cancel:hover {
  background: var(--white);
  color: var(--navy-950);
}

.elisa-chat__lead-privacy {
  margin: 0.65rem 0 0;
  font-size: 0.65rem;
  line-height: 1.45;
  color: var(--gray-500);
  min-height: 1.2em;
}

.elisa-chat__form {
  flex-shrink: 0;
  display: flex;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: rgba(232, 238, 248, 0.85);
  border-top: 1px solid rgba(10, 22, 40, 0.08);
}

.elisa-chat__form[hidden] {
  display: none !important;
}

.elisa-chat__input {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  font-family: var(--font);
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
}

.elisa-chat__input:focus {
  outline: none;
  border-color: rgba(29, 78, 216, 0.45);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.elisa-chat__send {
  flex-shrink: 0;
  padding: 0.55rem 0.9rem;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--white);
  background: var(--blue-accent);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
}

.elisa-chat__send:hover {
  background: var(--blue-accent-hover);
}

.elisa-chat__disclaimer-footer {
  flex-shrink: 0;
  padding: 0.4rem 0.75rem 0.55rem;
  font-size: 0.5625rem;
  line-height: 1.38;
  color: var(--gray-500);
  background: rgba(226, 234, 246, 0.65);
  border-top: 1px solid rgba(10, 22, 40, 0.06);
  max-height: 3.6rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.elisa-chat__disclaimer-footer strong {
  color: var(--gray-700);
}

.elisa-chat__disclaimer-footer .elisa-chat__disclaimer-text {
  margin: 0 0 0.3rem;
}

.elisa-chat__disclaimer-footer .elisa-chat__disclaimer-text:last-child {
  margin-bottom: 0;
}

.elisa-chat__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Móvil: FAB en la esquina inferior (no flotando “a media altura”). */
@media (max-width: 768px) {
  :root {
    --fab-stack-bottom: 0.55rem;
    --fab-panel-offset: 4.85rem;
  }

  .whatsapp-float {
    right: max(0.4rem, env(safe-area-inset-right));
    bottom: max(0.55rem, env(safe-area-inset-bottom));
    padding: 0.5rem 0.65rem 0.45rem;
  }

  .elisa-chat {
    left: max(0.4rem, env(safe-area-inset-left));
    bottom: max(0.55rem, env(safe-area-inset-bottom));
  }

  .elisa-chat__panel {
    width: min(calc(100vw - 0.85rem), 520px);
    max-height: min(72dvh, 72svh, calc(100svh - var(--header-h) - 5.5rem));
    left: max(0.4rem, env(safe-area-inset-left));
    right: auto;
    bottom: calc(
      max(var(--fab-stack-bottom), env(safe-area-inset-bottom)) + var(--fab-panel-offset)
    );
  }

  .elisa-chat__quick-block {
    max-height: 4.75rem;
  }
}

/* Lightbox retrato Elisa-IA (clic en avatar) */
.elisa-avatar-lightbox {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

.elisa-avatar-lightbox[hidden] {
  display: none !important;
}

.elisa-avatar-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.elisa-avatar-lightbox__inner {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 520px);
  max-height: min(88vh, 640px);
  width: 100%;
}

.elisa-avatar-lightbox__close {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy-950);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: background 0.15s, transform 0.15s;
}

.elisa-avatar-lightbox__close:hover {
  background: var(--gray-100);
  transform: scale(1.05);
}

.elisa-avatar-lightbox__figure {
  margin: 0;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  background: var(--navy-950);
}

.elisa-avatar-lightbox__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(75vh, 560px);
  object-fit: contain;
  object-position: center top;
}

.elisa-avatar-lightbox__copyright {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 1rem 1.1rem 1.1rem;
  font-size: 0.65rem;
  line-height: 1.45;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  background: linear-gradient(0deg, rgba(10, 22, 40, 0.95) 0%, rgba(10, 22, 40, 0.75) 70%, transparent 100%);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.elisa-chat__toggle-avatar,
.elisa-chat__avatar {
  cursor: zoom-in;
}

body.elisa-lightbox-open {
  overflow: hidden;
}
