.recursos-admin {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 25px;
  box-sizing: border-box;
  font-family: "Altivo", Arial, sans-serif;
}

.recurso-card,
.recurso-memorias {
  background: #ffffff;
  border: 1px solid #dceaf4;
  border-left: 6px solid #00a5d8;
  border-radius: 16px;
  min-height: 78px;
  padding: 18px 20px;
  box-shadow: 0 5px 16px rgba(16, 42, 91, 0.10);
  display: flex;
  align-items: center;
  gap: 14px;
  color: #152957 !important;
  text-decoration: none !important;
  box-sizing: border-box;
  transition: all 0.25s ease;
  position: relative;
}

.recurso-card:hover,
.recurso-memorias:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(16, 42, 91, 0.16);
  border-left-color: #fdba14;
  background: #f8fcff;
}

.recurso-icono {
  width: 42px;
  min-width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #eaf8ff;
  color: #00a5d8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.recurso-texto {
  font-size: 15px;
  line-height: 1.25;
  font-weight: 800;
  color: #152957;
}

.recurso-card-largo {
  grid-column: span 2;
}

.recurso-card-nuevo {
  border-left-color: #fdba14;
}

.badge-nuevo {
  background: #e60000;
  color: #fff700;
  font-size: 10px;
  font-weight: 900;
  padding: 4px 7px;
  border-radius: 6px;
  margin-left: auto;
}

/* DESPLEGABLE MEMORIAS */
.recurso-memorias {
  display: block;
  padding: 0;
  overflow: hidden;
}

.recurso-memorias summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.recurso-memorias summary::-webkit-details-marker {
  display: none;
}

.recurso-flecha {
  margin-left: auto;
  font-size: 22px;
  font-weight: 900;
  color: #00a5d8;
}

.recurso-memorias[open] .recurso-flecha {
  transform: rotate(180deg);
}

.memorias-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 0 20px 20px 76px;
  box-sizing: border-box;
}

.memorias-grid a {
  background: #f1f8fc;
  border: 1px solid #dceaf4;
  color: #152957 !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  border-radius: 10px;
  padding: 9px 6px;
  transition: all 0.25s ease;
}

.memorias-grid a:hover {
  background: #00a5d8;
  color: #ffffff !important;
}

/* MOBILE */
@media screen and (max-width: 768px) {
  .recursos-admin {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 15px;
  }

  .recurso-card,
  .recurso-card-largo {
    grid-column: span 1;
  }

  .recurso-card,
  .recurso-memorias summary {
    min-height: 74px;
    padding: 16px;
  }

  .recurso-texto {
    font-size: 14px;
  }

  .memorias-grid {
    grid-template-columns: repeat(3, 1fr);
    padding: 0 16px 18px 16px;
  }

  .badge-nuevo {
    position: absolute;
    right: 12px;
    top: 8px;
  }
}

 /*AUTORIDADES CARDS*/

  .autoridades-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        max-width: 1500px;
        margin: auto;
        padding: 0 20px;
      }

      .autoridad-card {
        background-color: #fff;
        padding: 20px;
        border-radius: 12px;
        font-family: 'Altivo', sans-serif;
        display: flex;
        flex-direction: column;
        align-items: center;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
      }

      .autoridad-card .imageWrapper img {
        width: 100%;
        height: 360px;
        object-fit: cover;
        border-radius: 10px;
      }

      .autoridad-info {
        margin-top: 15px;
        text-align: left;
        width: 100%;
      }

      .autoridad-info .nombre {
        font-size: 20px;
        font-weight: bold;
        color: #192854;
		margin: 0px 20px;
      }

      .autoridad-info .cargo {
        color: #24b2e3;
        font-weight: bold;
        font-size: 16px;
		margin: 0px 20px;
      }

      .autoridad-info .bio {
        color: #333;
        font-size: 12px;
        line-height: 1.5;
        text-align: justify;
        margin: 10px 20px;
		padding-bottom: 10px;
      }

      .autoridad-info .estudios {
        color: #000;
        font-weight: medium;
        font-size: 12px;
		margin: 0px 20px;
      }

     .voz-comunidad {
       font-family: 'Lato', sans-serif;
       background-color: #fff;
       padding-bottom: 80px;
      }

    .voz-contenido {
       display: grid;
       grid-template-columns: 1fr 2fr;
       grid-template-rows: auto auto auto;
       gap: 30px;
       max-width: 1400px;
       margin: 40px auto;
       padding: 0 40px;
       align-items: start;
       box-sizing: border-box;
     }

    .voz-columna.izquierda {
       display: flex;
       flex-direction: column;
       gap: 25px;
     }

    .voz-columna.central {
       width: 100%;
     }

     .voz-fila-inferior {
       grid-column: 1 / span 2;
       display: grid;
       grid-template-columns: 1fr 2fr;
       gap: 30px;
       width: 100%;
       align-items: start;
     }
  
      @media screen and (max-width: 992px) {
        .autoridades-grid {
          grid-template-columns: repeat(2, 1fr);
        }
      }

      @media screen and (max-width: 768px) {
        .autoridades-grid {
          grid-template-columns: 1fr;
        }
      }

  /*Termina autoridades*/

