/* =========================================================
   MaikOne · Programa de Modernización Digital
   Sistema de diseño — blanco, azul marino y tarjetas uniformes.
   Mobile-first. Sin dependencias. Sin layout shift.
   ========================================================= */

/* ---------- tipografía ---------- */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;               /* variable: un solo archivo, todos los pesos */
  font-display: swap;
  src: url('/assets/fonts/inter.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+2074, U+20AC,
                 U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Fallback con métricas ajustadas a Inter: mientras carga la fuente el texto
   ocupa lo mismo, así el intercambio no mueve nada y el CLS sigue en 0. */
@font-face {
  font-family: 'InterRespaldo';
  src: local('Segoe UI'), local('Helvetica Neue'), local('Arial'), local('Roboto');
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22.43%;
  line-gap-override: 0%;
}

:root {
  /* Superficies */
  --blanco:  #FFFFFF;
  --nieve:   #F6F8FC;
  --niebla:  #EDF2F9;
  --borde:   #E3E9F3;
  --borde-2: #CFDCEE;

  /* Azul marino — identidad Maik */
  --marino-900: #071A38;
  --marino-800: #0B2547;
  --marino-700: #123A6B;
  --marino-600: #17457E;

  /* Azul de acción */
  --azul-700: #1A46C4;
  --azul-600: #2563EB;
  --azul-500: #3B82F6;
  --azul-100: #DBE7FF;
  --azul-50:  #F1F6FF;

  /* Oro — sólo detalles de marca, nunca superficies */
  --oro-700: #A97F0E;
  --oro-500: #D4AF37;
  --oro-200: #F1E3B4;

  /* Texto */
  --texto:   #0E1B33;
  --texto-2: #46587A;
  --texto-3: #5B6B85;

  /* Estados */
  --exito: #0E8F62;
  --alerta: #B45309;
  --error:  #C92A2A;

  /* Métrica */
  --ancho: 1180px;
  --radio:    18px;
  --radio-sm: 12px;
  --radio-xs: 10px;

  /* Elevación: dos capas suaves, nunca una sombra dura */
  --sombra-1: 0 1px 2px rgba(11, 37, 71, .05), 0 1px 3px rgba(11, 37, 71, .04);
  --sombra-2: 0 2px 4px rgba(11, 37, 71, .04), 0 12px 28px rgba(11, 37, 71, .07);
  --sombra-3: 0 4px 8px rgba(11, 37, 71, .05), 0 24px 56px rgba(11, 37, 71, .10);

  --tipo: 'Inter', 'InterRespaldo', -apple-system, BlinkMacSystemFont,
          'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}
@media (min-width: 720px) { html { scroll-padding-top: 96px; } }

body {
  margin: 0;
  background: var(--blanco);
  color: var(--texto-2);
  font-family: var(--tipo);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: 'cv05' 1, 'ss03' 1;   /* formas más limpias de la Inter */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; }

h1, h2, h3 {
  margin: 0 0 .5em;
  color: var(--texto);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.022em;
}
p  { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
b, strong { font-weight: 650; color: var(--texto); }

a { color: var(--azul-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--marino-700); }

:focus-visible {
  outline: 3px solid var(--azul-500);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--azul-100); color: var(--marino-900); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- utilidades ---------- */

.envoltura {
  width: 100%;
  max-width: var(--ancho);
  margin-inline: auto;
  padding-inline: 20px;
}
.envoltura--angosta { max-width: 780px; }

.visualmente-oculto {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.saltar {
  position: absolute;
  left: 12px; top: -80px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: var(--radio-xs);
  background: var(--marino-700);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: top .15s ease;
}
.saltar:focus { top: 12px; color: #fff; }

.sobretitulo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 5px 13px 5px 11px;
  border: 1px solid var(--azul-100);
  border-radius: 999px;
  background: var(--azul-50);
  color: var(--azul-700);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.sobretitulo::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--oro-500);
  flex: 0 0 auto;
}

.acento { color: var(--marino-700); }
.tachado { color: var(--texto-3); font-weight: 500; text-decoration-thickness: 1.5px; }
.nota { color: var(--texto-3); font-size: .88rem; font-weight: 500; }

/* ---------- botones ---------- */

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--radio-xs);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.005em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .14s ease, background-color .16s ease,
              border-color .16s ease, box-shadow .16s ease;
}
.boton:active { transform: translateY(1px); }

.boton--principal {
  background: var(--marino-700);
  border-color: var(--marino-700);
  color: #fff;
  box-shadow: var(--sombra-1);
}
.boton--principal:hover {
  background: var(--marino-800);
  border-color: var(--marino-800);
  color: #fff;
  box-shadow: var(--sombra-2);
}

.boton--acento {
  background: var(--azul-600);
  border-color: var(--azul-600);
  color: #fff;
  box-shadow: var(--sombra-1);
}
.boton--acento:hover { background: var(--azul-700); border-color: var(--azul-700); color: #fff; }

.boton--suave {
  background: var(--blanco);
  border-color: var(--borde-2);
  color: var(--marino-700);
}
.boton--suave:hover { background: var(--azul-50); border-color: var(--azul-100); color: var(--marino-800); }

.boton--grande { min-height: 54px; padding: 15px 28px; font-size: 1.02rem; }
.boton--bloque { display: flex; width: 100%; }

/* ---------- cabecera ---------- */

.cabecera {
  position: static;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--borde);
}

.cabecera__fila {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  min-height: 68px;
  padding-block: 12px;
}

.marca { display: inline-flex; align-items: center; flex: 0 0 auto; }
.marca__logo {
  display: block;
  width: 148px;
  height: 51px;                       /* proporción exacta del archivo: sin salto */
  object-fit: contain;
}

.insignia {
  order: 3;
  flex: 1 0 100%;
  max-width: 100%;
  margin: 0;
  padding: 7px 14px;
  border: 1px solid var(--borde);
  border-radius: 999px;
  background: var(--nieve);
  color: var(--texto-2);
  font-size: .76rem;
  font-weight: 550;
  letter-spacing: .01em;
  text-align: center;
}

.cabecera__acciones {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.pais { display: inline-flex; align-items: center; gap: 8px; }
.pais__etiqueta {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--texto-3);
}
.pais__select {
  width: 152px;
  min-width: 0;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--borde-2);
  border-radius: var(--radio-xs);
  background: var(--blanco);
  color: var(--texto);
  font: inherit;
  font-size: .92rem;
  font-weight: 550;
  text-overflow: ellipsis;
  cursor: pointer;
}
.cabecera__cta { display: none; }

