/* ===== VARIABLES ===== */
:root {
  --navy: #0b1733;
  --navy-2: #122347;
  --blue: #2b59ff;
  --blue-light: #5b82ff;
  --violet: #7c3aed;
  --orange: #ff7a18;
  --green: #00b87c;
  --green-dark: #009e6a;
  --bg: #ffffff;
  --bg-alt: #f5f7fc;
  --text: #1a2238;
  --muted: #5a6480;
  --border: #e6e9f2;
  --shadow: 0 18px 40px -18px rgba(11, 23, 51, .25);
  --shadow-sm: 0 8px 22px -12px rgba(11, 23, 51, .25);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1160px;
  --font-head: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

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

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

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: var(--max);
  margin: 0 auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  line-height: 1.18;
  color: var(--navy);
}

h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -.5px;
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -.3px;
}

h3 {
  font-size: 1.18rem;
  font-weight: 600;
}

.grad {
  background: linear-gradient(100deg, var(--blue), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grad-green {
  background: linear-gradient(100deg, var(--green), #2bd6a6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grad-orange {
  background: linear-gradient(100deg, var(--orange), #ffb347);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .98rem;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn-lg {
  padding: 1rem 1.9rem;
  font-size: 1.02rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(100deg, var(--blue), var(--violet));
  color: #fff;
  box-shadow: 0 12px 26px -12px var(--blue);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -10px var(--blue);
}

.btn-green {
  background: linear-gradient(100deg, var(--green), #16c98e);
  color: #fff;
  box-shadow: 0 12px 26px -12px var(--green);
}

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

.btn-orange {
  background: linear-gradient(100deg, var(--orange), #ff9d4d);
  color: #fff;
  box-shadow: 0 12px 26px -12px var(--orange);
}

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

.btn-ghost {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .28);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .16);
}

.btn-glass {
  background: rgba(255, 255, 255, .16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .5);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .5);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, .28);
  transform: translateY(-2px);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(43, 89, 255, .08);
  padding: .35rem .85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.eyebrow.center {
  display: inline-block;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(11, 23, 51, .85);
  backdrop-filter: blur(12px);
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding: .35rem 0;
}

.navbar.scrolled {
  background: rgba(11, 23, 51, .97);
  box-shadow: 0 6px 24px -12px rgba(0, 0, 0, .5);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.logo-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14);
}

/* "JM" mark: solo se muestra como respaldo si no carga assets/logo.png */
.logo-mark {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  background: #0b0b0b;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: -.5px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14);
}

.logo.no-img .logo-img {
  display: none;
}

.logo.no-img .logo-mark {
  display: grid;
}

.logo-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.35rem;
  color: #fff;
  letter-spacing: .5px;
}

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

.nav-links a {
  color: #cdd6ee;
  font-weight: 500;
  font-size: .96rem;
  transition: color .2s;
}

.nav-links a:hover {
  color: #fff;
}

.nav-cta {
  color: #fff !important;
}

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

.nav-toggle span {
  width: 26px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: .3s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

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

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ===== HERO SLIDER FULL-WIDTH ===== */
.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;
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  /* el hero arranca debajo de la navbar fija (79px) para que no tape la imagen */
  padding-top: 80px;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.track {
  display: flex;
  transition: transform .7s cubic-bezier(.6, .05, .2, 1);
}

/* La imagen del slide ya incluye su diseño y texto. Ocupa todo el ancho.
   Relación 2.2:1 → tamaño de imagen recomendado: 2200x1000 px (entra sin recorte). */
.slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  aspect-ratio: 11 / 5;
  /* 2.2 : 1 — coincide con imágenes de 2200x1000 */
  max-height: 100vh;
  /* solo evita desborde en ventanas más anchas que 2.2:1 */
  overflow: hidden;
  background: var(--navy);
}

.slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* top → si alguna vez recorta, lo hace por abajo, nunca por arriba */
  object-position: center top;
  z-index: 0;
}

/* Botones anclados por % de la imagen → quedan en el mismo punto en cualquier pantalla.
   Ajustables por slide con --cta-x (izquierda) y --cta-y (desde abajo). */
