/* =========================================================
   estilos.css
   Replica los estilos reales de:
   https://janus.jusrionegro.gov.ar/tramites-public/
   Header y Footer: web components <pj-header> / <pj-footer>
   (Shadow DOM) del Poder Judicial de Río Negro.
   Resto de la página: theme "Minimal UI Kit" (MUI), primario #00A76F.
   ========================================================= */

:root {
  /* Colores del header/footer (extraídos del shadow DOM real) */
  --pj-header-bg: #17487f;
  --pj-header-border: #00a357;
  --pj-header-title: #ffffff;
  --pj-header-subtitle: rgba(255, 255, 255, 0.8);
  --pj-footer-bg: #333333;
  --pj-footer-text: #9b9b9b;
  --pj-footer-text-hover: #ffffff;

  /* Colores del theme MUI "Minimal" usado en el resto del sitio */
  --mui-primary: #00A76F;
  --mui-bg: #F4F6F8;
  --mui-text: #1C252E;
  --mui-card-bg: #ffffff;
  --mui-border-soft: rgba(145, 158, 171, 0.2);
  --mui-shadow: rgba(145, 158, 171, 0.2) 0px 0px 2px 0px,
                rgba(145, 158, 171, 0.12) 0px 12px 24px -4px;

  --fuente-base: "Roboto", -apple-system, "system-ui", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--fuente-base);
  color: var(--mui-text);
  background-color: var(--mui-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--mui-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =========================================================
   HEADER — réplica de <pj-header> (Shadow DOM)
   ========================================================= */

.pj-header {
  background-color: var(--pj-header-bg);
  border-bottom: 4px solid var(--pj-header-border);
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pj-header__container {
  max-width: 1280px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.pj-header__logo {
  flex: 0 0 20%;
  display: flex;
  align-items: center;
}

.pj-header__logo a {
  display: block;
}

.pj-header__logo img {
  width: 100%;
  max-width: 230px;
  height: auto;
}

.pj-header__text {
  flex: 0 0 70%;
  display: flex;
  align-items: center;
  padding-left: 64px;
}

.pj-header__title {
  font-family: var(--fuente-base);
  font-size: 24px;
  font-weight: 300;
  color: var(--pj-header-title);
  line-height: 1.2;
}

.pj-header__subtitle {
  font-family: var(--fuente-base);
  font-size: 15px;
  font-weight: 300;
  color: var(--pj-header-subtitle);
  margin-top: 4px;
}

.pj-header__actions {
  flex: 0 0 10%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}

/* Responsive - Tablet (idéntico al sitio real) */
@media (max-width: 1024px) {
  .pj-header__title {
    font-size: 19px;
  }
}

/* Responsive - Mobile (idéntico al sitio real) */
@media (max-width: 768px) {
  .pj-header {
    height: auto;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .pj-header__container {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .pj-header__logo {
    flex: 0 0 auto;
  }

  .pj-header__logo img {
    max-width: 200px;
    margin-top: 10px;
  }

  .pj-header__actions {
    flex: 0 0 auto;
    justify-content: flex-start;
  }

  .pj-header__text {
    width: 100%;
    padding-left: 0;
    flex: 0 0 auto;
  }

  .pj-header__title {
    font-size: 18px;
    text-align: left;
    padding-top: 8px;
  }
}

/* =========================================================
   CONTENIDO — tarjeta estilo MUI "Minimal" (igual a MuiCard-root
   del sitio: fondo blanco, radius 16px, misma sombra y borde)
   ========================================================= */

.pj-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.pj-card {
  background: var(--mui-card-bg);
  border-radius: 16px;
  box-shadow: var(--mui-shadow);
  padding: 24px;
}

.pj-card h1 {
  font-family: var(--fuente-base);
  font-size: 24px;
  font-weight: 700;
  color: var(--mui-text);
  margin: 0 0 6px;
}

.pj-card .pj-subtitulo {
  color: rgba(28, 37, 46, 0.6);
  font-size: 14px;
  margin: 0 0 28px;
}

.pj-card h2 {
  font-family: var(--fuente-base);
  font-size: 19px;
  font-weight: 700;
  color: var(--mui-text);
  margin: 32px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--mui-border-soft);
}

.pj-card p {
  font-family: var(--fuente-base);
  font-size: 15px;
  color: var(--mui-text);
  margin: 0 0 14px;
}

.pj-aviso {
  background: rgba(0, 167, 111, 0.08);
  border-left: 4px solid var(--mui-primary);
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  color: #00512e;
  margin: 20px 0 0;
}

.pj-card a.pj-contacto {
  font-weight: 600;
  color: var(--mui-primary);
}

/* =========================================================
   FOOTER — réplica de <pj-footer> (Shadow DOM)
   ========================================================= */

.pj-footer {
  background-color: var(--pj-footer-bg);
  color: var(--pj-footer-text);
  padding: 20px 0;
}

.pj-footer__container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.pj-footer__info {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 4px;
}

.pj-footer__text {
  font-family: var(--fuente-base);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
}

.pj-footer__links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pj-footer__links a {
  font-family: var(--fuente-base);
  font-size: 14px;
  color: var(--pj-footer-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.pj-footer__links a:hover {
  color: var(--pj-footer-text-hover);
  text-decoration: underline;
}

/* Responsive - Mobile (idéntico al sitio real) */
@media (max-width: 768px) {
  .pj-footer__container {
    flex-direction: column;
    padding: 0 24px;
    gap: 12px;
  }

  .pj-footer__info {
    text-align: center;
  }

  .pj-footer__text {
    font-size: 13px;
  }

  .pj-footer__links {
    flex-direction: column;
    gap: 8px;
  }
}
