/* Base Styles & Variables */
:root {
    --primary-color: #f69822; /* Nuevo color dorado */
    --primary-light: #f9a63a; /* Un tono más claro del dorado */
    --primary-dark: #d87f1c; /* Un tono más oscuro del dorado */
    --dark-color: #181b23; /* Nuevo color negro */
    --gray-light: #f5f5f5;
    --gray-medium: #e0e0e0;
    --light-color: #ffffff; /* Blanco correcto */
    --text-color: #333333; /* Gris oscuro correcto */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --gold-gradient: linear-gradient(45deg, #f69822, #f9a63a); /* Nuevo degradado dorado */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Montserrat", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: "Playfair Display", serif;
    line-height: 1.2;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 400%;
    height: 100%;
    display: flex;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    position: relative;
    width: 25%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.slide-content {
    position: absolute;
    bottom: 20%;
    left: 10%;
    color: var(--light-color);
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

.slide-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    max-width: 800px;
    z-index: 2;
    color: var(--light-color);
}

.luxury-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
    color: #fff; /* Cambia el color a blanco */
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7); /* Mantén el efecto de sombra */
}

.luxury-subtitle {
    font-size: clamp(1.5rem, 4vw, 2.2rem); /* Aumenta el tamaño */
    margin-bottom: 2rem;
    color: #fff; /* Asegúrate de que sea blanco */
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5); /* Mantén el efecto de sombra */
}

.villas {
    padding: 80px 0;
    background-color: var(--light-color);
}

.villa-image {
    width: 400px; /* Ancho fijo para todas las imágenes */
    height: 300px; /* Alto fijo para todas las imágenes */
    flex: none; /* Evita que flex modifique el tamaño */
    overflow: hidden;
    border-radius: 10px;
}

.villa-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mantiene la proporción de la imagen, cortando si es necesario */
    display: block;
}

.villa-description {
    flex: 1;
    padding: 20px;
}

.villa-description h3 {
    font-family: "Playfair Display", serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.villa-description .price {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}
.villa-description .btn-dark {
    display: inline-block;
    padding: 12px 35px;
    border-radius: 50px;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .villa-features {
        padding: 15px;
    }
}
.villa-features h4 {
    font-family: "Playfair Display", serif;
    font-size: 1.6rem; /* Mantener tamaño de fuente */
    margin-bottom: 15px;
}

.villa-features ul {
    list-style-type: disc;
    margin-left: 20px;
    padding: 0; /* Eliminar padding para evitar desbordamiento */
}

.villa-features li {
    margin-bottom: 10px; /* Espaciado entre elementos de la lista */
}

/* Media queries para dispositivos móviles */
@media (max-width: 768px) {
    .villa-features {
        padding: 15px; /* Ajustar padding para pantallas pequeñas */
    }

    .villa-features h4 {
        font-size: 1.4rem; /* Reducir tamaño de fuente en pantallas pequeñas */
    }

    .villa-features li {
        font-size: 0.9rem; /* Reducir tamaño de fuente de la lista */
    }
}

/* Estilos base para la fila de villa */
.villa-row {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-bottom: 40px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Estilos para la imagen, descripción y características */
.villa-image,
.villa-description,
.villa-features {
    width: 100%; /* Cada elemento toma el ancho completo disponible */
    height: auto; /* Altura automática */
    min-height: 300px; /* Altura mínima */
}

/* Media queries para dispositivos móviles */
@media (max-width: 768px) {
    .villa-row {
        flex-direction: column; /* Apila los elementos verticalmente */
    }

    .villa-image,
    .villa-description,
    .villa-features {
        width: 100%; /* Ocupa todo el ancho disponible */
    }

    .villa-features {
        border-left: none;
        border-top: 4px solid var(--primary-color);
    }
}
/* Contact Form */
/* Campos del formulario */

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-color); /* Texto negro */
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    border: 2px solid var(--gray-medium);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.9);
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-color); /* Borde dorado */
    box-shadow: 0 0 0 3px rgba(246, 152, 34, 0.1); /* Resaltado */
    outline: none;
}

footer {
    background-color: var(--light-color); /* Color de fondo del footer */
    padding: 20px 0; /* Espaciado superior e inferior */
    text-align: center; /* Centrar el texto */
}

