:root {
    --gold: #C9A961;
    --dark-brown: #0f0f0e;
    --light-cream: #F5F1E8;
    --dark-green: #1A4D3E;
    --soft-beige: #E8DCC4;
    --navbar-height: 76px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    background: var(--light-cream);
    color: var(--dark-brown);
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    background: rgba(26, 77, 62, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.6rem 0;
    background: rgba(26, 77, 62, 1) !important;
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.navbar.scrolled .logo-img {
    height: 45px;
}

.brand-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 3px;
}

.nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link:hover {
    color: var(--gold) !important;
}

.btn-whatsapp {
    background: #25D366 !important;
    color: white !important;
    padding: 0.7rem 1.5rem;
    border: none;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    text-decoration: none;
}

.btn-whatsapp:hover {
    background: #1fb855 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: white !important;
}

.btn-reserve {
    background: var(--gold) !important;
    color: var(--dark-brown) !important;
    padding: 0.7rem 2rem;
    border: none;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.3);
}

.btn-reserve:hover {
    background: #B89647 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 169, 97, 0.5);
}

/* Hero Carousel */
.hero-carousel {
    margin-top: 76px;
    height: 90vh;
}

.carousel-item {
    height: 90vh;
    background-size: cover;
    background-position: center;
    position: relative;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(26, 77, 62, 0.4), rgba(44, 24, 16, 0.5));
    z-index: 1;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    z-index: 2;
}

.carousel-caption h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 5px;
    text-shadow: 3px 3px 10px rgba(0,0,0,0.5);
}

.carousel-caption p {
    letter-spacing: 2px;
    font-weight: 300;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.hero-search {
    max-width: 900px;
    margin: 0 auto;
}

.hero-search .form-control {
    border: 1px solid #ddd;
    padding: 0.75rem;
}

.hero-search .form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(201, 169, 97, 0.25);
}

/* Promo Banner */
.promo-banner {
    background: var(--dark-green);
    color: white;
    position: relative;
    overflow: hidden;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(201,169,97,0.2), transparent);
    border-radius: 50%;
}

.promo-banner h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: 3px;
    position: relative;
    z-index: 2;
}

.promo-banner p {
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
}

.btn-promo {
    background: transparent !important;
    border: 2px solid var(--gold) !important;
    color: white !important;
    padding: 1rem 3rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.4s ease;
}

.btn-promo:hover {
    background: var(--gold) !important;
    color: var(--dark-brown) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(201,169,97,0.4);
}

/* Experiencias Section */
.experiencias-section {
    background: var(--soft-beige);
}

.experiencia-item {
    transition: transform 0.3s ease;
}

.experiencia-item:hover {
    transform: translateY(-10px);
}

.experiencia-icon {
    width: 80px;
    height: 80px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.experiencia-item:hover .experiencia-icon {
    background: var(--dark-green);
    transform: rotate(360deg);
}

.experiencia-icon i {
    font-size: 2rem;
    color: white;
}

.experiencia-item h4 {
    font-family: 'Playfair Display', serif;
    color: var(--dark-green);
    font-size: 1.5rem;
}

.experiencia-item p {
    color: #666;
    line-height: 1.8;
}

/* Properties Section */
.properties-section {
    background: var(--light-cream);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--dark-green);
    letter-spacing: 3px;
}

.section-subtitle {
    color: var(--gold);
    font-size: 2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.property-card {
    background: white;
    overflow: hidden;
    transition: all 0.5s ease;
    border: none;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.property-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
}

.property-image {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s ease;
}

.property-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.3));
    transition: all 0.4s ease;
}

.property-card:hover .property-image {
    transform: scale(1.05);
}

.property-card:hover .property-image::after {
    background: linear-gradient(to bottom, transparent, rgba(201,169,97,0.5));
}

.property-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--dark-green);
    letter-spacing: 2px;
}

.property-card p {
    color: #666;
    line-height: 1.8;
}

.btn-view {
    background: var(--dark-brown) !important;
    color: white !important;
    padding: 0.8rem 2rem;
    border: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-view:hover {
    background: var(--gold) !important;
    color: var(--dark-brown) !important;
    transform: translateX(5px);
}

/* Paisajes Section */
.paisajes-section {
    background: linear-gradient(135deg, var(--dark-green) 0%, #2d7a63 100%);
    color: white;
}

.paisaje-card {
    position: relative;
    height: 400px;
    overflow: hidden;
    cursor: pointer;
}

.paisaje-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.paisaje-card:hover img {
    transform: scale(1.15);
}

.paisaje-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    z-index: 2;
}

.paisaje-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
}

