/*Génerico, HEADER, FOOTER*/
html {
  margin: 0;
  padding: 0;
}
body {
  font-family: "Inter";
  margin: 0;
  padding: 0;
}

html,
body {
  overflow-x: hidden;
}

a {
  all: unset;
  cursor: pointer;
}

i {
  font-size: 12px;
  opacity: 0.7;
}

#barraInfoBasicaHeader {
  background: linear-gradient(90deg, #60c4e5 0%, #1278c1 100%);
  color: white;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 25px;
  padding: 0.6rem 12rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.divIntermedio {
  gap: 1.5rem;
}

.horizontal {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#sectionNav {
  display: flex;
  justify-content: space-around;
}

#navegadorMenu {
  gap: 2rem;
  color: black;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  height: 7rem;
  margin: 0;
}

#navegadorMenu > li {
  list-style-type: none;
}

#navegadorMenu > li > a {
  text-decoration: none;
  color: black;
  text-transform: uppercase;
}

#navegadorMenu > li > a:hover {
  color: #007dbb;
  transition: ease 0.3s;
}

#sectionFooterEnlaces {
  background-color: #e5e5e5;
  padding: 2rem 0rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
}

#barraFooterJaeva {
  display: flex;
  background: linear-gradient(90deg, #1278c1 0%, #60c4e5 100%);
  height: 3rem;
  color: white;
  padding-left: 11rem;
  align-items: center;
}

#barraFooterInfo {
  margin-top: 2rem;
  justify-content: space-around;
  align-items: center;
}

#navegadorFooterPaginas {
  gap: 1rem;
  color: black;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  margin: 0;
  padding: 0 !important;
  align-items: center;
}

#navegadorFooterPaginas > li {
  list-style-type: none;
}

#navegadorFooterPaginas > li > a {
  text-decoration: none;
  color: black;
  text-transform: capitalize;
  font-weight: 400;
}

#navegadorFooterPaginas > li > a:hover {
  color: #007dbb;
  transition: ease 0.3s;
}

#navegadorFooterInfoLegal {
  gap: 2rem;
  color: black;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  height: 7rem;
  margin: 0;
  padding: 0 !important;
  align-items: center;
}

#navegadorFooterInfoLegal > li {
  list-style-type: none;
  text-decoration: none;
}

#navegadorFooterInfoLegal > li > a {
  text-decoration: none;
  color: black;
  text-transform: capitalize;
  font-weight: 400;
}

#navegadorFooterInfoLegal > li > a:hover {
  color: #007dbb;
  transition: ease 0.3s;
}

h5 {
  font-family: "Exo";
  font-weight: 700;
  font-size: 22px;
  line-height: 22px;
  text-transform: uppercase;
}

#webFinanciada {
  font-family: "Montserrat";
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: rgb(125, 125, 125);
}

#svgFinanciadoUEPRTR {
  width: 40rem;
  height: 5rem;
}

.imgBorderRadius {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 25px;
}