.slide-content {
  position: absolute;
  left: var(--cta-x, 8%);
  bottom: var(--cta-y, 24%);
  z-index: 2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}

/* Posición de los botones según el espacio libre de cada imagen (en % de la imagen) */
.slide:nth-child(1) {
  --cta-x: 9.5%;
  --cta-y: 22%;
}

.slide:nth-child(2) {
  --cta-x: 9.5%;
  --cta-y: 22%;
}

.slide:nth-child(3) {
  --cta-x: 10%;
  --cta-y: 22%;
}

.slide:nth-child(4) {
  --cta-x: 9%;
  --cta-y: 25%;
}

/* controles del slider — arriba a la derecha */
.car-controls {
  position: absolute;
  top: 10px;
  left: 20px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(11, 23, 51, .4);
  padding: 6px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.car-arrow {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
  font-size: 1.6rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background .2s, transform .2s;
}

.car-arrow:hover {
  background: rgba(255, 255, 255, .3);
}

.car-dots {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.car-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  cursor: pointer;
  transition: .3s;
}

.car-dots button.active {
  background: #fff;
  width: 30px;
  border-radius: 6px;
}

/* ===== SECTIONS ===== */
.section {
  padding: 5.5rem 0;
}

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

.section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3rem;
}

.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: .6rem;
}

/* ===== GRID ===== */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ===== CARDS / SERVICES ===== */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}

.card.service:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}

.icon svg {
  width: 26px;
  height: 26px;
}

.icon-blue {
  background: rgba(43, 89, 255, .12);
  color: var(--blue);
}

.icon-violet {
  background: rgba(124, 58, 237, .12);
  color: var(--violet);
}

.icon-orange {
  background: rgba(255, 122, 24, .14);
  color: var(--orange);
}

.icon-green {
  background: rgba(0, 184, 124, .14);
  color: var(--green-dark);
}

.card h3 {
  margin-bottom: .55rem;
}

.card p {
  color: var(--muted);
  font-size: .96rem;
  margin-bottom: 1rem;
}

.link-arrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .92rem;
  color: var(--blue);
  transition: gap .2s;
}

.link-arrow:hover {
  opacity: .8;
}

/* ===== SPLIT SECTIONS ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

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

.split-text p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.4rem;
}

.check-list {
  margin-bottom: 1.8rem;
}

.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: .7rem;
  color: var(--text);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  background: rgba(43, 89, 255, .12);
  color: var(--blue);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .8rem;
  font-weight: 700;
}

.check-list.green li::before {
  background: rgba(0, 184, 124, .15);
  color: var(--green-dark);
}

.check-list.orange li::before {
  background: rgba(255, 122, 24, .15);
  color: var(--orange);
}

/* app mockup */
.split-visual {
  display: grid;
  place-items: center;
}

.split-img {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.app-mock {
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
}

.app-bar {
  background: var(--navy);
  padding: .9rem 1.2rem;
  display: flex;
  gap: .4rem;
}

.app-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3a4d7a;
}

.app-bar span:first-child {
  background: #ff5f57;
}

.app-bar span:nth-child(2) {
  background: #febc2e;
}

.app-bar span:nth-child(3) {
  background: #28c840;
}

.app-body {
  padding: 1.5rem;
}

.app-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.1rem;
}

.app-head strong {
  font-family: var(--font-head);
  font-size: 1.05rem;
}

.badge {
  background: rgba(43, 89, 255, .12);
  color: var(--blue);
  font-size: .72rem;
  font-weight: 600;
  padding: .25rem .6rem;
  border-radius: 999px;
}

.app-line {
  display: flex;
  justify-content: space-between;
  padding: .65rem 0;
  border-bottom: 1px dashed var(--border);
  color: var(--muted);
  font-size: .94rem;
}

.app-total {
  display: flex;
  justify-content: space-between;
  padding: .9rem 0 1.2rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
}

