/*
Theme Name: Transparencia uasd
Theme URI: https://uasd.edu.do/transparencia
Author: Marlon Santana DGTI
Author URI: https://uasd.edu.do/
Description: Un tema de WordPress basado en Bootstrap 5 para el portal de transparencia.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: transparencia
*/


:root {
  --ciencias: #00BAEC;
  --humanidades: #7B56A4;
  --economia: #F47B20;
  --artes: #B38E05;
  --educacion: #911422;
  --ingenieria: #2F5BA7;
  --medicina: #F3FA33;
  --agronomia: #00A651;
  --juridica: #FF1C07;
  --fondogris: #929292;
  --universidad: #17499e;
  --iconos:#0077ff;
	--color:#505050;
}


body {
  font-family: Arial, sans-serif;
  color: var(--color);
}
.contenedor-search-form{
  position: relative;
}
.boton-search{
  position: absolute;
  right: 40px;
  padding: 10px;
  border-radius: 40px;
  margin-top: -40px;
  font-size: 14px;
  height: 40px;
}
.boton-search:hover{
  background-color: var(--universidad);
  color: white;
}
.boton-search img{
  height: 20px;
}
.breadcrumb, .breadcrumb a {
  background: none;
  font-size: 14;
  text-decoration: none;
  color: var(--fondogris);
}

.transparencia-toolbar svg {
    width: 28px;
    height: 28px;
    fill: #444;
    transition: fill 0.2s ease;
}

.transparencia-toolbar a:hover svg {
    fill: #0056b3;
}


.contenido{
  margin-left: 40px;
}

.sidebar {
  background-color: white;
  height: 100%;
  box-shadow: 16px 0px 20px -20px rgba(0,0,0,0.45);
  padding-top: 10px;
  padding-bottom: 10px;
  
}
.sidebar>ul>li {
  list-style-type: none;
} 
.sidebar >ul>li> a {
  text-decoration: none;
  color: #000;
  padding: 10px;
  display: block;
  margin: 10px 0px;
}
.sidebar a:hover {
  background-color: #e9ecef;
  border-right: 7px solid var(--iconos);
}
.sidebar ul>li.current_page_item {
  background-color: #e9ecef;
  border-right: 7px solid var(--iconos);
}


