/* ══════════════════════════════════════════
   Este archivo tenía DOS copias completas de la misma hoja concatenadas,
   más un :root de override al final. Se dedupó de forma
   mecánica: por cada selector, se tomaron TODAS sus ocurrencias en orden
   de archivo y se conservó, propiedad por propiedad, el último valor
   (que es exactamente el que ya estaba ganando por cascada) — no un
   simple "se borra la ocurrencia vieja entera", porque :root y otros
   selectores repetidos no declaraban siempre el mismo set de propiedades.
   Verificado con un comparador de cascada independiente antes de aplicar.
══════════════════════════════════════════ */

/* Las fuentes (Inter + DM Sans) se cargan con <link> en el <head> de cada
   página, no con @import acá: el @import las descubría recién al parsear
   este archivo y duplicaba el pedido. */

/* ══════════════════════════════════════════
   VARIABLES & RESET
══════════════════════════════════════════ */

:root {
  --navy: #13161D;
  --brand: #053EB2;
  --brand-lt: #4E74D6;
  --ice: #E8EFFB;
  --white: #FFFFFF;
  --slate: #5B6472;
  --border: #E0E5EE;
  --font-head: 'Inter', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius-card: 1rem;
  --radius-pill: 9999px;
  --shadow-card: 0 1px 2px rgba(19,22,29,.05), 0 8px 24px rgba(19,22,29,.07);
  --transition: .25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 4rem;
  font-family: var(--font-body);
  background: var(--white);
  color: var(--navy);
  overflow-x: hidden;
  line-height: 1.6;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

main > .section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

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

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

/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: .4;
  }
}

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .875rem;
  cursor: pointer;
  border: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
}

.btn--primary:hover {
  background: var(--brand-lt);
}

.btn--pill {
  border-radius: var(--radius-pill);
  padding: .75rem 1.75rem;
}

.btn--sm {
  padding: .5rem 1.25rem;
  font-size: .8125rem;
}

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

.btn--shadow {
  box-shadow: 0 8px 24px rgba(0,87,255,.3);
}

/* ══════════════════════════════════════════
   BADGES
══════════════════════════════════════════ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  padding: .375rem 1rem;
  border-radius: var(--radius-pill);
}

.badge__dot {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--brand-lt);
  animation: pulse 2s infinite;
}

.badge--brand {
  color: var(--brand);
  background: var(--ice);
  border: 1px solid rgba(0,87,255,.2);
}

.badge--outline-white {
  color: var(--brand-lt);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(61,127,255,.4);
}

/* ══════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════ */

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: 6rem 0;
}

.section--white {
  background: var(--white);
}

.section--navy {
  background: var(--navy);
}

.section--ice {
  background: var(--ice);
}

.section__header {
  text-align: center;
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.section__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--navy);
  line-height: 1.15;
}

.section__subtitle {
  font-size: 1.125rem;
  color: var(--slate);
  max-width: 38rem;
  text-align: center;
}

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4rem;
  background: var(--navy);
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.navbar.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 12px rgba(0,0,0,.06);
  border-bottom: 1px solid rgba(0,87,255,.1);
}

.navbar__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
}

.navbar.scrolled .navbar__logo {
  color: var(--navy);
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.navbar__brand-tag {
  padding-left: .75rem;
  border-left: 1px solid rgba(255, 255, 255, .3);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  color: rgba(255, 255, 255, .8);
  white-space: nowrap;
}

.navbar.scrolled .navbar__brand-tag {
  color: var(--navy);
  border-left-color: rgba(11, 30, 61, .18);
}

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

.navbar__links a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--slate);
  transition: color var(--transition);
}

.navbar__links a:hover {
  color: var(--brand);
}

.navbar__cta {
  display: flex;
  gap: .75rem;
}

.navbar__burger {
  display: none;
  flex-direction: column;
  gap: .3rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: .25rem;
}

.navbar__burger span {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.navbar.scrolled .navbar__burger span {
  background: var(--navy);
}

.navbar__burger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.navbar__burger.open span:nth-child(2) {
  opacity: 0;
}

.navbar__burger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.navbar__mobile {
  display: none;
  background: var(--white);
  border-top: 1px solid rgba(0,87,255,.1);
  padding: 1rem 1.5rem 1.5rem;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
}

.navbar__mobile.open {
  display: block;
}

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

.navbar__mobile-link {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  transition: color var(--transition);
}

.navbar__mobile-link:hover {
  color: var(--brand);
}

.navbar__mobile-cta {
  margin-top: .5rem;
  text-align: center;
}

/* ══════════════════════════════════════════
   CONTACT
══════════════════════════════════════════ */

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

.contact__copy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  line-height: 1.15;
}

.contact__subtitle {
  font-size: 1.125rem;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
}

