/* ==========================================================================
   SISTPERU — Grupo Integra TI
   Sistema de diseño corporativo: Azul tecnológico, Azul oscuro, Negro,
   Gris grafito y Blanco de alto contraste.
   ========================================================================== */

:root {
  /* Paleta cromática principal */
  --bg-void: #04080f;
  --bg-dark: #07111f;
  --bg-surface: #0d1829;
  --bg-graphite: #141c27;
  --bg-graphite-elevated: #1b2636;
  --bg-light: #f8fafc;
  --bg-light-card: #ffffff;

  /* Azul tecnológico */
  --blue-primary: #1d6ff2;
  --blue-hover: #1459cc;
  --blue-bright: #38bdf8;
  --blue-soft: rgba(29, 111, 242, 0.14);
  --blue-glow: rgba(29, 111, 242, 0.28);

  /* Textos */
  --text-main: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;
  --text-dark-secondary: #334155;
  --text-dark-muted: #64748b;

  /* Bordes */
  --border-subtle: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(56, 189, 248, 0.35);
  --border-light: #e2e8f0;

  /* Conversión */
  --whatsapp: #25d366;
  --whatsapp-hover: #1ebe5d;
  --whatsapp-dark: #064e3b;

  /* Tipografía */
  --font-display: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout y radios */
  --container-max: 1200px;
  --header-height: 76px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-card: 0 12px 32px -8px rgba(4, 8, 15, 0.55);
  --shadow-light: 0 16px 38px -12px rgba(15, 23, 42, 0.12);
  --transition: 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Reset y base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  -webkit-text-size-adjust: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-main);
  background-color: var(--bg-dark);
  max-width: 100%;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
}

.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;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--blue-primary);
  color: #ffffff;
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

/* Contenedor y secciones */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding-block: 84px;
  position: relative;
}

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

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

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

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

.section--light {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.section__header {
  max-width: 760px;
  margin-bottom: 48px;
}

.section__header--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 14px;
}

.section--light .eyebrow {
  color: var(--blue-primary);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: currentColor;
}

.section__title {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.section__subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 65ch;
}

.section--light .section__subtitle {
  color: var(--text-dark-secondary);
}

.section__header--center .section__subtitle {
  margin-inline: auto;
}

/* ==========================================================================
   HEADER Y NAVEGACIÓN UNIFICADA
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(4, 8, 15, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo img {
  height: 40px;
  width: auto;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 6px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition), background-color var(--transition);
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.06);
}

.nav-link[aria-current="page"] {
  color: var(--blue-bright);
}

/* Dropdown de Servicios */
.nav-dropdown {
  position: relative;
}

.nav-dropdown__chevron {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}

.nav-dropdown[data-open="true"] .nav-dropdown__chevron {
  transform: rotate(180deg);
}

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: -80px;
  width: 580px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: var(--bg-graphite);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.65);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.nav-dropdown[data-open="true"] .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition);
}

.nav-dropdown__item:hover,
.nav-dropdown__item[aria-current="page"] {
  background: rgba(29, 111, 242, 0.16);
}

.nav-dropdown__title {
  font-weight: 600;
  font-size: 0.92rem;
  color: #ffffff;
}

.nav-dropdown__desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.nav-dropdown__divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 6px 8px;
}

.header-actions {
  display: none;
  align-items: center;
  gap: 10px;
}

/* Botón menú móvil */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-graphite);
  color: #ffffff;
  cursor: pointer;
}

.nav-mobile {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  z-index: 999;
  background: var(--bg-void);
  padding: 24px 20px 36px;
  overflow-y: auto;
  display: none;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border-subtle);
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-weight: 600;
  color: #ffffff;
}

.nav-mobile__sublist {
  display: grid;
  gap: 6px;
  padding-left: 12px;
  margin-top: 4px;
  margin-bottom: 8px;
}