.footer-content {
    max-width: 1200px; /* Ancho máximo del contenido */
    margin: 0 auto; /* Centrar el contenido */
    padding: 0 15px; /* Espaciado lateral para pantallas pequeñas */
}
/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ajuste para dispositivos móviles */
@media (max-width: 768px) {
    .villa-image {
        width: 100%; /* En móvil, ocupa todo el ancho disponible */
        height: 300px; /* Mantiene la altura fija */
    }
}
.contact-form {
    padding: 20px;
}

.villa-specs {
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .luxury-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .luxury-subtitle {
        font-size: clamp(1rem, 4vw, 1.2rem);
    }
}

.villa-description {
    flex: 1;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 400px; /* Ancho fijo para mantener consistencia */
    height: 300px; /* Alto fijo para todas las descripciones */
    overflow: hidden; /* Oculta el contenido que exceda el contenedor */
}

.villa-description p {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.5; /* Espaciado entre líneas */
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Limita a 4 líneas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis; /* Agrega puntos suspensivos (...) */
}

.villa-description .price {
    color: var(--primary-color); /* Nuevo color dorado */
}

.villa-features {
    max-width: 100%;
    height: auto;
    min-height: 300px; /* Alto fijo */
    background-color: #f3f3f3; /* Mantén el gris claro */
    border-left: 4px solid var(--primary-color); /* Línea decorativa dorada */
    border-radius: 10px; /* Bordes redondeados */
    overflow: auto; /* Oculta contenido que exceda el tamaño */
    display: flex; /* Asegura que el contenido interno esté alineado */
    flex-direction: column; /* Alinea los elementos verticalmente */
    justify-content: center; /* Centra el contenido verticalmente */
    align-items: center; /* Centra el contenido horizontalmente */
    text-align: center; /* Centra el texto */
}

.villa-features h4 {
    font-family: "Playfair Display", serif;
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.villa-features ul {
    list-style-type: disc;
    margin-left: 20px;
}
@media (max-width: 768px) {
    .villa-row {
        flex-direction: column; /* Cambia la dirección a columna */
    }
}

/* Para las cards 2 y 4 (invertidas) */
.villa-row:nth-child(even) {
    grid-template-areas: "features description image";
}

.villa-row:nth-child(odd) {
    grid-template-areas: "image description features";
}

.villa-row:nth-child(even) .villa-image {
    grid-area: image;
}

.section-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Tamaño dinámico según el ancho de la pantalla */
    text-align: center; /* Centrado */
    margin-bottom: 1rem; /* Espaciado inferior */
    color: var(--dark-color); /* Color oscuro */
    text-transform: uppercase; /* Texto en mayúsculas */
    letter-spacing: 2px; /* Espaciado entre letras */
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem); /* Tamaño dinámico */
    text-align: center; /* Centrado */
    color: #666; /* Color gris */
    margin-bottom: 3rem; /* Espaciado inferior */
    line-height: 1.5; /* Espaciado entre líneas */
}

.social-links a {
    color: var(--primary-color); /* Nuevo color dorado */
}

.social-links a:hover {
    color: var(--primary-light); /* Un tono más claro del dorado */
}

/* Estilo para el dropdown */
form select {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--gray-medium);
    border-radius: 8px;
    font-size: 1rem;
    background-color: var(--light-color);
    color: var(--text-color);
    transition: var(--transition-smooth);
}

form select:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Estilo específico para el select */
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23f69822' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 15px) center;
    padding-right: 40px;
}

/* Estilo para la opción deshabilitada */
.form-group select option[disabled] {
    color: #999;
}

/* Botón del formulario */
/* Contact Form Section */

.contacto {
    background-color: var(--gray-light);
    padding: 60px 20px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.contacto h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 10px;
}

.contacto p {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    margin-bottom: 30px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 1rem;
    color: var(--dark-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23f69822' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 15px) center;
    padding-right: 40px;
}

.contact-form button {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--light-color);
    background: var(--gold-gradient);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.contact-form button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(246, 152, 34, 0.3);
}

