/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    /* Colors */
    --primary-color: #2C4A3B; /* Dark Green */
    --secondary-color: #C19A6B; /* Soft Gold/Brown */
    --accent-color: #1c3328; /* Darker Green */
    --text-dark: #333333;
    --text-light: #F9F6F0;
    --bg-light: #F9F6F0; /* Warm White */
    --bg-white: #ffffff;
    --bg-dark: #222222;
    --whatsapp-color: #25D366;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --section-padding: 120px 0;
    --container-width: 1200px;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
    color: var(--primary-color);
}

p {
    margin-bottom: 1.5rem;
    font-weight: 300;
    font-size: 1.05rem;
    color: #555;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: var(--section-padding);
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.bg-dark h2 {
    color: var(--secondary-color);
}

.bg-dark p {
    color: rgba(255, 255, 255, 0.8);
}

.text-center {
    text-align: center;
}

.mt-5 {
    margin-top: 3rem;
}

/* Typography Utilities */
.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.tag-light {
    color: var(--secondary-color);
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    color: #666;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary, .btn-outline, .btn-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border: 1px solid var(--primary-color);
    animation: pulse-soft 2s infinite;
}

@keyframes pulse-soft {
    0% { box-shadow: 0 0 0 0 rgba(44, 74, 59, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(44, 74, 59, 0); }
    100% { box-shadow: 0 0 0 0 rgba(44, 74, 59, 0); }
}

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.05);
    animation: none;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.btn-text {
    background-color: transparent;
    color: var(--bg-white);
    padding: 1rem 0;
    position: relative;
}

.btn-text::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--bg-white);
    transition: var(--transition-fast);
}

.btn-text:hover::after {
    width: 100%;
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-fast);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--bg-white);
    font-weight: 600;
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo span {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.navbar.scrolled .logo {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links li a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--secondary-color);
    transition: var(--transition-fast);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.navbar.scrolled .nav-links li a {
    color: var(--text-dark);
}

.navbar .btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--bg-white);
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
}

.navbar .btn-outline:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
}

.navbar.scrolled .btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.navbar.scrolled .btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

/* Menu Toggle (Mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--bg-white);
    transition: var(--transition-fast);
    transform-origin: left;
}

.navbar.scrolled .menu-toggle span {
    background-color: var(--primary-color);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(44, 74, 59, 0.98);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
    animation: zoomIn 30s ease-in-out infinite alternate;
}

@keyframes zoomIn {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding-top: 80px;
    animation: fadeInSlideUp 1.5s ease-out forwards;
}

@keyframes fadeInSlideUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
    display: block;
    color: var(--secondary-color);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title {
    color: var(--bg-white);
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 3rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* ==========================================================================
   Presentation Section
   ========================================================================== */
.presentation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.presentation-features {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    color: var(--primary-color);
    font-size: 24px;
    transition: var(--transition-fast);
}

.feature-item:hover .feature-icon {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.feature-item h3 {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature-item p {
    font-size: 0.95rem;
    margin: 0;
}

/* ==========================================================================
   Highlight Sections
   ========================================================================== */
.highlight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.highlight-reverse .highlight-grid {
    direction: rtl;
}

.highlight-reverse .highlight-content {
    direction: ltr;
}

.highlight-image {
    position: relative;
}

.highlight-image > img {
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.highlight-image-secondary {
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 60%;
    border: 10px solid var(--bg-white);
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    z-index: 2;
}

.highlight-reverse .highlight-image-secondary {
    right: auto;
    left: -10%;
}

.bg-light .highlight-image-secondary {
    border-color: var(--bg-light);
}

.check-list {
    margin-top: 2rem;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.check-list li i {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: transparent;
    border: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    padding: 0.5rem 1rem;
    position: relative;
    transition: var(--transition-fast);
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--primary-color);
}

.filter-btn.active::after {
    width: 100%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    transition: box-shadow var(--transition-fast);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 74, 59, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-fast);
}

.gallery-overlay i {
    color: var(--bg-white);
    font-size: 2.5rem;
    transform: translateY(20px);
    transition: var(--transition-fast);
}

.gallery-item:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    z-index: 2;
}

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

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

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

.gallery-item.hide {
    display: none;
}

/* ==========================================================================
   Location Section
   ========================================================================== */
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.location-features {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.loc-feature {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.loc-feature i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.location-map {
    width: 100%;
    height: 400px;
    background-image: url('../img/fotos-externas/dsc00469.webp');
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.map-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.map-overlay i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.map-overlay h3 {
    color: white;
    font-family: var(--font-body);
    font-size: 1.5rem;
}

/* ==========================================================================
   CTA Section & Contact Block
   ========================================================================== */
.cta {
    background-color: var(--bg-light);
}

.cta-text {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.contact-block {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--bg-white);
    padding: 2.5rem 4rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    margin: 0 auto;
}

.contact-avatar i {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.contact-details {
    margin-bottom: 1.5rem;
}

.contact-name {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.contact-phone {
    font-size: 1.1rem;
    color: #666;
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #1a1a1a;
    color: #aaaaaa;
    padding-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #888;
    max-width: 300px;
}

.footer h3 {
    color: white;
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links-group ul li {
    margin-bottom: 0.8rem;
}

.footer-links-group a {
    color: #888;
}

.footer-links-group a:hover {
    color: var(--secondary-color);
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 1.1rem;
}

.footer-link i {
    color: var(--whatsapp-color);
    font-size: 1.5rem;
}

.footer-link:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
    color: #666;
}

.developer-link {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.developer-link:hover {
    color: var(--secondary-color);
}

/* ==========================================================================
   Floating WhatsApp Button
   ========================================================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 998;
    transition: transform var(--transition-fast);
    animation: pulse 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    color: white;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    border-radius: 4px;
}

.lightbox button {
    position: absolute;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 2001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lightbox button:hover {
    color: white;
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
}

/* ==========================================================================
   Animations (Scroll)
   ========================================================================== */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up { transform: translateY(60px); }
.fade-left { transform: translateX(60px); }
.fade-right { transform: translateX(-60px); }

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .section-title { font-size: 2.5rem; }
    .hero-title { font-size: 3.5rem; }
    
    .presentation-grid,
    .highlight-grid,
    .location-grid {
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section-padding { padding: 5rem 0; }
    .section-title { font-size: 2.5rem; }
    
    p {
        font-size: 1.1rem;
    }
    
    .btn-primary, .btn-outline {
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
    }
    
    /* Navbar Mobile */
    .menu-toggle { display: flex; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 3rem;
        transition: var(--transition-slow);
        z-index: 1000;
        box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links li a {
        display: block;
        padding: 1rem 0;
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        color: white;
    }
    
    .navbar .btn-outline {
        display: none; /* Hide button on mobile nav, maybe put inside menu later */
    }
    
    /* Layout */
    .hero-title { font-size: 2.8rem; }
    
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .presentation-grid,
    .highlight-grid,
    .location-grid {
        grid-template-columns: 1fr;
    }
    
    .highlight-image-secondary {
        display: none; /* Hide secondary image on mobile for cleaner look */
    }
    
    .highlight-reverse .highlight-grid {
        direction: ltr; /* Reset reverse on mobile */
    }
    
    .highlight-reverse .highlight-image {
        order: -1; /* Image always on top on mobile */
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .lightbox-prev, .lightbox-next {
        background: rgba(0,0,0,0.3);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        padding: 0;
    }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.2rem; }
    .section-title { font-size: 1.8rem; }
    .btn-primary, .btn-outline { width: 100%; }
    .gallery-grid { grid-template-columns: 1fr; }
}