.sidebar-menu > li {
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sidebar-menu > li:last-child {
  border-bottom: none;
}

/*.sidebar-menu .current-menu-item > a,
.sidebar-menu .current-menu-ancestor > a {
  background-color: #e9ecef;
  border-right: 7px solid var(--iconos, #007aff);
  font-weight: bold;
  color: #007aff;
}*/

.main-content {
  padding: 20px;
}

/* Oculta submenús por defecto */
.sidebar-menu .sub-menu {
  display: none;
  margin-left: 15px;
  padding-left: 10px;
  border-left: 2px solid #e9ecef;
  background: #f9f9f9;
}

/* Muestra submenú cuando el padre tiene la clase 'open' */
.sidebar-menu li.open > .sub-menu {
  display: block;
}

/* Añade un cursor para indicar que es desplegable */
.sidebar-menu li.menu-item-has-children > a {
  cursor: pointer;
  position: relative;
}

.sidebar-menu li.menu-item-has-children > a::after {
  content: "▼";
  font-size: 10px;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.sub-menu {
	text-transform: uppercase;
  background-color: #f9f9f9;
  height: 100%;
  padding-top: 10px;
  padding-bottom: 10px;
  text-decoration: none;
}

.sub-menu a {
  padding: 6px 0px;
  background-color: #f9f9f9;
  text-decoration: none;
  color: black
}

.sub-menu>ul>li {
  list-style-type: none;
} 
.sub-menu >ul>li> a {
  text-decoration: none;
  color: #000;
  padding: 10px;
  display: block;
  margin: 10px 0px;
}
.sub-menu a:hover {
  background-color: #e9ecef;
  border-right: 7px solid var(--iconos);
}
.sub-menu ul>li.current_page_item {
  background-color: #e9ecef;
  border-right: 7px solid var(--iconos);
}

.sidebar-menu .sub-menu li {
  width: 100%;
  background-color: white;
}

.sidebar-menu .sub-menu a {
  display: block;
  width: 100%;
  padding: 10px 20px;
  box-sizing: border-box;
}

.sidebar-menu .sub-menu {
  display: none;
  margin-left: 15px;
  padding-left: 10px;
  background: #f9f9f9;
}
.sidebar-menu li.open > .sub-menu {
  display: block;
}
.sidebar-menu li.menu-item-has-children > a {
  cursor: pointer;
  position: relative;
}
.sidebar-menu li.menu-item-has-children > a::after {
  content: "▼";
  font-size: 10px;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.header {
  background-color: var(--universidad);
  color: white;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.vl {
  border-left: 2px solid #e9ecef;
  height: 80px;
}
.header img {
  max-height: 60px;
}

.search-banner{
  padding-top: 10px;
  padding-bottom: 10px;
  padding-right: 10px;
  padding-left: -10px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.menu-search{
  display: flex;
  align-items: center;
}
.menu-search a {
  color: white;
  text-decoration: none;
  padding: 10px;
}
wp-block-table thead th:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.wp-block-table thead th:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}
.wp-block-table table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border:none !important;
    border-spacing: 0px 10px !important;
}

.wp-block-table table th {
    background-color: #ECECEC;
    font-weight: bold;
    color: #707070;
    padding: 12px;
    text-align: left;
    text-transform: uppercase;
}

.wp-block-table table td {
    background-color: #FAFAFA;
    color: #707070;
    padding: 12px;
    border-radius: 12px;
}

.wp-block-table table thead tr {
    border-radius: 10px;
}

.wp-block-table .icon-table img {
    width: 44px;
    height:44px;
    margin-left: 5px;
}

/* Clase personalizada para botones pequeños en acordeones */

.btn-pequeño .wp-block-button__link,
.btn-pequeño.wp-block-button__link {
  font-size: 0.85rem !IMPORTANT;
  padding: 0.4rem 0.8rem;
  line-height: 1.2;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.panel li {
  list-style: none;
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
}

.panel li p {
  margin-bottom: 5px;
  color: #333;
}

.panel li .btn {
  display: inline-block;
  padding: 16px 8px;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 50px;
  transition: background 0.2s;
}

.panel li .btn-primary {
  background: #0077ff;
  color: #fff;
  margin-bottom: 5px;
}

.panel li .btn-primary:hover {
  background: #0056b3;
}

/* ----- */

.form-search {
	padding-left: 10px;
}

.menu-search {
	padding-left: 5px;
}

/*
.form-search input {
  padding: 7px;
  border: none;
  border-radius: 5px;
  margin-right: 10px;
}
.form-search button {
  padding: 7px;
  border: none;
  border-radius: 5px;
  background-color: var(--universidad);
  color: white;
}*/

.btn-ver {
  background-color: #0077ff;
  color: #fff;
  width: 15%;
  text-align: center;
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  text-decoration: none;
}

.accordion {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.accordion .btn-ver {
  margin-left: auto;
}

.accordion {
  background-color: #e9e9e9;
  color: #222;
  cursor: pointer;
  padding: 10px;
  width: 80%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 18px;
  border-radius: 20px;
  margin-bottom: 5px;
  transition: background 0.2s;
}
.accordion.active, .accordion:hover {
  background-color: #d0e6ff;
}

.elementos-acordeon a {
	text-decoration: none;
}

.panel {
  padding: 0 18px;
  display: none;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 5px;
}

ul, ol {
  list-style: none;
}

/* Submenú oculto por defecto y posicionado a la derecha */
.sidebar-menu .sub-menu {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  min-width: 320px !important;
  margin-left: 0;
  padding-left: 0;
  z-index: 1000;
}

/* El padre debe ser relativo para que el submenú se posicione bien */
.sidebar-menu li.menu-item-has-children {
  position: relative;
}

/* Mostrar submenú al hacer hover en el padre */
.sidebar-menu li.menu-item-has-children:hover > .sub-menu {
  display: block;
}

/* Opcional: flecha solo en padres con submenú */
.sidebar-menu li.menu-item-has-children > a::after {
  content: "▶";
  font-size: 8px;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-30%);
}

.accesos-directos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px; /* Espacio entre imágenes */
  width: 100%;
}

.accesos-directos a {
  flex: 1 1 120px; /* Las imágenes crecen y se encogen, mínimo 120px */
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 100px;
}

.accesos-directos img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  background: #f8f9fa;
  margin-bottom: 0;
}

.footer > div {
  flex: 1 1 300px;
  min-width: 250px;
  padding: 16px;
}

/* Titulos en negrita */
.footer p.titulo,
.footer h3 {
  font-weight: bold;
  margin-bottom: 6px;
}

/* Texto pequeño y centrado para términos de uso */
.footer-legal {
  text-align: center;
  font-size: 0.9em;
  color: #666;
  margin-top: 12px;
}

.footer-legal a {
  color: #007aff;
  text-decoration: underline;
  font-size: 0.9em;
  margin: 0 4px;
}

.atencionciudadano {
  font-size: 0.95em;
  text-align: right;
  color: #444;
}

.atencionciudadano a {
  text-decoration: none;
  color: #007aff;
  border-bottom: 1px dotted #007aff;
  transition: border-bottom 0.2s, color 0.2s;
}

.atencionciudadano a:hover {
  color: #0056b3;
  border-bottom: 1px solid #0056b3;
}