.btn-layout {
    color: #fff;
    background-color: #192854;
    padding: 10px 20px;
    border-radius: 10px;
}

.btn-layout:hover {
    background-color: #004ea2;
    color: #fff;
}

.services-container {
    display: flex;

    & .sppb-row {
        display: flex;
        flex-direction: column;

        & .sppb-addon-content {
            display: flex;
            padding: 20px;
            width: 100%;
            gap: 10px;
            border-bottom: solid 4px #1e87f0;

            & img {
                width: 400px;
            }

            & .sppb-media-content {
                width: -webkit-fill-available
            }

            & .sppb-addon-title {
                padding: 10px;
                width: 100%;
            }

            & .sppb-addon-text {
                text-align: justify;
                background-color: unset;
                color: #000;
            }
        }
    }
}


.com-finder__form {
    & .com-finder__search-legend {
        font-size: 30px;
        font-weight: 700;
    }

    & .form-inline {
        display: flex;
        flex-direction: column;

        & label {
            display: block;
            font-size: 24px;
            margin-bottom: 10px;
        }

        & .input-group {
            display: flex;
            flex-wrap: nowrap;
            width: 100%;
            gap: 10px;

            & .awesomplete {
                width: 100%;
            }

            & input,
            & select {
                width: 100%;
                padding: 10px;
                height: 50px;
            }
        }
    }

    & input,
    & select {
        width: 100%;
        padding: 10px;
        height: 50px;
    }
}

.result__item {
    padding: 20px;
    background-color: #fff;
    border-radius: 20px;
    border: unset;
    box-shadow: 0 0 5px 0 #c7c6c6;
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: 80px auto;
    gap: 20px;

    & .result__image {
        margin: auto;
        grid-row: span 2;
        border-radius: 20px;
        overflow: hidden;
        max-width: 600px;
    }

    & * {
        border: unset;
    }

    & .result__title-text {
        font-weight: 700;
        font-size: 28px;
        color: #1e87f0;
        transition: all 0.3s;
        text-decoration: none !important;
        grid-column: 2/3;

    }

    & .result__title-text:hover {
        font-weight: 700;
        font-size: 28px;
        color: #105498;
    }

    & .result__title {
        grid-column: 2/3;
    }

    & .result__title-url {
        display: none;
    }

    & .result__description {
        grid-column: 2/3;
        min-height: 80px;
    }

    & .result__taxonomy {
        grid-column: span 2;
    }
}


.result__item+.result__item {
    border-top: unset;
    margin-top: 1.5em;
    padding-top: 1.5em;
}

.gridBlog,
.com-finder {
    display: grid;
    grid-template-columns: 370px calc(100% - 400px);
    gap: 30px;
    max-width: 1400px;
    width: 100%;
    /* width: 1400px; */
}

.blog .clearfix {
    display: none;
}

