/* SUNIS — hoja de estilos única.
   Medidas tomadas de SUNIS-web.pdf (pantalla de 1440 px). Ver Documentacion/03 - Identidad Visual.md */

/* ---------- Fuentes (provisorias hasta tener la del diseñador; ver 08, P-02) ---------- */
@font-face { font-family: "Carlito"; src: url("../fuentes/carlito-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Carlito"; src: url("../fuentes/carlito-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Arimo"; src: url("../fuentes/arimo-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cousine"; src: url("../fuentes/cousine-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
/* Respaldos ajustados al tamaño de las fuentes propias, para que el cambio no mueva el diseño */
@font-face { font-family: "Carlito respaldo"; src: local("Calibri"), local("Segoe UI"), local("Arial"); size-adjust: 92%; }
@font-face { font-family: "Arimo respaldo"; src: local("Arial"), local("Helvetica"); size-adjust: 100%; }

:root {
  --naranja: #FF5A1F;
  --naranja-oscuro: #E84E15;
  --tinta: #15191D;
  --texto: #3A444C;
  --texto-suave: #5E6870;
  --titulo-tenue: #74777A;
  --crema: #F2F1EE;
  --blanco: #FFFFFF;
  --hero: #EDF0F2;
  --oscuro: #2B3238;
  --linea: #D6DCE0;
  --linea-suave: #E3E7EA;
  --linea-proceso: #C7CFD5;
  --borde-campo: #7E8A93;   /* el mockup usa #9AA6AE; ver 08, D-10 */
  --linea-oscura: #48525A;
  --gris-claro: #B4BDC3;
  --texto-sobre-oscuro: #D3D9DD;
  --pie: #4A545C;
  --boton-borde: #B7C0C6;
  --error: #C2361A;

  --fuente-titulos: "Arimo", "Arimo respaldo", "Liberation Sans", Arial, Helvetica, sans-serif;
  --fuente-texto: "Carlito", "Carlito respaldo", Calibri, "Segoe UI", sans-serif;
  --fuente-mono: "Cousine", "Liberation Mono", "Courier New", monospace;

  --ancho: 1192px;
  --margen: 24px;
  --alto-barra: 82px;
  --seccion-arriba: 118px;
  --seccion-abajo: 110px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--crema);
  color: var(--texto);
  font-family: var(--fuente-texto);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--fuente-titulos); font-weight: 700; color: var(--tinta); margin: 0; letter-spacing: -0.01em; }
p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--tinta); outline-offset: 2px; }
.contacto :focus-visible { outline-color: var(--blanco); }
.contacto .tarjeta :focus-visible { outline-color: var(--tinta); }
#contenido:focus { outline: none; }

.visualmente-oculto {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.saltar {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--tinta); color: var(--blanco); padding: 12px 18px; font-weight: 700; text-decoration: none;
}
.saltar:focus { top: 16px; }

.contenedor { width: min(var(--ancho), 100% - 2 * var(--margen)); margin-inline: auto; }

.etiqueta {
  font-family: var(--fuente-mono);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--texto-suave);
}
.etiqueta--clara { color: var(--gris-claro); }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 53px; padding: 0 28px;
  font-family: var(--fuente-texto); font-weight: 700; font-size: 17px; line-height: 1;
  text-decoration: none; border: 1px solid transparent; border-radius: 0; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.boton--naranja { background: var(--naranja); color: var(--tinta); }
.boton--oscuro { background: var(--tinta); color: var(--blanco); }
.boton--borde { background: transparent; color: var(--tinta); border-color: var(--tinta); }
@media (hover: hover) {
  .boton--naranja:hover { background: var(--naranja-oscuro); }
  .boton--oscuro:hover { background: var(--oscuro); }
  .boton--borde:hover { background: var(--tinta); color: var(--blanco); }
}
.boton--naranja:active { background: var(--naranja-oscuro); }
.boton--oscuro:active { background: var(--oscuro); }
.boton:disabled { opacity: .7; cursor: progress; }

/* ---------- Barra ---------- */
.barra {
  position: sticky; top: 0; z-index: 50;
  background: var(--crema);
  border-bottom: 1px solid var(--linea);
}
.barra__interior { display: flex; align-items: center; height: var(--alto-barra); }
.barra__logo { display: block; margin-right: auto; }
.barra__logo img { width: 139px; height: auto; }

