/* GRUPO IZZI — Propuesta 5 Isometric Fintech HUD */

:root {
  --white: #ffffff;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --text: #0d1117;
  --text-muted: #64748b;
  --teal: #00bfa5;
  --teal-dark: #00a896;
  --teal-light: rgba(0, 191, 165, 0.12);
  --orange: #f39c12;
  --orange-light: rgba(243, 156, 18, 0.12);
  --navy: #0d1117;
  --border: #e2e8f0;
  --shadow-sm: 0 2px 8px rgba(13, 17, 23, 0.06);
  --shadow-md: 0 8px 32px rgba(13, 17, 23, 0.08);
  --shadow-lg: 0 20px 60px rgba(13, 17, 23, 0.1);
  --radius: 12px;
  --radius-lg: 20px;
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --header-h: 72px;
  --container: 1140px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section { padding: 5rem 0; }
.section--alt { background: var(--bg-alt); }

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--orange));
  z-index: 200;
  transition: width 0.1s linear;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: box-shadow 0.3s;
}

.header.is-scrolled { box-shadow: var(--shadow-sm); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.logo__img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo__grupo {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.logo__izzi {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

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

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav__link:hover,
.nav__link--active { color: var(--text); }

.nav__link--active { font-weight: 600; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn--dark {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn--dark:hover {
  background: #1a2332;
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: var(--white);
  color: var(--text);
  border-color: var(--border);
}

.btn--outline:hover {
  border-color: var(--text);
  box-shadow: var(--shadow-sm);
}

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

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn--ghost:hover {
  background: var(--bg-alt);
  color: var(--text);
  border-color: var(--text-muted);
}

/* Agrupar CTAs del header (Ingresar + Contratar) */
.header__ctas {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn--primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.btn--primary:hover {
  background: var(--teal-dark);
  box-shadow: 0 8px 24px rgba(0, 191, 165, 0.35);
}

.btn--whatsapp {
  background: #25d366;
  color: var(--white);
  border-color: #25d366;
}

.btn--whatsapp:hover {
  background: #1ebe57;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.btn--white {
  background: var(--white);
  color: var(--text);
  border-color: var(--white);
}

.btn--white:hover { box-shadow: var(--shadow-md); }

/* Hero */
.hero {
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 3rem;
  background: var(--white);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.hero-pill {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.hero-pill--orange {
  background: var(--orange-light);
  color: #c27803;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.hero h1 strong {
  color: var(--teal);
  font-weight: 800;
}

.hero__lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.hero__lead strong { color: var(--text); }

/* Hero mini cards — Opción B */
.hero-mini-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  max-width: 520px;
}

.hero-mini-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  overflow: hidden;
}

.hero-mini-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 191, 165, 0.35);
}

.hero-mini-card__accent {
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--orange));
  border-radius: 0 0 0 4px;
}

.hero-mini-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-mini-card__icon svg { width: 22px; height: 22px; }

.hero-mini-card__icon--teal {
  background: var(--teal-light);
  color: var(--teal);
}

.hero-mini-card__icon--orange {
  background: var(--orange-light);
  color: var(--orange);
}

.hero-mini-card__text {
  flex: 1;
  min-width: 0;
}

.hero-mini-card__text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.hero-mini-card__text span {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.hero-mini-card__arrow {
  width: 18px;
  height: 18px;
  color: var(--teal);
  flex-shrink: 0;
  opacity: 0.7;
  transition: transform 0.25s, opacity 0.25s;
}

.hero-mini-card:hover .hero-mini-card__arrow {
  transform: translateX(3px);
  opacity: 1;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-hud {
  position: relative;
  margin: 0;
}

.hero-hud__art {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  filter: drop-shadow(0 24px 48px rgba(13, 17, 23, 0.12));
  animation: heroFloat 6s ease-in-out infinite;
}

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

/* Stats bar */
.stats-bar {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

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

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-item__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-item__icon svg { width: 24px; height: 24px; }

.stat-item__icon--teal {
  background: var(--teal-light);
  color: var(--teal);
}

.stat-item strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.stat-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Section headings */
.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3.5rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-head h2 strong { color: var(--teal); }

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.eyebrow--light { color: rgba(255, 255, 255, 0.8); }

/* Isometric steps */
.iso-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.iso-step {
  flex: 1;
  min-width: 160px;
  max-width: 220px;
  text-align: center;
}

.iso-step__visual {
  position: relative;
  width: 100px;
  height: 80px;
  margin: 0 auto 1.25rem;
}

.iso-step__plate {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) skewX(-30deg) scaleY(0.5);
  width: 80px;
  height: 40px;
  background: linear-gradient(135deg, #e8f4f2, #d0ebe6);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 191, 165, 0.15);
}

.iso-step__icon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
}

.iso-step__icon svg { width: 26px; height: 26px; }

.iso-step__icon--check {
  background: var(--teal);
  color: var(--white);
}

.iso-step__icon--chart {
  gap: 3px;
  padding: 8px;
}

.iso-step__icon--chart span {
  display: block;
  width: 6px;
  height: var(--h, 50%);
  background: var(--teal);
  border-radius: 2px;
  align-self: flex-end;
}

.iso-step__icon--chart span:nth-child(4) { background: var(--orange); }

.iso-step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.iso-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.iso-steps__arrow {
  color: var(--teal);
  font-size: 1.25rem;
  align-self: center;
  margin-top: -2rem;
  opacity: 0.6;
}

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

.solution-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.solution-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.solution-card__icon svg { width: 28px; height: 28px; }

.solution-card__icon--teal {
  background: var(--teal-light);
  color: var(--teal);
}

.solution-card__icon--orange {
  background: var(--orange-light);
  color: var(--orange);
}

.solution-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

/* Ecosystem bridge */
.ecosystem-bridge {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
}

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

.ecosystem-bridge__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
}

.ecosystem-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.ecosystem-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid var(--teal);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.ecosystem-tab svg { width: 18px; height: 18px; flex-shrink: 0; }

.ecosystem-tab--filled {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.ecosystem-tab--filled:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 191, 165, 0.3);
}

.ecosystem-tab--outline {
  background: var(--white);
  color: var(--teal-dark);
}

.ecosystem-tab--outline:hover {
  background: var(--teal-light);
  transform: translateY(-1px);
}

.ecosystem-tabs__dots {
  width: 40px;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--teal) 0,
    var(--teal) 4px,
    transparent 4px,
    transparent 8px
  );
  opacity: 0.5;
}

