/**
 * Theme Name:     Twenty Twenty-Three Child
 * Author:         the WordPress team
 * Template:       twentytwentythree
 * Text Domain:	   twenty-twenty-three-child
 * Description:    Twenty Twenty-Three is designed to take advantage of the new design tools introduced in WordPress 6.1. With a clean, blank base as a starting point, this default theme includes ten diverse style variations created by members of the WordPress community. Whether you want to build a complex or incredibly simple website, you can do it quickly and intuitively through the bundled styles or dive into creation and full customization yourself.
 */

div .flex {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

div .flex-block {
  display: inline-flex;
}

@media screen and (max-width: 600px) {
  div .flex {
    flex-direction: column;
  }
  div .flex-block {
    display: block;
  }
}

div .box {
  transform: translate(-50%, -50%);
}

div .hide {
  display: none;
}

select {
  /* Reset Select */
  appearance: none;
  outline: 10px red;
  border: 0;
  box-shadow: none;
  /* Personalize */
  flex: 1;
  padding: 0 1em;
  color: #fff;
  background-color: #629462;
  background-image: none;
  cursor: pointer;
}

/* Remove IE arrow */
select::-ms-expand {
  display: none;
}

.label {
  display: block;
  font-size: 1.2em;
  color: #fff;
  margin-bottom: 10px;
  margin-left: 6px;
}

.label-sm {
  width: 120px !important;
}

/* Custom Select wrapper */
.select {
  position: relative;
  display: flex;
  width: 200px;
  height: 40px;
  border-radius: 0.25em;
  overflow: hidden;
  margin-left: 10px;
  margin-right: 2px;
}

.select-small {
  width: 120px;
}

.select-high {
  width: 400px;
}

/* Arrow */
.select::after {
  content: '\25BC';
  position: absolute;
  top: 0;
  right: 0;
  padding: 6px 12px;
  background-color: #3f753f;
  transition: 0.25s all ease;
  pointer-events: none;
}

/* Transition */
.select:hover::after {
  color: #f39c12;
}

.filter-button {
  margin-left: 10px;
  position: relative;
  display: flex;
  width: 100px;
  height: 40px;
  border-radius: 0.25em;
}

.filter-button button[type='submit'].filter {
  background-color: #86a586;
  padding: 8px 12px !important;
  margin-top: 0px !important;
  border: 0px !important;
  display: block;
  text-align: center;
  font-size: medium;
  color: white;
}

.first-letter-navigator {
  margin: 8px 0px;
}
.first-letter-navigator .letter-link {
  display: inline-block;
  margin: 0 2px;
  padding: 8px 12px;
  background: #ffffff;
  border-radius: 3px;
  text-decoration: none;
  color: #333;
}
.first-letter-navigator .letter-link:hover {
  background: rgb(8, 90, 0);
  color: white;
}

#breadcrumbs .del:last-child {
  margin-left: 16px;
}

.active-menu {
  font-weight: bold;
}

/** Terminos Glosario ***/
.termino-grid {
  display: grid;
  grid-template-columns: 1f;
  gap: 12px;
  padding: 16px;
  justify-content: center; /* centra las columnas */
}

@media (min-width: 768px) {
  .termino-grid {
    grid-template-columns: repeat(2, 1fr); /* 3 columnas en desktop */
  }
}

@media (min-width: 1024px) {
  .termino-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columnas en desktop */
  }
}

.termino-item {
  background-color: #f0f0f0;
  font-size: 14px;
  color: #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 8px;
  min-width: 360px;
}

.open-modal-button {
  margin-right: 8px;
  padding: 8px 16px;
  background-color: #005a00;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  min-width: 100px;
  text-align: center;
}
.open-modal-button:hover {
  background-color: rgb(28, 128, 28);
}

.modal-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #fff;
  padding: 20px;
  max-width: 600px;
  border-radius: 8px;
  position: relative;
}

.modal-title {
  color: #005a00;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

.modal-body {
  color: black;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}