@media (min-width: 720px) {
  .cabecera { position: sticky; }
  .insignia { order: 0; flex: 0 1 auto; margin-inline: auto; }
  .pais__etiqueta { position: static; width: auto; height: auto; margin: 0; clip-path: none; }
  .pais__select { width: auto; min-width: 152px; }
}
@media (min-width: 960px) { .cabecera__cta { display: inline-flex; } }

/* ---------- héroe ---------- */

.heroe {
  position: relative;
  padding: 48px 0 60px;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(37, 99, 235, .10), transparent 65%),
    radial-gradient(700px 380px at 0% 0%, rgba(212, 175, 55, .07), transparent 60%),
    linear-gradient(180deg, var(--azul-50) 0%, var(--blanco) 62%);
  border-bottom: 1px solid var(--borde);
  overflow: hidden;
}
.heroe::after {                        /* retícula suave, apenas perceptible */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 37, 71, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 37, 71, .035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(720px 380px at 20% 0%, #000, transparent 72%);
  pointer-events: none;
}
.heroe > * { position: relative; z-index: 1; }

.heroe__rejilla { display: grid; gap: 26px; }

.heroe__titulo {
  max-width: 17ch;
  font-size: clamp(2rem, 5.6vw, 3.1rem);
  font-weight: 750;
  letter-spacing: -0.032em;
  text-wrap: balance;
  margin-bottom: .38em;
}
.heroe__titulo em {
  font-style: normal;
  color: var(--marino-700);
  background: linear-gradient(96deg, var(--marino-700), var(--azul-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.heroe__bajada {
  max-width: 56ch;
  font-size: clamp(1.04rem, 2.4vw, 1.18rem);
  color: var(--texto-2);
}

.financiamiento {
  margin: 28px 0;
  padding: 22px;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  background: var(--blanco);
  box-shadow: var(--sombra-2);
}
.financiamiento__titulo {
  margin: 0 0 14px;
  color: var(--texto-3);
  font-size: .74rem;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.financiamiento__lista { margin: 0; }
.financiamiento__fila {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--borde);
}
.financiamiento__fila:last-child { border-bottom: 0; padding-bottom: 2px; }
.financiamiento__fila dt { color: var(--texto-2); font-weight: 550; }
.financiamiento__fila dd { margin: 0; text-align: right; color: var(--texto); }
.financiamiento__fila dd b { font-size: 1.22rem; font-weight: 700; letter-spacing: -.02em; }
.financiamiento__fila .acento { color: var(--exito); }
.financiamiento__pie { margin: 14px 0 0; color: var(--texto-3); font-size: .84rem; }

.heroe__acciones { display: grid; gap: 12px; }

.heroe__panel {
  padding: 24px;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  background: var(--blanco);
  box-shadow: var(--sombra-1);
}
.panel__titulo { margin: 0 0 16px; font-size: 1.06rem; }

.lista-check li {
  position: relative;
  padding: 10px 0 10px 34px;
  color: var(--texto-2);
  border-bottom: 1px solid var(--borde);
  font-size: .96rem;
}
.lista-check li:last-child { border-bottom: 0; padding-bottom: 0; }
.lista-check li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--azul-50);
  border: 1px solid var(--azul-100);
}
.lista-check li::after {
  content: "";
  position: absolute;
  left: 6px; top: 17px;
  width: 8px; height: 4px;
  border-left: 2px solid var(--azul-600);
  border-bottom: 2px solid var(--azul-600);
  transform: rotate(-45deg);
}

@media (min-width: 560px) {
  .heroe__acciones { grid-auto-flow: column; justify-content: start; }
}
@media (min-width: 1000px) {
  .heroe { padding: 78px 0 92px; }
  .heroe__rejilla { grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .heroe__panel { position: sticky; top: 100px; }
}

/* ---------- secciones ---------- */

.seccion { padding: 60px 0; border-bottom: 1px solid var(--borde); }
.seccion--alterna { background: var(--nieve); }
.seccion__titulo { font-size: clamp(1.6rem, 4.2vw, 2.3rem); font-weight: 700; }
.seccion__bajada { max-width: 62ch; color: var(--texto-2); margin-bottom: 30px; }

@media (min-width: 1000px) { .seccion { padding: 88px 0; } }

/* ---------- tarjeta base: todas iguales ---------- */

.tarjeta,
.heroe__panel,
.escenarios,
.telefono,
.tabla-envoltura,
.sector,
.faq__item,
.formulario,
.contacto {
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  background: var(--blanco);
}

/* ---------- simulador MaikDesk ---------- */

.simulador { display: grid; gap: 22px; align-items: stretch; }

.telefono {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--sombra-2);
}

.telefono__barra {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--marino-800);
  color: #fff;
}
.telefono__punto {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, .22);
  flex: 0 0 auto;
}
.telefono__titulo { font-weight: 600; font-size: .95rem; color: #fff; }
.telefono__estado { margin-left: auto; font-size: .78rem; color: #B9CBE6; }

.telefono__chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 420px;                      /* fija: el chat nunca empuja la página */
  padding: 18px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--nieve);
}

