:root {
    --bg-color: #FAFAF7; /* Warm white / cream */
    --text-color: #2C2C2C; /* Dark gray for readability */
    --accent-color: #C0A991; /* Elegant warm taupe/beige */
    --accent-hover: #A8917A;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --card-bg: #FFFFFF;
    --border-color: #E8E5DF;
    --footer-bg: #2C2C2C;
    --footer-text: #FAFAF7;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

/* Language Switcher */
html[lang="es"] .lang-en { display: none !important; }
html[lang="en"] .lang-es { display: none !important; }

header {
    background-color: var(--nav-bg);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
}

.logo-container img {
    height: 100px;
    max-width: 100%;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-color);
}

.lang-switch {
    background-color: transparent;
    border: 1px solid var(--text-color);
    padding: 5px 15px;
    cursor: pointer;
    border-radius: 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.lang-switch:hover {
    background-color: var(--text-color);
    color: #fff;
}

section {
    padding: 100px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding-top: 120px;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--accent-color);
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--accent-hover);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* About Section */
.about {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    background-color: var(--card-bg);
    padding: 60px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    margin-bottom: 50px;
}

.about-image img {
    max-width: 300px;
    border-radius: 10px;
}

.about-text h3 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.about-text p {
    margin-bottom: 15px;
    text-align: justify;
}

/* Services */
.services-section h3 {
    text-align: center;
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 50px;
    color: var(--accent-color);
}

/* Tabs */
.tabs-container {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    overflow: hidden;
    margin-top: 30px;
}

.tabs-nav {
    display: flex;
    background-color: #F5F5F0;
    flex-wrap: wrap;
}

.tab-btn {
    flex: 1;
    min-width: 150px;
    background: none;
    border: none;
    padding: 20px 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    color: var(--text-color);
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background-color: #E8E5DF;
}

.tab-btn.active {
    background-color: var(--card-bg);
    color: var(--accent-color);
    border-bottom: 3px solid var(--accent-color);
}

.tabs-content {
    padding: 40px;
}

.tab-pane {
    display: none;
    animation: slideUp 0.5s ease;
}

.tab-pane.active {
    display: block;
}

.tab-pane h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

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

.fade-in-section {
    opacity: 0;
    transform: translateY(20vh);
    visibility: hidden;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
    visibility: visible;
}

/* CV Section */
.cv-section {
    text-align: center;
    background-color: var(--accent-color);
    color: #fff;
    padding: 80px 20px;
    border-radius: 15px;
    margin: 50px auto;
    max-width: 800px;
}

.cv-section h3 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 20px;
}

.cv-section p {
    margin-bottom: 30px;
}

.cv-section .btn {
    background-color: #fff;
    color: var(--accent-color);
}

.cv-section .btn:hover {
    background-color: #f0f0f0;
}

/* Contact */
.contact-section {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.contact-info p {
    margin-bottom: 10px;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--accent-color);
    font-size: 24px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--text-color);
}

.contact-form {
    flex: 1;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    background-color: var(--bg-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    header {
        flex-direction: column;
        padding: 10px 20px;
        gap: 15px;
    }
    
    .logo-container img {
        height: 70px; /* slightly smaller on mobile to fit */
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        width: 100%;
    }
    
    nav ul li a {
        font-size: 13px;
    }

    .hero {
        padding-top: 200px; /* Adjust for taller stacked header */
        flex-direction: column;
        text-align: center;
    }
    
    .about, .contact-section {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

    .about-image img {
        margin: 0 auto;
    }

    .tabs-nav {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .tab-btn.active {
        border-bottom: 1px solid var(--accent-color);
        border-left: 4px solid var(--accent-color);
    }

    section {
        padding: 60px 20px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.2rem;
    }
    
    .contact-form {
        width: 100%;
        padding: 20px;
    }
}
