html, body {
  width: 100%;
  overflow-x: hidden;
}

body{position: relative;
    z-index: -2;}
@media (max-width: 768px) {
  .top{bottom:100px !important;}
  #primera,
  .hero,
  .hero * {
    max-width: 100vw !important;
  }

  .grid-hover {
    display: none !important; /* esto suele ser el culpable del desborde */
  }

  body {
    overflow-x: hidden !important;
  }
  #primera h1 {
    font-size: 52px;
    line-height: 54px;
    top: 40%;
    padding: 25px;
}
 .donde {
       font-size: 88px !important;
        line-height: 85px !important;
        top: -64vh !important;
        padding: 25px !important;
        text-align: center !important;
        left: 0 !important;
        right: 0 !important;
    }
.atv{bottom: -30px !important;
    left: -28px !important;}

    .proyecto h2 {
        font-size: 42px !important;
        line-height: 42px !important;
            top: -11px;
    }
    .hero-slide h1 {
   
    font-size: 53px !important;}
    .imgp1{position: relative !important;}
     .row{margin-top: 0px !important;}
    .p1{font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    padding-left: 80px !important;
    padding-right: 80px !important;
    padding-bottom: 0px !important;margin-top: 40px !important;
    padding-top: 0px !important;}
    .p12{font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    padding-left: 80px !important;
    padding-right: 80px !important;
    padding-bottom: 0px !important;margin-top: 0px !important;margin-bottom: 40px !important;
    padding-top: 0px !important;}
    .p2{margin-top: 0px !important;}
  .barrio-texto p{margin-top: 0px !important;}
  .asombro {margin-bottom:100vh !important;}
  .proyecto h2 {
    z-index: 999999;
    font-size: 45px !important;
    line-height: 45px !important;
    left: -10px;
}
.slider-container{height: 53vh !important;}
.liv{    position: relative  !important;
    margin-left: 0px  !important;
    margin-top: 50px  !important;}
    .proyecto .btn-info{margin-top: 20px !important;}
    .livp{padding-left: 40px !important;
    z-index: 999;
    padding-right: 40px !important;}
    .obra{font-size: 85px !important;
    position: absolute;
    left: 0 !important;
    top: 40px !important;
    right: 0 !important;}
    .nost{font-size: 85px !important;
    position: absolute;
    left: 0 !important;
    bottom: 20px !important;
    right: 0 !important;}
    .footer-links {
    margin-top: 0;
    text-align: center;
}
.e4{margin-top: 0px !important;}
.barrio-mapa{margin-top: 0px !important;}
    body {
        overflow-x: hidden !important;
        z-index: -2;
        position: relative;
    }
    @media (max-width: 768px) {
  .navbar nav ul {
background: #9ca8bbba !important;
    top: 66px;
 flex-direction: column;
            background: white;
            position: relative;
      
            left: 0;
            width: 100%;
            text-align: center;
            gap: 20px;
            padding: 20px 0;
            z-index: 9999;
            display: block;
            opacity: 1;
            /* font-size: 19px; */
            transition: all 0.3s 
ease;
          
            width: 100%;
            height: auto;
  }
.navbar nav {
    position: absolute;
    left: 0;
    right: 0;
    transform: translateX(0); 
    width: 100%;
}
.navbar a {

    font-size: 21px;
}
#mainHeader {

    padding-left: 0;}
.acciones{position: absolute;
    right: 20px;
    top: 25px;}
  .navbar nav.show ul {
    transform: translateY(0);
    opacity: 1;
  }

  .hamburguesa {
    display: flex;
  }

  .btn-contacto {
    display: none;
  }

}
}
.slider img {

    object-fit: cover;
}
.msg-ok, .msg-error {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  background: white;
  border-radius: 8px;
  padding: 12px 20px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s ease;
  z-index: 9999;
  opacity: 0;
}

.msg-ok {
  border-left: 4px solid #00b894;
  color: #00b894;
}

.msg-error {
  border-left: 4px solid #d63031;
  color: #d63031;
}

.msg-ok.show, .msg-error.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/*arreglos 10/02*/
 @media (max-width: 768px) {
  .f11{
    width: 100%;
   height: 50vh !important;
    object-fit: cover;
  }
  #amenities{padding: 0px !important}
  .mob{height: auto !important}
  .hero-slider {
    width: 100%;
    height: auto !important;
    position: relative;
}
.hero-slide {

    height: auto !important;
  
}
    .hero-slide h1 {
        font-size: 42px !important;
        text-align: center;
        right: 0;
        left: 0;
        bottom: unset;
        top: 109px;
    }
    .prev-btn2, .next-btn2{width: 25px !important;}
  #primera img{width: 197px;
    margin: 0 auto;
    position: absolute;
    left: 0;
    right: 0;
   top: 22vh;}
    .atvm{    width: 180px !important;
    /* margin-left: 20px; */
    position: absolute;
    left: 0 !important;
    right: 0 !important;
    margin: 0 auto !important;
    top: 15px !important;}
        .donde {
        font-size: 55px !important;
        line-height: 59px !important;
        top: unset !important;
        padding: 25px !important;
        text-align: left !important;
        left: -52px !important;
        /* right: 0 !important; */
        bottom: -38px !important;
       width: 130%  !important;
        margin-left: 0px !important;
    }
    .atv{display: none !important;}
        .proyecto h2 {
        z-index: 999999;
        font-size: 40px !important;
        line-height: 39px !important;
        left: -47px;
        top: -103px !important;
    }
   
    .entrega{padding-top: 0px !important;    margin-top: 50px !important;}
