/* ===================================
   Variables y Reset
   =================================== */
:root {
    --primary-color: #1a3a52;
    --secondary-color: #2c5f7f;
    --accent-color: #d4af37;
    --text-color: #2d2d2d;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 58, 82, 0.02) 0%, rgba(212, 175, 55, 0.02) 100%);
    pointer-events: none;
    z-index: -1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ===================================
   Layout Container
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===================================
   Header
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    padding-bottom: 16px;
}

.logo img {
    height: 70px;
    width: auto;
}

.nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav a {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    color: var(--text-color);
}

.nav a:not(.btn-primary):hover {
    color: var(--secondary-color);
}

.nav a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav a:not(.btn-primary):hover::after {
    width: 100%;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--secondary-color);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary::after {
    display: none !important;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 999;
    position: relative;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-color);
    transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 100px 40px 40px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    max-height: 100vh;
    overflow-y: auto;
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu.active {
    display: flex;
    transform: translateX(0);
    opacity: 1;
}

.mobile-menu a {
    padding: 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 1px solid #e8ecf1;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover,
.mobile-menu a:active {
    color: var(--accent-color);
    padding-left: 16px;
}

.mobile-menu-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-menu-close:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===================================
   WhatsApp Float Button
   =================================== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #20BA5A 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulseWhatsapp 2s infinite;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.whatsapp-float:hover {
    background: linear-gradient(135deg, #20BA5A 0%, #25D366 100%);
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.6);
}

@keyframes pulseWhatsapp {
    0%, 100% {
        box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 6px 32px rgba(37, 211, 102, 0.6), 0 0 0 8px rgba(37, 211, 102, 0.1), 0 0 0 16px rgba(37, 211, 102, 0.05);
    }
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
}

.hero-image {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.6));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    padding: 24px;
    text-align: center;
}

.subtitle {
    display: block;
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 8px;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.95;
}

.hero-title {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-text {
    font-size: clamp(18px, 2.5vw, 24px);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 600px;
}

.hero-text strong {
    font-weight: 700;
    letter-spacing: 1px;
}

.btn-hero {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 18px 56px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-hero:hover::before {
    width: 300px;
    height: 300px;
}

.btn-hero:hover {
    background: #c19d2d;
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
    z-index: 10;
}

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

@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -10px); }
}

/* ===================================
   Info Section & Split Sections
   =================================== */
.info-section {
    padding: 0;
    background: var(--white);
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 70vh;
}

.split-section.reverse {
    direction: rtl;
}

.split-section.reverse > * {
    direction: ltr;
}

.split-image {
    position: relative;
    overflow: hidden;
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.split-image:hover img {
    transform: scale(1.05);
}

.split-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 60px;
    background: var(--bg-light);
}

.split-content h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 24px;
    line-height: 1.2;
}

.split-content .highlight {
    font-size: 24px;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 16px;
}

.split-content p {
    font-size: 18px;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 12px;
}

.amenities-list-minimal {
    list-style: none;
    padding: 0;
    margin-top: 32px;
}

.amenities-list-minimal li {
    font-size: 18px;
    color: var(--text-color);
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    transition: var(--transition);
}

.amenities-list-minimal li:hover {
    color: var(--accent-color);
    padding-left: 12px;
}

/* ===================================
   Gallery Section
   =================================== */
.gallery-section {
    padding: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
    padding: 32px 24px;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

/* ===================================
   Amenities Section
   =================================== */
.amenities-section {
    padding: 0;
    background: var(--white);
}

/* ===================================
   Features Section
   =================================== */
.features-section {
    padding: 80px 24px;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 24px;
    border-radius: 12px;
    position: relative;
}

.feature-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-item:hover::after {
    opacity: 1;
}

.feature-item:hover {
    transform: translateY(-12px) scale(1.05);
    background: rgba(212, 175, 55, 0.05);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: inline-block;
    transition: all 0.4s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
}

.feature-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 16px;
    color: var(--text-light);
}

/* ===================================
   Location & Full Width Image Sections
   =================================== */
.location-section,
.cta-section {
    padding: 0;
    position: relative;
}

.map-container {
    width: 100%;
    height: 450px;
    background: var(--bg-light);
}

.map-container iframe {
    display: block;
}

.full-width-image {
    position: relative;
    height: 60vh;
    overflow: hidden;
}

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

.image-text-overlay {
    position: absolute;
    bottom: 60px;
    left: 60px;
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.image-text-overlay.centered {
    bottom: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.image-text-overlay h2 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.image-text-overlay p {
    font-size: 20px;
    opacity: 0.95;
}

/* ===================================
   CTA Section
   =================================== */
.btn-cta {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 18px 56px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    margin-top: 24px;
}

.btn-cta:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ===================================
   Contact Section
   =================================== */
.contact-section {
    padding: 100px 24px;
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 64px;
}

.contact-info h2 {
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.contact-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 48px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 4px;
    font-weight: 600;
}

.contact-item p {
    font-size: 15px;
    color: var(--text-color);
}

.contact-item a {
    color: var(--secondary-color);
}

.contact-item a:hover {
    color: var(--accent-color);
}

.contact-form {
    background: var(--white);
    padding: 48px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid #e8ecf1;
    border-radius: 4px;
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group textarea {
    resize: vertical;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 64px 24px 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo img {
    height: 80px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-logo p {
    opacity: 0.8;
    font-size: 14px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 16px;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-links a {
    display: block;
    margin-bottom: 12px;
    opacity: 0.8;
    font-size: 14px;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-contact p {
    margin-bottom: 8px;
    opacity: 0.8;
    font-size: 14px;
}

.footer-contact a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.7;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    .nav {
        display: none !important;
    }
    
    .menu-toggle {
        display: flex !important;
    }
    
    .hero-image {
        height: 100vh;
    }

    .hero-overlay {
        padding: 20px;
    }

    .split-section {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .split-section.reverse {
        direction: ltr;
    }

    .split-content {
        padding: 60px 32px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    .full-width-image {
        height: 50vh;
    }

    .image-text-overlay {
        left: 32px;
        bottom: 32px;
    }

    .image-text-overlay.centered {
        left: 50%;
        padding: 0 20px;
    }

    .map-container {
        height: 350px;
    }

    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
    
    .contact-form {
        padding: 32px 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 40px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .split-content {
        padding: 40px 24px;
    }

    .image-text-overlay {
        left: 20px;
        bottom: 20px;
    }

    .map-container {
        height: 300px;
    }
    
    .info-section,
    .amenities-section,
    .contact-section {
        padding: 60px 20px;
    }
}
