/* Tipografía Inter (archivos locales) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter/inter-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter/inter-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter/inter-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter/inter-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --md-dark: #0a1628;
  --md-dark-2: #111f36;
  --md-accent: #00c896;
  --md-accent-2: #00e5ac;
  --md-warn: #ff6b35;
  --md-text: #e8eef5;
  --md-muted: rgba(232, 238, 245, 0.72);
  --md-radius: 1rem;
  --md-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --wa-green: #25d366;
  --wa-green-hover: #1ebe57;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(160deg, var(--md-dark) 0%, #050a12 45%, var(--md-dark-2) 100%);
  color: var(--md-text);
  min-height: 100vh;
}

/* Enlaces: nunca subrayado */
a,
a:hover,
a:focus,
a:active,
a:visited {
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--md-accent-2);
  outline-offset: 2px;
}

.link-inline {
  color: var(--md-muted);
  border-radius: 0.3rem;
  padding: 0.1rem 0.2rem;
  margin: -0.1rem -0.2rem;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.link-inline:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.08);
}

/* Barra lateral WhatsApp (estilo sitio original: pestaña fija derecha) */
.wa-rail {
  position: fixed;
  top: 28%;
  /* Más oculta al reposo: solo asoma ~22px (borde redondeado + inicio del icono) */
  right: -168px;
  z-index: 1040;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: right 0.35s ease;
}

.wa-rail:hover {
  right: 0;
}

.wa-rail__link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  width: 190px;
  padding: 0.45rem 0.55rem 0.45rem 0.4rem;
  background: var(--wa-green);
  color: #fff !important;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 6px 0 0 6px;
  box-shadow: var(--md-shadow);
}

.wa-rail__link:hover {
  background: var(--wa-green-hover);
  color: #fff !important;
}

.wa-rail__text {
  flex: 1;
  text-align: left;
  line-height: 1.25;
}

.wa-rail__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #fff;
}

@media (max-width: 575.98px) {
  .wa-rail {
    display: none;
  }
}

/* Botón flotante WhatsApp (logo oficial sobre verde marca) */
.wa-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 0.85rem;
  overflow: hidden;
  background: var(--wa-green);
  box-shadow: 0 12px 40px rgba(18, 140, 58, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.wa-float svg {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: block;
  fill: #fff !important;
}

.wa-float:focus-visible {
  outline: 3px solid var(--md-accent-2);
  outline-offset: 3px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  padding-top: 5.5rem;
  padding-bottom: 3rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(105deg, rgba(10, 22, 40, 0.92) 0%, rgba(10, 22, 40, 0.55) 42%, rgba(10, 22, 40, 0.82) 100%),
    url('../img/webp/hero-bg.webp');
  background-size: cover;
  background-position: center 40%;
  z-index: 0;
}

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

.hero__title {
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.hero__lead {
  color: var(--md-muted);
  font-size: 1.05rem;
  max-width: 42rem;
}

.hero__badge-tranquilidad {
  display: inline-block;
  padding: 0.2rem 0.65rem 0.25rem;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  vertical-align: middle;
  color: #041018;
  background: linear-gradient(135deg, var(--md-accent) 0%, var(--md-accent-2) 100%);
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(0, 200, 150, 0.35);
  letter-spacing: -0.01em;
}

.hero-highlights {
  max-width: 100%;
  width: 100%;
}

@media (min-width: 992px) {
  .hero-highlights {
    max-width: 38rem;
  }
}

@media (min-width: 1200px) {
  .hero-highlights {
    max-width: 44rem;
  }
}

.hero-highlights__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0.85rem 1rem;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.45;
  font-weight: 500;
  color: var(--md-text);
  background: rgba(17, 31, 54, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-highlights__check {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  margin-top: 0.1rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #041018;
  background: linear-gradient(135deg, var(--md-accent) 0%, var(--md-accent-2) 100%);
  border-radius: 0.45rem;
}

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

.hero-highlights__item:last-child {
  margin-bottom: 0;
}

.glass-panel {
  background: rgba(17, 31, 54, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--md-radius);
  backdrop-filter: blur(14px);
  box-shadow: var(--md-shadow);
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 200, 150, 0.12);
  color: var(--md-accent-2);
  font-size: 0.82rem;
  font-weight: 600;
}

.btn-brand {
  --bs-btn-color: #041018;
  --bs-btn-bg: var(--md-accent);
  --bs-btn-border-color: var(--md-accent);
  --bs-btn-hover-bg: var(--md-accent-2);
  --bs-btn-hover-border-color: var(--md-accent-2);
  --bs-btn-focus-shadow-rgb: 0, 232, 172;
  --bs-btn-active-bg: #00c288;
  font-weight: 600;
}

/* Hero: botón WhatsApp en color marca WhatsApp */
.btn-hero-wa {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--wa-green);
  --bs-btn-border-color: var(--wa-green);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--wa-green-hover);
  --bs-btn-hover-border-color: var(--wa-green-hover);
  --bs-btn-focus-shadow-rgb: 37, 211, 102;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--wa-green-hover);
  --bs-btn-active-border-color: var(--wa-green-hover);
  font-weight: 600;
}