.com-finder__form,
#categoryFinder {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    background-color: #fff;
    max-width: 380px;
    height: fit-content;
    box-shadow: 0 0 5px 0 #e5e2e2;
    display: flex;
    flex-direction: column;
    gap: 10px;
    & .input-group {
        display: flex;
        flex-direction: column;
    }

    & legend {
        font-size: 18px;
    }

    & button {
        padding: 10px;
        text-align: center;
        border: none;
        background-color: #007bff;
        color: #fff;
        border-radius: 10px;
        transition: all 0.5s;
    }
}

.breve-mineduc {
    & .item-image {
        display: flex;
        & img {
            /* height: 400px !important; */
            width: 100% !important;
            object-fit: contain;
            border-radius: 10px;
            overflow:hidden;
        }
    }

    & .blog-item {
        .item-content {
            background-color: #fff;
            border-radius: 10px;
            padding: 20px;
            box-shadow: 0 0 3px 0 #eee;
            max-height: unset !important;
            overflow: hidden;
        }
    }
}

.modal-content {
    background-color: #fff;
    padding: 0px;
    border-radius: 5px;
    width: auto !important;
    height: calc(100vh - 80px);
    text-align: center;
    &
    img, & .modal-body, & .container-banner, & .mod-banners, & .banneritem {
        height: 100%;
        max-height: 700px;
        margin: auto;
        padding: 0;
        width: auto !important;
        object-fit: cover;
    }
    &
    h4 {
        font-family: 'Altivo',sans-serif;
    font-size: 18px;
    font-weight: 300;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    color: #3071ff;
    font-size: 24px;
    padding-top: 10px;
    }
    & .btn {
    background-color: unset;
    }
}
/* Estilo general para todos los enlaces en la lista */
.files-container a {
    display: block;
    padding: 10px 15px;
    margin: 5px 0;
    text-decoration: none;
    color: #fff;
    background-color: #007bff;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.files-container a:hover {
    background-color: #0056b3;
    transform: scale(1.05);
    color: #fff;
}

/* Subniveles: Estilo para listas anidadas */
.files-container ul {
    margin-left: 20px; /* SangrÃ­a para subniveles */
    padding-left: 0; /* Evitar sangrÃ­a adicional */
    list-style: none; /* Oculta viÃ±etas */
}

.files-container ul a {
    background-color: #192854;
}

.files-container ul ul a {
    background-color: #192854;
    color: #333;
}

.files-container ul ul ul a {
    background-color: #192854;
}

/* Opcional: Estilo para resaltar el texto */
.files-container a .name {
    font-weight: bold;
}
/* Estilo general para los contenedores */
.com-content-categories__items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
}
.com-content-categories__item-title {
    width: 100%;
    align-items: center;
    justify-content: center;
}

/* Estilo para cada ítem */
.com-content-categories__item {
    flex: 1 1 calc(33.333% - 20px); /* Tres columnas */
    box-sizing: border-box;
    /* height: 100%; */
}

/* Enlace con apariencia de botón */
.com-content-categories__item a {
    display: block;
    text-decoration: none;
    color: white;
    background-color: #007bff;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    transition: transform 0.2s, background-color 0.3s ease;
}

/* Efectos al pasar el mouse */
.com-content-categories__item a:hover {
    background-color: #192854;
    transform: translateY(-5px);
}

.com-content-categories__item-title-wrapper {
    height: 100%;
}

/* Ajustes de texto dentro de botones */
.com-content-categories__item a {
    white-space: normal; /* Permite saltos de línea en texto largo */
    line-height: 1.4;
    height: 100%;
    width: 100%;
    align-items: center;
    display: flex;
    justify-content: center;
}
#sppb-addon-1546935716493 .sppb-icon {
    margin-bottom: 15px;
    width: 110px !important;
}