/* Estilo base para todos los botones */
.btn {
    display: inline-block;
    padding: 12px 35px; /* Tamaño del botón */
    font-size: 1rem; /* Tamaño del texto */
    font-weight: 600; /* Texto en negrita */
    text-align: center; /* Centrado */
    text-decoration: none; /* Sin subrayado */
    border: none; /* Sin bordes */
    border-radius: 50px; /* Diseño ovalado */
    cursor: pointer; /* Cursor de mano */
    transition: all 0.3s ease; /* Transición suave */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Sombra sutil */
}

/* Hover general para todos los botones */
.btn:hover {
    transform: translateY(-3px); /* Efecto de elevación */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); /* Sombra más intensa */
}

/* Botón dorado */
.btn-gold {
    background: var(--gold-gradient); /* Degradado dorado */
    color: var(--light-color); /* Texto blanco */
}

.btn-gold:hover {
    background: var(--primary-dark); /* Cambia a un dorado más oscuro */
    box-shadow: 0 6px 15px rgba(246, 152, 34, 0.4); /* Sombra más intensa */
}

/* Botón negro */
.btn-dark {
    background: var(--dark-color); /* Fondo negro */
    color: var(--light-color); /* Texto blanco */
}

.btn-dark:hover {
    background: var(--primary-color); /* Cambia a dorado en hover */
    box-shadow: 0 6px 15px rgba(24, 27, 35, 0.3); /* Sombra más intensa */
}

/* Botón blanco */
.btn-light {
    background: var(--light-color); /* Fondo blanco */
    color: var(--dark-color); /* Texto negro */
    border: 2px solid var(--dark-color); /* Borde negro */
}

.btn-light:hover {
    background: var(--primary-color); /* Cambia a dorado en hover */
    color: var(--light-color); /* Texto blanco */
    border-color: var(--primary-color); /* Cambia el borde a dorado */
    box-shadow: 0 6px 15px rgba(246, 152, 34, 0.4); /* Sombra más intensa */
}

.contacto {
    background-image: url("images/punta-cana.jpg"); /* Ruta de la imagen */
    background-size: cover; /* Asegura que la imagen cubra todo el contenedor */
    background-position: center; /* Centra la imagen */
    background-attachment: fixed; /* Hace que el fondo sea fijo al hacer scroll */
    padding: 60px 20px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    position: relative; /* Necesario para el overlay */
}

/* Overlay para mejorar la legibilidad */
.contacto::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Capa negra semitransparente */
    border-radius: 10px;
    z-index: 1;
}

.contacto * {
    position: relative;
    z-index: 2; /* Asegura que el contenido esté encima del overlay */
}

.contacto .section-subtitle {
    color: #fff !important;
}

/* Mejora para la sección de contacto */
.contacto .section-title {
    color: var(--light-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.contacto .section-subtitle {
    color: var(--light-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Mejora del formulario de contacto */
.contact-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Mejora del overlay para mejor contraste */
.contacto::before {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8));
}

/* Mejora de la visibilidad de los labels del formulario */
.contact-form .form-group label {
    color: var(--dark-color);
    font-weight: 600;
}

/* Modal styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

.modal-body {
    padding: 20px;
}

.response-icon {
    margin-bottom: 20px;
}

.success-checkmark {
    display: inline-block;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    line-height: 70px;
    font-size: 40px;
    color: var(--primary-color);
}

.response-title {
    font-family: "Playfair Display", serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.response-message {
    color: var(--text-color);
    margin-bottom: 25px;
    line-height: 1.6;
}

.loading-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.loading-text::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 100;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: white;
    width: auto;
    padding: 0 20px;
    text-decoration: none;
}

.whatsapp-float i {
    margin-right: 0;
    transition: margin 0.3s ease;
}

.whatsapp-float:hover i {
    margin-right: 10px;
}

.whatsapp-text {
    display: none;
    font-size: 16px;
    font-weight: 600;
    transition: display 0.3s ease;
}

.whatsapp-float:hover .whatsapp-text {
    display: inline-block;
}

/* Ajustes para dispositivos móviles */
@media screen and (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }

    .whatsapp-float:hover {
        width: 50px;
        padding: 0;
    }

    .whatsapp-text {
        display: none !important;
    }

    .whatsapp-float:hover i {
        margin-right: 0;
    }
}