.btn-outline-light-subtle {
  --bs-btn-color: var(--md-text);
  --bs-btn-border-color: rgba(255, 255, 255, 0.25);
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.08);
  --bs-btn-hover-border-color: rgba(255, 255, 255, 0.35);
}

.navbar-landing {
  background: rgba(10, 22, 40, 0.85) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar-landing .nav-link {
  color: var(--md-muted) !important;
  font-weight: 500;
  font-size: 0.92rem;
}

.navbar-landing .nav-link:hover,
.navbar-landing .nav-link:focus {
  color: #fff !important;
}

/**
 * Menú móvil: con navbar-dark el icono SVG ya es claro; invert(1) lo volvía oscuro
 * y se perdía contraste sobre el fondo azul del header.
 */
.navbar-landing .navbar-toggler {
  --bs-navbar-toggler-border-color: rgba(255, 255, 255, 0.5);
  border-width: 2px;
  border-color: rgba(255, 255, 255, 0.5);
  padding: 0.5rem 0.65rem;
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar-landing .navbar-toggler:hover,
.navbar-landing .navbar-toggler:focus-visible {
  border-color: rgba(255, 255, 255, 0.85);
  background-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.2);
}

.navbar-landing .navbar-toggler:focus-visible {
  outline: 0;
}

.navbar-landing .navbar-toggler-icon {
  /* Sin invert: mantiene el trazo claro de Bootstrap para navbar-dark */
  width: 1.35em;
  height: 1.35em;
}

.section-title {
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.section-lead {
  color: var(--md-muted);
  max-width: 40rem;
}

.feature-visual {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.feature-visual img,
.feature-visual__img {
  border-radius: var(--md-radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-width: min(100%, 520px);
  width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 992px) {
  .feature-visual img,
  .feature-visual__img {
    max-width: min(100%, 440px);
  }
}

.icon-chip {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: rgba(0, 200, 150, 0.15);
  color: var(--md-accent-2);
  font-size: 1.35rem;
}

.card-benefit {
  background: rgba(17, 31, 54, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--md-radius);
  padding: 1.35rem 1.25rem;
  height: 100%;
  transition: transform 0.2s ease, border-color 0.2s ease;
  text-align: center;
}

.card-benefit h3 {
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
  font-weight: 700;
}

.card-benefit p {
  font-size: clamp(1.05rem, 2.1vw, 1.2rem);
  line-height: 1.5;
}

.card-benefit:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 172, 0.35);
}

.ventajas-section .ventaja-card {
  background: rgba(17, 31, 54, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--md-radius);
  padding: 1.5rem 1.35rem;
  text-align: center;
  height: 100%;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.ventajas-section .ventaja-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 229, 172, 0.35);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

.ventaja-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: 1rem;
  color: var(--md-accent-2);
  background: rgba(0, 200, 150, 0.14);
  border: 1px solid rgba(0, 229, 172, 0.22);
}

.ventaja-card__title {
  font-size: clamp(1.15rem, 2.4vw, 1.3rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.65rem;
  line-height: 1.25;
}

.ventaja-card__text {
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.5;
  color: var(--md-muted);
}

.cliente-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5.5rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.cliente-logo {
  max-height: 3.25rem;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0.1) contrast(1.02);
}

@media (min-width: 768px) {
  .cliente-logo {
    max-height: 3.75rem;
  }

  .cliente-logo-wrap {
    min-height: 6rem;
  }
}

.footer-mvisual-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.95rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(232, 238, 245, 0.72);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.footer-mvisual-badge:hover {
  color: #fff;
  background: rgba(0, 200, 150, 0.2);
  border-color: rgba(0, 229, 172, 0.5);
  box-shadow: 0 6px 22px rgba(0, 200, 150, 0.22);
  transform: translateY(-2px);
}

.footer-mvisual-badge__dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--md-accent-2);
  box-shadow: 0 0 0 3px rgba(0, 229, 172, 0.28);
}

.app-zone {
  background: radial-gradient(ellipse at 20% 0%, rgba(0, 200, 150, 0.18) 0%, transparent 55%),
    rgba(17, 31, 54, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--md-radius);
}

.store-btn img {
  height: 48px;
  width: auto;
}

@media (min-width: 576px) {
  .store-btn img {
    height: 54px;
  }
}

.footer-landing {
  background: #050a12;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-landing a:not(.btn) {
  color: var(--md-muted);
}

.footer-landing a.link-inline:hover {
  color: #fff;
}

.map-embed {
  border-radius: var(--md-radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 200px;
}

.map-embed iframe {
  width: 100%;
  height: 200px;
  border: 0;
}

.form-control,
.form-select {
  background: rgba(5, 10, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--md-text);
}

.form-control:focus,
.form-select:focus {
  background: rgba(5, 10, 18, 0.85);
  border-color: var(--md-accent);
  color: var(--md-text);
  box-shadow: 0 0 0 0.2rem rgba(0, 200, 150, 0.2);
}

.form-control::placeholder {
  color: rgba(232, 238, 245, 0.45);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
