/* Contenido principal */
main {
  padding: 40px 20px;
}

body {
  line-height: 1.6;
  color: #333;
  font-family: Verdana;
  text-align: justify;
}

section {
  margin-bottom: 40px;
}

section h2 {
  margin-bottom: 20px;
  color: #293133;
}

section p {
  margin-bottom: 10px;
}
.container { 
  max-width: 1200px;
  margin: auto; 
  padding: 0 20px; 
}
/* Sección Hero */
.hero {
  height: 400px;
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
}
  
.hero-content {
  position: relative;
  padding: 20px 40px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}
  
.hero-content:hover {
  transform: scale(1.12);
}
  
.hero h1 {
  color: #fff;
  font-size: 3rem;
  margin: 0;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.7); /* sombra suave adicional */
}
/* 
---------
clima.php 
---------
*/

.texto-ingenieria {
  max-width: auto;     /* Ancho máximo del cuadro */
  margin: 20px auto;    /* Centrado horizontal y separación vertical */
  padding: 20px;  /* Espaciado interno */
  background-color: #f8f9fa;  /* Fondo claro */
  border: 2px solid #293133;  /* Fondo gris */
  border-radius: 5px;   /* Bordes redondeados */
  text-align: center;   /* Texto centrado */
  font-weight: bold;    /* Texto en negrita para resaltar */
  transition: transform 0.3s, background-color 0.3s, color 0.3s;
}
.texto-ingenieria:hover {
  background-color: #293133;
  color: #f8f9fa;
}
.card-header {
  font-weight: bold;
}

/* 
------------
contacto.php 
------------
*/

.agrandar a {
  display: inline-block;
  transition: transform 0.3s;
}
.agrandar a:hover {
  transform: scale(1.35);
}
.icon-circle {
  background-color: #293133;
  width: 50px;
  height: 50px;
  color: #FFF;
  display: flex;   /* Para alinear contenido en centro */
  align-items: center;   /* Alinea verticalmente */
  justify-content: center;     /* Alinea horizontalmente */
  border-radius: 50%;    /* Círculo perfecto */
}

.enviar {
  font-family: Verdana;
  background-color: #00bcd4;
  color: #FFF;
  border: 1px solid #00bcd4;
  border-radius: 6px;
  width:120px;
}
.enviar:hover {
  background-color: white;
  color: black;
  border: 1px solid black;
  transition: transform 0.3s, color 0.3s, background-color 0.3s;
}

/* 
-------------
georradar.php 
-------------
*/

.texto-legalidad {
  max-width: 600px;     /* Ancho máximo del cuadro */
  margin: 20px auto;    /* Centrado horizontal y separación vertical */
  padding: 20px;  /* Espaciado interno */
  background-color: #f8f9fa;  /* Fondo claro */
  border: 2px solid #293133;  /* Borde gris */
  border-radius: 5px;   /* Bordes redondeados */
  text-align: center;   /* Texto centrado */
  font-weight: bold;    /* Texto en negrita para resaltar */
  transition: transform 0.3s, background-color 0.3s, color 0.3s;
}
.texto-legalidad:hover {
  background-color: #293133;
  color: #f8f9fa;
}
/* Aplica a los elementos de lista que están dentro de un contenedor con la clase list-group-flush */
.list-group-flush .list-group-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.6); 
}
.card {
  border: 2px solid rgba(0, 0, 0, 0.6) !important;
}
.contact-email {
  transition: color 0.3s; /* transición suave */
}
.contact-email:hover {
  color: #555 !important; 
}
.list-group-item {
  transition: background-color 0.3s ease, color 0.3s;
}
.list-group-item:hover {
  background-color: #293133; /* color de fondo al hacer hover */
  cursor: pointer;
  color: #FFF;
}
.camara {
  background-color: #293133;
  color: #FFF;
  border: 2px solid #293133 !important;
  border-radius: 6px;
  transition: transform 0.3s, color 0.3s, background-color 0.3s;
}

.camara:hover {
  color: #293133 !important;
  background-color: #FFF !important;
  border: 2px solid #293133 !important;
}
 
@media (max-width: 768px) {
  .row {
    display: block;
  }
  .col-md-6 {
    width: 100%;
    float: none;
    margin-bottom: 20px; /* Espacio entre bloques */
  }
}

/* 
---------
index.php 
---------
*/

/* Efecto hover sutil para las tarjetas del final de la página */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: scale(1.09);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.card-hover img {
  height: 200px;
  object-fit: cover;
}
/* Efecto hover para publicaciones destacadas */
.publication-hover {
  transition: box-shadow 0.3s ease;
}
.publication-hover:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

/* 
------------
nosotros.php 
------------
*/