.burbuja {
  max-width: 86%;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: .94rem;
  line-height: 1.55;
  box-shadow: var(--sombra-1);
}
.burbuja p { margin: 0 0 .6em; }
.burbuja p:last-child { margin-bottom: 0; }
.burbuja--cliente {
  align-self: flex-end;
  background: var(--marino-700);
  color: #EAF1FB;
  border-bottom-right-radius: 5px;
}
.burbuja--agente {
  align-self: flex-start;
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-bottom-left-radius: 5px;
  color: var(--texto-2);
}
.burbuja--sistema {
  align-self: center;
  max-width: 100%;
  padding: 7px 14px;
  background: transparent;
  border: 1px dashed var(--borde-2);
  box-shadow: none;
  color: var(--texto-3);
  font-size: .8rem;
  text-align: center;
}

.etiqueta-triaje {
  display: inline-block;
  margin-bottom: 9px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.etiqueta-triaje--n1 { background: #FEF0F0; color: var(--error);  border: 1px solid #F8D4D4; }
.etiqueta-triaje--n2 { background: #FEF6E7; color: var(--alerta); border: 1px solid #F6E0BC; }
.etiqueta-triaje--n3 { background: #E9F8F2; color: var(--exito);  border: 1px solid #C6EBDC; }

.telefono__escribiendo {
  min-height: 36px;                   /* reservado siempre */
  margin: 0;
  padding: 9px 18px;
  border-top: 1px solid var(--borde);
  background: var(--blanco);
  color: var(--texto-3);
  font-size: .82rem;
}
.telefono__escribiendo[hidden] { display: block; visibility: hidden; }

.escenarios {
  display: flex;
  flex-direction: column;
  padding: 24px;
  box-shadow: var(--sombra-1);
}
.escenarios__titulo { margin: 0 0 16px; font-size: 1.04rem; }
.escenarios__botones {
  display: grid;
  gap: 10px;
  min-height: 252px;                  /* reserva de los 3 escenarios */
  margin-bottom: 14px;
}

.escenario {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--borde);
  border-radius: var(--radio-sm);
  background: var(--blanco);
  color: var(--texto);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.escenario:hover:not([disabled]) {
  border-color: var(--azul-100);
  background: var(--azul-50);
  box-shadow: var(--sombra-1);
}
.escenario[disabled] { opacity: .6; cursor: progress; }
.escenario[aria-pressed="true"] {
  border-color: var(--azul-500);
  background: var(--azul-50);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.escenario b { display: block; font-size: .97rem; font-weight: 650; }
.escenario span { display: block; font-size: .85rem; color: var(--texto-3); }

.aviso {
  margin: auto 0 0;
  padding: 14px 16px;
  border: 1px solid var(--borde);
  border-left: 3px solid var(--oro-500);
  border-radius: 0 var(--radio-sm) var(--radio-sm) 0;
  background: var(--nieve);
  color: var(--texto-2);
  font-size: .86rem;
}

@media (min-width: 940px) {
  .simulador { grid-template-columns: minmax(0, 1fr) minmax(0, .88fr); gap: 26px; }
}

/* ---------- tabla comparativa ---------- */

.tabla-envoltura {
  overflow-x: auto;
  box-shadow: var(--sombra-1);
}
.tabla {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: .94rem;
}
.tabla th, .tabla td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--borde);
}
.tabla thead th {
  position: sticky;
  top: 0;
  background: var(--marino-800);
  color: #fff;
  font-size: .76rem;
  font-weight: 650;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.tabla thead th:last-child { color: var(--oro-200); }
.tabla tbody th { width: 22%; color: var(--texto); font-weight: 650; }
.tabla tbody tr:last-child th, .tabla tbody tr:last-child td { border-bottom: 0; }
.tabla tbody tr:hover { background: var(--azul-50); }

.celda--mal  { color: var(--texto-3); }
.celda--bien { color: var(--texto-2); }
.celda--bien::before {
  content: "✓";
  display: inline-block;
  width: 18px; height: 18px;
  margin-right: 8px;
  border-radius: 50%;
  background: #E9F8F2;
  color: var(--exito);
  font-size: .72rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  vertical-align: 1px;
}

/* ---------- hub multisectorial ---------- */

.sectores {
  display: grid;
  gap: 18px;
  min-height: 210px;                  /* reserva mientras JS pinta */
  align-items: stretch;
}

.sector {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  box-shadow: var(--sombra-1);
  transition: transform .16s ease, box-shadow .16s ease;
}
.sector:hover { transform: translateY(-2px); box-shadow: var(--sombra-2); }
.sector--activo {
  border-color: var(--azul-100);
  background: linear-gradient(180deg, var(--azul-50), var(--blanco) 58%);
}
.sector__icono {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--azul-50);
  border: 1px solid var(--azul-100);
  color: var(--marino-700);
}
.sector--activo .sector__icono {
  background: var(--marino-700);
  border-color: var(--marino-700);
  color: #fff;                        /* el trazo hereda este color */
}
.sector__nombre { margin: 0; font-size: 1.08rem; font-weight: 650; }
.sector__texto { margin: 0; color: var(--texto-2); font-size: .93rem; }
.sector__estado {
  align-self: flex-start;
  margin-top: auto;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.sector__estado--activo  { background: #E9F8F2; color: var(--exito);   border: 1px solid #C6EBDC; }
.sector__estado--proximo { background: var(--niebla); color: var(--texto-3); border: 1px solid var(--borde); }

@media (min-width: 620px) { .sectores { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .sectores { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- preguntas frecuentes ---------- */

.faq { display: grid; gap: 12px; }
.faq__item { box-shadow: var(--sombra-1); transition: border-color .16s ease; }
.faq__item[open] { border-color: var(--azul-100); }
.faq__item summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 20px;
  color: var(--texto);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  margin-left: auto;
  width: 26px; height: 26px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--azul-50);
  color: var(--azul-700);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 25px;
  text-align: center;
}
.faq__item[open] summary::after { content: "−"; }
.faq__cuerpo { padding: 0 20px 6px; color: var(--texto-2); }

/* ---------- formulario ---------- */

.formulario {
  display: grid;
  gap: 18px;
  padding: 26px 22px;
  box-shadow: var(--sombra-2);
}

.campo { display: grid; gap: 7px; }
.campo > label { color: var(--texto); font-weight: 600; font-size: .94rem; }
.requerido { color: var(--azul-600); }
.opcional { color: var(--texto-3); font-weight: 400; font-size: .86rem; }

.campo input[type="text"],
.campo input[type="tel"],
.campo input[type="email"],
.campo select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--borde-2);
  border-radius: var(--radio-xs);
  background: var(--blanco);
  color: var(--texto);
  font: inherit;
  font-size: 16px;                    /* evita el zoom de iOS al enfocar */
  transition: border-color .15s ease, box-shadow .15s ease;
}
.campo input::placeholder { color: #9AA8BE; }
.campo input:focus, .campo select:focus {
  border-color: var(--azul-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
}

.campo__grupo { display: flex; }
.campo__prefijo {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--borde-2);
  border-right: 0;
  border-radius: var(--radio-xs) 0 0 var(--radio-xs);
  background: var(--niebla);
  color: var(--texto-2);
  font-weight: 650;
  white-space: nowrap;
}
.campo__grupo input { border-radius: 0 var(--radio-xs) var(--radio-xs) 0; }

.campo__ayuda { margin: 0; color: var(--texto-3); font-size: .84rem; }

.campo__error {
  min-height: 20px;                   /* reservado: el error no empuja nada */
  margin: 0;
  color: var(--error);
  font-size: .84rem;
  font-weight: 550;
}

.campo--invalido input,
.campo--invalido select { border-color: var(--error); }
.campo--valido input,
.campo--valido select   { border-color: #7FC8AC; }

.campo--check .campo__linea { display: flex; align-items: flex-start; gap: 11px; }
.campo--check input {
  width: 20px; height: 20px;
  margin: 4px 0 0;
  flex: 0 0 auto;
  accent-color: var(--azul-600);
}
.campo--check label { color: var(--texto-2); font-size: .92rem; font-weight: 400; }

.formulario__estado {
  min-height: 24px;                   /* reservado */
  margin: 0;
  font-weight: 600;
  text-align: center;
}
.formulario__estado--ok    { color: var(--exito); }
.formulario__estado--aviso { color: var(--alerta); }
.formulario__estado--error { color: var(--error); }

.trampa {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

@media (min-width: 720px) { .formulario { padding: 32px; } }

/* ---------- contacto ---------- */

.enlace-boton {
  padding: 0;
  border: 0;
  background: none;
  color: var(--azul-700);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.enlace-boton:hover { color: var(--marino-700); }

.contacto {
  margin-top: 22px;
  padding: 24px 22px;
  background: var(--nieve);
  box-shadow: none;
}
.contacto__titulo { margin: 0 0 16px; font-size: 1.04rem; }
.contacto__lista { margin: 0 0 16px; }
.contacto__fila {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--borde);
}
.contacto__fila:last-child { border-bottom: 0; }
.contacto__fila[hidden] { display: none; }
.contacto__fila dt { min-width: 92px; color: var(--texto-3); font-weight: 550; font-size: .92rem; }
.contacto__fila dd { margin: 0; color: var(--texto); font-weight: 600; }
.contacto__nota { color: var(--texto-2); font-size: .9rem; }

/* ---------- pie ---------- */

.pie {
  padding: 52px 0 26px;
  background: var(--marino-900);
  color: #B9C7DC;
}
.pie__rejilla { display: grid; gap: 30px; }
/* En el pie, sobre marino, el logotipo va como palabra: el archivo tiene la
   «Maik» en azul oscuro y sobre fondo marino no se leería. */
.marca__texto {
  font-size: 1.34rem;
  font-weight: 750;
  letter-spacing: -.025em;
  color: #fff;
}
.marca__texto i { font-style: normal; color: var(--oro-500); }
.pie__nota { margin: 14px 0 0; max-width: 44ch; font-size: .9rem; }
.pie__titulo {
  margin: 0 0 12px;
  color: #fff;
  font-size: .76rem;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.pie__nav li { padding: 5px 0; }
.pie__nav a { color: #B9C7DC; text-decoration: none; font-size: .94rem; }
.pie__nav a:hover { color: #fff; text-decoration: underline; }

.pie__sello {
  max-width: var(--ancho);
  margin: 34px auto 0;
  padding: 20px 20px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #8496AF;
  font-size: .82rem;
  text-align: center;
}

@media (min-width: 780px) {
  .pie__rejilla { grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
}

/* =========================================================
   MaikDesk — recepción de MaikOne. Fijo: fuera del flujo,
   no puede provocar desplazamiento de diseño.
   ========================================================= */

.md-lanzador {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--marino-700);
  font-size: .93rem;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(11, 37, 71, .26);
  transition: background-color .16s ease, box-shadow .16s ease, transform .14s ease;
}
.md-lanzador:hover { background: var(--marino-800); box-shadow: 0 14px 30px rgba(11, 37, 71, .32); }
.md-lanzador:active { transform: translateY(1px); }
.md-lanzador__punto {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, .25);
  flex: 0 0 auto;
}
.md-lanzador--abierto { display: none; }

.md-panel {
  position: fixed;
  right: 0; bottom: 0; left: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  max-height: 88dvh;
  border: 1px solid var(--borde);
  border-radius: var(--radio) var(--radio) 0 0;
  background: var(--blanco);
  box-shadow: 0 -16px 48px rgba(11, 37, 71, .20);
  overflow: hidden;
}
.md-panel[hidden] { display: none; }

.md-panel__barra {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 12px;
  padding: 14px 16px;
  background: var(--marino-800);
}
.md-panel__titulo { grid-column: 1; margin: 0; color: #fff; font-size: 1rem; font-weight: 650; }
.md-panel__estado { grid-column: 1; margin: 0; color: #A8BEDC; font-size: .78rem; }
.md-cerrar {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 40px; height: 40px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radio-xs);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.md-cerrar:hover { background: rgba(255, 255, 255, .16); }

.md-log {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 240px;
  padding: 18px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--nieve);
}

.md-burbuja {
  max-width: 88%;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: .93rem;
  line-height: 1.55;
  box-shadow: var(--sombra-1);
}
.md-burbuja p { margin: 0 0 .55em; }
.md-burbuja p:last-child { margin-bottom: 0; }
.md-burbuja--agente {
  align-self: flex-start;
  border: 1px solid var(--borde);
  border-bottom-left-radius: 5px;
  background: var(--blanco);
  color: var(--texto-2);
}
.md-burbuja--usuario {
  align-self: flex-end;
  border-bottom-right-radius: 5px;
  background: var(--marino-700);
  color: #EAF1FB;
}

.md-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--borde);
  background: var(--blanco);
}
.md-chip {
  padding: 8px 15px;
  border: 1px solid var(--borde-2);
  border-radius: 999px;
  background: var(--blanco);
  color: var(--marino-700);
  font: inherit;
  font-size: .86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.md-chip:hover { background: var(--azul-50); border-color: var(--azul-100); }

.md-entrada {
  display: flex;
  gap: 8px;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--borde);
  background: var(--blanco);
}
.md-entrada input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--borde-2);
  border-radius: var(--radio-xs);
  background: var(--blanco);
  color: var(--texto);
  font: inherit;
  font-size: 16px;
}
.md-entrada input::placeholder { color: #9AA8BE; }
.md-entrada input:focus {
  border-color: var(--azul-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
}
.md-enviar {
  width: 46px;
  min-height: 46px;
  border: 0;
  border-radius: var(--radio-xs);
  background: var(--azul-600);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
}
.md-enviar:hover { background: var(--azul-700); }

@media (min-width: 640px) {
  .md-panel {
    right: 20px;
    left: auto;
    bottom: 20px;
    width: 404px;
    height: 620px;
    max-height: calc(100vh - 40px);
    border-radius: var(--radio);
  }
  .md-lanzador { right: 24px; bottom: 24px; padding: 13px 22px; font-size: 1rem; }
}

/* =========================================================
   Navegación del sitio — cinta, menú y despliegue hamburguesa
   ========================================================= */

.cinta {
  background: var(--marino-900);
  color: #C6D4E8;
  font-size: .78rem;
  letter-spacing: .01em;
}
.cinta__fila {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 36px;
  padding-block: 7px;
  text-align: center;
}
.cinta__punto {
  width: 6px; height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--oro-500);
}
.cinta b { color: #fff; font-weight: 600; }

.menu-boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--borde-2);
  border-radius: var(--radio-xs);
  background: var(--blanco);
  cursor: pointer;
}
.menu-boton__barras,
.menu-boton__barras::before,
.menu-boton__barras::after {
  display: block;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--marino-700);
  transition: transform .18s ease, opacity .12s ease;
}
.menu-boton__barras { position: relative; }
.menu-boton__barras::before,
.menu-boton__barras::after { content: ""; position: absolute; left: 0; }
.menu-boton__barras::before { top: -6px; }
.menu-boton__barras::after  { top: 6px; }
.menu-boton[aria-expanded="true"] .menu-boton__barras { background: transparent; }
.menu-boton[aria-expanded="true"] .menu-boton__barras::before { transform: translateY(6px) rotate(45deg); }
.menu-boton[aria-expanded="true"] .menu-boton__barras::after  { transform: translateY(-6px) rotate(-45deg); }

.menu {
  order: 4;
  flex: 1 0 100%;
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px 0 4px;
  border-top: 1px solid var(--borde);
}
.menu[data-abierto="true"] { display: flex; }

.menu__lista { display: flex; flex-direction: column; }
.menu__lista a {
  display: block;
  padding: 12px 4px;
  border-bottom: 1px solid var(--borde);
  color: var(--texto);
  font-weight: 550;
  text-decoration: none;
}
.menu__lista a:hover { color: var(--azul-700); }
.menu__lista a[aria-current="page"] { color: var(--azul-700); font-weight: 650; }
.menu__cta { margin-top: 10px; }
.menu .pais { margin-top: 12px; }
.menu .pais__etiqueta {
  position: static;
  width: auto; height: auto;
  margin: 0;
  clip-path: none;
}

@media (min-width: 980px) {
  .menu-boton { display: none; }
  .menu {
    order: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 0;
    border-top: 0;
  }
  .menu__lista { flex-direction: row; align-items: center; gap: 4px; }
  .menu__lista a {
    padding: 9px 14px;
    border-bottom: 0;
    border-radius: var(--radio-xs);
    font-size: .96rem;
  }
  .menu__lista a:hover { background: var(--azul-50); }
  .menu__lista a[aria-current="page"] { background: var(--azul-50); }
  .menu__cta { margin: 0 0 0 10px; }
  .menu .pais { margin: 0 0 0 8px; }
}

/* ---------- bloques reutilizables de las páginas nuevas ---------- */

.rejilla-3 {
  display: grid;
  gap: 18px;
  align-items: stretch;
}
@media (min-width: 640px) { .rejilla-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .rejilla-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.rejilla-2 { display: grid; gap: 18px; align-items: stretch; }
@media (min-width: 800px) { .rejilla-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.tarjeta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  box-shadow: var(--sombra-1);
}
.tarjeta__titulo { margin: 0; font-size: 1.06rem; font-weight: 650; }
.tarjeta p { margin: 0; color: var(--texto-2); font-size: .94rem; }
.tarjeta__marca {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  border: 1px solid var(--azul-100);
  background: var(--azul-50);
  color: var(--marino-700);
  font-size: .95rem;
  font-weight: 750;
}

.pasos { counter-reset: paso; display: grid; gap: 14px; }
.paso {
  position: relative;
  padding: 18px 20px 18px 62px;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  background: var(--blanco);
  box-shadow: var(--sombra-1);
}
.paso::before {
  counter-increment: paso;
  content: counter(paso);
  position: absolute;
  left: 20px; top: 18px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--marino-700);
  color: #fff;
  font-size: .86rem;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
}
.paso h3 { margin: 0 0 4px; font-size: 1rem; font-weight: 650; }
.paso p { margin: 0; color: var(--texto-2); font-size: .94rem; }

.cierre {
  margin-top: 8px;
  padding: 32px 24px;
  border: 1px solid var(--azul-100);
  border-radius: var(--radio);
  background: linear-gradient(180deg, var(--azul-50), var(--blanco) 70%);
  text-align: center;
}
.cierre h2 { margin: 0 0 10px; font-size: clamp(1.4rem, 3.6vw, 1.9rem); }
.cierre p { max-width: 54ch; margin: 0 auto 20px; color: var(--texto-2); }
.cierre__acciones { display: grid; gap: 12px; justify-content: center; }
@media (min-width: 560px) { .cierre__acciones { grid-auto-flow: column; } }
