/* Theme Name: Moixent
Description: Un tema desarrollado para LaBase
Author: W. Wallace
Version: 4.10
*/

/* ======================================================= */
/* 0. GENERAL */
/* ======================================================= */

body {
    background-color: #D0E4F2;
    margin: 0;
    padding: 0;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: #454545;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-smooth: always;
    text-rendering: optimizeLegibility;
    font-size: 18px;

}

.blue {color: #0071BD;}
.header {box-sizing: border-box; display: grid; grid-template-rows: max-content max-content max-content 1fr; min-height: 100vh; min-height: 100svh; position: relative; background: transparent linear-gradient(110deg, #0267AC 0%, #89CCD4 100%) 0% 0% no-repeat padding-box; color: #fff;}
.idiomas { background-color: #004879; font-size: 16px;}
.idiomas-content {width: 90%; margin: 0 auto; max-width: 1366px; display: grid;   box-sizing: border-box; color: #fff; padding-top: 12px; padding-bottom: 12px; grid-template-columns: max-content max-content; column-gap: 8px;}
.header-content {width: 90%; margin: 0 auto; max-width: 1366px; display: grid; grid-template-columns: 1fr max-content;  box-sizing: border-box; color: #fff; padding-top: 8px; padding-bottom: 16px; align-content: center; align-items: center;}
.bienvenida-content {width: 90%; margin: 0 auto; max-width: 1366px; display: grid; height: 100%; grid-template-columns: repeat(9,1fr);  box-sizing: border-box; color: #fff; padding-top: 8px; padding-bottom: 48px; }
.bienvenida-content p {width: 80%; font-size: 18px; line-height: 140%;}
.bienvenida {min-height: 100%;}
.bienvenida-content > div {height: 100%;}
.bienvenida-content > div:first-of-type {grid-column: span 5; display: grid; padding-top: 48px; align-content: flex-start; align-items: flex-start;}
.bienvenida-content > div:last-of-type {grid-column: span 4; display: grid; align-content: flex-end; align-items: flex-end;}
img.portada {width: 100%; border-radius: 8px;}
.header-content > div:first-of-type {display: grid; align-content: center; align-items: center; grid-template-columns: 1fr; column-gap: 8px; font-size: 18px; padding-top: 8px; row-gap: 8px;}
.header-content > div:last-of-type {padding-top: 8px;}
.header-content a {text-decoration: none; color: inherit;}
.header h1 {font-size: calc(30px + 3vw); line-height: 100%; font-weight: 500; margin: 0; letter-spacing: -0.25px; }
.header h2 {font-size: calc(30px + 0.5vw); line-height: 110%;  font-weight: 500; margin: 0; letter-spacing: -0.25px; color: #fff; padding: 16px 0 16px 0; }

.back {background-image: url(https://pruebas.santantonirafelbunyol.com/wp-content/themes/moixent/imagenes/back.jpg); background-size: cover; width: 90%; margin: 0 auto; max-width: 1366px; display: grid; grid-template-columns: max-content 1fr; border-radius: 8px; box-sizing: border-box; }
.cerca {width: 90%; margin: 0 auto; max-width: 1366px;  box-sizing: border-box;}

.navegacion {width: 100%;  margin: 0 auto; display: grid; justify-content: center; justify-items: center;   bottom: 32px;   z-index: 99999;   position: fixed;
 }
.nav {

  width: max-content;

  display: grid;
  justify-self: center;
  text-align: center;
  justify-self: center;
    box-sizing: border-box;

}

.boton {
  padding: 15px 20px;
  font-size: 18px;
  background-color: rgba(242,242,242,0.98);
  border-radius: 8px;
  box-sizing: border-box;
}

.boton svg {
  padding-left: 8px;
}

.boton:hover {
  background-color: rgba(247,247,247,0.98);
}

.boton ul {
  list-style: none;
  padding: unset;
  display: grid;
  justify-self: center;
  justify-content: center;
  justify-items: center;

}

.boton ul li {
padding: 15px 20px;
  font-weight: 500;
  width: max-content;
    justify-self: center;


}

.boton ul a {color: inherit; text-decoration: none;}
.boton ul li:hover {
padding: 15px 20px;
background-color: #ffffff;
  border-radius: 8px;

}

#disparador {
  cursor: pointer;
  font-weight: 500;
}

#categorias {
  min-width: 50vw;
  max-height: 0; /* colapsado inicialmente */
  overflow: hidden; /* oculta el contenido al cerrar */
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: 
    max-height 0.4s ease-in-out,
    opacity 0.3s ease-in-out,
    transform 0.3s ease-in-out;
    display: none;
      box-sizing: border-box;
        overflow-y: scroll;


}

/* visible */
#categorias.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  max-height: 80vh; /* o lo que necesites según tu contenido */
}


.boton svg {
  padding-left: 8px;
  transition: transform 0.3s ease-in-out; /* animación suave */
}

/* voltear verticalmente cuando el menú está abierto */
.boton.expandido svg {
  transform: scaleY(-1);
}

.benvinguda {width: 90%; margin: 0 auto; max-width: 1366px; display: grid; grid-template-columns: max-content 1fr; border-radius: 8px; box-sizing: border-box; margin-top: 48px;}
.benvinguda-content  {grid-column: span 6; width: 100%; margin: 0 auto;  display: grid; grid-template-columns: repeat(6,1fr);   box-sizing: border-box;}
.benvinguda-content > div {grid-column: span 6; padding: 16px 32px 64px 32px;}
.benvinguda-content p { font-size: 18px; line-height: 125%;}
.benvinguda-content h2 {font-size: calc(30px + 0.5vw); line-height: 110%;  font-weight: 500; margin-top: 0;}
.benvinguda-content h4 {font-size: calc(20px + 0.5vw); line-height: 110%; font-weight: 500; border-bottom: 1px solid rgba(0,0,0,0.1); padding-bottom: 16px;}
.benvinguda-contenido {display: grid; grid-template-columns: 1fr 1px 1fr; column-gap: 32px; box-sizing: border-box; width: 100%;}
.benvinguda-contenido p {margin-top: 0;}
.benvinguda {background-color: #ffffff;}
.entrades {width: 90%; margin: 0 auto; max-width: 1366px; display: grid; grid-template-columns: max-content 1fr; border-radius: 8px 8px 0 0; box-sizing: border-box;   margin-top: 16px;}
.filete {border-left: 1px solid rgba(0,0,0,0.1);}
.entrades-content  { grid-column: span 6; display: grid; grid-template-columns: repeat(6,1fr); column-gap: 32px;  box-sizing: border-box; padding-top: 20px; }
.entrades-content > div {grid-column: span 6; padding-top: 20px; padding-bottom: 10px;}
.entrades-content h2 {font-size: calc(20px + 0.5vw); line-height: 110%; font-weight: 500;}

#entry-modal-overlay {display: none; position: fixed; top: 32px; right: 32px; width: 100%; height: calc(100% - 32px);  z-index: 999999; box-sizing: border-box;}
#entry-modal-content {background: transparent linear-gradient(145deg, #0267AC 0%, #89CCD4 100%) 0% 0% no-repeat padding-box; color: #fff; margin: auto 0 auto auto; padding: 64px 32px 64px 32px; width: 90%; max-width: 480px;  height: calc(100% - 32px); overflow-y: auto; position: relative; box-sizing: border-box; border-radius: 8px;}
#close-modal-button {position: absolute; top: 32px; left: 32px; font-size: 18px; cursor: pointer; background: none; color: #fff; box-shadow: none; border: none; padding: 0;}
#modal-entry-body {}

.content-modal {display: grid; grid-template-rows: max-content max-content max-content 1fr; row-gap: 16px; height: 100%;}
.content-modal h3 {font-size: 22px; line-height: 120%; font-weight: 500;}
.content-modal h4 {font-size: 16px; line-height: 125%; font-weight: 500; color:#e8e8e8;}
.content-modal p {font-size: 16px; line-height: 125%; font-weight: 400; color:#e8e8e8;}
.post-meta-info {align-self: flex-end; color:#e8e8e8;}
#modal-entry-body {height: 100%;}
.file-title {color: #fff; font-weight: 500;}

.thumb {width: 180px; aspect-ratio: 1/1; object-fit: cover; filter: grayscale(1); border-radius: 2px;}

.post {display: grid; grid-template-columns: repeat(12,1fr); column-gap: 32px;  margin: 0 auto; padding-top: 20px; padding-bottom: 30px; box-sizing: border-box; padding: 16px; background-color: #ffffff; margin-bottom: 16px; border-radius: 8px; align-content: center;
    align-items: center;}
.post > div:first-of-type {grid-column: span 2;}
.post > div:nth-of-type(2) {grid-column: span 7; }
.post h3 a {font-size: calc(20px + 0.5vw); line-height: 110%;  color: #0071BD; text-decoration: none; font-weight: 400;}
.post img {width: 100%;}
.post > div:last-of-type {grid-column: span 3;}
.post-category a {text-decoration: none; color: #0071BD; font-size: 18px;}
.posts-list-for-modal {     box-sizing: border-box;
    padding-top: 20px;
    border-radius: 0 0 8px 8px;
    padding-bottom: 40px;
    max-width: 1366px;
    margin: 0 auto;
    width: 90%;
}
.category-posts-list { margin: 0 auto; max-width: 1366px; box-sizing: border-box; 

border-radius: 8px; padding-bottom: 40px;}
.cats {width: 90%; margin: 0 auto; max-width: 1366px; padding-top: 40px; }

/* Estilo básico para el formulario */
.search-form {
    display: grid; /* Alinea el campo y el botón */
    margin: 10px 0 10px 0;
}

.search-field {
    flex-grow: 1; /* El campo ocupa el espacio restante */
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    box-shadow: none;
        font-size: 18px;
            font-family: "Space Grotesk", sans-serif;
width: 100%;
background-color: #fff;

}
.srch {background-color: #fff; padding: 16px; box-sizing: border-box; border-radius: 8px 8px 0 0;}
.search-submit {
padding: 0;
    background-color: #fff !important;
    color: #0071BD;
    font-weight: 500;
    border: none;
    border-radius: 0 0 8px 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 18px;
    font-family: "Space Grotesk", sans-serif;
    padding: 0 32px 32px 32px;
    text-align: left;
    /* width: max-content; */

}



/* Ocultar el texto de la etiqueta para no duplicarlo si ya hay placeholder */
.search-form .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

p.post-date {margin-top: 4px;}
p.post-date-check {margin-bottom: 0;}

.footer { margin: 0 auto;  margin-top: 48px; background-color: #fff; box-sizing: border-box; padding: 48px 16px 16px 16px;}
.footer-content  {grid-column: span 6; width: 90%; max-width: 1366px; margin: 0 auto;  display: grid; grid-template-columns: 1fr 1px 1fr; column-gap: 32px;   box-sizing: border-box;}
.footer-content p {max-width: 80%;}
#catas ul {list-style: none; padding: 0;}
#catas a { color: inherit; text-decoration: none; font-size: 18px;}
#catas li {padding-bottom: 8px;}
.footer h5 {font-size: 18px; color: #0071BD; font-weight: 400; text-transform: uppercase;}

.subfooter { margin: 0 auto;   background-color: #fff; box-sizing: border-box; padding: 16px 16px 96px 16px;}
.subfooter-content  {grid-column: span 6; width: 90%; max-width: 1366px; margin: 0 auto;  display: grid; grid-template-rows: max-content 1px 1fr; row-gap: 8px;   box-sizing: border-box;}
.subfooter-content > div:last-of-type {display: flex; column-gap: 8px; display: none;}
.subfooter-content > div:first-of-type {display: flex; column-gap: 16px; border-top: 1px solid rgba(0,0,0,0.1);}
.subfooter a {color: inherit; text-decoration: none;}

.buscador {}
.buscador-content {width: 90%; max-width: 1366px; margin: 0 auto;}
/* Oculta el contenedor del formulario por defecto */
.busca-oculto {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
        padding-top: 8px;
    padding-bottom: 16px;
}

/* Clase que JS añadirá para hacerlo visible */
.busca-oculto.visible {
    display: grid; /* O 'flex', 'grid', dependiendo de tu layout */
    opacity: 1;
}
.subbusca {background-color: #fff; border-radius: 0; color:#aaaaaa; font-style: italic; padding: 0 32px 8px 32px;
}
.subbusca p { border-top: 1px solid rgba(0,0,0,0.1); padding: 8px 0 8px 0; margin: 0; font-size: 14px; margin-top:8px; }
ul.poly {list-style: none; margin: 0; padding: 0; display: flex; column-gap: 8px;}
ul.poly li a {color: #fff; text-decoration: none;}
.current-lang{
    font-weight: bold;
    text-decoration: none; /* Opcional: quita el subrayado si lo tiene */
}
.logo-footer p {margin: 0;}
ul.main-menu {list-style: none; padding: 0; display: flex; column-gap: 16px;}
@media screen and (max-width: 980px) {
.bienvenida-content {

grid-template-columns: 1fr;
grid-template-rows: 1fr;
row-gap: 16px;

}

.benvinguda-contenido {
    display: grid;
    grid-template-columns: unset;
}
.post > div:nth-of-type(1) {
    grid-column: span 2;
}
.post > div:nth-of-type(2) {
    grid-column: span 10;

}
.post > div:nth-of-type(3) {
    grid-column: span 12;
}
.post  h3 {margin-bottom: 0;}

}
@media screen and (max-width: 680px) {
.post > div:nth-of-type(1) {
    grid-column: span 3;
}
.post > div:nth-of-type(2) {
    grid-column: span 12;

}
.post > div:nth-of-type(3) {
    grid-column: span 12;
}
.footer-content, .subfooter-content {grid-template-columns: unset;}
#catas ul {margin-top: 32px;}
.subfooter-content > div:first-of-type {display: block;}
ul.main-menu {

    display: unset;

}
.boton ul li {

    width: min-content;
}
.post {column-gap: unset;}
}