/*
Theme Name: Tema Ing de procesos
Theme URI: http://example.com
Author: Alejandro Cortes
Author URI: http://example.com
Description: Un tema personalizado desde cero
Version: 1.0
*/

/* Estilos principales y variables */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "BebasNeuePro-SemiExpRegular", sans-serif;
}

:root {
  --main-green-color: #00a499;
  --main-orange-color: #e77500;
  --main-grey-color: #394049;
  --main-purple-color: #8c4799;
  --main-blue-color: #498bca;
  --main-yellow-color: #eaaa00;
  --main-red-color: #c8102e;
}

body {
  margin: 0 auto;
  color: #394049;
  background-repeat: no-repeat;
  font-size: 1.2rem;
  display: grid;
  height: 100dvh;
  width: 100dvw;
  grid-template-columns: 1fr;
  grid-template-rows: min-content min-content 1fr min-content;
  grid-auto-rows: min-content;
}

h1 {
  font-family: "BebasNeuePro-SemiExpRegular", sans-serif;
  font-size: 3em;
}

h2 {
  font-family: "BebasNeuePro-SemiExpRegular", sans-serif;
  font-size: 2.5em;
}

h3 {
  font-family: "BebasNeuePro-SemiExpRegular", sans-serif;
  font-size: 2rem;
  color: var(--main-grey-color);
}

a {
  text-decoration: none;
}

ul {
  list-style-type: none;
}

a:hover > h1,
a:hover > h2,
a:hover > h3,
a:hover > p {
  transform: scale(1.1);
  filter: brightness(120%);
}

/* Pagina de inicio*/

/* Estilos Para el carrusel*/

.container-carousel {
  position: relative;
  width: 100%;
  height: 50dvh;
  background-color: #e0e0e0;
  overflow: hidden;
}

.carruseles {
  width: 1000%;
  height: 100%;
  display: flex;
  overflow: hidden;
}

/* Estilos Para el Slider del inicio*/

.slider-section {
  height: 100%;
}

.slider-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-left,
.btn-right {
  position: absolute;
  top: 50%;
  font-size: 3.5rem;
  background-color: transparent;
  border-radius: 50%;
  font-weight: 800;
  cursor: pointer;
  color: var(--main-green-color);
  transform: translate(0, -50%);
  height: 50px;
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 7px;
  transition: 0.5s ease;
  user-select: none;
}

.btn-left:hover,
.btn-right:hover {
  background-color: #333333d4;
  color: #fff;
}

.btn-left {
  left: 10px;
  padding-right: 5px;
}

.btn-right {
  right: 10px;
  padding-left: 5px;
}

/* Estilos Para el Header*/

.header {
  border-top: 11px solid red;
  border-image: linear-gradient(
    90deg,
    var(--main-green-color) 33%,
    var(--main-purple-color) 33%,
    var(--main-purple-color) 66%,
    var(--main-orange-color) 66%
  );
  border-image-slice: 1;
  padding: 10px;
  padding-top: 20px;
  display: grid;
  padding-inline: 7dvw;
}

/* Estilos Para el Menu en el header*/


.menu {
  width: 100%;
  display: flex;
  gap: 20px;
  align-items: center;
  align-content: end;
  justify-content: end;
}
.menu-item {
  padding-block: 10px;
  margin-block: 10px;
  &:hover {
    scale: 1.15;
    filter: brightness(120%);
  }
}
.menu-item a {
  font-weight: 100;
  font-size: 1.3rem;
  color: grey;
}
.logo {
  width: fit-content;
  & img {
    width: clamp(300px, 25vw, 100%);
    max-width: 100%;
    max-height: auto;
  }
}
.menu-btn {
  display: none;
}

/* Estilos Para el Menu en moviles*/
@media (max-width: 768px) {
  .menu {
    z-index: 999;
    display: none;
    position: fixed;
    left: -50%;
    top: 0;
    flex-direction: column;
    transition: left 0.5s ease-out, display 0.5s ease allow-discrete;
    overflow: hidden;
    width: max-content;
    height: 100dvh;
    background-color: var(--main-orange-color);
    place-content: center;
    li {
      width: 100%;
      border-bottom: 1px solid white;
      margin-left: 20px;
      padding-right: 30px;
      a {
        display: block;
        width: 100%;
        color: white;
      }
    }
  }

  .menu-btn {
    display: grid;
    color: var(--main-green-color);
    width: fit-content;
    background-color: transparent;
    cursor: pointer;
    place-self: end;
    border: none;
    text-align: left;
    & span {
      place-self: center;
      grid-column: 1;
      width: 30px;
      margin-right: 10px;
      border: 2px solid var(--main-green-color);
    }
    & p {
      font-size: 2rem;
      grid-column: 2;
      grid-row: 1/4;
    }
  }

  .menu.menu-open {
    display: grid;
    transition: left 0.5s ease-out allow-discrete;
    left: 0;
    @starting-style {
      left: -50%;
    }
  }
}