.e2{display: none;}
.e4{height: 100vh;object-fit: cover;}
.e5{display: none;}
.f121{display: none;}
.f11{display: none;}
.espacio p{padding-left: 14px !important;}
.epp{margin-top: 20px !important;}

.proyecto h2 {
        z-index: 999999;
        font-size: 40px !important;
        line-height: 39px !important;
        left: 0;
     top: -53px !important;
    }
    .footer-liv {

    height: 100vh;
}
 }
  @media(max-width: 768px){
    #loading img{width: 100% !important;object-fit: contain;}
      .liv{left: 0 !important;
           margin-top: 0 !important;}
             .asombro .marquee {        animation: marquee 15s linear infinite !important;
        width: 4900px;}
      .atvm{    width: 50px !important;}
    } 
   .sup{font-size: 14px;
    display: block;
    margin-bottom: -22px;
    text-transform: none;
    margin-left: 17px;
    font-weight: 400;}
      body {
      background: #fff;
      font-family: 'Helvetica Neue', Arial, sans-serif;
    }

    .editorial-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 60px;
    }

    .grid-img {
      width: 100%;
      aspect-ratio: 1 / 1;
      object-fit: cover;
      display: block;
    }

    .editorial-text {
      color: #ff2b2b;
      font-size: 16px;
      line-height: 1.4;
    }

    .footer-text {
      font-size: 16px;
      max-width: 900px;
      margin-top: 60px;
    }

    /* Responsive */
    @media (max-width: 1200px) {
      .editorial-grid {
        grid-template-columns: repeat(3, 1fr);
      }
    }
.sisi{display: none;}
    @media (max-width: 768px) {
          .p1 {
       
        padding-left: 40px !important;}
        .p12{padding-left: 40px !important;}
      .capitulo{animation: none !important;
  transition: none !important;}
      .editorial-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
      }
      .sup {
  
    margin-bottom: -9px;
  
}
.nonono{display: none;}
.sisi{display: block;bottom: 0px !important;left: 0px !important;}
.hero-slide img {
    height: 36vh;
}
.e1{    height: 100vh !important;}
.e4{margin-left: 0px !important;}
    }
      .overlay-text {

    background: rgb(0 0 0 / 10%);
}
 /* Fondo del modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999999999;
  padding: 20px;
}

/* Caja del modal */
.modal-container {
  background: white;
  width: 90%;
  max-width: 1050px;
  height: 550px;
  display: flex;
  overflow: hidden;
  border-radius: 0px;
}

/* Imagen izquierda */
.left-img {
  width: 45%;
  height: 100%;
}

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

/* Panel derecho */
.right-content {
  width: 55%;
  background: #90A0B4; /* gris azulado */
  padding: 50px 60px;
  color: white;
  position: relative;
}

/* Botón cerrar */
.close-modal {
  position: absolute;
  top: 25px;
  right: 25px;
  font-size: 32px;
  border: none;
  background: none;
  color: white;
  cursor: pointer;
}

/* Título */
.right-content h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 40px;
  line-height: 1.3;
}

/* Formulario */
.form-brochure {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

/* Labels */
.form-brochure label {
  font-size: 14px;
  opacity: 0.85;
}

/* Inputs estilo línea */
.form-brochure input {
  border: none;
  border-bottom: 1px solid white;
  background: transparent;
  color: white;
  padding: 6px 0;
  font-size: 16px;
  outline: none;
}

/* Flecha enviar */
.send-btn {
  position: absolute;
  bottom: -20px;
  right: 0;
  font-size: 34px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}
@media(max-width: 768px){
  .top {
        bottom: 10px !important;
    }
        .form-footer .input-group {
        grid-template-columns: 1fr;
        padding-bottom: 100px;
    }
  .mno{display: none !important;}
  .left-img {
    display: none;
}
.right-content {
    width: 100%;
    background: #90A0B4;
    padding: 50px 60px;
    color: white;
    position: relative;
}
}
.modal-messages {
  margin-top: 15px;
  width: 100%;
  position: relative;
}

.msg-ok2,
.msg-error2 {
  padding: 12px 15px;
  border-radius: 6px;
  font-size: 14px;
  opacity: 0;
  transform: translateY(-8px);
  transition: all .3s ease;
}

.msg-ok2 {
  background: #d4edda;
  color: #155724;
}

.msg-error2 {
  background: #f8d7da;
  color: #721c24;
}

.msg-ok2.show,
.msg-error2.show {
  opacity: 1;
  transform: translateY(0);
}
.abrir-mapa {
    display: block;
    text-align: right;
    color: #ff2200;
    font-size: 14px;
    text-decoration: none;
    margin-top: -35px;
    margin-right: 10px;
}
  .foto-activa {
 opacity: 1 !important;
    transition: opacity 0.4s ease-in-out 0s !important;
}