/* Reset and Variables */
:root {
    --color-bg: #f9f9f6;
    --color-text: #333333;
    --color-primary: #4a5d23; /* Forest Green of the cabins */
    --color-primary-dark: #3a481c;
    --color-secondary: #dcd0b8; /* Beige/Wood tone */
    --color-white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}

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

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

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 93, 35, 0.3);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    z-index: 1000;
    background: rgba(249, 249, 246, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply; /* Elimina el fondo blanco del logo */
}

.nav a {
    margin-left: 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    overflow: hidden;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    animation: fadeIn 1.5s ease;
}

.hero h1 {
    font-size: 4rem;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Sections General */
.section {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

/* About Section */
.about-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #555;
}

.about-gallery {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.about-gallery img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.about-gallery img:hover {
    transform: scale(1.03);
}

/* Image Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoomIn {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

/* Tabs */
.tabs-container {
    width: 100%;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-btn {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}

.tab-btn:hover, .tab-btn.active {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.tab-content {
    animation: fadeIn 0.5s ease;
}



/* Services */
.services {
    text-align: center;
    background-color: var(--color-white);
    max-width: 100%;
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--color-bg);
    padding: 3rem 2rem;
    border-radius: 20px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-family: var(--font-body);
}

.service-card p {
    color: #666;
}

/* Gallery Carousel */
.gallery {
    overflow: hidden;
    width: 100%;
    height: 50vh;
    display: flex;
}

.carousel-track {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.carousel-track img {
    height: 100%;
    width: 33.333vw;
    object-fit: cover;
    flex-shrink: 0;
}

.gallery:hover .carousel-track {
    animation-play-state: paused;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Contact */
.contact {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-card {
    background: var(--color-white);
    padding: 4rem;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    max-width: 600px;
    width: 100%;
}

.contact-card p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    background-color: #1ebe57;
    transform: translateY(-2px);
}

.btn-social {
    background-color: var(--color-bg);
    color: var(--color-text);
    padding: 1rem;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid #ddd;
}

.btn-social:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .nav a {
        margin: 0;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .about-container {
        flex-direction: column;
    }
    
    .gallery {
        height: 40vh;
    }
    
    .carousel-track img {
        width: 85vw;
    }
    
    .contact-card {
        padding: 2rem;
    }
}
