/* Variables de Color inspiradas en la imagen del branding */
:root {
    --bg-cream: #fbf9f6;
    --wood-light: #e5d5c5;
    --wood-accent: #c7a485;
    --wood-medium: #8f6b50;
    --wood-dark: #634630;
    --text-dark: #2a221c;
    --text-light: #fbf9f6;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
}

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

p {
    margin-bottom: 1.2rem;
    font-weight: 300;
    font-size: 1.1rem;
    color: #4a3e35;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(251, 249, 246, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(199, 164, 133, 0.2);
}

.navbar.scrolled {
    padding: 0.8rem 5%;
    box-shadow: 0 4px 20px rgba(42, 34, 28, 0.05);
}

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

.logo-image {
    height: 60px; /* Reduced to fit nicely */
    width: auto;
    object-fit: contain;
    margin-right: 12px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--wood-dark);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-highlight {
    color: var(--wood-medium);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 400;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a:not(.btn-primary-small)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--wood-medium);
    transition: var(--transition);
}

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

/* Hamburger Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    padding: 10px;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    z-index: 1001;
}

.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--wood-dark);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Buttons */
.btn-primary, .btn-primary-small {
    display: inline-block;
    background-color: var(--wood-medium);
    color: var(--text-light) !important;
    text-decoration: none;
    border-radius: 4px; /* More serious boxy look compared to round */
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--wood-medium);
    font-family: var(--font-body);
}

.btn-primary {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-top: 2rem;
}

.btn-primary-small {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
}

.btn-primary:hover, .btn-primary-small:hover {
    background-color: var(--bg-cream);
    color: var(--wood-medium) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(143, 107, 80, 0.15);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center; 
    background-color: var(--bg-cream);
    padding-top: 80px; 
    padding-bottom: 60px;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Dark shadow overlay for premium look */
    z-index: 1;
}

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

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 3rem 2rem 2rem;
    position: relative;
    z-index: 2;
    animation: fadeIn 1.5s ease-out;
    color: var(--text-light); /* Make text light over dark video shadow */
}

.hero-title, .hero-subtitle, .hero-description {
    color: var(--text-light) !important;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: var(--wood-dark);
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--wood-medium);
    font-style: italic;
    margin-bottom: 2rem;
}

.hero-description {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Section General */
.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.8rem;
    color: var(--wood-dark);
    margin-bottom: 2rem;
    position: relative;
}

.section-title.center {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--wood-accent);
    margin-top: 15px;
}

.section-title.center::after {
    margin: 15px auto 0;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(42, 34, 28, 0.04);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--bg-cream);
}

.service-card:hover {
    transform: translateY(-5px);
    border-top-color: var(--wood-accent);
    box-shadow: 0 15px 35px rgba(42, 34, 28, 0.08);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background-color: var(--bg-cream);
    border-radius: 50%;
    color: var(--wood-medium);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

/* Philosophy */
.philosophy {
    background-color: #fff;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.quote {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-style: italic;
    color: var(--wood-medium);
    margin-top: 2rem;
    padding-left: 1.5rem;
    border-left: 3px solid var(--wood-accent);
}

.philosophy-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.philosophy-img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(42, 34, 28, 0.1));
}

/* Capital de Movimiento */
.capital {
    background-color: var(--wood-light);
    background-image: linear-gradient(to right, rgba(251, 249, 246, 0.9), rgba(229, 213, 197, 0.7));
    position: relative;
}

.capital-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
}

.capital-image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(42, 34, 28, 0.1);
    /* Set specific aspect ratio to crop the bottom watermark effectively */
    aspect-ratio: 4/5; 
}

.capital-img {
    width: 100%;
    height: 110%; /* Makes image 10% taller than wrapper, pushing bottom content out */
    object-fit: cover;
    object-position: center top; /* Pin to top, letting bottom overflow */
    display: block;
}

.capital-content {
    background: #fff;
    padding: 3.5rem;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(42, 34, 28, 0.05);
    position: relative;
    z-index: 2;
}

.capital-content .section-title {
    font-size: 2.3rem;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.capital-text p {
    font-size: 1.2rem;
    color: #3d3028;
    line-height: 1.8;
}

.capital-text strong {
    color: var(--wood-dark);
    font-weight: 600;
}

/* Banner Quote */
.banner {
    background-color: var(--wood-dark);
    color: var(--text-light);
    text-align: center;
    padding: 5rem 2rem;
}

.banner-content h2 {
    font-size: 2.4rem;
    font-weight: 400;
    max-width: 900px;
    margin: 0 auto 1.5rem;
    line-height: 1.3;
    color: white;
}

.banner-content p {
    font-size: 1.2rem;
    color: var(--wood-light);
}

.banner-area {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(251, 249, 246, 0.15);
    font-size: 1rem !important;
    opacity: 0.85;
}

/* Footer & Form */
.footer {
    background-color: var(--text-dark);
    color: var(--text-light);
    padding: 5rem 0 2rem;
}

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

.footer-logo {
    height: 80px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer h4 {
    color: var(--wood-light);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.footer p {
    color: rgba(251, 249, 246, 0.7);
    margin-bottom: 0.5rem;
}

.contact-form {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid rgba(251, 249, 246, 0.2);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    width: 100%;
}

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

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--wood-accent);
    outline-offset: 2px;
    background: rgba(255, 255, 255, 0.08);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(251, 249, 246, 0.5);
}

.contact-form button {
    cursor: pointer;
    border: none;
    padding: 1rem;
    font-weight: 600;
}

.contact-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-status {
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(127, 186, 127, 0.15);
    color: #c7e6c7;
    border: 1px solid rgba(127, 186, 127, 0.3);
}

.form-status.error {
    display: block;
    background: rgba(220, 120, 120, 0.15);
    color: #f0c7c7;
    border: 1px solid rgba(220, 120, 120, 0.3);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(251, 249, 246, 0.1);
    color: rgba(251, 249, 246, 0.5);
    font-size: 0.9rem;
}

/* WhatsApp Floating Button */
.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 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 2px 2px 15px rgba(0,0,0,0.3);
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
    fill: currentColor;
}

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

/* Responsive Design */
@media (max-width: 900px) {
    .capital-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .capital-content {
        padding: 2.5rem;
    }
    
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .philosophy-img {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        inset: 0 0 0 30%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        background-color: rgba(251, 249, 246, 0.98);
        backdrop-filter: blur(12px);
        padding: 2rem;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
        box-shadow: -10px 0 40px rgba(42, 34, 28, 0.08);
        z-index: 1000;
    }

    .nav-links.is-open {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.3rem;
    }

    body.nav-open {
        overflow: hidden;
    }

    .hero-title {
        font-size: 2.8rem;
    }
    
    .logo-image {
        height: 45px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-icon {
        width: 30px;
        height: 30px;
    }
}
