body {
	background: #f0f3f5;
	color: #fff;	
}

header {
	background: #9aca40;
	padding: 20px;
	margin-bottom: 20px;
	
}

.contenedor-main {
		margin-bottom: 20px;
}

main{
	background: #fff;
	color: #424242;
	padding: 20px 0;
}

aside{
	background: #dee5e8;
	padding: 60px 0;
	color: #0d47a1;	
}

.widgets {
	background: #f2f2f2;
	color: #424242;
	margin-bottom: 20px;
}

.widgets > div
{
	background: #2196f3;
	color: #fff;
	padding: 20px;
	
}

footer{
	padding: 20px 0;
	background: #26292E;	
}

.boton_pag_contact {
	border: 1px solid #2e518b; /*anchura, estilo y color borde*/
	padding: 10px; /*espacio alrededor texto*/
	background-color: #2e518b; /*color botón*/
	color: #ffffff; /*color texto*/
	text-decoration: none; /*decoración texto*/
	text-transform: uppercase; /*capitalización texto*/
	border-radius: 50px; /*bordes redondos*/
	}

.boton_pag_contact:hover {
		
		text-decoration: none; /*decoración texto*/
		color: #ffffff; /*color texto*/

		}

.mb--50{
	margin-bottom: -50px;
}

/* Pag novedades*/
.imagen-noticia {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.1rem;
  }

  .titulo-noticia {
    color: #004994; /* Azul oscuro */
    margin-top: 0.75rem;
    font-size: 1.1rem;
    font-family: 'patua';
  }

  .fecha-noticia {
    color: #6c757d; /* Gris Bootstrap */
    font-size: 0.7rem;
    text-align: left;
    padding: 1.0rem 1rem;
    border-top: 1px solid #eee; 
    border-bottom: 6px solid #004994;
    margin-bottom: 2.0rem;
  }


@media (max-width: 767.98px) {
  /* Aumenta espacio lateral en móvil */
  .container.card {
    padding: 0 1rem !important;
  }

  /* Ajusta ancho de las tarjetas para que no estén al borde */
  .card-custom {
    margin: 0 auto;
    max-width: 95%;
  }

  /* Asegura que las imágenes se vean bien */
  .imagen-noticia {
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
  }

  /* Aumenta espacio inferior si está muy pegado al footer */
  .novedades-noticia-footer {
    margin-bottom: 0px;
    text-align: center;
  }

  /* Opcional: reducir tamaño de texto para mejor lectura */
  .titulo-noticia {
    font-size: 1rem;
    padding: 0 0.2rem;
  }
}



/* Pag Novedades detalle*/

	.imagen-noticia-detalle {
      width: 100%;
      height: 600px;
      object-fit: cover;
      border-radius: 0.5rem;
    }

    .titulo-noticia-detalle {
      color: #003366;
      font-weight: bold;
      font-size: 2.0rem;
      margin-top: 1rem;
    }

    .fecha-noticia-detalle {
      color: #6c757d;
      font-size: 0.8rem;
      text-align: left;
      margin-top: 0.5rem;
      font-style: italic;
    }

    .resumen-noticia-detalle {
      font-style: italic;
      color: #555;
      font-size: 0.85rem;
    }

    .detalle-noticia {
      margin-top: 1rem;
      margin-bottom: 1rem;
      text-align: justify;
      font-size: 0.9rem;
      color: #4A494A;
      font-family: 'varela'
    }

    .detalle-noticia-footer{
      text-align: center;
      padding: 2.0rem 0rem;
    }


    @media (max-width: 767.98px) {
	  .titulo-noticia-detalle {
	    font-size: 1.1rem;
	    text-align: center;
	    padding: 0 0.5rem;
	  }

	  .imagen-noticia-detalle {
	    height: auto !important;
	    max-height: 300px;
	    object-fit: cover;
	    margin: 1rem auto;
	    display: block;
	  }

	  .detalle-noticia {
	    padding: 0 0.5rem;
	    font-size: 0.8rem;
	  }

	  .fecha-noticia-detalle {
	    padding: 0 1rem;
	    font-size: 0.7rem;
	  }

	  .detalle-noticia-footer{
	      text-align: center;
	      padding: 1.5rem 0rem;
	    }

	}