@media (max-width: 800px) {
    .content-menu {
        & li {
            width: calc(100%);
        }
    }

    .team-container {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;

        & .p-2 {
            max-width: 350px;
        }
    }

    .hero {
        background-color: #f6f6f6;
        width: 100%;
        box-shadow: 0 0 5px 0px #888;
        /* transform: translateX(-50%); */
        height: 200px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        overflow: hidden;
        width: calc(100vw - 0px);
        padding: 0px 20px;
        justify-self: center;
        background-repeat: no-repeat;
        background-size: cover;

        & h1,
        & h2,
        & h3,
        & p,
        & a,
        & ul {
            font-family: "Raleway", sans-serif;
            color: #000;
            max-width: 1000px;
            width: 100%;
        }

        & *,
        & :after,
        & :before {
            -webkit-box-sizing: border-box;
            box-sizing: border-box;
        }

        & .hero__item {
            padding-left: 0px;
        }

        & .hero__item:last-child {
            padding-left: 0;
            padding-right: 50px;
        }

        & .hero__item .title {
            position: relative;
        }

        & .hero__item h1 {
            font-size: 24px !important;
            position: relative;
            color: #3b62b8;
            /* box-shadow:  0 0 5px 0#fff; */
            /* text-decoration: dotted; */
            z-index: 10;
        }

        & .hero__item img {
            z-index: 2;
            position: relative;
            opacity: 0;
            right: -1000px;
        }

        & .boxes {
            position: relative;
        }

        & .boxes__box {
            min-width: 30px;
            min-height: 30px;
            background-color: #0D284F;
            position: absolute;
            top: 40px;
            left: -20px;
        }

        & .boxes__box:first-child {
            top: -210px;
            left: 0;
        }

        & .boxes__box:nth-child(2) {
            background-color: #113365;
            bottom: -50px;
            left: -90px;
            top: auto;
            height: 60px;
            width: 60px;
        }

        & .boxes__box:nth-child(3) {
            background-color: #103161;
            top: -20px;
            right: 40px;
            left: auto;
            height: 50px;
            width: 50px;
        }

        & .boxes__box:nth-child(4) {
            background-color: #12386e;
            top: 50px;
            left: -60px;
            height: 40px;
            width: 40px;
        }

        & .boxes__box:nth-child(5) {
            background-color: #0e2c58;
            right: -50px;
            top: auto;
            left: auto;
            bottom: -40px;
            height: 80px;
            width: 80px;
        }
    }

    .team-container {
        display: flex;
        justify-content: center;

        & * {
            box-sizing: border-box !important;
            padding: 0px;
            transition: all 0.5s;
        }

        & .p-2 {
            display: grid;
            grid-template-rows: 400px 150px;
            gap: 10px;
            overflow: hidden;
            border: solid 1px #bababa;
            padding: 0px !important;
            margin: 0px !important;
            border-radius: 10px;
            position: relative;
            width: 380px;

            & .imageWrapper {
                height: 100%;
                overflow: hidden;
                position: relative;
                border-radius: unset;

                & img {
                    height: 100%;
                    width: 100%;
                    object-fit: cover;
                    object-position: center;
                    margin: 0px !important;
                    border-radius: unset;
                }

                & .cover-layout {
                    position: absolute;
                    height: 100%;
                    width: 100%;
                    transform: translateX(-100%);
                    background-color: #007bffad;
                }
            }

            & .imageWrapper:hover .cover-layout {
                transform: translateX(0%);
            }

            & * {
                text-align: left !important;
            }

            & .container {
                padding: 20px;

                & div {
                    color: #444;
                    font-size: 24px !important;
                    padding-bottom: 5px
                }

                & p {
                    border-bottom: none;
                    color: #727272;
                }
            }

        }
    }

    .gridBlog,
    .com-finder {
        display: grid;
        grid-template-columns: calc(100%);
        gap: 30px;
        max-width: 1400px;
        width: 100%;
        /* width: 1400px; */
    }

    #categoryFinder {
        width: 100%;
        max-width: unset;
    }
    .modal-content {
        background-color: #fff;
        padding: 0px;
        border-radius: 5px;
        width: 100% !important;
        height: calc(100vh - 100px);
        text-align: center; 
    }
}