/* GPS section */
.gps-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background: var(--white);
}

.gps__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  margin-bottom: 3rem;
}

.gps__content h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.gps__content h2 strong {
  color: var(--teal);
  font-weight: 800;
}

.gps__lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 520px;
}

.gps-features {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.gps-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.gps-features__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--teal-light);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gps-features__icon svg { width: 20px; height: 20px; }

.gps-features strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.1rem;
}

.gps-features span {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.gps__art {
  animation: heroFloat 7s ease-in-out infinite;
  animation-delay: -2s;
}

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

.gps-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.gps-stat strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
}

.gps-stat span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* About */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about__text h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.about__text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-card__n {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 0.25rem;
}

.stat-card span:last-child {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Infographic / modules */
.infographic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.info-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.info-block--featured {
  border-color: var(--teal);
  box-shadow: 0 8px 32px rgba(0, 191, 165, 0.12);
}

.info-block__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.info-block__icon svg { width: 24px; height: 24px; }

.info-block__icon--teal { background: var(--teal-light); color: var(--teal); }
.info-block__icon--orange { background: var(--orange-light); color: var(--orange); }
.info-block__icon--navy { background: rgba(13, 17, 23, 0.08); color: var(--navy); }

.info-block h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.info-block__subtitle {
  font-size: 0.85rem;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.info-flow li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.info-flow li:last-child { border-bottom: none; }

.info-flow li span {
  width: 24px;
  height: 24px;
  background: var(--teal-light);
  color: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.info-flow--security li span {
  background: transparent;
  font-size: 1rem;
  width: auto;
}

.info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.info-pill {
  padding: 0.4rem 0.85rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.info-pill--more {
  background: var(--teal-light);
  color: var(--teal-dark);
  border-color: transparent;
  font-weight: 600;
}

/* Demo */
.demo__box {
  background: linear-gradient(135deg, var(--navy) 0%, #1a2332 100%);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  color: var(--white);
}

.demo__content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.demo__content p {
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.demo__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.demo__steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.demo-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-step span {
  width: 32px;
  height: 32px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.demo-step p { font-size: 0.9rem; opacity: 0.9; }

/* FAQ */
.faq__list {
  max-width: 720px;
  margin: 0 auto;
}

.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--white);
}

.faq__item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--teal);
  transition: transform 0.2s;
}

.faq__item[open] summary::after { transform: rotate(45deg); }

.faq__item p {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Contact */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact__grid h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.contact__grid > div > p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.contact__list li {
  padding: 0.6rem 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact__list strong {
  display: inline-block;
  min-width: 90px;
  color: var(--text);
}

.contact__list a {
  color: var(--teal);
  font-weight: 600;
}

.contact__list a:hover { text-decoration: underline; }

.contact__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.contact-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

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

/* Footer */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 2.5rem 0;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer__logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.logo__text--footer .logo__grupo { color: rgba(255, 255, 255, 0.5); }
.logo__text--footer .logo__izzi { color: var(--white); }

.footer p { font-size: 0.85rem; }

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.footer__links a:hover { color: var(--white); }
.footer__links a[aria-current="page"] { color: var(--teal); }

/* Legal / Política de Privacidad */
.legal-hero {
  padding-top: calc(var(--header-h) + 3.5rem);
  padding-bottom: 2.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, var(--teal-light), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 20%, var(--orange-light), transparent 50%),
    var(--bg);
}

.legal-hero__inner { max-width: 720px; }

.legal-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0.5rem 0 1rem;
}

.legal-hero__lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 40rem;
}

.legal-hero__lead strong { color: var(--text); font-weight: 600; }

.legal-meta {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.legal-doc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 3rem;
  align-items: start;
}

.legal-doc__content {
  max-width: 42rem;
}

.legal-doc__content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 2.25rem 0 0.75rem;
  color: var(--text);
}

.legal-doc__content h2:first-child { margin-top: 0; }

.legal-doc__content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
  color: var(--text);
}