.buttonAzul {
  padding: 8px 16px;
  text-transform: uppercase;
  border: none;
  font-family: "Inter";
  background: linear-gradient(90deg, #60c4e5 0%, #1278c1 100%);
  background-size: 200% 100%;
  background-position: left;
  border-radius: 25px;
  color: white;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background-position 0.2s ease;
}

.buttonAzul:hover {
  background-position: right;
}

h2 {
  font-family: "Exo", "sans-serif";
  font-weight: 700;
  color: white;
  font-size: 45px;
  line-height: 45px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

h4 {
  font-family: "Roboto Slab", "sans-serif";
  font-weight: 600;
  color: white;
  font-size: 23px;
  line-height: 32px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.text-shadow {
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}
/*MAIN HEADER*/

.mainHeader {
  width: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% auto;
}

.mainHeader > div {
  gap: 0.1rem;
  padding: 4rem;
}

.mainHeader > div > h4 {
  margin-left: -2.5rem;
}
/*aside*/

.aside-toggle-button {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background: linear-gradient(90deg, #60c4e5 0%, #1278c1 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px 0 0 8px;
  cursor: pointer;
  z-index: 1000;
  font-weight: bold;
  font-size: 12px;

  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.info-aside {
  position: fixed;
  top: 0;
  right: -100%;
  height: 100%;
  width: 30%;
  max-width: 500px;
  background-color: #f8f8f8;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease-in-out;
  z-index: 999;
  overflow-y: auto;
}

.info-aside.open {
  right: 0;
}

.aside-content {
  padding: 2rem;
}

.close-button {
  background: none;
  border: none;
  font-size: 1.5rem;
  position: absolute;
  top: 10px;
  right: 20px;
  cursor: pointer;
}

.aside-toggle-button.hidden {
  opacity: 0;
  visibility: hidden;
}

/*INDICE*/

.sectionFormularioTeLlamamos {
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
}

.sectionFormularioTeLlamamos::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/educacion-ambiental-1-1024x683.jpg") center/cover
    no-repeat;
  filter: blur(8px);
  z-index: 0;
}

.te-llamamos {
  position: relative;
  z-index: 1;
  background-color: white;
  padding: 4.5rem 2rem;
  width: 22%;
  margin: 0 auto;
  border-radius: 25px;
  gap: 1rem;
}

h3 {
  font-family: "Exo", "sans-serif";
  font-weight: 700;
  color: rgb(0, 125, 187);
  font-size: 45px;
  line-height: 3rem;
  margin: 0;
}

h6 {
  font-family: "Inter", "sans-serif";
  font-weight: 600;
  color: rgb(0, 125, 187);
  font-size: 15px;
  line-height: 25px;
  margin: 0;
}

.input-text {
  border-radius: 25px;
  border: 1px rgb(0, 125, 187) solid;
  width: 80%;
  height: 30px;
  color: rgb(0, 125, 187);
  padding-left: 10px;
}

.input-text::placeholder {
  color: rgb(0, 125, 187);
}

.input-text:focus {
  border-radius: 25px;
  border: 1px rgb(0, 125, 187) solid;
  width: 80%;
  height: 30px;
  color: rgb(0, 148, 223);
  padding-left: 10px;
  outline: none;
}

.href {
  color: #007dbb;
  text-decoration: underline;
}

.formularioLlamamos {
  margin: 1rem 2rem;
  align-items: flex-start;
  gap: 1rem;
  font-family: "Inter";
  font-size: 15px;
  font-weight: 500;
}

.checkbox {
  border-radius: 50%;
  vertical-align: middle;
  border: 1px solid rgb(0, 125, 187);
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
  width: 1rem;
  height: 1rem;
  position: relative;
  background-color: white;
}

.checkbox:checked {
  background-color: white;
}

.checkbox:checked::after {
  content: "";
  position: absolute;
  top: 15%;
  left: 20%;
  width: 70%;
  height: 70%;
  background-color: rgb(0, 160, 240);
  border-radius: 50%;
}

.sectionQueOfrecemosJaeva {
  background: linear-gradient(90deg, #60c4e5 0%, #1278c1 100%);
  margin: 0;
  padding: 2rem;
}

.contenedorInfoImg {
  margin: 0 auto;
  background-color: white;
  border-radius: 25px;
  padding: 2rem;
  width: 75%;
  gap: 2rem;
}

.contenedorInfoImg > div > h3 {
  padding-bottom: 1rem !important;
  line-height: 3rem;
}

.contenedorInfoImg > img {
  width: 40rem;
  border-radius: 25px;
}

.contenedorInfoImg > div {
  align-items: flex-start !important;
  gap: 1.2rem;
}

.contenedorInfoImg > div > div {
  gap: 1rem;
}

.contenedorInfoImg > div > a {
  align-self: center;
}

.sectionFAQS {
  margin: 0 auto;
  width: 80%;
  margin-top: 2rem;
  border-radius: 25px;
}

.sectionFAQS > h3 {
  text-align: center;
  margin-bottom: 2rem;
}

.sectionFAQS > .vertical:nth-child(even) {
  background-color: #f0f0f0;
}

.sectionFAQS > .vertical:nth-child(odd) {
  background-color: #ffffff;
}

/* Opcional: un poco de espacio y redondeo para que se vea mejor */
.sectionFAQS > .vertical {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  text-align: left;
  align-items: flex-start;
  gap: 1rem;
  font-family: "Inter";
  font-family: 400;
  font-size: 18px;
  line-height: 25px;
}
.sectionFAQS > .vertical > .horizontal {
  gap: 1rem;
}

.sectionFAQS > .vertical > .horizontal > span:nth-child(odd) {
  color: #007dbb;
}

.sectionAhorraConNstrs {
  width: 80%;
  margin: 4rem auto;
  color: white;
  background: url("../img/jaeva-map.jpg");
  border-radius: 25px;
  padding-bottom: 5rem;
}

.sectionAhorraConNstrs > .horizontal {
  align-items: flex-start;
}

.sectionAhorraConNstrs > .horizontal > .vertical {
  width: 50%;
  margin: 2rem;
  gap: 1rem;
  justify-content: flex-start;
  padding-top: 2rem;
}

.sectionAhorraConNstrs > .horizontal > .vertical > * {
  color: white !important;
  text-align: left;
  align-self: flex-start;
}

.sectionAhorraConNstrs > .horizontal > .vertical > form {
  align-items: flex-start;
  gap: 2rem;
}

.sectionAhorraConNstrs > .horizontal > .vertical > form > input[type="text"] {
  border: white 1px solid;
  border-radius: 10px;
  outline: none;
  background-color: transparent;
  width: 100%;
  height: 3rem;
  text-align: left;
  font-family: "Exo";
  font-size: 18px;
  color: white;
}

.sectionAhorraConNstrs > .horizontal > .vertical > form > input[type="file"] {
  border: white 1px solid;
  border-radius: 10px;
  outline: none;
  background-color: transparent;
  width: 98%;
  text-align: left;
  font-family: "Exo";
  font-size: 18px;
  color: white;
  display: block;
  margin: 0 auto;
  text-align: left;
  padding: 10px;
}

/*NOSOTROS*/
.sectionImgText {
  width: 80%;
  border-radius: 25px;
  margin: 5rem auto;
  align-items: flex-start;
  gap: 2rem;
}

.sectionImgText > .vertical {
  width: 55%;
  align-items: flex-start;
  line-height: 1.5rem;
  gap: 1rem;
}

.sectionImgText > .vertical > h3 {
  line-height: 3rem;
}

.sectionImgText > img {
  width: 45%;
  border-radius: 25px;
}

.sectionImgText > .vertical > h3:nth-child(even) {
  color: black;
  line-height: 3rem;
}

/*STORE*/
.sectionImgText > .vertical > ul > li {
  margin-top: 1.5rem;
}

.sectionImgText > .vertical > h5 {
  margin: 0.5rem;
  margin-left: 0;
}

/*ENDESA*/
.backgroundGrey {
  background-color: #e5e5e5;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.endesa > .horizontal {
  gap: 2rem;
}

.endesa > .horizontal > .vertical {
  gap: 2rem;
  width: 55%;
}

.endesa > .horizontal > img {
  width: 45%;
}

.endesa {
  gap: 2rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.endesa > h3 {
  line-height: 3rem;
}

.endesa > h5 {
  margin: 0;
}

.endesa > .horizontal > .vertical > h5 {
  margin: 0 !important;
}

.endesa > * {
  color: black;
  width: 80%;
}

.endesa > img {
  width: 45%;
}

/*SERVICIOS*/

.whiteBoxContainer {
  margin: 0 auto;
  gap: 2rem;
  justify-content: center;
}

.whiteBox {
  background-color: white;
  border-radius: 25px;
  width: 16%;
  padding: 2rem;
  height: 28rem;
}

.bigIcon {
  font-size: 4rem;
}

/*NOTICIAS*/

.sectionPrecios {
  width: 80%;
  margin: 0 auto;
  text-align: justify;
}

.sectionPrecios > section {
  font-size: 14px;
  text-align: justify;
}

.sectionVentajas {
  text-align: justify;
}

.sectionInteresar {
  width: 80%;
  text-align: justify;
  display: flex;
  align-items: flex-start !important;
}

.sectionNoticias {
  padding: 2rem;
  width: 80%;
  margin: 0 auto;
}

.sectionNoticias h6 {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 0.5rem;
}

.sectionNoticias h5 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #222;
}

.contenedorNoticias {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem; /* Espacio entre las noticias */
}

.divNoticia {
  flex: 1 1 calc(33.333% - 1rem); /* 3 por fila con espacio */
  background-color: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.divNoticia img {
  width: 100%;
  height: 25vh;
}

.divNoticia div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: #666;
}

.divNoticia h4 {
  font-size: 1.2rem;
  padding: 0 1rem;
  margin: 1rem 0;
  color: #333;
  text-shadow: none;
}

.divNoticia button {
  margin: 0 1rem 1rem 1rem;
  padding: 0.5rem 1rem;
  background-color: #0074d9;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  align-self: flex-start;
}

.divNoticia button:hover {
  background-color: #005fa3;
}

.divTituloNoticia {
  width: 100%;
  text-align: center;
  background-color: #005fa3;
  color: white;
  height: 20vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.divTituloNoticia > h2 {
  margin: 0;
}

.divEtiquetasNoticia {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background-color: #e5e5e5;
  margin-bottom: 1rem;
  padding: 1rem;
}

.detalleNoticia {
  width: 80%;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
  display: flex;
  flex-direction: column;
}
.detalleNoticia > img {
  border-radius: 25px;
  margin-top: 2rem;
  width: 80%;
}

/* Responsivo para pantallas más pequeñas */
@media (max-width: 1024px) {
  .divNoticia {
    flex: 1 1 calc(55% - 1rem); /* 2 por fila */
  }
}

@media (max-width: 600px) {
  .divNoticia {
    flex: 1 1 100%; /* 1 por fila */
  }
}

/*CONTACTO*/
.sectionContacto {
  width: 80%;
  margin: 0 auto;
  padding: 4rem 0;
  gap: 2rem;
}

.te-llamamos2 {
  position: relative;
  z-index: 1;
  background-color: #f7f7f7;
  padding: 4.5rem 2rem;
  width: 100%;
  margin: 0 auto;
  border-radius: 25px;
  gap: 1rem;
}

.sectionGoogleMaps {
  width: 100%;
}

.sectionGoogleMaps > iframe {
  width: 100vw;
  height: 30vh;
}

/*Cookies*/
.sectionCookies {
  width: 25%;
  height: 32%;
  position: fixed;
  top: 60%;
  left: 71%;
  background-color: white;
  border-radius: 25px;
  padding: 2rem;
  border: 1px solid #007dbb36;
  display: none;
}

.sectionCookies > h6 {
  font-size: 16px;
  margin-bottom: 0.2rem;
}

.sectionCookies > span {
  font-size: 14px;
  text-align: justify;
  margin-bottom: 0.2rem;
}

.sectionCookies > .horizontal {
  gap: 0.5rem;
}

#preferenciasBox {
  display: none;
}

#sectionCookies > .vertical > .horizontal {
  background-color: #e5e5e5;
  padding: 0.2rem 0.8rem;
  border-radius: 25px;
  gap: 0.6rem;
  margin: 0.5rem 0;
}

#sectionCookies > .vertical {
  margin-bottom: 0.2rem;
}

#imgColaborador {
  height: 10rem;
}

/* ———————————————————————————————— */
/* Tabletas (≤1024px) */
/* ———————————————————————————————— */
@media (max-width: 1100px) {
  /* ———————————————————————————————— */
  /* Móviles (≤768px) */
  /* ———————————————————————————————— */
  body {
    width: 100%;
  }
  /* Reset de padding global */
  #barraInfoBasicaHeader {
    display: none;
  }
  .divIntermedio {
    flex-wrap: wrap;
    justify-content: center;
  }
  #imgEndesaColabHeader {
    display: none;
  }
  /* Logo y menú */
  #sectionNav {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  #navegadorMenu {
    flex-direction: row;
    gap: 0.5rem;
    height: auto;
    padding: 0;
  }
  #navegadorMenu > li > a {
    font-size: 12px;
  }

  #sectionNav > nav > ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Main Header */
  .mainHeader {
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto;
  }

  .mainHeader > .vertical {
    text-align: center;
  }

  .mainHeader > div {
    padding: 2rem 1rem;
  }

  .contenedorInfoImg > div > h3 {
    line-height: 3rem !important;
  }

  .sectionFAQS > h3 {
    line-height: 3rem !important;
  }

  /* Aside */
  .info-aside {
    width: 100%;
  }

  /* Formulario “Te llamamos” */
  .te-llamamos {
    width: 90%;
    padding: 2rem 1rem;
  }
  .input-text,
  .sectionAhorraConNstrs input[type="file"] {
    width: 60%;
    font-size: 16px;
  }

  /* Sección “Ahorra con nosotros” */
  .sectionAhorraConNstrs {
    width: fit-content;
    padding: 2rem 1rem 4rem;
    height: fit-content;
    margin: 0 auto !important;
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto;
  }
  .sectionAhorraConNstrs > .horizontal {
    flex-direction: column;
    padding: 0;
    gap: 1.5rem;
  }
  .sectionAhorraConNstrs > .horizontal > .vertical {
    flex: 1 1 100%;
    margin: 1rem 0;
    width: 100%;
  }

  /* FAQS */
  .sectionFAQS {
    width: 95%;
  }
  .sectionFAQS > .vertical {
    padding: 0.75rem;
  }

  /* Contenedor Info + Imagen */
  .contenedorInfoImg {
    width: 95%;
    flex-direction: column;
    padding: 1rem;
  }
  .contenedorInfoImg > img {
    width: 100%;
    margin-bottom: 1rem;
  }

  /* Footer legal y páginas */
  #sectionFooterEnlaces {
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
  }
  #navegadorFooterPaginas,
  #navegadorFooterInfoLegal {
    flex-direction: column;
    gap: 0.5rem;
  }
  #barraFooterJaeva {
    padding-left: 1rem;
    height: auto;
    text-align: center;
  }
  #barraFooterInfo {
    flex-direction: column;
    gap: 1rem;
  }

  #svgFinanciadoUEPRTR {
    width: 22rem;
  }

  .mainHeader > div > h4 {
    margin-left: 0rem;
  }

  .buttonAzul {
    text-align: center;
  }
  .sectionImgText {
    flex-direction: column;
  }

  .sectionImgText > .vertical {
    width: 100%;
  }

  .sectionImgText > img {
    width: 100%;
  }

  #imgColaborador {
    height: 5%;
    width: 90%;
  }

  .endesa > img {
    width: 90%;
  }

  .endesa > .horizontal {
    width: 100% !important;
    flex-direction: column;
  }

  .endesa > .horizontal > .vertical {
    width: 95%;
  }

  .whiteBoxContainer {
    margin: 0 auto;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  .whiteBox {
    background-color: white;
    border-radius: 25px;
    width: 70%;
    padding: 2rem;
    height: 28rem;
  }

  .bigIcon {
    font-size: 4rem;
  }

  .sectionContacto {
    flex-direction: column;
  }

  .te-llamamos2{
    width: 95%;
  }

  .sectionCookies{
    width: 80%;
    height: auto;
    position: fixed;
    top: 2%;
    left: 1.8%;
    background-color: white;
    border-radius: 25px;
    padding: 2rem;
    border: 1px solid #007dbb36;
    display: none;
    z-index: 099999;
    text-align: justify;
    border: 1px solid #005fa3;
  }

  .sectionCookies > .horizontal{
    justify-content: center !important;
    gap: 0.2rem;
  }

  .justify-center{
    width: 90% !important;
  }

  .contenedorNoticias{
    flex-wrap: wrap;
  }

   .sectionCookies > .horizontal > a{
    text-align: left;
   } 
}

/*PRIORIDAD*/
.text-left {
  text-align: left;
  align-items: flex-start;
}

.text-center {
  text-align: center;
}

.text-justify {
  text-align: justify;
}

.align-left {
  align-items: flex-start !important;
}

.justify-center {
  width: 23vw;
  justify-content: space-between;
}

label {
  cursor: pointer !important;
}

#formEnviadoBien,
#formEnviadoMal {
  display: none;
}
