:root {
  --color-bg: #0A1128;
  --color-primary: #001F54;
  --color-accent: #1282A2;
  --color-card: #0f1733;
  --color-text-main: #FEFCFB;
  --color-text-soft: rgba(254, 252, 251, 0.82);
  --radius-card: 12px;   /* antes 18px */
  --radius-small: 8px;   /* si quieres también más serio */
}


/* RESET BÁSICO */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}/* Escala de tipografía para pantallas grandes */
@media (min-width: 1024px) {
  html {
    font-size: 18px;
  }
}

@media (min-width: 1440px) {
  html {
    font-size: 19px;
  }
}


body {
  margin: 0;
  font-family: "Zalando Sans Expanded", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  background-color: var(--color-bg);
  color: var(--color-text-main);
  min-height: 100vh;
}


/* FONDO POR PÁGINA */

.page-bg {
  position: fixed;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0.22; /* transparencia suave */
  z-index: -1;
}

/* Asigna aquí las imágenes que uses realmente */
body.page-home .page-bg {
  background-image: url("bg-justicia.jpg"); /* lady justicia */
}

body.page-extranjeria .page-bg {
  background-image: url("bg-avion.jpg");
}

body.page-administracion .page-bg {
  background-image: url("bg-documentos.jpg");
}

body.page-empresas .page-bg {
  background-image: url("bg-servidores.jpg");
}

body.page-tramites .page-bg {
  background-image: url("bg-edificio.jpg");
}

/* LAYOUT GENERAL */


.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* NAVBAR */

.navbar {
  width: 100%;
  padding: 0.75rem 1.2rem;
  background-color: rgba(10, 17, 40, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;

}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.nav-logo-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #034078;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-brand {
  display: flex;
  flex-direction: column;
}

.nav-brand-title {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-brand-sub {
  font-size: 0.5rem;
  color: var(--color-text-soft);
}

/*BOTONCITO VOVLER EN MOBILE*/

.btn-back-mobile-wrapper {
  display: none;
  margin-bottom: 1rem;
}

.btn-back-mobile {
  font-size: 0.8rem;
  padding-inline: 0.8rem;
}

/* Solo se ve en móvil */
@media (max-width: 767px) {
  .btn-back-mobile-wrapper {
    display: block;
  }
}


/* Links + CTA */

.nav-center {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--color-text-soft);
}

.nav-link:hover {
  color: var(--color-text-main);
}

.nav-right {
  display: none;
  align-items: center;
  gap: 0.6rem;
}

/* Botones */

.btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-text-main);
}

.btn-primary:hover {
  background-color: #0f6b85;
}

.btn-outline {
  background-color: transparent;
  color: var(--color-text-soft);
  border-color: rgba(254, 252, 251, 0.55);
}

.btn-outline:hover {
  background-color: rgba(254, 252, 251, 0.08);
}

/* Hamburger */

.nav-toggle {
  border: none;
  background: transparent;
  color: var(--color-text-main);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background-color: var(--color-text-main);
}

/* Menú móvil */
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 0.6rem 1.2rem 0.9rem;
  gap: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-mobile.open {
  display: flex;
}


.nav-mobile .nav-link {
  display: block;
}

.nav-mobile-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

/* MAIN CONTENT */

.main {
  flex: 1;
  padding: 1.6rem 1.2rem 2.4rem;
}

.main-inner {
  max-width: 1120px;
  margin: 0 auto;
}

/* HERO */

.hero {
  margin-bottom: 1.8rem;
}

.hero-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: 1.8rem;
  margin: 0 0 0.75rem;
}

.hero-text {
  font-size: 0.98rem;
  color: var(--color-text-soft);
  max-width: 640px;
  margin: 0 0 1.2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* BLOQUES / CARDS */


/* CARDS CLICABLES WIII */
.card-link-inner {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card-link-inner:hover {
  background-color: rgba(254, 252, 251, 0.04);
  border-radius: var(--radius-card);
}

.card a,
.card-link-inner,
.card-link-inner * {
  text-decoration: none !important;
  color: inherit !important;
}


.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.card {
  background-color: rgba(15, 23, 51, 0.9);
  border-radius: var(--radius-card);
  padding: 0.9rem 0.95rem; 
  border: 1px solid rgba(254, 252, 251, 0.06);
}/* Estilo de cards en móvil: un azul ligeramente más vivo */
@media (max-width: 767px) {
  .card {
    background-color: rgba(18, 130, 162, 0.26); /* azulito link vibes */
    border-color: rgba(18, 130, 162, 0.6);
  }
}


.card-title {
  font-size: 1rem;
  margin: 0 0 0.35rem;
}

.card-text {
  font-size: 0.92rem;
  color: var(--color-text-soft);
  margin: 0;
}

/* MÉTRICAS (solo home) */

.metrics {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.metric-card {
  background-color: rgba(3, 16, 40, 0.92);
  border-radius: var(--radius-small);
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(254, 252, 251, 0.04);
}

.metric-number {
  font-size: 1.3rem;
  font-weight: 600;
}

.metric-label {
  font-size: 0.78rem;
  color: var(--color-text-soft);
  margin-top: 0.2rem;
}

/* FOOTER */

.footer {
  padding: 1rem 1.2rem 1.4rem;
  font-size: 0.8rem;
  color: var(--color-text-soft);
  text-align: center;
}

/* DESKTOP */

@media (min-width: 768px) {
  .navbar {
    padding-inline: 1.6rem;
  }

  .nav-center {
    display: flex;
  }

  .nav-right {
    display: flex;
  }

  .nav-toggle,
  .nav-mobile {
    display: none;
  }

  .hero {
    margin: 2.2rem 0 2rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .main {
    padding-inline: 1.6rem;
  }

 @media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


  .metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  


}
