  :root {
    --mk-primario: #1F8FE5;
    --mk-secundario: #12B39A;
    --mk-fondo: #07090D;
    --mk-texto: #EEF3F9;
    --azul: #1F8FE5;
    --azul-osc: #1B4FA8;
    --cian: #3CC3F5;
    --teal: #12B39A;
    --gris: #9AA9BC;
    --panel: rgba(255,255,255,.035);
    --borde: rgba(120,180,255,.16);
    --degradado: linear-gradient(100deg, #3CC3F5 0%, #1F8FE5 45%, #12B39A 100%);
    --titulos: "Montserrat", system-ui, sans-serif;
    --texto: "Inter", system-ui, sans-serif;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body { background: var(--mk-fondo); color: var(--mk-texto); font-family: var(--texto); line-height: 1.6; overflow-x: hidden; position: relative; }
  /* textura de grano sobre todo el fondo */
  body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .09;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
  body > * { position: relative; z-index: 1; }
  img { max-width: 100%; display: block; }
  a { color: inherit; }
  h1, h2, h3 { font-family: var(--titulos); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
  .grad { background: var(--degradado); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .contenedor { width: min(1160px, 100% - 32px); margin: 0 auto; }
  section { padding: clamp(70px, 10vw, 130px) 0; }

  /* Botones */
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-family: var(--titulos); font-weight: 700; font-size: 15px;
    text-decoration: none; border-radius: 999px; padding: 13px 24px; transition: transform .2s, box-shadow .2s, background .2s; white-space: nowrap; }
  .btn:hover { transform: translateY(-2px); }
  .btn svg { width: 18px; height: 18px; }
  .btn-grad { background: var(--degradado); color: #04121F; box-shadow: 0 10px 30px rgba(31,143,229,.35); }
  .btn-grad:hover { box-shadow: 0 14px 40px rgba(60,195,245,.45); }
  .btn-borde { border: 1.5px solid rgba(255,255,255,.4); color: #fff; }
  .btn-borde:hover { border-color: var(--cian); }
  .btn-blanco { background: #fff; color: #07090D; }

  /* Cabecera */
  .barra { position: sticky; top: 0; z-index: 50; background: rgba(7,9,13,.72); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.06); }
  .barra .contenedor { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
  .barra .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
  .barra .logo img { height: 42px; width: auto; }
  .barra .marca { font-family: var(--titulos); font-weight: 800; font-size: 19px; line-height: 1; color: #fff; letter-spacing: -.01em; }
  .barra .marca small { display: block; font-weight: 600; font-size: 9.5px; letter-spacing: .38em; text-transform: uppercase; color: var(--gris); margin-top: 4px; }
  .barra nav { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 34px); }
  .barra nav a.link { text-decoration: none; font-weight: 500; font-size: 15px; color: #D5DEEA; }
  .barra nav a.link:hover { color: var(--cian); }
  .barra .btn { padding: 10px 18px; }
  @media (max-width: 760px) { .barra nav a.link { display: none; } .barra .logo img { height: 36px; } .barra .marca { font-size: 17px; } }

  /* Hero */
  .hero { min-height: calc(100vh - 70px); display: grid; place-items: center; text-align: center; padding: 60px 0 80px; overflow: hidden; }
  .hero::after { content: ""; position: absolute; left: 50%; top: 48%; width: min(1100px, 140vw); aspect-ratio: 1; transform: translate(-50%, -50%); z-index: -1; pointer-events: none;
    background: radial-gradient(circle, rgba(31,143,229,.22) 0%, rgba(18,179,154,.08) 35%, transparent 62%); }
  .hero .iso { width: clamp(90px, 12vw, 140px); margin: 0 auto 22px; filter: drop-shadow(0 0 40px rgba(60,195,245,.45)); animation: flotar 6s ease-in-out infinite; }
  @keyframes flotar { 50% { transform: translateY(-10px) rotate(-4deg); } }
  .hero h1 { font-size: clamp(38px, 6.6vw, 84px); max-width: 1000px; margin: 0 auto; }
  .hero p { font-size: clamp(16px, 1.9vw, 20px); color: #C2CEDC; max-width: 640px; margin: 22px auto 34px; }
  .hero .acciones { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
  .eti { display: inline-block; font-family: var(--titulos); font-weight: 700; text-transform: uppercase; letter-spacing: .22em; font-size: 12.5px; color: var(--cian); margin-bottom: 18px; }

  /* Pilares */
  .pilares { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 6vw, 120px); }
  .pilar .flecha { font-family: var(--titulos); font-weight: 800; font-size: 34px; line-height: 1; margin-bottom: 14px; }
  .pilar h3 { font-size: clamp(20px, 2.2vw, 26px); margin-bottom: 12px; }
  .pilar p { color: var(--gris); font-size: 16.5px; }
  .pilar.der { text-align: right; }
  @media (max-width: 760px) { .pilares { grid-template-columns: 1fr; } .pilar.der { text-align: left; } }

  /* Título con caja iluminada */
  .titular-caja { text-align: center; padding: clamp(36px, 5vw, 60px) 20px; border-radius: 26px; border: 1px solid var(--borde); background: linear-gradient(180deg, rgba(31,143,229,.08), rgba(255,255,255,.015));
    box-shadow: 0 0 0 1px rgba(60,195,245,.08), 0 0 70px rgba(31,143,229,.18), inset 0 0 60px rgba(31,143,229,.06); margin-bottom: clamp(36px, 5vw, 56px); }
  .titular-caja small { display: block; font-family: var(--titulos); font-weight: 700; font-size: clamp(16px, 1.8vw, 20px); color: #C2CEDC; }
  .titular-caja h2 { font-size: clamp(36px, 5.6vw, 68px); }

  /* Servicios */
  .servicios { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 22px); }
  .servicio { position: relative; padding: clamp(24px, 2.6vw, 34px); border-radius: 22px; background: var(--panel); border: 1px solid var(--borde); overflow: hidden; }
  .servicio::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--degradado); opacity: .8; }
  .servicio .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
    background: linear-gradient(135deg, rgba(60,195,245,.18), rgba(18,179,154,.14)); border: 1px solid var(--borde); }
  .servicio .ico svg { width: 26px; height: 26px; stroke: var(--cian); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .servicio h3 { font-size: clamp(18px, 1.7vw, 21px); text-transform: uppercase; letter-spacing: .01em; margin-bottom: 12px; }
  .servicio p { color: var(--gris); font-size: 15.5px; }
  @media (max-width: 960px) { .servicios { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 620px) { .servicios { grid-template-columns: 1fr; } }
  .centro { text-align: center; margin-top: clamp(30px, 4vw, 48px); }

  /* DocuFlow */
  .docuflow { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
  .docuflow .tile { position: relative; justify-self: center; width: min(400px, 80vw); }
  .docuflow .tile img { width: 100%; border-radius: 22%; box-shadow: 0 40px 90px rgba(0,0,0,.6), 0 0 90px rgba(18,179,154,.28); }
  .docuflow .tile::before { content: ""; position: absolute; inset: -14%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(18,179,154,.25), transparent 65%); }
  .docuflow h2 { font-size: clamp(32px, 4.6vw, 56px); margin-bottom: 18px; }
  .docuflow p.lead { color: #C2CEDC; font-size: clamp(16px, 1.7vw, 19px); margin-bottom: 24px; }
  .checks { list-style: none; display: grid; gap: 14px; margin-bottom: 30px; }
  .checks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; color: #DCE5F0; }
  .checks li svg { width: 26px; height: 26px; stroke: var(--teal); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
  .docs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
  .docs span { padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(18,179,154,.4); color: #9FE8D9; font-size: 14px; font-weight: 500; }
  @media (max-width: 860px) { .docuflow { grid-template-columns: 1fr; } }

  /* Proceso */
  .pasos { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 22px); counter-reset: p; }
  .paso { counter-increment: p; padding: 26px; border-radius: 20px; border: 1px solid var(--borde); background: var(--panel); }
  .paso::before { content: "0" counter(p); display: block; font-family: var(--titulos); font-weight: 800; font-size: 42px; line-height: 1; margin-bottom: 14px;
    background: var(--degradado); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .paso h3 { font-size: 19px; margin-bottom: 8px; }
  .paso p { color: var(--gris); font-size: 15px; }
  @media (max-width: 960px) { .pasos { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 560px) { .pasos { grid-template-columns: 1fr; } }

  /* FAQ */
  .faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
  .faq details { border: 1px solid var(--borde); border-radius: 18px; background: var(--panel); }
  .faq summary { cursor: pointer; list-style: none; padding: 20px 24px; font-family: var(--titulos); font-weight: 700; font-size: clamp(16px, 1.7vw, 18.5px); display: flex; justify-content: space-between; gap: 16px; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--cian); transition: transform .25s; }
  .faq details[open] summary::after { transform: rotate(45deg); }
  .faq details p { padding: 0 24px 22px; color: #C2CEDC; }
  .titulo-sec { text-align: center; margin-bottom: clamp(32px, 4vw, 52px); }
  .titulo-sec h2 { font-size: clamp(32px, 4.8vw, 58px); }

  /* CTA final */
  .cta { text-align: center; border-radius: 32px; padding: clamp(44px, 7vw, 90px) 20px; border: 1px solid var(--borde);
    background: radial-gradient(ellipse at 50% 0%, rgba(31,143,229,.3), transparent 60%), radial-gradient(ellipse at 50% 120%, rgba(18,179,154,.22), transparent 60%), rgba(255,255,255,.02); }
  .cta h2 { font-size: clamp(32px, 5.4vw, 64px); margin-bottom: 16px; }
  .cta p { color: #C2CEDC; font-size: clamp(16px, 1.8vw, 20px); max-width: 620px; margin: 0 auto 30px; }
  .cta .mail { display: block; margin-top: 18px; color: var(--gris); font-size: 15px; }

  /* Footer */
  footer { border-top: 1px solid rgba(255,255,255,.07); padding: 44px 0 30px; }
  footer .contenedor { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 30px; align-items: start; }
  footer .f-logo { width: 190px; }
  footer h4 { font-family: var(--titulos); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--cian); margin-bottom: 12px; }
  footer p, footer a { color: var(--gris); font-size: 15px; text-decoration: none; }
  footer a:hover { color: #fff; }
  footer .doc { display: flex; align-items: center; gap: 12px; }
  footer .doc img { width: 54px; border-radius: 14px; }
  .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.06); padding-top: 20px; margin-top: 10px; color: #6F7E91; font-size: 14px; }
  @media (max-width: 760px) { footer .contenedor { grid-template-columns: 1fr; } }

  .mk-split { --mk-split-base: .15s; }

  /* ---------- Página de contacto ---------- */
  .contacto { padding-top: clamp(56px, 8vw, 100px); }
  .contacto-titulo { text-align: center; max-width: 820px; margin: 0 auto clamp(40px, 6vw, 70px); }
  .contacto-titulo h1 { font-size: clamp(34px, 5.4vw, 64px); }
  .contacto-titulo h1 span { display: block; }
  .contacto-titulo .tenue { color: #7D8A9B; font-weight: 600; }
  .contacto-titulo p { color: #C2CEDC; font-size: clamp(16px, 1.8vw, 19px); max-width: 640px; margin: 22px auto 0; }
  .contacto-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(24px, 4vw, 60px); align-items: start; }
  @media (max-width: 860px) { .contacto-grid { grid-template-columns: 1fr; } }
  .tarjeta-contacto { display: flex; align-items: center; gap: 22px; padding: clamp(24px, 3vw, 36px); border-radius: 22px; border: 1px solid var(--borde);
    background: var(--panel); text-decoration: none; transition: border-color .2s, transform .2s; }
  .tarjeta-contacto:hover { border-color: var(--cian); transform: translateY(-3px); }
  .ico-circ { flex-shrink: 0; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--degradado); box-shadow: 0 10px 30px rgba(31,143,229,.35); }
  .ico-circ svg { width: 32px; height: 32px; fill: none; stroke: #04121F; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .tarjeta-contacto strong { display: block; font-family: var(--titulos); font-weight: 700; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; color: #fff; }
  .tarjeta-contacto .dato { display: block; margin-top: 8px; color: var(--gris); font-size: clamp(15px, 1.6vw, 18px); word-break: break-all; }
  .formulario { padding: clamp(24px, 3.4vw, 44px); border-radius: 22px; border: 1px solid var(--borde); background: var(--panel); display: grid; gap: 18px; }
  .campo { display: grid; gap: 8px; }
  .campo label { font-size: 15px; font-weight: 500; color: #E3EAF3; }
  .campo input, .campo select, .campo textarea { width: 100%; font: inherit; font-size: 16px; color: #fff; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px; padding: 14px 16px; outline: none; transition: border-color .2s, box-shadow .2s; }
  .campo select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #9AA9BC 50%), linear-gradient(135deg, #9AA9BC 50%, transparent 50%);
    background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
  .campo select option { background: #0D1117; }
  .campo textarea { resize: vertical; min-height: 120px; }
  .campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--cian); box-shadow: 0 0 0 3px rgba(60,195,245,.18); }
  .campo .error, .campo input.error, .campo select.error, .campo textarea.error { border-color: #FF6B6B; }
  .check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: #B5C2D2; cursor: pointer; }
  .check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--azul); flex-shrink: 0; }
  .check.error span { color: #FF8A8A; }
  .aviso { color: #FF8A8A; font-size: 14.5px; }
  .enviar { justify-self: start; font-size: 16px; padding: 15px 30px; border: 0; cursor: pointer; }
  .nota { color: #7D8A9B; font-size: 13.5px; }

  /* Contacto: varias tarjetas, teléfono y WhatsApp */
  .pila { display: grid; gap: 18px; }
  .tarjeta-contacto a.dato { text-decoration: none; }
  .tarjeta-contacto a.dato:hover { color: #fff; }
  .tarjeta-contacto .btn-wa { margin-top: 14px; padding: 10px 18px; font-size: 14.5px; }
  .btn-wa { background: #25D366; color: #06290f; }
  .btn-wa:hover { box-shadow: 0 10px 28px rgba(37,211,102,.35); }
  footer .f-contacto { display: grid; gap: 6px; }