/* Estilos del para el contenido (todo bajo el header y sobre el footer) */
.content {
  z-index: 0;
}

/* Estilos para seccion con informacion */
.sectionMore {
  display: flex;
  flex-wrap: wrap-reverse;
  overflow: hidden;

  max-width: 100dvw;
  gap: 20px;
  padding: 10px 20px;
  aside {
    flex: 1 1 200px;
    padding-left: 3vw;
  }
  section {
    flex: 2 1 400px;
    width: -webkit-fill-available;
    width: -moz-fill-available;
    width: fill-available;
  }
}
/* Lo centramos en caso de ser una web en pc o tablet */
@media screen and (min-width: 960px) {
  .sectionMore {
    padding-inline: 8vw;
  }
}

/* Estilos para aside que muestra las subpaginas de una pagina */
.subpages {
  list-style-type: disc;
  color: grey;
  margin-bottom: 5vh;
  li {
    padding: 10px;
    font-size: 1.8rem;
    border-bottom: 1px solid var(--main-orange-color);
    &:hover {
      filter: brightness(110%);
    }
    &::marker {
      font-size: 2rem;
    }
    a {
      color: grey;
    }
  }
}

/* Estilos para el aside que muestra opciones */
.opcionesinfo {
  display: grid;
  gap: 10px;
  li {
    background-color: var(--main-green-color);
    a {
      display: block;
      padding: 5px 15px;
      font-size: 2.7rem;
      color: white;
      font-weight: bold;
    }
    &:hover {
      scale: 1.03;
      filter: brightness(110%);
    }
  }
}

/* Estilos para seccion de informacion */
.cardinfo {
  display: grid;
  gap: 20px;
  header > a h4 {
    font-size: xx-large;
    color: var(--main-green-color);
    padding-bottom: 7px;
    &:hover {
      color: grey;
    }
  }
  p {
    text-indent: 10px;
    text-wrap: pretty;
  }
  footer a {
    font-style: italic;
    color: var(--main-green-color);
    &:hover {
      color: grey;
    }
  }
}

/* Estilos para la seccion de noticias */
.cardNoticia {
  display: grid;
  justify-items: center;
  grid-template-rows: min-content min-content 1fr min-content min-content;
  grid-auto-rows: min-content;
  row-gap: 5px;
  header,
  a {
    font-weight: bolder;
    font-size: 1.5rem;
    color: var(--main-green-color);
    &:hover {
      color: grey;
    }
  }
}
.imgNoticia {
  aspect-ratio: 16 / 7;
  width: 100%;
  height: 100%;
  img {
    aspect-ratio: 16 / 7;
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}
.separadorNoticias {
  border: 0px solid transparent;
  width: 100%;
  height: 4px;
  background-color: var(--main-green-color);
  place-self: end;
}
.contenedorNoticias {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  /* grid-auto-rows: 1fr; */
  gap: 40px;
}
.imagenNoticia {
  min-width: 250px;
  width: 100%;
  height: auto;
}
.moreNoticias {
  font-size: 1.7rem;
  font-weight: 700;
  text-align: center;
  color: var(--main-orange-color);
  grid-column: 1/-1;
}

/* Estilos para el footer */
.footer {
  background-color: var(--main-grey-color);
  width: 100%;
  margin-top: 30px;
  padding-top: 15px;
  hr {
    width: 100%;
    height: 5px;
    background-color: var(--main-green-color);
    border: 0px solid transparent;
  }
}
.footerimages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  grid-auto-rows: 1fr;
  gap: 100px;
  margin: 40px 20px;
  place-items: center;
  p {
    color: white;
  }
  img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}
/* Estilo para cambiar el por defecto de los nav links*/
.navigation {
  grid-column: 1 / -1;
  width: 100%;
  text-align: center;
}
.nav-links,
.nav-links span,
.nav-links a {
  font-size: 1.3rem;
  color: var(--main-green-color);
  margin-inline: 10px;
}
.nav-links span:hover,
.nav-links a:hover {
  filter: brightness(110%);
}
/* Estilo usado en los pages para que las imagenes mantengan su formato */
.pageContent {
  img {
    width: 100%;
    height: auto;
  }
  figure {
    overflow-wrap: anywhere;
  }
}

/* Estilo para la seccion de profesores*/
.avatar {
  display: grid;
  width: 100%;
  place-items: center;
  grid-template-rows: 1fr min-content min-content min-content;
  img {
    width: 50%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
  }
  h3 {
    color: var(--main-grey-color);
    font-size: 1.5rem;
  }
  .cargo {
    color: var(--main-orange-color);
    font-weight: 800;
    font-size: 1.4rem;
    text-align: center;
  }
  p {
    color: grey;
  }
}

.avatar-vacio {
  .nametophoto {
    width: 50%;
    aspect-ratio: 1 / 1;
    height: auto;
    display: grid;
    place-content: center;
    border-radius: 50%;
    background-color: var(--main-green-color);
    overflow-wrap: anywhere;
    padding: 10px;
  }
}