.contact__form {
  background: #F0F4F8;
  border: 1px solid rgba(0, 87, 255, 0.1);
  border-radius: var(--radius-card);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

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

.form-group {
  display: flex;
  flex-direction: column;
}

.form-input {
  width: 100%;
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: .75rem;
  padding: .75rem 1rem;
  font-family: var(--font-body);
  font-size: .875rem;
  color: #1E293B;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}

.form-input::placeholder {
  color: #64748B;
}

.form-input:focus {
  border-color: #0052FF;
  background: #ffffff;
}

.form-textarea {
  resize: none;
}

.btn--submit {
  padding: .875rem;
  border-radius: .75rem;
  font-size: .875rem;
  cursor: pointer;
}

.contact__success {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  text-align: center;
  color: #fff;
}

.contact__success-icon {
  font-size: 3.5rem;
  color: #4ade80;
  margin-bottom: 1rem;
  display: block;
}

.contact__success p {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */

.footer {
  background: var(--navy);
  color: #fff;
}

.footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.125rem;
  color: #fff;
}

.footer__logo-img {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
}

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

.footer__brand-tag {
  padding-left: .875rem;
  border-left: 1px solid rgba(255, 255, 255, .25);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9375rem;
  color: rgba(255, 255, 255, .75);
}

.footer__copy {
  font-size: .75rem;
  color: rgba(255,255,255,.4);
  text-align: center;
}

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

.footer__links a {
  font-size: .75rem;
  color: rgba(255,255,255,.5);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: #fff;
}

/* ══════════════════════════════════════════
   PÁGINAS DE SOLUCIÓN — HERO (claro, centrado)
══════════════════════════════════════════ */

.solucion-hero {
  background: linear-gradient(135deg, #EEF4FF 0%, #DBEAFE 60%, #EEF4FF 100%);
  color: var(--navy);
  padding: 9rem 8% 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.solucion-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(0,87,255,.06);
  pointer-events: none;
}

.solucion-hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(0,87,255,.04);
  pointer-events: none;
}

.solucion-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.solucion-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  color: var(--slate);
  margin-bottom: .25rem;
}

.solucion-hero__breadcrumb a {
  color: var(--slate);
  transition: color var(--transition);
}

.solucion-hero__breadcrumb a:hover {
  color: var(--brand);
}

.solucion-hero__breadcrumb-sep {
  color: rgba(90,106,133,.4);
  font-size: .7rem;
}

.solucion-hero__breadcrumb-current {
  color: var(--brand);
  font-weight: 600;
}

/* Única definición del h1 de los heros (antes repartida en tres reglas entre
   este archivo y soluciones-shared.css). Estos son los valores que ganaban. */
.solucion-hero__title_t {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: white;
  max-width: 540px;
  margin-top: .25rem;
  margin-bottom: 0.75rem;
}

.solucion-hero__desc {
  font-size: 1rem;
  color: var(--slate);
  line-height: 1.75;
  max-width: 600px;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */

@media (max-width: 1024px) {
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .solucion-hero__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  /* Entre 769 y ~880 px el navbar desktop no entraba y los links se partían
     en dos líneas antes de que aparezca el burger (768px). */
  .navbar__links {
    gap: 1.25rem;
  }

  .navbar__links a,
  .navbar__cta .btn {
    white-space: nowrap;
  }

  .navbar__brand {
    flex-shrink: 0;
  }

  /* Duplica al botón .navbar__cta (mismo texto y destino): se oculta para
     hacer lugar sin perder el acceso. */
  .navbar__links a:first-child {
    display: none;
  }
}

@media (max-width: 768px) {
  .navbar__links {
    display: none;
  }

  .navbar__cta {
    display: none;
  }

  .navbar__burger {
    display: flex;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .solucion-hero {
    padding: 7rem 5% 4rem;
  }

  .solucion-hero__breadcrumb {
    display: none;
  }
}

@media (max-width: 480px) {
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__links {
    flex-direction: column;
    align-items: center;
    gap: .75rem;
  }
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  color: #ef4444;
  font-size: .8125rem;
  font-weight: 500;
  margin: 0;
  min-height: 0;
}

.form-error:empty {
  display: none;
}

/* ══════════════════════════════════════════
   CONTACTO · DATOS
══════════════════════════════════════════ */

/* Contact — bloque de datos: correo / horario / respuesta */

.contact__info {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 0;
  margin: 0;
}

.contact__info-item {
  display: flex;
  align-items: center;
  gap: .875rem;
  background: #fff;
  border: 1px solid rgba(0, 87, 255, .12);
  border-radius: var(--radius-card);
  padding: .875rem 1.125rem;
}

.contact__info-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .625rem;
  background: var(--ice);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9375rem;
}

.contact__info-text {
  display: flex;
  flex-direction: column;
  gap: .125rem;
  min-width: 0;
}

.contact__info-label {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #64748B;
}

.contact__info-value {
  font-size: .9375rem;
  font-weight: 600;
  color: #1E293B;
  word-break: break-word;
}

/* ── Navbar sobre hero oscuro (estado sin .scrolled) ──
   .navbar__links a usa --slate (#5B6472) por defecto, pensado para el fondo
   blanco de .scrolled. Sin esa clase el navbar es --navy y el contraste cae
   a ~3:1 (falla WCAG AA). El logo y el burger ya tienen su variante clara;
   a los links les faltaba. */

.navbar:not(.scrolled) .navbar__links a {
  color: rgba(255,255,255,.8);
}

.navbar:not(.scrolled) .navbar__links a:hover {
  color: #fff;
}