.legal-doc__content p,
.legal-doc__content li {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.legal-doc__content p { margin-bottom: 0.85rem; }

.legal-doc__content p strong,
.legal-doc__content li strong {
  color: var(--text);
  font-weight: 600;
}

.legal-doc__content ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.4rem;
}

.legal-doc__content a {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-doc__content a:hover { color: var(--teal); }

.legal-doc__aside {
  position: sticky;
  top: calc(var(--header-h) + 1.25rem);
  padding: 1.35rem 1.4rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.legal-aside__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 0.75rem;
}

.legal-doc__aside ul {
  list-style: disc;
  padding-left: 1.1rem;
  margin: 0 0 1.25rem;
  display: grid;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.demo-sheet__privacy {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.45;
}

.demo-sheet__privacy a {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.demo-sheet__privacy a:hover { color: var(--teal); }

@media (max-width: 900px) {
  .legal-doc {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .legal-doc__aside {
    position: static;
    order: -1;
  }
}

/* Página pilar SEO — Sistema de Préstamos */
.pillar-hero {
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 3rem;
  background:
    radial-gradient(ellipse 80% 55% at 8% 0%, var(--teal-light), transparent 55%),
    radial-gradient(ellipse 60% 45% at 95% 15%, var(--orange-light), transparent 50%),
    var(--bg);
}

.pillar-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.pillar-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.pillar-breadcrumb a {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pillar-hero h1 {
  font-size: clamp(2rem, 4.2vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0.45rem 0 1rem;
}

.pillar-hero__lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin-bottom: 1.5rem;
}

.pillar-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pillar-hero__visual img {
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
}

.pillar-prose {
  max-width: 42rem;
}

.pillar-prose h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.4rem 0 1rem;
}

.pillar-prose p {
  color: var(--text-muted);
  margin-bottom: 0.9rem;
  line-height: 1.7;
}

.pillar-prose strong { color: var(--text); }

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

.pillar-cards article {
  padding: 1.35rem 1.4rem;
  border-top: 3px solid var(--teal);
  background: var(--bg-alt);
}

.pillar-cards h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.pillar-cards p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.pillar-modules {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  max-width: 44rem;
}

.pillar-modules li {
  padding: 0.95rem 1.1rem;
  border-left: 3px solid var(--teal);
  background: var(--white);
  color: var(--text-muted);
  line-height: 1.55;
}

.pillar-modules strong { color: var(--text); }

@media (max-width: 900px) {
  .pillar-hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .pillar-hero__lead { margin-inline: auto; }
  .pillar-hero__actions { justify-content: center; }
  .pillar-breadcrumb { justify-content: center; }
  .pillar-cards { grid-template-columns: 1fr; }
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  z-index: 90;
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float svg { width: 28px; height: 28px; }

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 300;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Demo bottom sheet — modal centrado */
.demo-sheet {
  position: fixed;
  inset: 0;
  z-index: 400;
  pointer-events: none;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.demo-sheet.is-open {
  pointer-events: auto;
  visibility: visible;
}

.demo-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 17, 23, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.35s ease-out;
}

.demo-sheet.is-open .demo-sheet__backdrop {
  opacity: 1;
}

.demo-sheet__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: min(88vh, 680px);
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(13, 17, 23, 0.18);
  transform: translateY(28px) scale(0.97);
  opacity: 0;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease-out;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  touch-action: none;
}

.demo-sheet.is-open .demo-sheet__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.demo-sheet.is-dragging .demo-sheet__panel {
  transition: none;
}

.demo-sheet__handle {
  flex-shrink: 0;
  width: 100%;
  padding: 0.75rem 0 0.35rem;
  background: none;
  border: none;
  cursor: grab;
  display: flex;
  justify-content: center;
}

.demo-sheet__handle::before {
  content: '';
  width: 40px;
  height: 4px;
  background: #cbd5e1;
  border-radius: 4px;
}

.demo-sheet__handle:active {
  cursor: grabbing;
}

.demo-sheet__body {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 1.5rem 1.75rem;
  -webkit-overflow-scrolling: touch;
}

.demo-sheet__title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.demo-sheet__desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.demo-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.demo-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.demo-field span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.demo-field em {
  font-style: normal;
  font-weight: 400;
  color: var(--text-muted);
}

.demo-field input,
.demo-field select,
.demo-field textarea {
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.demo-field input:focus,
.demo-field select:focus,
.demo-field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-light);
}

.demo-field input:invalid:not(:placeholder-shown),
.demo-field select:invalid,
.demo-field textarea:invalid {
  border-color: #ef4444;
}

.demo-field textarea {
  resize: vertical;
  min-height: 72px;
}

.demo-form__submit {
  width: 100%;
  margin-top: 0.25rem;
}

.demo-form__submit:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.demo-sheet__alt {
  text-align: center;
  margin-top: 1rem;
}

.demo-sheet__whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal-dark);
  transition: color 0.2s;
}

.demo-sheet__whatsapp:hover {
  color: var(--teal);
}

body.demo-sheet-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .demo-sheet {
    align-items: flex-end;
    padding: 0;
  }

  .demo-sheet__panel {
    max-height: 92vh;
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
  }

  .demo-sheet.is-open .demo-sheet__panel {
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-sheet__backdrop,
  .demo-sheet__panel {
    transition: none;
  }

  .demo-sheet__panel {
    opacity: 1;
    transform: none;
  }
}

/* Reveal animations (initial state) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
}

/* Responsive */
.nav__mobile-ctas { display: none; }

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero-mini-cards { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__visual { order: -1; }
  .hero-hud__art { max-width: 420px; }

  .solution-cards { grid-template-columns: repeat(2, 1fr); }
  .infographic { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .demo__box { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }

  .gps__grid { grid-template-columns: 1fr; text-align: center; }
  .gps__lead { margin-inline: auto; }
  .gps-features { max-width: 480px; margin-inline: auto; text-align: left; }
  .gps-stats { grid-template-columns: 1fr; }
  .gps-stat { justify-content: center; }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.5rem 1.5rem;
    gap: 0.35rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
    z-index: 90;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__link {
    padding: 0.75rem 0.25rem;
    font-size: 1rem;
  }

  .nav__mobile-ctas {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.75rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
  }

  .nav__mobile-ctas .btn {
    width: 100%;
  }

  .header__ctas { display: none; }

  .nav-toggle { display: flex; }

  .stats-bar__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .stat-item { justify-content: center; }

  .iso-steps { flex-direction: column; align-items: center; }
  .iso-steps__arrow { transform: rotate(90deg); margin: 0; }

  .solution-cards { grid-template-columns: 1fr; }

  .section { padding: 3.5rem 0; }

  .footer__inner { flex-direction: column; text-align: center; }

  .hero h1 { font-size: clamp(1.75rem, 7vw, 2.35rem); }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; }
  .hero-mini-cards { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-hud__art,
  .gps__art { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================
   MODAL PLANES
   ============================================ */

.planes-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}

.planes-modal[hidden] { display: none; }

.planes-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 26, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.planes-modal.is-open .planes-modal__backdrop { opacity: 1; }

/* Sheet principal — aparece desde arriba con suavizado */
.planes-modal__sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1160px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(13,17,23,0.18);
  padding: 2.5rem 2.5rem 2.5rem;
  transform: translateY(-28px);
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.34, 1.2, 0.64, 1),
              opacity   0.3s ease;
}

.planes-modal.is-open .planes-modal__sheet {
  transform: translateY(0);
  opacity: 1;
}

/* Cabecera del modal */
.planes-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.planes-modal__title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0.4rem 0 0.25rem;
}

