html {
    scroll-behavior: smooth;
}


/* —— Preloader —— */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #ccc;
    border-top: 5px solid #ff6f61;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* fade-out para el preloader */
#preloader.fade-out {
    opacity: 0;
    transition: opacity 1.6s ease;
}

/* —— Zoom‐in al hero —— */
/* estado inicial oculto/encogido */
.hero .overlay {
    opacity: 0;
    transform: scale(0.9);
}

/* cuando body tenga .loaded, animar el overlay */
body.loaded .hero .overlay {
    opacity: 1;
    transform: scale(1);
    transition: opacity 1s ease-out, transform 2s ease-out;
}


body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #fafafa;
    color: #333;
}

.hero {
    background: url('img/FRENTE.png') center/cover no-repeat;
    height: 80vh;
    position: relative;
}

.overlay {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.overlay h1 {
    font-size: 3em;
}




.btn {
    margin-top: 20px;
    padding: 15px 30px;
    background: #ff9800;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.precio {
    font-size: 1.5em;
    margin-top: 10px;
}

.contenido {
    padding: 40px 20px;
    max-width: 1100px;
    margin: auto;
}

.contenido h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 30px;
    color: #00796b;
}



.bloque {
    margin-bottom: 40px;
}

.bloque h3 {
    color: #004d40;
    margin-bottom: 10px;
}

.img-ancha {
    width: 100%;
    max-width: 100%;
    margin: 10px 0;
    border-radius: 5px;
}

ul {
    padding-left: 20px;
}

.contacto {
    background: #e0f2f1;
    padding: 40px 20px;
    text-align: center;
}

.contacto form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input,
textarea {
    padding: 12px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    padding: 12px;
    background: #00796b;
    color: white;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

footer {
    text-align: center;
    padding: 20px;
    background: #004d40;
    color: white;
}




 .seccion-destacada {
     display: flex;
     align-items: center;
     justify-content: space-between;
     padding: 60px 10%;
     gap: 40px;
     flex-wrap: wrap;
 }

 .texto {
     flex: 1 1 400px;
 }

 .texto h1 {
     font-size: 2.5em;
     margin-bottom: 20px;
     color: #000;
 }

 .texto ul {
     padding-left: 20px;
     line-height: 1.6;
     font-size: 1.1em;
 }

 .imagen-circular {
     flex: 1 1 300px;
     position: relative;
     width: 350px;
     height: 350px;
     border-radius: 50%;
     overflow: hidden;
 }

  .imagen-circular1 {
      flex: 1 1 300px;
      position: relative;
      width: 350px;
      height: 350px;
    
      overflow: hidden;
  }


 .imagen-circular img {
     width: 100%;
     height: 100%;
     object-fit: cover;
 }

 .imagen-circular1 img {
     width: 100%;
     height: 100%;
  
 }

 /* decorativos como en la presentación */
 .decoracion {
     position: absolute;
     width: 20px;
     height: 20px;
     background: #f2682b;
     border-radius: 50%;
     top: 10px;
     right: 10px;
 }

 .decoracion-lineas {
     position: absolute;
     width: 80px;
     height: 80px;
     bottom: -10px;
     right: -20px;
     border-right: 6px dashed #00a3e0;
     border-bottom: 6px dashed #00a3e0;
     border-radius: 0 0 100% 0;
 }

 @media (max-width: 768px) {
     .seccion-destacada {
         flex-direction: column;
         align-items: center;
         text-align: center;
     }

     .imagen-circular {
         width: 300px;
         height: 300px;
     }
 }




 .bloque-primer-piso {
     width: 100%;
 }

 .bloque-primer-piso .imagen-superior {
     width: 100%;
     height: auto;
     display: block;
 }

 .descripcion {
     background-color: white;
     padding: 40px 10%;
 }

 .descripcion h2 {
     font-size: 2em;
     font-weight: bold;
     margin-bottom: 20px;
     color: #000;
 }

 .descripcion ul {
     list-style: disc;
     padding-left: 20px;
     font-size: 1.1em;
     line-height: 1.6;
 }

 .contacto {
    width: 100%;
     text-align: center;
     font-size: 1em;
     margin-top: 30px;
     padding-top: 20px;
     border-top: 1px solid #ccc;
 }

 .contacto strong {
     font-weight: bold;
 }

 @media (max-width: 768px) {
     .descripcion {
         padding: 20px;
     }

     .descripcion h2 {
         text-align: center;
     }
 }




 /* Grid de miniaturas */
 .gallery {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
     gap: 1rem;
     padding: 1rem;
 }

 /* Efecto sobre cada foto */
 .gallery-photo {
     width: 100%;
     height: auto;
     border-radius: 0.5rem;
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
     transition: transform 0.3s ease, box-shadow 0.3s ease;
     cursor: pointer;
 }

 .gallery-photo:hover {
     transform: scale(1.05);
     box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
 }

 /* Lightbox Modal */
 .modal {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: rgba(0, 0, 0, 0.8);
     display: none;
     align-items: center;
     justify-content: center;
     z-index: 1000;
 }

 .modal img {
     max-width: 90%;
     max-height: 90%;
     border-radius: 0.5rem;
     box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
 }

 .modal.active {
     display: flex;
 }



 /* Estilos base para el botón */
 .btn {
     display: inline-block;
     background-color: #e9950e;
     color: #fff;
     padding: 0.75rem 1.5rem;
     border-radius: 0.5rem;
     text-decoration: none;
     font-weight: bold;
     transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
 }

 /* Hover: cambia color, sube un poco y añade sombra */
 .btn:hover {
     background-color: #ff4a3d;
     transform: translateY(-4px) scale(1.03);
     box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
 }

 /* Pulsación suave constante */
 @keyframes pulse {

     0%,
     100% {
         transform: scale(1);
     }

     50% {
         transform: scale(1.05);
     }
 }

 /* Aplica la animación “pulse” de forma infinita */
 .btn.pulse {
     animation: pulse 3s ease-in-out infinite;
 }


