:root {
    --color-bg: #F5F5F2;
    /* Hueso / Bone White */
    --color-text: #1A1A1A;
    /* Carbón / Charcoal */
    --color-primary: #143625;
    /* Verde Profundo / Deep Green */
    --color-secondary: #2C5E43;
    /* Lighter green for accents/hover */
    --color-white: #FFFFFF;

    --font-main: 'Outfit', sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    --border-radius: 4px;
    /* Minimalist, not too rounded */
}

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

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

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

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

section {
    padding: var(--spacing-xl) 0;
}

/* Header & Navigation */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--spacing-md) 0;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    /* Align to right */
    align-items: center;
}

.login-btn {
    text-decoration: none;
    color: var(--color-white);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.6rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
    /* Slight dark background for contrast */
    backdrop-filter: blur(5px);
}

.login-btn:hover {
    background: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
}

/* Ensure header doesn't interfere with mobile touch */
@media (max-width: 768px) {
    .site-header {
        padding: var(--spacing-sm) 0;
    }

    .login-btn {
        font-size: 0.9rem;
        padding: 0.5rem 1.2rem;
    }
}


/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: var(--spacing-xl);
    position: relative;
    overflow: hidden;
    /* Ensure video doesn't spill out */
    /* Removed linear-gradient in favor of video */
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* "AI-Style" Enhancement: Deep contrast, lowered brightness for text pop, slight desaturation to look premium */
    filter: brightness(0.5) contrast(1.2) saturate(0.8);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Heavy dark overlay to ensure the white logo stands out perfectly */
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    /* Extra backdrop filter for text legibility if needed, keeping it clean for now */
}

.logo-container {
    margin-bottom: var(--spacing-md);
}

.brand-logo {
    max-width: 180px;
    height: auto;
    display: block;
    margin: 0 auto;
    /* CRITICAL FIX: Turn the green logo WHITE using filters */
    /* brightness(0) invert(1) turns any non-transparent pixel white */
    /* drop-shadow adds depth */
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.brand-name {
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--color-white);
    /* Changed to white for video contrast */
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    /* Deeper text shadow */
}

.tagline {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 500;
    color: var(--color-white);
    /* Changed to white */
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.9rem;
    color: var(--color-white);
    /* Changed to white */
    opacity: 0.8;
    z-index: 3;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background-color: var(--color-white);
    /* Changed to white */
    margin-top: var(--spacing-sm);
    animation: scrollGrow 2s infinite ease-in-out;
    transform-origin: top;
}

@keyframes scrollGrow {
    0% {
        transform: scaleY(0);
    }

    50% {
        transform: scaleY(1);
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* Manifesto Section */
.manifesto-section {
    background-image: url('family_reference.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: var(--color-white);
    text-align: center;
    padding: var(--spacing-xl) 0;
}

/* Add overlay to manifesto for image readability */
.manifesto-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 54, 37, 0.85);
    /* Strong green overlay to keep branding and readability */
    z-index: 1;
}

.manifesto-text {
    position: relative;
    z-index: 2;
    /* text above overlay */
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 300;
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto;
}

.manifesto-text p {
    margin-bottom: var(--spacing-xs);
}

.highlight-text {
    font-weight: 500;
    color: #A3C9B2;
    /* Subtle light green accent */
    margin-top: var(--spacing-md);
}

.final-line {
    font-size: 1.1em;
    font-weight: 500;
    margin-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--spacing-md);
    display: inline-block;
}

/* Products Section */
.products-section {
    background-color: var(--color-bg);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Product Card Updates */
.product-card {
    background: var(--color-white);
    padding: 0;
    /* Remove padding to let image fill top */
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.card-image {
    width: 100%;
    height: 200px;
}

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

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

.card-content {
    padding: var(--spacing-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.product-card h3 {
    font-size: 1.5rem;
    color: var(--color-text);
}

.product-card.future {
    background: transparent;
    border: 1px dashed var(--color-primary);
    position: relative;
    overflow: hidden;
    justify-content: center;
    /* Center content vertically since no image */
}

.badge {
    display: inline-block;
    margin-top: var(--spacing-sm);
    font-size: 0.8rem;
    background-color: var(--color-primary);
    color: white;
    padding: 0.2em 0.8em;
    border-radius: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.note {
    text-align: center;
    margin-top: var(--spacing-lg);
    font-size: 0.9rem;
    color: #666;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Split Section Layout */
.split-section {
    position: relative;
}

.split-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.split-container .split-content {
    flex: 1;
}

.split-container .split-image {
    flex: 1;
    height: 400px;
    /* Fixed height for consistency */
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.split-section.reverse .split-container {
    flex-direction: row-reverse;
}

.align-left {
    text-align: left;
    margin-left: 0;
}

.white-text {
    color: var(--color-white) !important;
}

/* Specific Section Tweaks */
.family-section {
    background-color: var(--color-primary);
    color: var(--color-white);
    text-align: center;
}

.family-section .section-title {
    color: var(--color-white);
}

.family-text {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Vision Section */
.vision-section {
    background-color: #EBEBE8;
    /* Slightly darker than bone white for contrast */
    text-align: center;
}

.vision-text {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
}

/* Location Section Update */
.location-section {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    position: relative;
    padding: var(--spacing-xl) 0;
    text-align: center;
    border-bottom: none;
}

.location-details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
    text-align: left;
}

.location-text {
    flex: 1;
    min-width: 300px;
}

.location-text h3 {
    font-size: 2rem;
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.location-list {
    list-style: none;
    margin: var(--spacing-md) 0;
    padding: 0;
}

.location-list li {
    margin-bottom: var(--spacing-xs);
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    padding-left: 1.5em;
}

.location-list li::before {
    content: "•";
    color: #A3C9B2;
    /* Light green accent */
    position: absolute;
    left: 0;
    font-size: 1.5em;
    line-height: 1;
}

.location-map-visual {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.location-map-visual img {
    width: 100%;
    height: auto;
    border-radius: 2px;
    display: block;
}

.map-btn {
    display: inline-block;
    background-color: transparent;
    color: var(--color-white);
    border: 1px solid var(--color-white);
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: var(--spacing-sm);
}

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

/* Overlay darker for text readability */
.overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    /* Increased opacity for readability */
    z-index: 1;
}

.location-container {
    position: relative;
    z-index: 2;
}

/* Contact Section */
.contact-section {
    padding-bottom: var(--spacing-xl);
    text-align: center;
}

.contact-card {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.phone-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.cta-text {
    margin-bottom: var(--spacing-md);
    color: #555;
}

.contact-btn {
    display: inline-block;
    background-color: var(--color-primary);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: background-color 0.3s;
}

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

/* Footer */
.site-footer {
    background: var(--color-text);
    color: #888;
    padding: var(--spacing-md) 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Mobile Tweaks Update */
@media (max-width: 768px) {
    .split-container {
        flex-direction: column;
    }

    .split-section.reverse .split-container {
        flex-direction: column;
    }

    .split-container .split-image {
        width: 100%;
        height: 250px;
        order: -1;
        /* Image first on mobile usually looks better */
    }

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

    section {
        padding: var(--spacing-lg) 0;
    }

    .hero-section {
        padding-top: var(--spacing-lg);
    }
}

/* Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}