.custom-profesor-content {
  display: grid;
  height: 100%;
  grid-auto-rows: min-content;
  .aligncenter {
    place-self: center;
  }
  .alignright {
    place-self: end;
  }
}

/* Mejora para ver los archivos subidos */
.wp-block-file__button {
  color: white;
  background-color: var(--main-grey-color);
  padding: 7px 15px;
}
.wp-block-file {
  margin-block: 5px;
  a:nth-child(1) {
    font-size: 1.3rem;
    color: var(--main-green-color);
    &:hover {
      scale: 1.05;
      color: grey;
    }
  }
}

/* Estilos para hacer las tablas responsive */
.responsive-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 20px;
  grid-auto-rows: 1fr;
}
@media screen and (max-width: 1024px) {
  .responsive-table {
    gap: 10px;
    margin-top: 20px;
  }
  .column-div {
    border: 1px solid lightgray;
    border-radius: 9px;
    padding: 10px;
    margin: 0;
  }
  .header-div {
    background-color: rgb(188, 213, 254);
  }
}
.column-div {
  display: grid;
  margin: 10px;
}
.header-div {
  font-weight: bold;
  color: white;
  background-color: var(--main-grey-color);
  padding: 7px;
  text-align: center;
  border-radius: 7px;
}

.cell-div {
  border-radius: 7px;
  background-color: #e3e3e3;
  padding: 15px 10px;
  border-bottom: 1px solid white;
  text-wrap: balance;
  width: 100%;
  height: 100%;
  display: grid;
  p {
    align-self: center;
  }
}

img.lazy {
  width: 100%;
  display: block;
  background: linear-gradient(
    to bottom right,
    var(--main-green-color),
    var(--main-purple-color)
  );
}

.wp-block-embed.alignleft {
  float: left;
  margin: 0.5em 0 0.5em 1em;
}

.wp-block-embed.alignright {
  float: right;
  margin: 0.5em 0 0.5em 1em;
}

.titulo-profesores {
  grid-column: 1/-1;
  margin-left: 20px;
}
.lista-profesores {
  grid-column: 1/-1;
  margin-left: 36px;
  li {
    color: #666;
  }
  li > p {
    font-size: 1.3rem;
    color: #666;
  }
}

.except-de-noticias {
  color: var(--main-green-color);
  font-style: italic;
  margin-block: 20px;
}

.bloque-post {
  margin-bottom: 20px;
}

.wp-block-table thead {
  background-color: var(--main-orange-color);
  border-bottom: 0px solid transparent;
  p {
    color: white;
  }
  strong {
    color: white;
    font-weight: bolders;
  }
}

.wp-block-table {
  background-color: initial;
  border-bottom: 1px solid #f0f0f0;
  border-collapse: inherit;
  border-spacing: 0;
}

.wp-block-table tbody tr:nth-child(even) {
  background-color: #f0f0f0;
}

.wp-block-table td,
.wp-block-table th {
  border-color: #f0f0f0;
}
@media screen and (width < 620px) {
  .wp-block-table {
    font-size: small;
  }
}

#loading-indicator {
  font-size: 2rem;
  color: var(--main-blue-color);
  margin-left: 10px;
  place-self: center;
}

/* Spinner (Opcional) */
#loading-indicator::before {
  content: "";
  display: inline-block;
  margin-right: 5px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--main-blue-color);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.successSend {
  color: darkgreen;
  padding: 15px 30px;
  background-color: #e2eeda;
  text-align: center;
  border: 0.5px solid green;
  border-radius: 7px;
}
.failedSend {
  color: darkred;
  padding: 15px 30px;
  background-color: #eedada;
  text-align: center;
  border: 0.5px solid purple;
  border-radius: 7px;
}
#contact-form-perso {
  margin-top: 20px;
  margin-inline: 5vw;
  display: grid;
  gap: 10px;
  label {
    color: gray;
    font-size: 1.5rem;
  }
  input,
  textarea,
  select {
    border: 1px solid lightgray;
    border-radius: 7px;
    padding: 10px 10px;
    font-size: 1.3rem;
    font-weight: lighter;
    &:focus-visible {
      outline: var(--main-purple-color) auto 1px;
    }
  }
  textarea {
    resize: vertical;
    min-height: 70px;
    max-height: 300px;
  }
  button {
    background-color: var(--main-green-color);
    color: white;
    font-size: 1.7rem;
    border: 0px solid transparent;
    border-radius: 10px;
    width: fit-content;
    padding: 10px 20px;
    place-self: center;
    &:hover {
      filter: brightness(110%);
      scale: 1.05;
    }
    &:disabled{
      background-color: grey;
      text-decoration: line-through;
      pointer-events: none;
    }
  }
}

.current-menu-item  a{
  color: var(--main-green-color);
}
.current-submenu-item > a{
  color: var(--main-orange-color) !important;
}
/*Estilo para thumbnail de noticias */
img.attachment-full.size-full.wp-post-image {
    width: 100%;
    height: auto;
    max-height: 50vh;
    object-fit: scale-down;
}