.nav-mobile__sublink {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(20, 28, 39, 0.75);
  border-left: 2px solid var(--blue-primary);
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.nav-mobile__cta {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

@media (min-width: 1024px) {
  .nav-desktop,
  .header-actions {
    display: flex;
  }

  .nav-toggle,
  .nav-mobile {
    display: none !important;
  }
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

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

.btn--sm {
  padding: 9px 16px;
  font-size: 0.88rem;
}

.btn--lg {
  padding: 15px 28px;
  font-size: 1rem;
}

.btn--full {
  width: 100%;
}

.btn--primary {
  background-color: var(--blue-primary);
  color: #ffffff;
  box-shadow: 0 8px 24px -6px var(--blue-glow);
}

.btn--primary:hover {
  background-color: var(--blue-hover);
  transform: translateY(-1px);
}

.btn--whatsapp {
  background-color: var(--whatsapp);
  color: #032212;
  font-weight: 700;
}

.btn--whatsapp:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-1px);
}

.btn--outline {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  color: #ffffff;
}

.btn--outline:hover {
  background-color: rgba(56, 189, 248, 0.12);
  border-color: var(--blue-bright);
}

.btn--outline-dark {
  background-color: transparent;
  border-color: var(--border-light);
  color: var(--text-dark);
}

.btn--outline-dark:hover {
  border-color: var(--blue-primary);
  color: var(--blue-primary);
  background-color: rgba(29, 111, 242, 0.06);
}

/* ==========================================================================
   HERO PRINCIPAL Y HERO DE PÁGINAS INTERNAS
   ========================================================================== */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  padding-block: 80px 72px;
  background-color: var(--bg-void);
  overflow: hidden;
}

.hero--subpage {
  min-height: 440px;
  padding-block: 68px 60px;
}

/* Carrusel comercial principal (6 diapositivas) */
.hero--carousel {
  display: block;
  min-height: 640px;
  padding-block: 0;
}

.hero-carousel {
  position: relative;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-slides {
  position: relative;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.hero-slide {
  grid-area: 1 / 1;
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
  padding-block: 68px 110px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.hero-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  z-index: 5;
}

.hero-controls__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  background: rgba(7, 17, 31, 0.86);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
}

.hero-controls__status {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.hero-controls__counter {
  color: var(--blue-bright);
  font-weight: 700;
}

.hero-controls__dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 26px;
  height: 7px;
  border-radius: 999px;
  border: 0;
  background: rgba(148, 163, 184, 0.35);
  cursor: pointer;
  padding: 0;
  transition: background-color var(--transition), width var(--transition);
}

.hero-dot[aria-selected="true"] {
  width: 38px;
  background: var(--blue-bright);
}

.hero-controls__arrows {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-arrow {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(20, 28, 39, 0.9);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition);
}

.hero-arrow:hover {
  background: var(--blue-primary);
  border-color: var(--blue-bright);
}

@media (max-width: 640px) {
  .hero--carousel,
  .hero-carousel {
    min-height: 680px;
  }
  .hero-slide {
    padding-block: 48px 136px;
  }
  .hero-controls__bar {
    padding: 10px 12px;
  }
  .hero-dot {
    width: 18px;
  }
  .hero-dot[aria-selected="true"] {
    width: 28px;
  }
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 25%, rgba(29, 111, 242, 0.24), transparent 55%),
    linear-gradient(95deg, rgba(4, 8, 15, 0.96) 0%, rgba(7, 17, 31, 0.86) 58%, rgba(7, 17, 31, 0.72) 100%);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero__grid > * {
  min-width: 0;
}

@media (min-width: 960px) {
  .hero__grid--split {
    grid-template-columns: 1.25fr 0.75fr;
  }
}

.hero__title {
  font-size: clamp(2.15rem, 4.4vw, 3.65rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  max-width: 18ch;
}

.hero__title span {
  color: var(--blue-bright);
}

.hero__lead {
  font-size: clamp(1.04rem, 1.4vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 60ch;
  margin-bottom: 30px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--blue-bright);
}

/* Panel lateral técnico en hero */
.hero-panel {
  background: rgba(13, 24, 41, 0.88);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(8px);
}

.hero-panel__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-bright);
  margin-bottom: 14px;
}