.paisaje-text p {
    font-size: 0.9rem;
    opacity: 0.95;
}

/* Galería Section */
.galeria-section {
    background: white;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    height: 350px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1) rotate(2deg);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 77, 62, 0.85);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 3rem;
    color: var(--gold);
}

/* Footer */
.footer {
    background: var(--dark-brown);
    color: var(--soft-beige);
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--gold);
    letter-spacing: 3px;
}

.footer h5 {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-size: 1.3rem;
    letter-spacing: 2px;
}

.footer a {
    color: var(--soft-beige);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.footer a:hover {
    color: var(--gold);
    padding-left: 10px;
}

.social-links a {
    width: 45px;
    height: 45px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    transition: all 0.3s ease;
    color: var(--gold);
}

.social-links a:hover {
    background: var(--gold);
    color: var(--dark-brown);
    transform: translateY(-5px);
}

.copyright {
    color: #999;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* WhatsApp Flotante */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 20px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #1fb855;
    color: white;
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .nav-link {
        padding: 0.5rem 0 !important;
    }
}

@media (max-width: 768px) {
    .carousel-caption h1 {
        font-size: 2.5rem !important;
    }
    
    .section-title {
        font-size: 2rem !important;
    }
    
    .experiencia-icon {
        width: 70px;
        height: 70px;
    }
    
    .experiencia-icon i {
        font-size: 1.5rem;
    }
    
    .paisaje-card {
        height: 300px;
    }
    
    .gallery-item {
        height: 250px;
    }
    
    .brand-text {
        font-size: 1.5rem;
    }
}

/* formulario */

.custom-tabs-palmeras {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
    background: #ffffff;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.custom-tab-palmeras {
    flex: 1;
    padding: 15px 20px;
    text-align: center;
    cursor: pointer;
    background: transparent;
    border: none;
    font-weight: 600;
    font-size: 16px;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
}

.custom-tab-palmeras:focus {
    outline: none;
}

.custom-tab-palmeras.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #C9A961;
}

.tab-content-container-palmeras {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content-container-palmeras.active {
    display: block;
}

.tab-content-container-palmeras section {
    background: #ffffff !important;
    border: 1px solid #e9edf3;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
}

#modalTerminos .modal-body {
    background: #ffffff !important;
    padding: 16px 16px 18px !important;
}

#modalTerminos .modal-footer {
    background: #ffffff;
    border-top: 1px solid #e9edf3;
}

#checkbox-section-palmeras {
    display: none !important;
}

#btnAceptar {
    width: min(360px, 100%);
    font-weight: 700;
    border-radius: 12px !important;
    padding: 12px 18px !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 576px) {
    .custom-tab-palmeras {
        font-size: 13px;
        padding: 12px 10px;
    }
}

@media (max-width: 430px) {
    .custom-tabs-palmeras {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .custom-tab-palmeras {
        padding: 10px 6px;
        font-size: 12px;
        line-height: 1.15;
        white-space: normal;
        word-break: break-word;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #modalTerminos .modal-body {
        padding: 14px 12px 16px !important;
    }
}

/* Modal Backdrop Custom */
.modal-backdrop-custom {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    width: 100%;
    height: calc(100% - var(--navbar-height));
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1050;
}

/* Mejoras al modal */
#modalTerminos {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    width: 100%;
    height: calc(100% - var(--navbar-height));
    display: flex !important;
    align-items: center;
    justify-content: center;
}

#modalTerminos .modal-dialog {
    margin: 0 auto;
    max-width: 800px;
    width: 95%;
}

#modalTerminos .modal-content {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

#modalTerminos .modal-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
}

#modalTerminos .modal-content {
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Botón aceptar mejorado */
#btnAceptar {
    transition: all 0.3s ease;
}

#btnAceptar:not(:disabled):hover {
    background: var(--gold) !important;
    color: var(--dark-brown) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(201, 169, 97, 0.4);
}

/* Scrollbar personalizado para el modal */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #B89647;
}

@media (max-width: 768px) {
    :root {
        --navbar-height: 66px;
    }

    #modalTerminos .modal-dialog {
        width: calc(100% - 24px);
        max-width: 520px;
    }

    #modalTerminos .modal-content {
        max-height: calc(100vh - var(--navbar-height) - 16px);
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    #modalTerminos .modal-dialog {
        width: calc(100% - 16px);
    }
}