.app-btn {
  width: 100%;
  background: linear-gradient(100deg, var(--blue), var(--violet));
  color: #fff;
  border: none;
  padding: .85rem;
  border-radius: 12px;
  font-family: var(--font-head);
  font-weight: 600;
  cursor: pointer;
}

/* pay card */
.pay-card {
  width: 100%;
  max-width: 360px;
  background: linear-gradient(150deg, var(--navy), var(--navy-2));
  color: #fff;
  border-radius: 22px;
  padding: 1.8rem;
  box-shadow: var(--shadow);
}

.pay-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #aeb9d8;
  font-size: .9rem;
  margin-bottom: 1rem;
}

.pay-amount {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.1rem;
  margin-bottom: 1.4rem;
}

.pay-field {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  padding: .8rem 1rem;
  letter-spacing: 1px;
  margin-bottom: .7rem;
  font-size: .95rem;
}

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

.pay-field.sm {
  margin-bottom: 0;
}

.pay-btn {
  width: 100%;
  background: linear-gradient(100deg, var(--green), #16c98e);
  color: #fff;
  border: none;
  padding: .9rem;
  border-radius: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  cursor: pointer;
  margin-top: 1rem;
}

.pay-status {
  text-align: center;
  color: #4be0a8;
  font-weight: 600;
  font-size: .92rem;
  margin-top: .9rem;
}

/* web mockup */
.web-mock {
  width: 100%;
  max-width: 430px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}

.web-bar {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: #f1f4fb;
  border-bottom: 1px solid var(--border);
  padding: .7rem .9rem;
}

.web-bar > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cdd6ee;
  flex: none;
}

.web-bar > span:first-child {
  background: #ff5f57;
}

.web-bar > span:nth-child(2) {
  background: #febc2e;
}

.web-bar > span:nth-child(3) {
  background: #28c840;
}

.web-url {
  flex: 1;
  margin-left: .6rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .3rem .9rem;
  font-size: .78rem;
  color: var(--muted);
}

.web-screen {
  padding: 1.3rem;
}

.web-hero {
  background: linear-gradient(120deg, var(--blue), var(--violet));
  border-radius: 12px;
  padding: 1.4rem;
  margin-bottom: 1.1rem;
}

.web-hero-lines span {
  display: block;
  height: 9px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .85);
  margin-bottom: .6rem;
}

.web-hero-lines span:nth-child(2) {
  width: 60%;
  background: rgba(255, 255, 255, .5);
}

.web-hero-btn {
  width: 92px;
  height: 26px;
  border-radius: 7px;
  background: #fff;
  margin-top: 1.1rem;
}

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

.web-cards div {
  height: 54px;
  border-radius: 9px;
  background: #eef2fb;
  border: 1px solid var(--border);
}

/* ads mockup */
.ads-mock {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 1.6rem;
}

.ads-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.3rem;
}

.ads-head strong {
  font-family: var(--font-head);
  font-size: 1.02rem;
}

.badge-orange {
  background: rgba(255, 122, 24, .14);
  color: var(--orange);
  font-size: .72rem;
  font-weight: 600;
  padding: .25rem .6rem;
  border-radius: 999px;
}

.ads-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.ads-stat {
  display: flex;
  flex-direction: column;
  background: #faf6f1;
  border: 1px solid #f1e3d4;
  border-radius: 12px;
  padding: .8rem 1rem;
}

.ads-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--orange);
}

.ads-stat small {
  color: var(--muted);
  font-size: .8rem;
  margin-top: .15rem;
}

.ads-chart {
  display: flex;
  align-items: flex-end;
  gap: .5rem;
  height: 92px;
  padding: .4rem 0;
  border-bottom: 1px dashed var(--border);
}

.ads-chart span {
  flex: 1;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #ff9d4d, var(--orange));
}

.ads-foot {
  text-align: center;
  color: var(--muted);
  font-size: .82rem;
  margin-top: .9rem;
}

/* ===== FEATURES (por qué) ===== */
.feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  transition: transform .25s;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
}

.feat-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--blue);
  opacity: .35;
  margin-bottom: .6rem;
}

.feature h3 {
  margin-bottom: .5rem;
}