.hero-panel__list {
  display: grid;
  gap: 12px;
}

.hero-panel__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.92rem;
}

.hero-panel__row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.hero-panel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-bright);
  margin-top: 7px;
  flex-shrink: 0;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.breadcrumb a:hover {
  color: var(--blue-bright);
}

/* Franja de capacidades */
.tech-strip {
  background: var(--bg-graphite);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding-block: 18px;
}

.tech-strip__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.tech-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tech-strip__item::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-bright);
}

/* ==========================================================================
   GRILLAS Y TARJETAS DE SERVICIOS
   ========================================================================== */
.grid {
  display: grid;
  gap: 24px;
}

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

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

@media (min-width: 720px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--bg-graphite);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

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

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--blue-soft);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: grid;
  place-items: center;
  padding: 10px;
}

.card__icon img,
.card__icon svg {
  width: 26px;
  height: 26px;
}

.card__code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--blue-bright);
  letter-spacing: 0.08em;
}

.card__title {
  font-size: 1.32rem;
  font-weight: 700;
  color: #ffffff;
}

.card__desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.card__actions {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   PLANES DE SOPORTE (BASE, PRO, FULL)
   ========================================================================== */
.plans-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 900px) {
  .plans-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.plan-card {
  background: var(--bg-light-card);
  color: var(--text-dark);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-light);
  position: relative;
}

.plan-card--featured {
  background: var(--bg-dark);
  color: #ffffff;
  border: 2px solid var(--blue-primary);
  box-shadow: 0 24px 48px -14px rgba(29, 111, 242, 0.35);
}

.plan-card__badge {
  position: absolute;
  top: -13px;
  right: 24px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--blue-primary);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan-card__name {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-primary);
}

.plan-card--featured .plan-card__name {
  color: var(--blue-bright);
}

.plan-card__price-wrap {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
}

.plan-card--featured .plan-card__price-wrap {
  border-bottom-color: var(--border-subtle);
}

.plan-card__from {
  font-size: 0.82rem;
  color: var(--text-dark-muted);
}

.plan-card--featured .plan-card__from {
  color: var(--text-muted);
}

.plan-card__price {
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1.1;
  margin-block: 4px;
}

.plan-card__billing {
  font-size: 0.85rem;
  color: var(--text-dark-muted);
}

.plan-card--featured .plan-card__billing {
  color: var(--text-muted);
}

.plan-card__features {
  display: grid;
  gap: 11px;
  font-size: 0.94rem;
}

.plan-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.plan-card__features li::before {
  content: "✓";
  font-weight: 700;
  color: var(--blue-primary);
  flex-shrink: 0;
}

.plan-card--featured .plan-card__features li::before {
  color: var(--blue-bright);
}

.plan-card__cta {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.plans-note {
  margin-top: 24px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-dark-secondary);
}

.section--dark .plans-note,
.section--surface .plans-note {
  color: var(--text-muted);
}

/* ==========================================================================
   BLOQUES SPLIT MEDIA + DETALLE TÉCNICO
   ========================================================================== */
.split {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 54px;
  }

  .split--reverse .split__media {
    order: 2;
  }
}

.split__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-void);
  box-shadow: var(--shadow-card);
}

.split__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.split__caption {
  padding: 12px 16px;
  background: rgba(4, 8, 15, 0.92);
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.check-list {
  display: grid;
  gap: 12px;
  margin-block: 22px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-secondary);
}

.section--light .check-list li {
  color: var(--text-dark-secondary);
}

