/* ============================================================================ 
   FUENTES PERSONALIZADAS
============================================================================ */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  src: url('/font/Roboto/Roboto-Light.ttf') format('truetype'),
       url('/font/Roboto/Roboto-LightItalic.ttf') format('truetype');
}
@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 300;
  src: url('/font/Roboto/Roboto-LightItalic.ttf') format('truetype');
}
@font-face {
  font-family: 'Roboto';
  font-weight: 400;
  src: url('/font/Roboto/Roboto-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Roboto';
  font-weight: 500;
  src: url('/font/Roboto/Roboto-Medium.ttf') format('truetype'),
       url('/font/Roboto/Roboto-MediumItalic.ttf') format('truetype');
}
@font-face {
  font-family: 'Roboto';
  font-weight: 700;
  src: url('/font/Roboto/Roboto-Bold.ttf') format('truetype'),
       url('/font/Roboto/Roboto-BoldItalic.ttf') format('truetype');
}

/* ============================================================================ 
   VARIABLES Y RESET GLOBAL
============================================================================ */
:root {
    --gray-txt: #323639;
    --red-one: #E11E00;
    --red-two: #940a00;
    --red-three: #BF0909;
    --gray-nav: #D3D3D3;
    --gray-header: #F6F9FC;
    --gray-two: #EDF0F4;
    --gray-three: #DEE3EA;
    --gray-four: #A3A3A3;
    --yellow: #FFD147;
    --pie-pagina: #E9EAEA;
    --footer: #474747;
    --green: #3C9646 !important;

    --font-base:    'Roboto', sans-serif;
    --line-height:  22px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: var(--line-height);
  background: var(--white);
  color: var(--gray-txt);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ============================================================================ 
   LAYOUT PRINCIPAL
============================================================================ */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ============================================================================ 
   HEADER / TOP BAR
============================================================================ */
.top-bar,
.header {
  background: var(--gray-header);
  display: flex;
  align-items: center;
  padding: 8px 16px;
}

.logo {
  height: 55px;
}

.dept-name {
  margin-left: auto;
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-txt);
  text-decoration: none;
}

/* ============================================================================ 
   CONTENEDOR PRINCIPAL
============================================================================ */
.ctn-interno-cuerpo {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 25px 0;
}

.interno-cuerpo {
  width: 100%;
  max-width: 1500px;
  padding: 0 5%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* ============================================================================ 
   MIGAS / BREADCRUMBS
============================================================================ */
.pre-cuerpo-ruta {
  display: flex;
  gap: 0.2rem;
  font-size: 14px;
}

.pre-cuerpo-ruta a {
  font-weight: 500;
  color: var(--gray-txt);
  text-decoration: none;
}

.pre-cuerpo-ruta a:hover {
  color: var(--red-one);
}

.pre-cuerpo-ruta .actual {
  color: var(--red-one);
  font-weight: 700;
}

/* ============================================================================ 
   ENCABEZADO DE LA NOTICIA
============================================================================ */
.ctn-noticia-encabezado-titulo {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ctn-noticia-encabezado-titulo h2 {
  font-size: 24px;
  font-weight: 700;
}
.ctn-noticia-encabezado-titulo h3 {
  font-size: 20px;
}

/* ============================================================================ 
   CUERPO DE LA NOTICIA
============================================================================ */
.ctn-noticia-txt {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
  font-size: 16px;
  line-height: 22px;
}

.txt-parrafos {
  flex: 1 1 0;
  font-size: 16px;
  line-height: 22px;
  color: #626262 !important;
  text-align: justify;
}
.txt-parrafos p {
  margin-bottom: 16px;
}
.txt-parrafos p + p {
  margin-top: 16px;
}
.txt-parrafos a {
  font-weight: 700;
  color: #626262;
  text-decoration: underline;
}
.txt-parrafos a:hover {
  color: var(--red-one);
}
.txt-parrafos strong {
  font-weight: 700;
}
.txt-parrafos .aviso {
  background: var(--gray-two);
  border-left: 4px solid var(--red-one);
  padding: 12px;
}

/* ============================================================================ 
   IMAGEN FLOTADA + ESTILO FIJO
============================================================================ */
.foto-noticia {
  float: right;
  width: 302px;
  height: 202px;
  margin: 0 0 12px 24px;
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  object-fit: cover;
  border: 1px solid #9A9A9A;
}

/* ============================================================================ 
   FECHA Y FIRMA
============================================================================ */
.noticia-publicacion-fecha {
  margin-top: 32px;
  font-size: 14px;
}
.noticias-publicacion-dia {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 4px;
}
.noticias-publicacion-bn {
  font-size: 17px;
  font-weight: 700;
  color: var(--red-one);
  margin-bottom: 4px;
}
.noticias-publicacion-link a {
  font-size: 20px;
  font-weight: 700;
  color: var(--red-one);
  text-decoration: none;
}
.noticias-publicacion-link a:hover {
  text-decoration: underline;
}

/* ============================================================================ 
   PIE DE PÁGINA
============================================================================ */
.cuerpo-style-abajo {
  background: var(--gray-header);
  padding: 32px 16px;
  text-align: center;
}
.ctn-pie-pagina {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.redes-sociales-icons {
  display: flex;
  gap: 8px;
}
.redes-sociales-icons img {
  width: 32px;
  height: 32px;
}
.derechos-a {
  margin-top: 24px;
  font-size: 14px;
  color: var(--gray-txt);
}

/* ============================================================================ 
   RESPONSIVE: APILA IMAGEN Y TEXTO
============================================================================ */
@media (max-width: 560px) {
  .foto-noticia {
    float: none;            /* ya no flota */
    display: block;         /* bloque completo */
    margin: 0 auto 16px;    /* centrada y espacio abajo */
    width: 302px;           /* mantiene ancho fijo */
    height: 202px;          /* mantiene alto fijo */
  }
}

/* ============================================================================ 
   LISTAS CON VIÑETAS GENÉRICAS
============================================================================ */
.txt-parrafos .lista-vinetas {
  list-style-type: disc;
  margin-left: 0px;      /* indentación */
  margin-bottom: 16px;
  padding-left: 20px;        /* quitamos padding por defecto si lo hubiera */
}

.txt-parrafos .lista-vinetas li {
  margin-bottom: 8px;
  line-height: 1.4;
  color: #626262;
}

.txt-parrafos .lista-vinetas li::marker {
  color: var(--red-one);
  font-size: 18px;
}



/* En móvil quitamos indent para ocupar todo el ancho */
@media (max-width: 560px) {
  .txt-parrafos .lista-vinetas {
    margin-left: 0;
  }
}







/* ============================================================================ 
   FOOTER 
=========================================================================== */

/* Contenedor principal */
.ctn-footer-ley {
  width: 100%;
  background-color: var(--footer, #f9f9f9);
  color: var(--gray-two);
  padding: 20px 40px; /* Espacio en costados y en altura */
  box-sizing: border-box;
  
  display: flex;
  justify-content: space-between;
  align-items: baseline;  /* Alinea ambos bloques por la línea base */
  gap: 20px;
}

/* Sección de texto */
.footer-texto-ley p {
  font-family: var(--font-family, Arial, sans-serif);
  font-size: 15px;
  line-height: 1.4;
  margin: 0;
}

/* Sección de redes sociales */
.redes-sociales-ley {
  /* Sin forzar un ancho fijo; se adapta según el contenido */
  text-align: right;
  
  /* Si lo deseas en flex, pero cuidando el alineado */
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.redes-sociales-ley > p {
  font-weight: 700;
  margin: 0 0 8px 0;
}

/* Contenedor de íconos */
.redes-sociales-icons {
  display: flex;
  gap: 10px;
}

/* Estilos para íconos */
.iconos-redes-sociales {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background-color: #e9eaea;
  border: 1px solid #000;
  border-radius: 50%;
  transition: background-color 0.3s, border-color 0.3s;
}

.iconos-redes-sociales img {
  width: 24px;
  height: 24px;
}

.iconos-redes-sociales:hover {
  background-color: #E11E00;
  border-color: #E11E00;
}

.iconos-redes-sociales:hover img {
  filter: invert(1);
}


/* Media queries para responsividad */
@media (max-width: 1025px) {
  .ctn-footer-ley {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }

  .footer-texto-ley,
  .redes-sociales-ley {
    width: 100%;
  }
  
  .redes-sociales-ley {
    align-items: center;
    text-align: center;
  }
}

