@font-face {
  font-family: "Geomanist-light";
  src: url("./fuentes/geomanist-light.ttf") format("truetype");
  font-style: normal;
  font-weight: normal;
}
@font-face {
  font-family: "Geomanist-regular";
  src: url("./fuentes/Geomanist-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: normal;
}
body {
  margin: 0;
}

section {
  width: 100%;
  height: 56vh;
  min-height: 500px !important;
}

a {
  color: white;
  text-decoration: none;
  cursor: pointer;
}
a:visited {
  color: white;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  cursor: pointer;
}

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

.cont-modal {
  width: 90%;
  max-width: 800px;
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease-in-out;
  overflow-y: auto;
}

.close {
  display: flex;
  justify-content: flex-end;
  padding: 10px;
  background-color: #f2f2f2;
}
.oculto{
  display: none;
}

.cont-modal span {
  font-size: 2rem;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  border-radius: 50%;
  padding: 5px;
}

.cont-modal span:hover {
  background-color: #333;
  color: #fff;
}

.cont-img {
  width: 100%;
  height: 250px;
  background-color: #eee;
}

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

.txt-modal {
  padding: 20px 30px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
   max-height: 300px;   /* 👈 límite de altura */
  overflow-y: auto;
}

.txt-modal h2 {
  margin-top: 0;
  font-size: 1.8rem;
  color: #444;
  margin-bottom: 10px;
}

.txt-modal p {
  font-size: 1rem;
  margin-bottom: 15px;
  line-height: 1.6;
  text-align: justify;
}

.txt-modal ul {
  padding-left: 20px;
  margin-bottom: 15px;
}

.txt-modal ul li {
  font-size: 1rem;
  margin-bottom: 10px;
  line-height: 1.5;
}

.txt-modal .nota {
  font-size: 0.95rem;
  font-style: italic;
  color: #aa0000;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.contenedor-banner {
  width: 100%;
  height: 100%;
  position: relative;
}
.logo-empresa {
  position: absolute;
  width: 45%;
  height: 50%;
  border: 1px solid;
  clip-path: polygon(0 0, 100% 0%, 0 100%, 0% 100%);
  background-color: #f7a340;
  z-index: 3;
}
.logo-empresa img {
  width: 50%;
}
.img-banner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.img-banner img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.img-banner figure {
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.img-banner figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-banner img.active {
  opacity: 1;
}
.img-banner figure.active {
  opacity: 1;
  position: relative;
}
figure {
  margin: 0;
}
figcaption {
  position: absolute;
  bottom: 0;
  width: 100%;
  margin-bottom: 20px;
  padding: 15px;
  background-color: rgba(0, 0, 0, 0.63);
  color: white;
  text-align: center;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.5;
}
figcaption > span {
  font-size: 1.6rem;
}
.menu {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 50%;
  padding: 22px;
  max-width: 950px;
}
.menu ul {
  list-style-type: none;
  padding: 0;
  display: flex;
  color: white;
  justify-content: space-between;
  align-items: center;
  font-family: "geomanist-light";
  font-weight: 600;
  margin-top: 26px;
}
.menu ul > li {
  background-color: #f7a340;
  padding: 9px 17px;
  font-size: 1rem;
}
.triangulo-icon {
  width: 9px;
  height: auto;
  transform: rotate(180deg);
}
.profile {
  width: 40px;
}

/*SRGUNDA PARTE*/
.anuncios {
  width: 100%;
  height: 640px !important;
  max-width: 1500px !important;
  min-height: 640px !important;
  max-height: 1800px !important;
  margin: 0 auto;
}
.contenedor-anuncios {
  width: 100%;
  height: 100%;
  display: flex;
}
.contenedor-anuncios div {
  flex: 0 0 33.3%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.ppr,
.sueños,
.inversiones {
  position: relative;
}

.s {
  width: 100%;
  height: 50.7%;
  position: absolute;
}
.s img {
  width: 100%;
  height: 70%;
  position: absolute;
  top: 0;
}
.i {
  width: 100%;
  height: 50.7%;
  position: absolute;
}
.i img {
  width: 100%;
  height: 70%;
  position: absolute;
  bottom: 0;
}

/*Noticias*/
.noticias {
  background-color: #b1b1b1;
  color: white;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 2.4rem;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  padding: 45px;
  align-items: center;
}
.noticias span {
  font-size: 5rem;
  font-weight: bold;
}
.noticias:hover {
  text-decoration: underline;
}
/*footer*/
footer {
  background-color: rgba(240, 163, 69, 255);
  color: white;
  padding: 40px;
}
.contenedor-footer {
  width: 100%;
  display: flex;
  gap: 20px;
}
.contenedor-footer div {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.f-titulo {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 0.875rem;
}

.f-contenido {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-weight: 100;
  font-size: 0.875rem;
}
.f-contenido ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.img-footer {
  width: 90%;
  height: auto;
  right: 0;
}
.pie-pagina {
  list-style-type: none;
  padding: 0;
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 0.875rem;
  font-weight: 100;
}
.separador {
  width: 2px;
  height: 100%;
  background-color: white;
}
.pie-pagina li {
  padding: 2px;
}
.pie-pagina img {
  width: 55px;
}

/*MENU*/

ul,
ol {
  list-style: none;
}

.nav{
    width: 100%;
    position: relative;
}
.nav > li {
  float: left;
  padding: 10px;
  position: relative;
}

.nav li a {
  color: #fff;
  text-decoration: none;
  display: block;
  color: black;
  padding: 10px;
}

.nav li a:hover {
  background-color: #8f8f8f5e;
}

.nav li ul {
  display: none;
  position: absolute;
  top: 8px;
  min-width: 140px;
    position: absolute;
  
}

.nav li:hover > ul {
  display: block;
}

.nav li ul li {
    width: 100%;
  position: relative;
  background-color: white !important;
  color: black;
  border-bottom: 1px solid black;
}

.nav li ul li ul {
  right: -140px;
  top: 0px;
}

.nav li ul li:hover > ul {
  display: block;
}


.menu-toggle, .menu-toggleC{
  display: none;
}

@media (max-width:799px) {
 
    .contenedor-anuncios{
        height: 70%;
    }
    .contenedor-footer{
        width: 100%;
        flex-direction: column;
    }
    .contenedor-footer div{
        width: 100% !important;
        font-size: 2rem;
    }
    .img-footer{
        width: 70%;
        margin: 0 auto;
    }
    .pie-pagina{
        font-size: 2rem;
        flex-direction: column;
    }
    
    .menu-toggle, .menu-toggleC{
  display: flex;
}
  .menu-toggle{
    font-size: 3rem;
    color: white;
    cursor: pointer;
    z-index: 4;
  }
    .menu{
      width: 70%;
      height: 100vh;
        position: fixed;
        z-index: 3;
        padding: 0;
        background-color: white;
        left: 0;
        display: none;
    }
    .menu.active{
      display: block;
    }
    
    .nav{
      width: 90%;
      flex-direction: column;
      position: absolute;
      padding: 0;
      gap: 10px;
    }
    .nav li{
      width: 100%;
      font-size: 1.2rem !important; 
      
    }



.nav li ul {
 display: none;
  position: static;   /* 👈 en lugar de absolute */
  min-width: 100%;    /* ocupa todo el ancho del padre */
  background: #f9f9f9;
  margin: 0;
  padding: 0;
}

.nav li:hover > ul {
  display: block;
}

.nav li ul li {
  width: 100%;
  position: relative;
  background-color: white !important;
  color: black;
  border-bottom: 1px solid #ddd;
}

.nav li ul li a {
  color: black;
  padding: 8px 12px;
}

.nav li ul li:hover {
  background-color: #f1f1f1;
}

/* Submenú de segundo nivel */
.nav li ul li ul {
  top: 0;
  left: 100%; /* a la derecha del submenu padre */
  border: 1px solid #ccc;
}

.nav li ul li:hover > ul {
  display: block;
}
     

}