/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilo global */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background: linear-gradient(to bottom, #004d7a, #007ea7);
    color: #333;
}

/* Estilos del header */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background-image: url('img/4has.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.hero-text {
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 8px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

h2 {
    color: white;
}


.hero p {
    font-size: 1.5rem;
    margin-bottom: 20px;
}


header .cta {
    background-color: #27ae60;
    padding: 15px 30px;
    border-radius: 8px;
    color: white;
    font-size: 1.2rem;
    transition: 0.3s;
}
section .cta {
    background-color: #27ae60;
    padding: 15px 30px;
    border-radius: 8px;
    color: white;
    font-size: 1.2rem;
    transition: 0.3s;
}

header .cta:hover {
    background-color: #2ecc71;
}


.cta-btn {
    
    background-color: #ff7f50;
    color: white;
    padding: 15px 30px;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 5px;
    
}

.cta-btn-wami {
      position: fixed;  /* Fija el botón en la pantalla */
    bottom: 20px;     /* Ubicación desde la parte inferior de la pantalla */
    right: 20px;      /* Ubicación desde la parte derecha de la pantalla */

    color: #25D366;     /* Color del texto */
    
    
    font-size: 60px;   /* Tamaño de texto */
    display: flex;
    
    justify-content: center; /* Centra el icono y el texto horizontalmente */
    gap: 10px; /* Espacio entre el icono y el texto */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Sombra para resaltar */
    text-decoration: none; /* Elimina el subrayado del enlace */
    z-index: 9999; /* Asegura que el botón esté por encima de otros elementos */
}


.cta-btn:hover {
    background-color: #ff5722;
}

        
.logo-container {
    position: absolute;
    top: 0%; /* Ajusta la posición vertical según lo necesites */
    left: -2%; /* Ajusta la posición horizontal (a la izquierda) */
    z-index: 1; /* Asegura que el logo esté por encima del banner */
    
}

.logo-container img {
    width: 300px;
}


/* Estilos del slider */
.swiper-container {
    width: 100%;
    height: 600px;
    margin-top: 50px;
    position: relative;
    /*display: block;*/
    overflow: hidden;
}

.swiper-wrapper {
    /*display: flex;*/ /* Asegura que los elementos del slider estén alineados en una fila */
    transition-timing-function: ease-in-out; /* Añade suavidad a las transiciones */
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; /* Hace que cada slide ocupe todo el espacio disponible */
    height: 100%; /* Hace que cada slide ocupe todo el espacio de su contenedor */
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.property-details {
    background-color: #071a57;
    padding: 40px 0;
}

.property-details .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.property-details .section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    color: white;
}

.property-details .detail-description {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: white;
}

.property-details .details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.property-details .detail-item {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    width: 300px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: center;
}

.property-details .detail-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #007bff;
}

.property-details .detail-item p {
    font-size: 1rem;
    color: #333;
}

@media (max-width: 768px) {
    .property-details .details {
        flex-direction: column;
        align-items: center;
    }

    .property-details .detail-item {
        width: 100%;
        max-width: 400px;
    }
}




/* Estilos de botones sociales */
/* Estilos generales para los botones de redes sociales */

.social-buttons {
    display: flex;
    justify-content: center;
}
.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%; /* Hace los botones redondos */
    text-decoration: none; /* Elimina subrayado */
    color: white; /* Color de los íconos */
    font-size: 24px; /* Tamaño de los íconos */
    margin: 10px; /* Espaciado entre botones */
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Colores específicos para cada red social */
.instagram {
    background-color: #e4405f; /* Color Instagram */
}
.instagram:hover {
    background-color: #d62451;
}

.facebook {
    background-color: #3b5998; /* Color Facebook */
}
.facebook:hover {
    background-color: #2d4373;
}

.tiktok {
    background-color: #000000; /* Color TikTok */
}
.tiktok:hover {
    background-color: #333333;
}

.youtube {
    background-color: #ff0000; /* Color YouTube */
}
.youtube:hover {
    background-color: #cc0000;
}

/* Efecto de hover */
.social-btn:hover {
    transform: scale(1.1); /* Efecto de agrandamiento */
}



.portfolio-header {
    text-align: center;
    background-color: #f5f5f5;
    padding: 20px 10px;
    border-bottom: 3px solid #ddd;
}

.portfolio-header h1 {
    font-size: 2rem;
    color: #333;
}

.portfolio-header p {
    font-size: 1rem;
    color: white;
    margin-top: 10px;
}

/* Grid del portfolio */
.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px;
    background-color: #fafafa;
}

/* Tarjetas del portfolio */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

/* Overlay con texto */
.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    text-align: center;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Footer */
.portfolio-footer {
    text-align: center;
    background-color: #333;
    color: #fff;
    padding: 10px 0;
    font-size: 0.9rem;
}



/* Responsividad */
@media (max-width: 768px) {
    .logo-container {
        display: none;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1.2rem;
    }
    .cta-btn {
        font-size: 1rem;
    }
    
    
    .hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background-image: url('img/4HasMobile.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}
}



/* Copos de nieve */
.snowflake {
    position: fixed;
    top: -10px;
    background-color: white;
    border-radius: 50%;
    opacity: 0.8;
    animation: fall linear infinite;
    z-index: 999;
}

@keyframes fall {
    to {
        transform: translateY(100vh);
    }
}





/* Formulario más estilizado */
form {
    margin-top: 50px;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 500px; /* 🔹 LIMITE DE ANCHO PARA PC */
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

form input, form textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

form button {
    background-color: #27ae60;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 12px;
    border-radius: 8px;
    transition: 0.3s;
}

form button:hover {
    background-color: #2ecc71;
}

/* Estilos para el Popup (Modal) */

#mensajeModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: none; /* Esto es clave para que no se muestre al cargar */
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: pink;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    text-align: center;
    width: 350px;
    position: relative;
}

.modal-content p {
    font-size: 1.2rem;
    color: #333;
    margin: 0;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    color: #333;
    cursor: pointer;
}

.close:hover {
    color: #e74c3c;
}