.planes-modal__sub {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Botón cerrar */
.planes-modal__close {
  all: unset;
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
  margin-top: 0.25rem;
}

.planes-modal__close svg { width: 0.9rem; height: 0.9rem; color: var(--text); }
.planes-modal__close:hover { background: var(--border); transform: scale(1.1); }
.planes-modal__close:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* Toggle mensual / anual */
.pm-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  align-self: center;
}

.pm-toggle__btn {
  all: unset;
  cursor: pointer;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: background 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.pm-toggle__btn.is-active {
  background: var(--white);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.pm-toggle__badge {
  background: var(--teal);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

/* Grid de tarjetas */
.pm-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

/* Tarjeta base */
.pm-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem 1rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.pm-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #c7d4e0;
}

/* Tarjeta destacada */
.pm-card--featured {
  border-color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal), 0 8px 32px rgba(0,191,165,0.12);
}

.pm-card--featured:hover {
  box-shadow: 0 0 0 1px var(--teal), 0 12px 40px rgba(0,191,165,0.18);
}

/* Badge "MÁS POPULAR" */
.pm-card__badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  white-space: nowrap;
}

.pm-card__top { margin-bottom: auto; }

.pm-card__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.pm-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.1rem;
  margin-bottom: 0.2rem;
}

.pm-card__currency {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-right: 0.15rem;
}