.feature p {
  color: var(--muted);
  font-size: .94rem;
}

/* ===== STEPS ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.5rem;
  text-align: center;
}

.step-num {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  border-radius: 50%;
  box-shadow: 0 10px 22px -10px var(--blue);
}

.step h3 {
  margin-bottom: .4rem;
}

.step p {
  color: var(--muted);
  font-size: .92rem;
}

/* ===== FAQ ===== */
.faq {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: .8rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.3rem;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  color: var(--blue);
  transition: transform .3s ease;
  flex: none;
}

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

.faq-a {
  padding: 0 1.3rem 1.2rem;
}

.faq-a p {
  margin: 0;
  color: var(--muted);
  font-size: .98rem;
}

/* ===== CONTACT ===== */
.contact {
  background: radial-gradient(900px 500px at 90% 0%, #1a3066 0%, transparent 55%), var(--navy);
  color: #fff;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contact-text .eyebrow {
  background: rgba(255, 255, 255, .1);
  color: #bcd0ff;
}

.contact-text h2 {
  color: #fff;
}

.contact-text p {
  color: #c4cee6;
  margin: .6rem 0 1.6rem;
  font-size: 1.05rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: .9rem;
  color: #d7deef;
}

.contact-list a:hover {
  color: #fff;
  text-decoration: underline;
}

.ci {
  font-size: 1.1rem;
}

.contact-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .88rem;
  color: var(--navy);
  margin-bottom: .4rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: .96rem;
  color: var(--text);
  background: #fbfcff;
  transition: border-color .2s, box-shadow .2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(43, 89, 255, .12);
}

.field textarea {
  resize: vertical;
}

.form-note {
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
  color: var(--green-dark);
}

/* ===== FOOTER ===== */
.footer {
  background: #081024;
  color: #aab6d4;
  padding: 3.5rem 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-brand p {
  margin-top: .9rem;
  font-size: .94rem;
  max-width: 20rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-col a,
.footer-col span {
  display: block;
  color: #aab6d4;
  font-size: .92rem;
  margin-bottom: .55rem;
  transition: color .2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 1.3rem 0;
  font-size: .85rem;
  text-align: center;
}

/* ===== WHATSAPP FLOAT ===== */
.wa-float {
  position: fixed;
  bottom: 50px;
  right: 22px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px -8px rgba(37, 211, 102, .7);
  animation: pulse 2.4s infinite;
}

.wa-float svg {
  width: 32px;
  height: 32px;
}

.wa-float:hover {
  transform: scale(1.07);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, .5);
  }

  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===== RESPONSIVE ===== */

/* Hasta 1024px: imagen del hero completa + botones debajo (evita pisar los mockups) */
@media (max-width: 1024px) {
  .hero {
    padding-top: 72px;
  }

  .slide {
    height: auto;
    max-height: none;
    display: flex;
    flex-direction: column;
  }

  .slide-bg {
    position: static;
    width: 100%;
    height: auto;
  }

  .slide-content {
    position: static;
    bottom: auto;
    width: 90%;
    margin: 0 auto;
    padding: 1.2rem 0 2.8rem;
  }

  .car-arrow {
    display: none;
  }

  .car-controls {
    top: 12px;
    right: 12px;
  }
}

@media (max-width: 980px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .split {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .split.reverse .split-text {
    order: 0;
  }

  .contact-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    top: 68px;
    right: 0;
    width: 78%;
    max-width: 320px;
    height: calc(100vh - 68px);
    background: var(--navy-2);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1.5rem;
    transform: translateX(110%);
    transition: transform .35s ease;
    box-shadow: -10px 0 30px -10px rgba(0, 0, 0, .6);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    width: 100%;
    padding: .9rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-size: 1.05rem;
  }

  .nav-cta {
    margin-top: 1rem;
    border-bottom: none !important;
  }

  .nav-toggle {
    display: flex;
  }

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

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

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4rem 0;
  }

  /* En móvil los botones se apilan a todo el ancho, debajo de la imagen */
  .hero-actions {
    flex-direction: column;
    gap: .7rem;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  .reveal {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}