.menu { display: flex; align-items: center; }
.menu__lista { display: flex; gap: 28px; }
.menu__lista a {
  display: block; padding: 6px 0;
  color: var(--tinta); font-size: 16px; line-height: 1.5; text-decoration: none;
  background: linear-gradient(var(--tinta), var(--tinta)) left bottom / 0 2px no-repeat;
  transition: background-size .2s ease;
}
@media (hover: hover) { .menu__lista a:hover { background-size: 100% 2px; } }
.menu__lista a[aria-current="true"] { background-size: 100% 2px; }
.menu__cotizar { display: none; }

.idiomas { display: flex; gap: 2px; margin-left: 28px; }
.idiomas__opcion {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  font-family: var(--fuente-mono); font-size: 13px; letter-spacing: .04em;
  color: var(--tinta); text-decoration: none;
  border: 1px solid var(--boton-borde);
  transition: border-color .15s ease;
}
.idiomas__opcion[aria-current="page"] { background: var(--tinta); border-color: var(--tinta); color: var(--blanco); }
@media (hover: hover) { .idiomas__opcion:not([aria-current]):hover { border-color: var(--tinta); } }

.barra__cotizar { margin-left: 28px; min-height: 45px; padding: 0 22px; font-size: 16px; }
.barra__menu-boton { display: none; }