.pm-card__amount {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
  transition: opacity 0.2s ease;
}

.pm-card__period {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 0.1rem;
}

.pm-card__price--custom { margin-bottom: 0.25rem; }

.pm-card__amount-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.pm-card__desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0.85rem;
}

/* Lista de features */
.pm-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  margin-bottom: 1rem;
  flex: 1;
}

.pm-card__features li {
  font-size: 0.76rem;
  color: var(--text-muted);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.3;
}

.pm-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 0.65rem;
  height: 0.65rem;
  background: var(--teal);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Ccircle cx='6' cy='6' r='6' fill='%2300bfa5'/%3E%3Cpath d='M3.5 6l1.8 1.8 3.2-3.6' stroke='white' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Botones de tarjeta */
.pm-card__btn {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  padding: 0.6rem 0.5rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1.5px solid var(--teal);
  color: var(--teal);
  transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease;
  margin-top: auto;
}

.pm-card__btn:hover {
  background: var(--teal-light);
  transform: translateY(-1px);
}

.pm-card__btn--solid {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.pm-card__btn--solid:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.pm-card__btn--dark {
  border-color: var(--text);
  color: var(--text);
}

.pm-card__btn--dark:hover {
  background: var(--text);
  color: var(--white);
}

.pm-card__btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* Responsive del modal */
@media (max-width: 1100px) {
  .pm-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  .planes-modal {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
    overscroll-behavior: none;
  }

  .planes-modal__sheet {
    display: flex;
    flex-direction: column;
    max-width: none;
    width: 100%;
    height: 100%;
    max-height: 100%;
    margin: 0;
    padding: 1.15rem 0 1.25rem;
    border-radius: 0;
    overflow: hidden;
  }

  .planes-modal__head {
    flex-direction: column;
    gap: 0.85rem;
    padding: 0 1rem 0.85rem;
    flex-shrink: 0;
  }

  .planes-modal__hint {
    display: block;
    margin: 0;
    padding: 0 1rem 0.65rem;
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--teal-dark, #00a896);
  }

  .pm-grid {
    display: flex;
    grid-template-columns: none;
    gap: 0.85rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: none;
    padding: 0.35rem 1rem 1rem;
    margin: 0;
    flex: 1;
    align-items: stretch;
  }

  .pm-grid::-webkit-scrollbar { height: 4px; }
  .pm-grid::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
  }

  .pm-card {
    flex: 0 0 min(82vw, 300px);
    width: min(82vw, 300px);
    max-height: none;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .pm-card__features {
    max-height: 42vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 460px) {
  .pm-card {
    flex-basis: min(88vw, 320px);
    width: min(88vw, 320px);
  }
}

.planes-modal__hint { display: none; }

@media (prefers-reduced-motion: reduce) {
  .planes-modal__sheet { transition: opacity 0.1s; transform: none !important; }
  .planes-modal__backdrop { transition: opacity 0.1s; }
  .pm-grid { scroll-snap-type: none; }
}

/* ============================================
   SISTEMA EN VIVO
   ============================================ */

.sistema-vivo__inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

/* ── Columna izquierda ── */
.sistema-vivo__left .hero-pill { margin-bottom: 1rem; }

.sistema-vivo__left h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.sistema-vivo__left h2 strong { color: var(--teal); }

.sistema-vivo__sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Nav vertical */
.sv-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sv-nav__item {
  all: unset;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  padding: 0.9rem 0 0.9rem 1.1rem;
  border-left: 2px solid var(--border);
  transition: border-color 0.25s ease;
  gap: 0;
}

.sv-nav__item:hover { border-left-color: rgba(0, 191, 165, 0.4); }

.sv-nav__item.is-active {
  border-left-color: var(--teal);
}

.sv-nav__label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.25s ease;
  line-height: 1.4;
}

.sv-nav__item.is-active .sv-nav__label { color: var(--text); }
.sv-nav__item:hover .sv-nav__label { color: var(--text); }

.sv-nav__desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 0.2rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1),
              opacity   0.3s  ease,
              margin-top 0.3s ease;
}