/* Novedades Index*/
    .img-principal {
	    width: 100%;
	    height: 100%;
	    object-fit: fill;
	    border-radius: 0.5rem;
	    padding: 0rem 0rem 0rem 0rem
	 }

	 .img-lateral {
	    width: 100%;
	    height: 100px;
	    object-fit: fill;
	    border-radius: 0.5rem;
	 }

	 .titulo-noticia {
	    font-size: 1.0rem;
	    color: #004994 !important;
	    font-family: 'patua';
	 }

	 .btn-ver-mas {
	    border: none;
	    padding: 0.5rem 2.7rem !important;
	 }

	.noticia-horizontal {
	  display: flex;
	  align-items: stretch;
	  gap: 1rem;
	  height: 110px; /* Alto fijo para ambas tarjetas */
	}

	.noticia-horizontal .texto {
	  flex: 1;
	  display: flex;
	}

	.noticia-horizontal .imagen {
	  width: 40%; /* Ocupa el 40% del ancho */
	}

  	.card-novedades{
  	  padding: 4rem 2rem;
  	}


/* ======== Estilos para móvil ======== */
  @media (max-width: 767.98px) {
    /* Noticia principal: imagen antes que texto */
    .card-novedades .col-md-7 > .row {
      flex-direction: column;
      margin-bottom: 15px;
    }
    .card-novedades .col-md-7 > .row > .col-7 {
      order: -1; /* Imagen primero */
      margin-bottom: 15px;
      height: auto !important; /* Sobrescribe height 100% */
    }
    .card-novedades .col-md-7 > .row > .col-5 {
      padding: 0 25px;
    }

    .card-novedades .col-md-7 > .row > .col-5,
	  .card-novedades .col-md-7 > .row > .col-7 {
	  flex: 0 0 100% !important;
	  max-width: 100% !important;
	}

    /* Noticias secundarias: imagen primero y texto después */
    .noticia-horizontal {
      flex-direction: column !important;
      height: auto !important; /* Quitar altura fija */
      gap: 10px !important;
    }
    .noticia-horizontal .imagen {
      width: 100% !important;
      height: auto !important;
      order: -1; /* Imagen primero */
      border-radius: 0.5rem;
    }
    .noticia-horizontal .texto {
      flex: unset !important;
      padding: 0 10px;
    }

    /* Más espacio al final para evitar choque con footer */
    .card-novedades {
      padding: 4rem 1rem;
      margin-bottom: 0px;
    }

    /* Ajuste imágenes */
    .img-lateral {
      height: auto !important;
    }

    .img-principal {
      height: auto !important;
    }

    .titulo-noticia {
      font-size: 0.8rem;
      color: #004994 !important;
      font-family: 'patua';
    }


  }



/* Reglas de limpieza y layout para las tablas exportadas */
.table-excel {
  table-layout: fixed; /* asegura que los anchos de columnas se respeten */
  width: 100%;
}
/* Encabezados: centrado horizontal, centrado vertical, espacio arriba/abajo */
.table-excel thead th {
  text-align: center;
  vertical-align: middle;
  padding-top: 20px;
  padding-bottom: 20px;
}

/* Anchos de columnas del encabezado: 50% / 20% / 20% / 10% */
.table-excel thead th:nth-child(1) { width: 40%; }
.table-excel thead th:nth-child(2) { width: 24%; }
.table-excel thead th:nth-child(3) { width: 25%; }
.table-excel thead th:nth-child(4) { width: 11%; }

/* Cuerpo: justificar todo, excepto la columna de videos (última y/o 4ta) centrada */
.table-excel tbody td {
  text-align: justify;
}
.table-excel tbody td:nth-child(4),
.table-excel tbody td:last-child {
  text-align: center;
}

.table-excel a {
  text-decoration: none;
}

.table-excel thead th {
  font-size: 15px;   /* encabezados */
}

.table-excel tbody td {
  font-size: 14px;   /* contenido */
}



/* galeria-detalle-novedades */
  .thumb-img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    transition: 0.3s;
    border: 2px solid transparent;
  }

  .thumb-img:hover {
    transform: scale(1.05);
    border-color: #007bff;
  }

  .active-thumb {
    border-color: #007bff;
  }

  .fade-in {
    opacity: 0;
    transition: opacity 0.6s;
  }

  .fade-in.show {
    opacity: 1;
  }