.check-list li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 4px;
  flex-shrink: 0;
  border-radius: 4px;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2338bdf8' stroke-width='2.4'%3E%3Cpath d='M5 10.5l3.5 3.5L15 7'/%3E%3C/svg%3E") center/14px no-repeat;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

/* ==========================================================================
   PASOS / METODOLOGÍA Y FAQ
   ========================================================================== */
.steps-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}

.step-card__num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-bright);
  margin-bottom: 12px;
}

.step-card__title {
  font-size: 1.12rem;
  margin-bottom: 8px;
  color: #ffffff;
}

.step-card__desc {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Acordeón FAQ */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 880px;
}

.faq-item {
  background: var(--bg-graphite);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item__trigger {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  border: 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
}

.faq-item__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--blue-bright);
  transition: transform var(--transition);
}

.faq-item__trigger[aria-expanded="true"] .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__panel {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding-top: 14px;
}

/* ==========================================================================
   FORMULARIO COMERCIAL Y CONTACTO
   ========================================================================== */
.contact-layout {
  display: grid;
  gap: 36px;
  align-items: start;
}

@media (min-width: 960px) {
  .contact-layout {
    grid-template-columns: 0.95fr 1.05fr;
  }
}

.contact-info {
  display: grid;
  gap: 18px;
}

.contact-card {
  background: var(--bg-graphite);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-card__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-bright);
}

.contact-card__value {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  color: #ffffff;
}

.contact-card__value:hover {
  color: var(--blue-bright);
}

.quote-form {
  background: var(--bg-graphite);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  gap: 18px;
  box-shadow: var(--shadow-card);
}

.form-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .form-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.grid > *,
.split > *,
.contact-layout > *,
.form-grid > *,
.footer-grid > *,
.plans-grid > *,
.steps-grid > * {
  min-width: 0;
}

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.field__label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.field__input,
.field__select,
.field__textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-void);
  color: #ffffff;
  transition: border-color var(--transition), box-shadow var(--transition);
}

@media (max-width: 540px) {
  .quote-form {
    padding: 22px 18px;
  }
  .cta-banner {
    padding: 28px 20px;
  }
}

.field__input:focus,
.field__select:focus,
.field__textarea:focus {
  outline: none;
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

.field__textarea {
  min-height: 110px;
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.form-feedback {
  font-size: 0.9rem;
  color: var(--blue-bright);
  min-height: 1.3em;
}

.form-feedback--error {
  color: #fca5a5;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(125deg, #0b1c36 0%, #112c56 55%, #091529 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: space-between;
}

@media (min-width: 900px) {
  .cta-banner {
    flex-direction: row;
    align-items: center;
    padding: 48px;
  }
}

.cta-banner__title {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  color: #ffffff;
  margin-bottom: 10px;
}

.cta-banner__desc {
  color: var(--text-secondary);
  max-width: 58ch;
}

.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

/* ==========================================================================
   FOOTER UNIFICADO
   ========================================================================== */
.site-footer {
  background: var(--bg-void);
  border-top: 1px solid var(--border-subtle);
  padding-block: 64px 28px;
}

.footer-grid {
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.footer__desc {
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 38ch;
}

.footer__heading {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-bright);
  margin-bottom: 16px;
}

.footer__links {
  display: grid;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.footer__links a:hover {
  color: var(--blue-bright);
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-graphite);
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  transition: border-color var(--transition), color var(--transition), background-color var(--transition);
}

.social-link:hover {
  border-color: var(--blue-bright);
  color: #ffffff;
  background: var(--blue-soft);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   BOTÓN FLOTANTE WHATSAPP
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 950;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--whatsapp);
  color: #032212;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  transition: transform var(--transition), background-color var(--transition);
}

.whatsapp-float:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-2px);
}

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

@media (max-width: 540px) {
  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    padding: 11px 15px;
    font-size: 0.86rem;
  }
}

/* ==========================================================================
   ANIMACIONES DISCRETAS DE ENTRADA
   ========================================================================== */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
