/* Trebius One — web institucional. Sin framework. */

:root {
  --tinta: #122433;
  --texto: #3a4654;
  --texto-suave: #5c6b78;
  /* Celeste del nudo (#5DBADE). El oscuro es para texto y botones. */
  --celeste: #5dbade;
  --acento: #0c6e96;
  --acento-hover: #0a5a7c;
  --acento-suave: rgba(93, 186, 222, 0.18);
  --papel: #f3f7fb;
  --blanco: #ffffff;
  --linea: #e2e5eb;
  --noche: #0b2433;
  --noche-texto: #e7ebf2;
  --noche-suave: #b7c0ce;
  --radio: 14px;
  --sombra: 0 12px 32px rgba(26, 31, 46, 0.08);
  --ancho: 1120px;
  --fuente: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--fuente);
  font-size: 17px;
  line-height: 1.55;
  color: var(--texto);
  background: var(--blanco);
}

img { max-width: 100%; height: auto; }

a { color: var(--acento); }

h1, h2, h3, p { margin: 0; }

h1, h2, h3 {
  color: var(--tinta);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.saltar {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--tinta);
  color: white;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  z-index: 20;
}

.saltar:focus { top: 1rem; }

.contenedor {
  width: min(var(--ancho), calc(100% - 2.5rem));
  margin-inline: auto;
}

.contenedor--angosto { width: min(760px, calc(100% - 2.5rem)); }

.volanta {
  margin-bottom: 0.75rem;
  color: var(--acento);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bajada {
  margin-top: 1rem;
  color: var(--texto-suave);
  font-size: 1.05rem;
}

.cabecera { max-width: 40rem; }

.cabecera--centrada {
  margin-inline: auto;
  text-align: center;
}

.seccion { padding: clamp(3.5rem, 7vw, 6rem) 0; }

.seccion--papel { background: var(--papel); }

.seccion--oscura {
  background: var(--noche);
  color: var(--noche-texto);
}

.seccion--oscura h2,
.seccion--oscura .volanta { color: white; }

.seccion--oscura .bajada { color: var(--noche-suave); }

.franja-entrar {
  background: var(--blanco);
  border-top: 1px solid var(--linea);
  border-bottom: 1px solid var(--linea);
}

.franja-entrar__interior {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.6rem 0;
}

.franja-entrar h2 { font-size: 1.35rem; }

.franja-entrar p {
  margin: 0.3rem 0 0;
  color: var(--texto-suave);
}

#registro .cabecera { max-width: none; }

#registro .solicitud {
  width: 100%;
  margin: 1.75rem 0 0;
}

#registro [data-registrarme] { margin-top: 1.25rem; }

.solicitud__nota {
  margin: 0.9rem 0 0;
  color: var(--texto-suave);
  font-size: 0.95rem;
}

.encabezado {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  transition: box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.encabezado--bajo {
  border-bottom-color: var(--linea);
  box-shadow: 0 10px 28px rgba(12, 48, 70, 0.08);
}

.encabezado__interior {
  width: min(var(--ancho), calc(100% - 2.5rem));
  margin-inline: auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--tinta);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.marca img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: 1.5rem; }

.nav__lista {
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__lista a {
  position: relative;
  color: var(--texto);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav__link--activo { color: var(--acento); }

.nav__link--activo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.45rem;
  height: 2px;
  border-radius: 2px;
  background: var(--celeste);
}

.nav__lista a:hover { color: var(--acento); }

.nav__acciones { display: none; }

.encabezado__acciones { display: flex; gap: 0.6rem; }

.hamburguesa {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--linea);
  border-radius: 10px;
  background: white;
  padding: 0;
  cursor: pointer;
}

.hamburguesa span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--tinta);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.45rem 1rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn--primario { background: var(--acento); color: white; }

.btn--primario:hover { background: var(--acento-hover); }

.btn--secundario {
  background: transparent;
  color: var(--acento);
  border-color: var(--acento);
}

.btn--secundario:hover { background: var(--acento-suave); }

.btn--grande { min-height: 48px; padding-inline: 1.25rem; }

.btn--ancho { width: 100%; }

.grupo-botones { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.grupo-botones--centro { justify-content: center; }

.hero {
  background:
    radial-gradient(ellipse at top right, rgba(93, 186, 222, 0.38), transparent 48%),
    linear-gradient(180deg, #f3f9fc 0%, #ffffff 72%);
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem);
}

.hero__grilla {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.7rem);
  max-width: 12ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--acento);
}

.hero__respaldo {
  margin-top: 0.9rem;
  color: var(--texto-suave);
  font-size: 0.95rem;
}

.hero__pruebas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1.25rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--tinta);
  font-size: 0.95rem;
}

.hero__pruebas li {
  padding-left: 1.35rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%230C6E96' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 8.2 6.2 12 13.5 4'/%3E%3C/svg%3E") no-repeat left center;
}

.tablero { margin: 0; }

.tablero__marco {
  background: white;
  border: 1px solid var(--linea);
  border-radius: 18px;
  box-shadow: var(--sombra);
  overflow: hidden;
}

.tablero__barra {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1rem;
  background: #f7f8fa;
  border-bottom: 1px solid var(--linea);
  color: var(--texto-suave);
  font-size: 0.85rem;
}

.tablero__barra span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d5dae3;
}

.tablero__barra span:first-child { background: var(--celeste); }

.tablero__barra strong {
  margin-left: 0.4rem;
  color: var(--tinta);
  font-weight: 600;
}

.tablero__lista {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0;
  padding: 1rem;
  list-style: none;
}

.tablero__lista li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-height: 76px;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  background: var(--papel);
}

.tablero__lista span { color: var(--tinta); font-weight: 600; }