/* Tarjetas de empresas */
.cen {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
}
.col-md-4 img {
  width: 300px;
  height: 120px;
  display: block;
  margin: auto;
}
.tarjeta {
  margin: 10px;
  border-radius: 15px;
  height: 150px;
  width: 375px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.tarjeta img {
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
  transition: outline 0.2s ease, outline-offset 0.2s ease;
  cursor: pointer;
}
.tarjeta img:hover {
  outline: 4px solid #293133;
  outline-offset: 6px;
}
.tarjeta img {
  margin-top: 10px;
}

/* ================================
ORGANIGRAMA
================================ */

/* Contenedor externo: ocupa el ancho de la página (máximo 1200px) y muestra scroll horizontal */
.organigrama {
  width: 100%;
  /*max-width: 1200px;*/
  margin: 20px auto;
  border: 8px solid #ccc;
  border-radius: 10px;
  padding: 20px;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
}

/* Contenedor interno que crea Treant: se ajusta al contenido real */
.Treant {
  width: auto !important;
  min-width: max-content !important;
  display: inline-block !important;
  position: relative;
  margin: 0;
  padding: 0 !important;
  overflow: visible !important;
}
.Treant .Treant-container {
  width: auto !important;
  min-width: max-content !important;
  display: inline-block !important;
}
/* Cada nodo se ajusta a su contenido sin solaparse */
.custom-node {
  display: inline-block;
  vertical-align: top;
  margin: 0;
  border: 3px solid #000000;
  background: #293133;
  color: #fff;
  padding: 8px 12px; /* Aumenta el padding horizontal para dar "aire" */
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  text-align: left;
  white-space: nowrap;
  width: auto !important;
  min-width: max-content;
}
.custom-node img {
  width: 50px;
  height: 60px;
  margin-right: 8px;
  border-radius: 4px;
  vertical-align: middle;
}
.custom-node .info-dni {
  display: inline-block;
  vertical-align: middle;
}
.custom-node .info-dni .nombre {
  font-size: 14px;
  text-transform: uppercase;
  font-weight: bold;
}
.custom-node .info-dni .puesto {
  font-size: 12px;
  font-weight: normal;
  margin-top: 2px;
}
/* Aseguramos que los nodos generados por Treant no tengan ancho forzado */
.Treant .node {
  width: auto !important;
}
.custom-node .info-dni .puesto {
  text-align: center !important;
}

/* 
--------------------
publicaciones.php 
--------------------
*/

.filter-form {
  margin-bottom: 20px;
}
/* Los elementos del formulario se muestran en bloque para ocupar el 100% del ancho */
.filter-form label,
.filter-form input,
.filter-form select,
.filter-form button {
  display: block;
  width: 100%;
  margin-bottom: 10px;
}
.news-item { 
  display: flex;                /* Para que la imagen y el contenido queden en fila */
  align-items: flex-start; 
  border-bottom: 1px solid #ddd; 
  padding: 10px 0; 
}
.news-title { 
  font-size: 1.2em; 
  margin-bottom: 5px; 
}
.news-title:hover {
  text-decoration: underline;
  cursor:default;
}
.news-date { 
  font-size: 0.9em; 
  color: #555; 
  margin-bottom: 5px; 
}
.news-content { 
  margin-bottom: 10px; 
}

.read-more { 
  text-decoration: none; 
  color: #007BFF; 
}
/* Hover para el enlace "Ver más": cambia color y se subraya */
.read-more:hover {
  color: #293133;
  text-decoration: underline;
}
.pagination { margin-top: 20px; }
.pagination a { 
  margin: 0 5px; 
  padding: 5px 10px; 
  text-decoration: none; 
  background: #eee; 
  color: #333; 
  border-radius: 4px; 
}
.pagination a:hover {
  background: #555;
  color: #eee;
}
.pagination .active { 
  font-weight: bold; 
  background: #293133; 
  color: #ffffff; 
}
.disabled { 
  opacity: 0.5; 
  pointer-events: none; 
}
  
.btn-filtro {
  color:#293133;
  transition:color 0.3s, background-color 0.3s;
}
.btn-filtro:hover {
  color: #fff;
  background-color: #293133;
}

/* 
------------------------
publicacionesdetalle.php 
------------------------
*/

.news-title { 
  font-size: 1.5em; 
  margin: 20px 0 10px; 
}

.news-date { 
  font-size: 0.9em; 
  color: #555; 
  margin-bottom: 10px; 
}

.news-content { 
  margin-bottom: 10px; 
  text-align: justify; /* Texto justificado */
}
.news-image img { 
  width: 40%; 
  height: auto; 
  display: block; 
  margin: 0 auto; 
}
.back-link {
  display: block;
  margin-bottom: 30px;
  color: #007BFF;
  text-decoration: none;
  transition: color 0.3s;
}
.back-link:hover {
  color: #000000;
}