/* TICService. Portada de noche con la red del cliente; debajo, filas alternadas sobre blanco y una sola banda oscura para el portal. */
:root {
  color-scheme: light;
  --noche: #0e2240; --marino: #14145a; --azul: #0b64c4; --cielo: #2fb4e8; --ambar: #f0a51c;
  --papel: #ffffff; --bruma: #eef4fb; --linea: #d5e1ef; --tinta: #16243a; --gris: #52627a;
  --display: "Red Hat Display", "Segoe UI", system-ui, sans-serif;
  --texto: "Red Hat Text", "Segoe UI", system-ui, sans-serif;
  --dato: "Red Hat Mono", Consolas, monospace;
  --ancho: 1140px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--papel); color: var(--tinta); font: 400 17px/1.6 var(--texto); }
img { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; line-height: 1.12; letter-spacing: -.015em; }
a { color: var(--azul); }
:focus-visible { outline: 3px solid var(--cielo); outline-offset: 2px; }
.caja { width: 100%; max-width: calc(var(--ancho) + 48px); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.salto { position: absolute; left: -999px; }
.salto:focus { left: 12px; top: 12px; background: #fff; padding: 10px 14px; z-index: 50; }

.boton { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 11px 24px; border-radius: 999px; border: 2px solid transparent; background: var(--azul); color: #fff; font: 700 16px/1.2 var(--texto); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.boton:hover { background: #084f9d; }
.boton svg { width: 18px; height: 18px; flex: none; }
.boton.contorno { background: transparent; border-color: rgba(255,255,255,.55); }
.boton.contorno:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.boton.borde { background: transparent; border-color: var(--azul); color: var(--azul); }
.boton.borde:hover { background: var(--azul); color: #fff; }
.botones { display: flex; flex-wrap: wrap; gap: 12px; }

/* Franja y cabecera */
.franja { background: var(--noche); color: #cfdcee; font-size: 14px; }
.franja .caja { display: flex; justify-content: space-between; gap: 6px 24px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.franja a { color: #fff; text-decoration: none; }
.franja a:hover { text-decoration: underline; }
.franja nav { display: flex; gap: 20px; flex-wrap: wrap; }
.cabecera { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--linea); }
.cabecera .caja { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }
.cabecera .logo img { width: 190px; height: auto; }
.menu { display: flex; align-items: center; gap: 28px; }
.menu a:not(.boton) { color: var(--tinta); text-decoration: none; font-weight: 500; font-size: 16px; padding: 8px 0; border-bottom: 2px solid transparent; }
.menu a:not(.boton):hover { border-color: var(--cielo); }
.menu .boton { min-height: 44px; padding: 9px 20px; }
.hamburguesa { display: none; border: 1px solid var(--linea); background: #fff; border-radius: 10px; width: 46px; height: 46px; cursor: pointer; place-items: center; color: var(--tinta); }
.hamburguesa svg { width: 22px; height: 22px; }

/* Portada */
.portada { background: radial-gradient(900px 520px at 78% 20%, #1b4a86 0%, transparent 68%), linear-gradient(160deg, #0b1b34 0%, var(--noche) 55%, #14305a 100%); color: #fff; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 64px), 50% 100%, 0 calc(100% - 64px)); }
.portada .caja { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 68px; padding-bottom: 128px; }
.portada h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 900; }
.portada p { margin: 20px 0 30px; font-size: 19px; color: #d4e0f0; max-width: 34em; }
.red { width: 100%; height: auto; display: block; }
.red .hilo { stroke: rgba(255,255,255,.26); stroke-width: 1.5; }
.red .pulso { stroke: var(--cielo); stroke-width: 2.5; stroke-dasharray: 10 190; stroke-linecap: round; animation: viaje 4.2s linear infinite; }
.red .pulso:nth-of-type(2n) { animation-duration: 5.4s; animation-direction: reverse; }
.red .nodo { fill: #1c3a68; stroke: rgba(255,255,255,.38); stroke-width: 1.3; }
.red .centro { fill: var(--azul); stroke: rgba(255,255,255,.55); stroke-width: 1.5; }
.red .ico { fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.red text { fill: #dfe9f6; font: 500 14px var(--texto); text-anchor: middle; }
@keyframes viaje { to { stroke-dashoffset: -400; } }

/* Introducción */
.intro { text-align: center; padding: 48px 0 88px; }
.intro .caja > * { margin-left: auto; margin-right: auto; }
.intro h2, .titulo { font-size: clamp(28px, 3.4vw, 40px); font-weight: 900; color: var(--marino); }
.intro p { max-width: 42em; margin-top: 16px; margin-bottom: 26px; color: var(--gris); font-size: 18px; }
.titulo.medio { text-align: center; max-width: 22em; margin: 0 auto; }

/* Filas alternadas */
.filas { display: grid; gap: 88px; padding: 64px 0 72px; }
.fila { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.fila:nth-child(even) .escena { order: 2; }
.fila h3 { font-size: 30px; font-weight: 800; color: var(--tinta); }
.fila .lema { font-weight: 700; color: var(--azul); margin: 8px 0 12px; }
.fila ul { margin: 14px 0 24px; padding: 0; list-style: none; display: grid; gap: 9px; }
.fila li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; }
.fila li svg { width: 20px; height: 20px; margin-top: 3px; color: var(--azul); }
.escena { position: relative; aspect-ratio: 1 / .86; max-width: 460px; width: 100%; margin: 0 auto; display: grid; place-items: center; }
.escena::before { content: ""; position: absolute; width: 84%; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(160deg, #bfe4f7, #7fb3ea); }
.fila:nth-child(2) .escena::before { background: linear-gradient(200deg, #dbe6fb, #9db7e6); }
.fila:nth-child(3) .escena::before { background: linear-gradient(160deg, #fde6b8, #f7c86a); }
.lamina { position: relative; width: 82%; background: #fff; border-radius: 14px; box-shadow: 0 18px 44px rgba(14,34,64,.2); overflow: hidden; font-size: 14px; line-height: 1.4; }
.lamina header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--linea); font-weight: 700; }
.lamina header small { font: 500 12px var(--dato); color: var(--gris); }
.charla { padding: 16px; display: grid; gap: 10px; }
.charla p { padding: 9px 13px; border-radius: 12px; max-width: 86%; width: fit-content; }
.charla .ellos { background: var(--bruma); }
.charla .nos { background: var(--azul); color: #fff; justify-self: end; }
.plan { padding: 6px 16px 14px; display: grid; }
.plan div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--linea); }
.plan div:last-child { border: 0; }
.plan svg { width: 20px; height: 20px; color: var(--azul); }
.plan b { font-weight: 500; display: flex; align-items: center; gap: 10px; }
.plan span { font: 500 12.5px var(--dato); color: var(--gris); }
.ventana-barra { display: flex; gap: 6px; padding: 11px 14px; background: var(--noche); }
.ventana-barra i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.35); }
.ventana { display: grid; grid-template-columns: 52px minmax(0, 1fr); min-height: 190px; }
.ventana aside { background: #14305a; padding: 14px 0; display: grid; gap: 12px; align-content: start; justify-items: center; }
.ventana aside i { width: 22px; height: 22px; border-radius: 7px; background: rgba(255,255,255,.22); }
.ventana aside i:first-child { background: var(--cielo); }
.ventana div { padding: 16px; display: grid; gap: 10px; align-content: start; }
.ventana span { display: block; height: 12px; border-radius: 6px; background: var(--bruma); }
.ventana .barras { display: flex; align-items: flex-end; gap: 9px; height: 92px; padding: 0; }
.ventana .barras i { flex: 1; border-radius: 5px 5px 0 0; background: var(--azul); }

/* Rejilla de servicios */
.banda { background: var(--bruma); padding: 76px 0; }
.rejilla { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 40px; margin-top: 48px; }
.rejilla article { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; align-items: start; }
.rejilla svg { width: 44px; height: 44px; color: var(--azul); stroke-width: 1.4; }
.rejilla h3 { font-size: 19px; font-weight: 800; margin-bottom: 5px; }
.rejilla p { color: var(--gris); font-size: 16px; }

/* Proceso */
.proceso { padding: 84px 0 76px; }
.pasos { list-style: none; padding: 0; margin: 52px 0 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.pasos li { text-align: center; }
.gota { width: 132px; height: 132px; margin: 0 auto 44px; border-radius: 50% 50% 50% 6px; transform: rotate(-45deg); background: #fff; box-shadow: -10px 12px 30px rgba(14,34,64,.16); display: grid; place-items: center; }
.gota svg { width: 52px; height: 52px; color: #c9820a; transform: rotate(45deg); stroke-width: 1.4; }
.pasos h3 { font-size: 19px; font-weight: 800; margin-bottom: 7px; }
.pasos h3 span { font: 600 15px var(--dato); color: var(--azul); margin-right: 6px; }
.pasos p { color: var(--gris); font-size: 16px; }
.medio-botones { display: flex; justify-content: center; }

/* Portal */
.portal-banda { background: linear-gradient(135deg, #0b1b34, #14396e); color: #fff; padding: 76px 0; }
.portal-banda .caja { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.portal-banda h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 900; }
.portal-banda p { margin: 14px 0 26px; color: #d4e0f0; }
.accesos { display: grid; gap: 12px; }
.accesos a { display: grid; grid-template-columns: 40px minmax(0, 1fr) 20px; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; text-decoration: none; transition: background .15s; }
.accesos a:hover { background: rgba(255,255,255,.16); }
.accesos svg { width: 32px; height: 32px; stroke-width: 1.4; }
.accesos svg:last-child { width: 20px; height: 20px; }
.accesos b { display: block; font: 800 17px/1.3 var(--display); }
.accesos small { display: block; font-size: 14.5px; color: #cfdcee; }

/* Preguntas */
.preguntas { padding: 84px 0 76px; }
.preguntas .lista { max-width: 820px; margin: 40px auto 0; }
.preguntas details { border-bottom: 1px solid var(--linea); }
.preguntas summary { list-style: none; cursor: pointer; padding: 20px 4px; font: 700 18px/1.35 var(--display); display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after { content: "+"; font: 400 26px/1 var(--texto); color: var(--azul); flex: none; }
.preguntas details[open] summary::after { content: "−"; }
.preguntas details p { padding: 0 4px 22px; color: var(--gris); max-width: 44em; }

/* Contacto y formularios */
.contacto { background: var(--bruma); padding: 80px 0; }
.contacto .caja { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: 60px; align-items: start; }
.contacto h2 { text-align: left; }
.contacto > .caja > div > p { color: var(--gris); margin: 14px 0 28px; }
.medios { list-style: none; padding: 0; display: grid; gap: 16px; }
.medios a, .medios div { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: center; color: var(--tinta); text-decoration: none; overflow-wrap: anywhere; }
.medios a:hover b { text-decoration: underline; }
.medios svg { width: 28px; height: 28px; color: var(--azul); stroke-width: 1.5; }
.medios small { display: block; color: var(--gris); font-size: 14px; }
.medios b { font-weight: 700; }
form { display: grid; gap: 16px; }
.hoja { background: #fff; border: 1px solid var(--linea); border-radius: 18px; padding: 30px; }
.par { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 6px; font-weight: 500; font-size: 15px; }
input, select, textarea { width: 100%; font: 400 16px/1.4 var(--texto); color: var(--tinta); background: #fff; border: 1px solid #b9c9dc; border-radius: 10px; padding: 11px 13px; min-height: 48px; }
textarea { min-height: 116px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--azul); outline: 3px solid rgba(47,180,232,.35); outline-offset: 0; }
.nota { font-size: 14px; color: var(--gris); }
.mensaje { font-size: 15px; font-weight: 500; background: #fff5df; border-radius: 10px; padding: 11px 14px; }
.mensaje:empty { display: none; }
.mensaje .boton { margin-top: 10px; }
.boton:disabled { opacity: .65; cursor: wait; }

/* Pie */
.pie { background: var(--noche); color: #cfdcee; padding: 56px 0 30px; font-size: 16px; }
.pie .columnas { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.pie img { width: 200px; margin-bottom: 18px; }
.pie h3 { color: #fff; font-size: 16px; margin-bottom: 12px; }
.pie ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.pie a { color: #cfdcee; text-decoration: none; overflow-wrap: anywhere; }
.pie a:hover { color: #fff; text-decoration: underline; }
.pie .final { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16); font-size: 14px; }

.flotante { position: fixed; right: 20px; bottom: 20px; z-index: 15; width: 58px; height: 58px; border-radius: 50%; background: #1b7f4d; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(14,34,64,.3); }
.flotante svg { width: 28px; height: 28px; }

/* Página del portal */
.portal-pagina { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; background: radial-gradient(1000px 620px at 80% 0%, #1b4a86 0%, transparent 65%), linear-gradient(160deg, #0b1b34, #14305a); }
.portal-cab { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.portal-cab img { width: 180px; }
.portal-cab a { color: #fff; text-decoration: none; font-weight: 500; }
.portal-cab a:hover { text-decoration: underline; }
.portal-cuerpo { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 28px; align-items: start; padding-top: 24px; padding-bottom: 56px; }
.portal-cuerpo .hoja { border: 0; box-shadow: 0 26px 60px rgba(5,14,30,.35); }
.portal-cuerpo h1, .portal-cuerpo h2 { font-size: 26px; font-weight: 900; color: var(--marino); }
.portal-cuerpo .hoja > p { color: var(--gris); margin: 6px 0 20px; font-size: 16px; }
.portal-cuerpo .boton { width: 100%; }
.portal-pie { color: #cfdcee; font-size: 14px; text-align: center; padding: 0 24px 26px; }

@media (max-width: 940px) {
  .hamburguesa { display: grid; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--linea); flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 24px 20px; }
  .menu.abierto { display: flex; }
  .portada .caja, .fila, .portal-banda .caja, .contacto .caja, .portal-cuerpo { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .portada .caja { padding-top: 44px; padding-bottom: 100px; }
  .red { max-width: 480px; margin: 0 auto; }
  .fila:nth-child(even) .escena { order: 0; }
  .rejilla, .pasos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pie .columnas { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .franja .caja > span { display: none; }
  .cabecera .logo img { width: 158px; }
  .rejilla, .pasos, .par, .pie .columnas { grid-template-columns: minmax(0, 1fr); }
  .portada { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), 50% 100%, 0 calc(100% - 30px)); }
  .hoja { padding: 22px 18px; }
  .lamina { width: 92%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .red .pulso { animation: none; opacity: 0; } }