section[id] { scroll-margin-top: var(--alto-barra); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 780px;
  background:
    radial-gradient(circle at 18% 95%, rgba(214, 222, 228, .55) 0, rgba(237, 240, 242, 0) 420px),
    var(--hero);
}
.hero__fondo {
  position: absolute; inset: 0; pointer-events: none;
  /* el centro del anillo: 368 px a la derecha del centro de la pantalla, 422 px desde arriba */
  --cx: calc(50% + 368px);
  --cy: 422px;
  background: radial-gradient(circle at var(--cx) var(--cy),
    #EFF2F3 0, #EAEEF0 110px, #DCE3E8 230px, #D6DEE4 275px, #DBE2E7 315px, rgba(237, 240, 242, 0) 390px);
}
.hero__anillo {
  position: absolute; width: 700px; height: 700px;
  left: calc(50% + 368px - 350px); top: calc(422px - 350px);
  overflow: visible;
}
.hero__puntos { fill: none; stroke: #9AA6AE; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 0 10.6; opacity: .7; }
.hero__circulo { fill: none; stroke: #AEB8C0; stroke-width: 1.6; }
.hero__arco path { fill: none; stroke: var(--naranja); stroke-width: 3.2; stroke-linecap: round; opacity: .9; }
.hero__arco { transform-origin: 0 0; animation: arco 1.4s cubic-bezier(.2, .75, .25, 1) .25s both; }
@keyframes arco { from { transform: rotate(-320deg); opacity: 0; } 15% { opacity: 1; } to { transform: rotate(0deg); opacity: 1; } }

.hero__contenido { position: relative; padding: 128px 0 96px; }
.hero__etiqueta { display: flex; align-items: center; gap: 13px; color: #4F4840; }
.hero__punto { width: 17px; height: 17px; border-radius: 50%; border: 4.5px solid var(--naranja); flex: none; }
.hero__titulo { margin-top: 30px; font-size: 60px; line-height: 1.05; max-width: 640px; }
.hero__titulo-tenue { display: block; color: var(--titulo-tenue); }
.hero__bajada { margin-top: 28px; max-width: 560px; font-size: 20px; line-height: 1.55; color: #3D3833; }
.hero__botones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ---------- Secciones ---------- */
.seccion { padding: var(--seccion-arriba) 0 var(--seccion-abajo); }
.seccion--crema { background: var(--crema); }
.seccion--blanca { background: var(--blanco); border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.seccion__titulo { margin-top: 8px; font-size: 42px; line-height: 1.1; }

/* Servicios */
.servicios { margin-top: 46px; background: var(--blanco); border: 1px solid var(--linea); }
.servicio {
  display: grid; grid-template-columns: 104px 408px 1fr; align-items: start;
  min-height: 120px; padding: 32px 32px 32px 32px;
}
.servicio + .servicio { border-top: 1px solid var(--linea-suave); }
.servicio__codigo { padding-top: 3px; }
.servicio__titulo { font-size: 24px; line-height: 1.25; padding-right: 48px; }
.servicio__texto { line-height: 1.6; }

/* Proceso */
.pasos { margin-top: 58px; display: grid; grid-template-columns: repeat(4, 1fr); }
.paso { position: relative; padding-right: 28px; }
.paso__marca {
  display: block; width: 36px; height: 36px; border-radius: 50%;
  border: 9px solid var(--tinta); background: var(--blanco);
}
.paso--final .paso__marca { border-color: var(--naranja); }
.paso::before {   /* línea de tiempo */
  content: ""; position: absolute; left: 52px; right: 28px; top: 17.5px;
  height: 1px; background: var(--linea-proceso);
}
.paso__numero { display: block; margin-top: 18px; font-size: 12px; }
.paso__titulo { margin-top: 14px; font-size: 22px; line-height: 1.2; }
.paso__texto { margin-top: 16px; line-height: 1.6; }

/* Empresa */
.empresa__texto { margin-top: 22px; font-size: 19px; line-height: 1.55; max-width: 1100px; }
.empresa__texto + .empresa__texto { margin-top: 20px; }
#servicios { padding-bottom: 92px; }

/* ---------- Contacto ---------- */
.contacto { background: var(--oscuro); color: var(--texto-sobre-oscuro); }
.contacto__grilla { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
.contacto .seccion__titulo { color: var(--blanco); }
.contacto__bajada { margin-top: 20px; font-size: 19px; line-height: 1.5; }
.contacto__lista { margin-top: 28px; border-top: 1px solid var(--linea-oscura); }
.contacto__lista > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  min-height: 52px; padding: 13px 0 0; border-bottom: 1px solid var(--linea-oscura);
}
.contacto__lista dt { font-size: 12px; }
.contacto__lista dd { color: var(--blanco); font-weight: 700; font-size: 16px; text-align: right; }
.contacto__lista a { display: inline-block; padding: 4px 0 10px; margin: -4px 0 -10px; text-underline-offset: 3px; }
@media (hover: hover) { .contacto__lista a:hover { color: var(--gris-claro); } }

.tarjeta { background: var(--blanco); color: var(--texto); padding: 36px; min-height: 479px; display: flex; flex-direction: column; }
.formulario { display: flex; flex-direction: column; flex: 1; }
.formulario__grilla { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 20px; }
.campo { display: flex; flex-direction: column; min-width: 0; }
.campo--ancho { grid-column: 1 / -1; }
.campo label { font-weight: 700; font-size: 14px; line-height: 1.3; color: var(--tinta); margin-bottom: 8px; }
.campo input, .campo textarea {
  width: 100%; min-height: 47px; padding: 10px 12px;
  font-size: 16px; line-height: 1.4; color: var(--tinta);
  background: var(--blanco); border: 1px solid var(--borde-campo); border-radius: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.campo textarea { height: 131px; resize: vertical; }
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--tinta); box-shadow: inset 0 0 0 1px var(--tinta); }
.campo input[aria-invalid="true"], .campo textarea[aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.campo__error { color: var(--error); font-size: 14px; line-height: 1.3; margin-top: 6px; }
.campo__error:empty { display: none; }

.formulario__alerta {
  margin-bottom: 20px; padding: 12px 14px; font-size: 15px; line-height: 1.4;
  color: var(--error); border: 1px solid var(--error); border-left-width: 4px;
}
.formulario__pie { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; }
.formulario__aviso { font-size: 14px; color: var(--texto-suave); }
.formulario__enviar { flex: none; min-width: 167px; }

.trampa { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.resultado { flex: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 16px; }
.resultado:focus { outline: none; }
.resultado__marca { width: 36px; height: 36px; border-radius: 50%; border: 9px solid var(--naranja); }
.resultado__titulo { font-size: 28px; }
.resultado__texto { font-size: 19px; line-height: 1.5; }
.resultado__otra { margin-top: 8px; min-height: 47px; }

/* ---------- Pie ---------- */
.pie { background: var(--crema); }
.pie__interior { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 112px; }
.pie__interior img { width: 111px; height: auto; }
.pie__datos { display: flex; flex-wrap: wrap; gap: 8px 33px; font-size: 12px; color: var(--pie); }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Pantallas medianas ---------- */
@media (max-width: 1100px) {
  :root { --margen: 32px; }
  .hero__anillo { width: 560px; height: 560px; left: calc(100% - 420px); top: calc(422px - 280px); }
  .hero__fondo { --cx: calc(100% - 140px); }
  .servicio { grid-template-columns: 80px 300px 1fr; }
  .contacto__grilla { grid-template-columns: 300px 1fr; gap: 40px; }
  .formulario__grilla { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  :root { --alto-barra: 72px; --seccion-arriba: 88px; --seccion-abajo: 88px; }
  .barra__logo img { width: 118px; }
  .barra__menu-boton {
    order: 3; display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-left: 8px; padding: 0;
    background: none; border: 1px solid var(--boton-borde); cursor: pointer;
  }
  .hamburguesa, .hamburguesa span, .hamburguesa::before, .hamburguesa::after { display: block; width: 18px; height: 2px; background: var(--tinta); }
  .hamburguesa { position: relative; background: none; }
  .hamburguesa::before, .hamburguesa::after { content: ""; position: absolute; left: 0; transition: transform .2s ease; }
  .hamburguesa::before { top: -6px; }
  .hamburguesa::after { top: 6px; }
  .barra__menu-boton[aria-expanded="true"] .hamburguesa span { opacity: 0; }
  .barra__menu-boton[aria-expanded="true"] .hamburguesa::before { transform: translateY(6px) rotate(45deg); }
  .barra__menu-boton[aria-expanded="true"] .hamburguesa::after { transform: translateY(-6px) rotate(-45deg); }

  .idiomas { order: 2; margin-left: 16px; gap: 8px; }
  .barra__cotizar { order: 1; margin-left: 16px; }
  .menu {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; align-items: stretch;
    background: var(--crema); border-bottom: 1px solid var(--linea);
    padding: 8px var(--margen) 24px;
    max-height: calc(100vh - var(--alto-barra)); overflow-y: auto;
  }
  .menu.abierto { display: flex; }
  .menu__lista { flex-direction: column; gap: 0; }
  .menu__lista a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--linea); background: none; }
  .menu__lista a[aria-current="true"] { font-weight: 700; }
  .menu__cotizar { display: flex; margin-top: 20px; }

  .hero { min-height: 0; }
  .hero__contenido { padding: 96px 0 88px; }
  .hero__titulo { font-size: 48px; }
  .hero__anillo { opacity: .55; left: calc(100% - 300px); top: 40px; width: 520px; height: 520px; }
  .hero__fondo { --cx: calc(100% - 40px); --cy: 300px; opacity: .8; }

  #servicios { padding-bottom: var(--seccion-abajo); }
  .servicio { grid-template-columns: 80px 1fr; row-gap: 10px; }
  .servicio__texto { grid-column: 2; }
  .pasos { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .contacto__grilla { grid-template-columns: 1fr; gap: 48px; }
  .contacto__datos { max-width: 560px; }
  .tarjeta { margin-top: 0; min-height: 0; }
}

/* ---------- Celular ---------- */
@media (max-width: 600px) {
  :root { --margen: 16px; --alto-barra: 64px; --seccion-arriba: 72px; --seccion-abajo: 72px; }
  body { font-size: 16px; }
  .barra__logo img { width: 104px; }
  .barra__cotizar { display: none; }
  .idiomas { margin-left: 0; }

  .hero__contenido { padding: 64px 0 64px; }
  .hero__titulo { font-size: 38px; margin-top: 22px; }
  .hero__bajada { font-size: 18px; margin-top: 28px; }
  .hero__botones { margin-top: 32px; }
  .hero__botones .boton { flex: 1 1 100%; }
  .hero__anillo { left: calc(100% - 190px); top: 30px; width: 380px; height: 380px; opacity: .45; }
  .hero__fondo { --cx: calc(100% + 0px); --cy: 220px; }

  .seccion__titulo { font-size: 30px; }
  .servicios { margin-top: 36px; }
  .servicio { grid-template-columns: 1fr; padding: 24px 20px; gap: 6px; }
  .servicio__titulo { font-size: 21px; padding-right: 0; }
  .servicio__texto { margin-top: 6px; }

  .pasos { grid-template-columns: 1fr; row-gap: 0; margin-top: 40px; }
  .paso { padding: 0 0 36px 56px; }
  .paso:last-child { padding-bottom: 0; }
  .paso__marca { position: absolute; left: 0; top: 0; }
  .paso::before { left: 17.5px; right: auto; top: 44px; bottom: 8px; width: 1px; height: auto; }
  .paso:last-child::before { display: none; }
  .paso__numero { margin-top: 0; padding-top: 9px; }
  .paso__titulo { margin-top: 10px; font-size: 21px; }
  .paso__texto { margin-top: 8px; }

  .empresa__texto { font-size: 17px; }

  .contacto__bajada { font-size: 17px; }
  .tarjeta { padding: 24px 20px; margin-inline: calc(-1 * var(--margen) + 8px); }
  .formulario__grilla { grid-template-columns: 1fr; gap: 18px; }
  .formulario__pie { flex-direction: column-reverse; align-items: stretch; }
  .formulario__enviar { width: 100%; }

  .pie__interior { flex-direction: column; justify-content: center; text-align: center; padding: 28px 0; }
  .pie__datos { flex-direction: column; align-items: center; gap: 6px; }
}