.sv-nav__item.is-active .sv-nav__desc {
  max-height: 3rem;
  opacity: 1;
  margin-top: 0.3rem;
}

/* Barra de progreso */
.sv-progress {
  margin-top: 1.5rem;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.sv-progress__bar {
  height: 100%;
  width: 0%;
  background: var(--teal);
  border-radius: 2px;
  transition: width linear;
}

/* ── Columna derecha: frame ── */
.sv-frame {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.sv-frame__chrome {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.sv-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sv-dot--red    { background: #ff5f57; }
.sv-dot--yellow { background: #febc2e; }
.sv-dot--green  { background: #28c840; }

.sv-frame__url {
  flex: 1;
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.2rem 0.75rem;
  max-width: 220px;
  margin: 0 auto;
}

/* Imágenes apiladas con crossfade */
.sv-screens {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background: #f1f3f5;
}

.sv-screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  opacity: 0;
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(6px) scale(0.995);
  will-change: opacity, transform;
}

.sv-screen.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Botón lupa sobre la imagen */
.sv-zoom-btn {
  all: unset;
  position: absolute;
  bottom: 0.85rem;
  right: 0.85rem;
  z-index: 10;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.85) translateY(4px);
  transition: opacity 0.22s ease,
              transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.18s ease,
              box-shadow 0.18s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.sv-zoom-btn svg {
  width: 1rem;
  height: 1rem;
  color: var(--teal);
  stroke-width: 2.2;
}

.sv-screens:hover .sv-zoom-btn,
.sv-screens:focus-within .sv-zoom-btn {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.sv-zoom-btn:hover {
  background: var(--white);
  box-shadow: 0 4px 16px rgba(0,191,165,0.2);
}

.sv-zoom-btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* ── Lightbox ── */
.sv-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
}

.sv-lightbox[hidden] { display: none; }

.sv-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 26, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sv-lightbox.is-open .sv-lightbox__backdrop { opacity: 1; }

.sv-lightbox__content {
  position: relative;
  max-width: min(84vw, 1100px);
  max-height: 90vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.35);
  opacity: 0;
  transform: scale(0.94) translateY(12px);
  transition: opacity 0.32s cubic-bezier(0.4,0,0.2,1),
              transform 0.32s cubic-bezier(0.34,1.4,0.64,1);
  flex-shrink: 0;
  z-index: 1;
}

.sv-lightbox.is-open .sv-lightbox__content {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.sv-lightbox__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 88vh;
  object-fit: contain;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.4,0,0.2,1);
}

.sv-lightbox__img.is-switching {
  opacity: 0;
  transform: scale(0.97);
}

/* Botones prev / next */
.sv-lb-nav {
  all: unset;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.93);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease 0.1s,
              transform 0.3s cubic-bezier(0.34,1.56,0.64,1) 0.1s,
              background 0.18s ease,
              box-shadow 0.18s ease;
}

.sv-lightbox.is-open .sv-lb-nav {
  opacity: 1;
  transform: scale(1);
}

.sv-lb-nav svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--teal);
  stroke-width: 2.4;
}