.tablero__lista em {
  color: var(--texto-suave);
  font-style: normal;
  font-size: 0.88rem;
}

.tablero figcaption {
  margin-top: 0.75rem;
  color: var(--texto-suave);
  font-size: 0.85rem;
  text-align: center;
}

.grilla-funciones {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.grilla-funciones li {
  padding: 1.15rem 1.1rem 1.25rem;
  background: white;
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.grilla-funciones li:hover {
  transform: translateY(-6px);
  border-color: rgba(93, 186, 222, 0.7);
  box-shadow: 0 16px 32px rgba(12, 70, 100, 0.1);
}

.grilla-funciones h3 { font-size: 1.05rem; }

.grilla-funciones p {
  margin-top: 0.45rem;
  color: var(--texto-suave);
  font-size: 0.95rem;
}

.seccion-partida {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.lista-check {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lista-check li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.lista-check li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }

.lista-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 0.7rem;
  height: 0.4rem;
  border-left: 2px solid var(--celeste);
  border-bottom: 2px solid var(--celeste);
  transform: rotate(-45deg);
}

.faq { display: grid; gap: 0.75rem; margin-top: 2rem; }

.faq details {
  border: 1px solid var(--linea);
  border-radius: 12px;
  background: white;
  padding: 0.9rem 1rem;
}

.faq summary {
  cursor: pointer;
  color: var(--tinta);
  font-weight: 600;
}

.faq details p {
  margin-top: 0.7rem;
  color: var(--texto-suave);
}

.pie {
  background: var(--noche);
  color: var(--noche-suave);
  padding: 2.5rem 0;
}

.pie__interior {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.marca--pie { color: white; }

.marca--pie img { width: 28px; height: 28px; }

.pie__legal { margin-left: auto; }

@media (max-width: 980px) {
  .hero__grilla,
  .seccion-partida,
  .grilla-funciones { grid-template-columns: 1fr 1fr; }

  .grilla-funciones { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .hamburguesa { display: inline-block; }

  .encabezado__acciones { display: none; }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    margin: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    flex-direction: column;
    align-items: stretch;
    background: white;
    border-bottom: 1px solid var(--linea);
  }

  .nav--abierto { display: flex; }

  .nav__lista { flex-direction: column; gap: 0.2rem; }

  .nav__lista a { display: block; padding: 0.7rem 0; }

  .nav__acciones { display: grid; gap: 0.6rem; }

  .hero__grilla,
  .seccion-partida,
  .grilla-funciones,
  .hero__pruebas,
  .tablero__lista { grid-template-columns: 1fr; }

  .hero h1 { max-width: none; }

  .pie__legal { margin-left: 0; }
}

.progreso {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--acento), var(--celeste));
  pointer-events: none;
}

.hero__copia,
.tablero {
  animation: entrar 0.9s cubic-bezier(.2, .7, .2, 1) both;
}

.tablero { animation-delay: 0.12s; }

@keyframes entrar {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

[data-revelar] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2, .7, .2, 1);
}

[data-revelar].esta-visible {
  opacity: 1;
  transform: none;
}

.grilla-funciones[data-revelar],
.lista-check[data-revelar],
.faq[data-revelar] {
  opacity: 1;
  transform: none;
}

.grilla-funciones[data-revelar] li,
.lista-check[data-revelar] li,
.faq[data-revelar] details {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(.2, .7, .2, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.grilla-funciones.esta-visible li,
.lista-check.esta-visible li,
.faq.esta-visible details {
  opacity: 1;
  transform: none;
}

.grilla-funciones.esta-visible li:nth-child(2),
.lista-check.esta-visible li:nth-child(2),
.faq.esta-visible details:nth-child(2) { transition-delay: 0.06s; }
.grilla-funciones.esta-visible li:nth-child(3),
.lista-check.esta-visible li:nth-child(3),
.faq.esta-visible details:nth-child(3) { transition-delay: 0.12s; }
.grilla-funciones.esta-visible li:nth-child(4),
.lista-check.esta-visible li:nth-child(4),
.faq.esta-visible details:nth-child(4) { transition-delay: 0.18s; }
.grilla-funciones.esta-visible li:nth-child(5),
.faq.esta-visible details:nth-child(5) { transition-delay: 0.24s; }
.grilla-funciones.esta-visible li:nth-child(6) { transition-delay: 0.3s; }
.grilla-funciones.esta-visible li:nth-child(7) { transition-delay: 0.36s; }
.grilla-funciones.esta-visible li:nth-child(8) { transition-delay: 0.42s; }

.grilla-funciones.esta-visible li:hover {
  transform: translateY(-6px);
}

.solicitud {
  width: min(640px, 100%);
  margin: 2rem auto 0;
  text-align: left;
}

.solicitud__grilla {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
}

.solicitud label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--tinta);
}

.solicitud input,
.solicitud textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--linea);
  border-radius: 10px;
  font: inherit;
  font-weight: 450;
  color: var(--tinta);
  background: var(--blanco);
}

.solicitud input:focus,
.solicitud textarea:focus {
  outline: 2px solid var(--celeste);
  border-color: transparent;
}

.solicitud__mensaje { margin-top: 0.85rem; }

.solicitud textarea { resize: vertical; min-height: 5.5rem; }

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

.solicitud__estado {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: var(--tinta);
}

.solicitud__estado--error { color: #9b2c2c; }

.solicitud > .btn { margin-top: 1rem; }

@media (max-width: 640px) {
  .solicitud__grilla { grid-template-columns: 1fr; }

  .franja-entrar__interior {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .progreso { display: none; }

  .hero__copia,
  .tablero,
  [data-revelar],
  .grilla-funciones[data-revelar] li,
  .lista-check[data-revelar] li,
  .faq[data-revelar] details {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .grilla-funciones li:hover { transform: none; }
}