.sv-lb-nav:hover {
  background: var(--white);
  box-shadow: 0 6px 24px rgba(0,191,165,0.22);
  transform: scale(1.08);
}

.sv-lb-nav:active { transform: scale(0.96); }

.sv-lb-nav:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* Dots indicador */
.sv-lb-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 5;
}

.sv-lb-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.3);
  transition: background 0.22s ease, transform 0.22s ease;
}

.sv-lb-dot.is-active {
  background: var(--teal);
  border-color: var(--teal);
  transform: scale(1.25);
}

/* Botón cerrar */
.sv-lightbox__close {
  all: unset;
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.1rem;
  height: 2.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background 0.18s ease, transform 0.18s ease;
}

.sv-lightbox__close svg {
  width: 0.85rem;
  height: 0.85rem;
  color: var(--text);
}

.sv-lightbox__close:hover {
  background: var(--white);
  transform: scale(1.1);
}

.sv-lightbox__close:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* Responsive */
@media (max-width: 900px) {
  .sistema-vivo__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .sistema-vivo__left { order: 1; }
  .sistema-vivo__right { order: 2; }

  .sv-screens { aspect-ratio: 4/3; }

  .sv-zoom-btn { opacity: 1; transform: scale(1) translateY(0); }

  /* En móvil los botones prev/next van pegados al borde del lightbox */
  .sv-lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(0.8);
    z-index: 20;
    width: 2.4rem;
    height: 2.4rem;
  }
  .sv-lb-nav--prev { left: 0.5rem; }
  .sv-lb-nav--next { right: 0.5rem; }
  .sv-lightbox.is-open .sv-lb-nav {
    transform: translateY(-50%) scale(1);
  }
  .sv-lightbox__content { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .sv-screen { transition: opacity 0.1s; transform: none !important; }
  .sv-progress__bar { transition: none; }
  .sv-lightbox__content,
  .sv-lightbox__backdrop { transition: none; }
  .sv-zoom-btn { transition: opacity 0.1s; }
}
