:root {
    /* Brand Colors - Palmetto Inspired */
    --color-primary: #FF5A36;
    /* Vibrant Orange */
    --color-primary-hover: #E04826;
    --color-text-main: #1A1A1A;
    --color-text-light: #4A4A4A;
    --color-bg-light: #FFFFFF;
    --color-bg-off-white: #F7F7F7;
    --color-border: #E5E5E5;

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;

    /* UI Elements */
    --border-radius-pill: 50px;
    --border-radius-card: 12px;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--color-bg-light);
    color: var(--color-text-main);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
    font-weight: 600;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    background: transparent;
    /* Transparent for Tesla full screen look */
    height: 80px;
    display: flex;
    align-items: center;
    position: absolute;
    /* Absolute to overlay video */
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    /* Add subtle background or shadow if needed for visibility, or keep clean */
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    font-style: italic;
    color: white;
    /* White logo on video */
}

/* Mobile Icon */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger-menu span {
    width: 30px;
    height: 4px;
    /* Slightly thicker */
    background-color: var(--color-primary);
    /* Orange color */
    border-radius: 2px;
}

.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

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

.nav-links a {
    font-size: 0.95rem;
    color: white;
    /* White links for transparent header */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
    padding: 12px 28px;
    border-radius: var(--border-radius-pill);
    font-weight: 700;
    transition: all 0.2s;
    display: inline-block;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    /* Full viewport height (Tesla style) */
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center text vertically */
    align-items: center;
    /* Center text horizontally */
    padding-bottom: 0;
    /* Reset padding */
}

/* Default (Desktop) */
.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Key to prevent stretching */
    z-index: -2;
}

.video-desktop {
    display: block;
}

.video-tablet {
    display: none;
}

/* Media query for tablet/mobile video switch */
@media (max-width: 1024px) {
    .video-desktop {
        display: none !important;
    }

    .video-tablet {
        display: block !important;
    }
}

.hero-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    /* Slight overlay to ensure text readability */
    z-index: -1;
}

.hero-overlay-text {
    position: absolute;
    top: 15%;
    /* Position text higher up like Tesla example */
    width: 100%;
    text-align: center;
    z-index: 1;
    pointer-events: none;
}

.hero-title-big {
    font-size: 3.5rem;
    /* Tesla style is cleaner, smaller than 8rem */
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    /* Stronger shadow */
    width: 100%;
    display: block;
}

.text-highlight {
    color: var(--color-primary);
}

/* Calculator Card Floating */
.calc-card {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    position: absolute;
    bottom: 50px;
    /* Floating at bottom */
    width: 400px;
    /* Slightly wider */
    z-index: 10;
    /* Centered at bottom */
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    /* Reset right position */
    text-align: left;
    /* Reset text align */
}

.calc-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
    line-height: normal;
}

.calc-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-primary);
    display: block;
    text-align: right;
    /* Back to right alignment */
    margin: 0.5rem 0;
}

.slider-container {
    background: #FFE0D6;
    height: 24px;
    border-radius: 12px;
    position: relative;
    margin-bottom: 1rem;
}

.slider-knob {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    border-radius: 50%;
    position: absolute;
    top: -8px;
    left: 60%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* --- Tesla Features Section --- */
.tesla-features-section {
    position: relative;
    height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
    /* Ensure it sits below hero */
    z-index: 1;
}

.tesla-features-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    width: 100%;
    padding: 4rem 0 6rem 0;
}

@media (max-width: 768px) {
    .tesla-features-section {
        justify-content: center;
        /* Center content on mobile */
        height: auto;
        /* Allow height to fit content */
        min-height: 100vh;
    }

    .tesla-features-overlay {
        background: rgba(0, 0, 0, 0.5);
        /* Solid semi-transparent background for readability */
        padding: 4rem 1rem;
    }

    .tesla-features-section h2 {
        font-size: 2.5rem !important;
        /* Smaller title on mobile */
    }
}

.features-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
    padding: 0 2rem;
}

.feature-item {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-icon-large {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    stroke: white;
    stroke-width: 1.5;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-size: 0.9rem;
    opacity: 0.8;
    max-width: 250px;
    line-height: 1.4;
}

/* --- Savings Text Section --- */
.savings-text-section {
    background-color: white;
    padding: 6rem 2rem;
    text-align: center;
    color: var(--color-text-main);
}

.savings-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    /* Orange as requested */
}

.savings-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    color: #444;
}

/* Footer Tweaks if needed */
.footer {
    border-top: 1px solid #eaeaea;
}

/* Services Grid */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-text-main);
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    border-radius: var(--border-radius-card);
    border: 1px solid var(--color-border);
    padding: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-card);
    transform: translateY(-5px);
}

.card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-card);
    transform: translateY(-5px);
}

.card-icon-container {
    width: 80px;
    height: 80px;
    background-color: #F0F4F8;
    /* Light blue-ish gray from reference */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon {
    width: 40px;
    height: 40px;
    stroke: #334E68;
    /* Dark blue-gray line color */
    stroke-width: 1.5;
}

.footer {
    background: var(--color-text-main);
    color: white;
    padding: 4rem 0;
    margin-top: 4rem;
}

/* Mobile/Tablet Tweaks */
@media (max-width: 1024px) {

    /* Logo color is already handled by default class now */

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }

    .hero {
        height: 100vh;
        /* Keep full height */
        padding-top: 0;
        padding-bottom: 0;
        justify-content: center;
    }

    /* Video object-fit fix for mobile browsers */
    .hero-bg-video {
        width: 100vw;
        height: 100vh;
    }

    .hero-overlay-text {
        top: 15%;
        text-align: center;
    }

    .hero-title-big {
        font-size: 2.5rem;
        /* Smaller for mobile */
        margin-bottom: 0.5rem;
    }

    .calc-card {
        width: 90%;
        max-width: 380px;
        /* Limit width */
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        padding: 1.5rem;
    }

    .calc-title {
        font-size: 1rem;
        /* Slightly smaller titler */
    }

    .calc-price {
        font-size: 2rem;
        /* Adjusted for mobile */
    }

    /* Fix for "Vamos a bajarla" button text overflow */
    .btn {
        white-space: normal;
        line-height: 1.2;
        padding: 12px 15px;
        width: 100%;
    }
}

/* --- Brand Assets --- */

.logo-img {
    height: 52px;
    /* Reduced by 25% from 70px */
    width: auto;
    display: block;
    transition: all 0.3s ease;
}

/* --- Mobile Menu Overlay --- */
.mobile-nav-overlay {
    position: fixed;
    top: 80px;
    /* Below navbar */
    left: 0;
    width: 100%;
    height: 0;
    background-color: white;
    overflow: hidden;
    transition: height 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav-overlay.active {
    height: 100vh;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
    color: #333;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
    text-decoration: none;
}

.mobile-nav-icon {
    width: 24px;
    height: 24px;
    stroke: var(--color-primary);
}

/* Services Strip Container - More Fluid */
.services-strip-container {
    padding: 3rem 0;
    margin-bottom: 0;
    /* Remove bottom margin to connect fluidly with next section */
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
}

.services-strip {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.service-item-strip {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: var(--color-text-main);
    padding: 1.5rem;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background-color: transparent;
}

.service-item-strip:hover {
    background-color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.service-icon-strip {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    color: var(--color-text-main);
    transition: color 0.3s ease;
    /* Soften the icon lines for "drawn" feel */
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-item-strip:hover .service-icon-strip {
    color: var(--color-primary);
}

.service-title-strip {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.service-subtitle-strip {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
}

/* --- About Us Page Styles --- */

.about-split-card {
    display: flex;
    background-color: #F0F2EB;
    border-radius: 30px;
    overflow: hidden;
    min-height: 600px;
    margin-bottom: 4rem;
}

.about-image {
    flex: 1;
    position: relative;
}

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

.about-content {
    flex: 1;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.breadcrumbs {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1A1A1A;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -1px;
}

.about-text {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 90%;
}

.about-meta {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 2rem;
}

.meta-label {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background-color: #ddd;
    border-radius: 50%;
}

.author-name {
    font-weight: 700;
    color: #1A1A1A;
}

.author-role {
    font-size: 0.9rem;
    color: #666;
}

/* --- Palmetto Style Sections --- */

/* Hero Redesign */
.hero-palmetto {
    position: relative;
    height: 80vh;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.hero-content-palmetto {
    text-align: center;
    color: white;
    z-index: 2;
    padding-top: 4rem;
}

.title-massive {
    font-size: 6rem;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -2px;
    margin-bottom: 0.5rem;
}

.title-sub-massive {
    font-size: 4rem;
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -1px;
    margin-bottom: 2rem;
}

/* Floating pill for "Monthly payment" */
.float-pill {
    display: inline-flex;
    align-items: center;
    background: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
    color: var(--color-text-main);
    font-weight: 700;
}

.float-pill .price {
    color: var(--color-primary);
    margin-left: 0.5rem;
    font-size: 1.2rem;
}

/* Sections General */
.section-palmetto {
    padding: 5rem 1rem;
    background-color: var(--color-bg-cream);
    text-align: center;
}

.headline-large {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--color-text-main);
    margin-bottom: 1.5rem;
    line-height: 1;
    letter-spacing: -1px;
}

.headline-orange {
    color: var(--color-primary);
}

/* Bento Grid App Section */
.bento-section {
    background-color: #E8EFE6;
    /* Light greenish grey */
    padding: 5rem 1rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 2rem;
    max-width: 1000px;
    margin: 3rem auto 0;
}

.bento-card {
    background: white;
    border-radius: 32px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.bento-card.large {
    grid-column: span 2;
}

/* Financing Section */
.financing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 3rem auto 0;
}

.finance-card {
    background-color: var(--color-bg-green-light);
    border-radius: 32px;
    padding: 3rem;
    text-align: left;
    transition: transform 0.3s;
}

.finance-card:hover {
    transform: translateY(-5px);
}

.finance-tag {
    background-color: #D0E0B0;
    color: #333;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1rem;
}

.finance-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

/* Footer Redesign */
.footer-orange {
    background-color: var(--color-primary);
    color: white;
    padding: 5rem 1rem;
    margin-top: 0;
}

.footer-logo-large {
    font-size: 4rem;
    font-weight: 900;
    font-style: italic;
    margin-top: 3rem;
    display: block;
}

@media (max-width: 900px) {
    .title-massive {
        font-size: 3.5rem;
    }

    .title-sub-massive {
        font-size: 2.5rem;
    }

    .bento-grid,
    .financing-grid {
        grid-template-columns: 1fr;
    }

    .bento-card.large {
        grid-column: auto;
    }
}

/* --- Social Stories Section --- */

.stories-section {
    padding: 5rem 0;
    background-color: white;
}

.stories-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-text-main);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 Columns Layout */
    gap: 1.5rem;
    padding: 0 1rem;
}

.story-card {
    position: relative;
    height: 500px;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
}

.story-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.story-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    z-index: 2;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.story-quote {
    font-size: 1.25rem;
    font-weight: 500;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-style: italic;
}

.story-author {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 900px) {
    .stories-grid {
        grid-template-columns: 1fr;
    }

    .story-card {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .specs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .video-feature-section {
        height: auto;
        /* Allow growth */
        min-height: 100vh;
        /* Minimum full screen */
        justify-content: flex-end;
        /* Align bottom */
        padding-bottom: 4rem;
        /* Space for bottom content */
    }

    .hero-bg-video {
        position: absolute;
        /* Keep it absolute */
        height: 100%;
        /* Cover full height */
    }

    /* Improve overlay readability on mobile */
    .tesla-features-overlay {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
        padding: 2rem 1.5rem;
        position: relative;
        /* Ensure it stacks correctly */
    }

    /* Reduce title size on mobile to prevent overflow */
    .tesla-features-overlay h2 {
        font-size: 2.2rem !important;
        /* Force smaller size */
        margin-bottom: 1rem !important;
    }

    .btn-primary {
        padding: 0.8rem 2rem !important;
        font-size: 1rem !important;
    }
}

/* --- Savings Text Section --- */
.savings-text-section {
    background-color: white;
    padding: 6rem 2rem;
    text-align: center;
    color: var(--color-text-main);
}

.savings-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    /* Orange as requested */
}

.savings-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    color: #444;
}

/* --- Specs Grid (Tesla Tech Style) --- */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.spec-item {
    color: white;
}

.spec-title {
    display: block;
    font-size: 1.5rem;
    /* Larger */
    font-weight: 700;
    margin-bottom: 0.5rem;
    border-top: 2px solid white;
    /* Tesla style line */
    padding-top: 1rem;
}

.spec-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    /* High contrast white */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

@media (max-width: 900px) {
    .specs-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .specs-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .spec-item {
        border-top: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
        padding-bottom: 1.5rem;
    }
}

/* --- How It Works Section (Holaluz Style) --- */
.how-it-works-section {
    padding: 6rem 2rem;
    background-color: white;
    text-align: center;
}

.hiw-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #1A1A1A;
}

.hiw-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 4rem;
}

.hiw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 3rem;
    row-gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.hiw-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hiw-item-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1A1A1A;
    margin-bottom: 0.5rem;
}

.hiw-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #E6007E 0%, #FFD100 100%);
    /* Pink to Yellow gradient */
    margin-bottom: 1rem;
    border-radius: 2px;
}

.hiw-item-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

@media (max-width: 900px) {
    .hiw-grid {
        grid-template-columns: 1fr;
        row-gap: 3rem;
    }

    .hiw-item {
        align-items: center;
        text-align: center;
    }
}

/* --- App Section (Full Width Background) --- */
.app-section {
    position: relative;
    width: 100%;
    height: 80vh;
    /* Adjust height as needed */
    min-height: 600px;
    background-image: url('Landing/celular.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Align content to the right */
}

/* Optional overlay to ensure text readability */
.app-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.app-content-overlay {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 500px;
    margin-right: 10%;
    /* Spacing from right edge */
    text-align: left;
    padding: 2rem;
}

.app-title-large {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.1;
}

.app-desc-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .app-section {
        justify-content: center;
        background-position: center;
    }

    .app-section::before {
        background: rgba(0, 0, 0, 0.5);
        /* Darker overall overlay on mobile */
    }

    .app-content-overlay {
        margin-right: 0;
        text-align: center;
        max-width: 90%;
    }

    .app-section {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
    }
}

/* --- Partner Section --- */
.partner-section {
    padding: 4rem 2rem;
    background-color: white;
    text-align: center;
}

.partner-image {
    max-width: 300px;
    height: auto;
    margin-bottom: 2rem;
    display: inline-block;
}

.partner-video {
    width: 100%;
    max-width: 800px;
    /* Limit width */
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.partner-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 0.5rem;
}

/* --- SOCIAL IMPACT SECTION (Uganda) --- */
.impact-section {
    position: relative;
    padding: 6rem 2rem;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background-image: url('Landing/images.webp');
    /* Assuming this is the representative image */
    background-size: cover;
    background-position: center;
    color: white;
}

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

.impact-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin-left: auto;
    /* Aligns to right as "otro dirección" implies difference from previous */
    margin-right: 5%;
    text-align: right;
}

.impact-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.impact-desc {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}


/* --- Video Feature Section (Base Styles) --- */
.video-feature-section {
    position: relative;
    height: 100vh;
    /* Default desktop height */
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-color: #000;
    /* Fallback color */
}

/* Ensure video stays in background of section */
.video-feature-section .hero-bg-video {
    z-index: 0;
    /* Behind content (1), but in front of section bg */
}

.video-feature-section .tesla-features-overlay {
    z-index: 2;
    /* Content on top */
}

/* --- FOOTER --- */
.main-footer {
    background-color: #1a1a1a;
    color: white;
    padding: 4rem 2rem 2rem;
    font-size: 0.9rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
        /* Logo, Menu, Links, Social */
    }
}

.footer-col h4 {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 2rem;
    color: #666;
}


/* --- NAVBAR --- */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s, padding 0.3s;
}

.main-nav.scrolled {
    background: rgba(0, 0, 0, 0.9);
    /* Dark background on scroll */
    padding: 1rem 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.bar {
    width: 30px;
    height: 3px;
    background-color: var(--color-primary);
    /* Orange bars */
    border-radius: 2px;
}

/* Mobile Nav */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Hidden by default */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #111;
        flex-direction: column;
        padding: 2rem;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }
}


/* --- WHATSAPP BUTTON --- */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s ease;
    text-decoration: none;
}

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

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

.purpose-section {
    padding: 6rem 2rem;
    background-color: #111;
    /* Dark background per reference */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.purpose-content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.purpose-text-col {
    text-align: left;
}

.purpose-overline {
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
}

.purpose-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.1;
}

.purpose-desc {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 500px;
}

.purpose-video-col {
    width: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.purpose-video {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    /* Horizontal format */
    object-fit: cover;
}

@media (min-width: 1024px) {
    .purpose-content-wrapper {
        grid-template-columns: 1fr 1.5fr;
        /* Text | Video */
    }
}

/* --- Business Carousel Section --- */
.business-carousel-section {
    padding: 4rem 0;
    background-color: #000;
    /* Dark background like reference */
    color: white;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 2rem;
    /* Space for scrollbar if visible (hidden by CSS below) */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
}

.carousel-track::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.carousel-card {
    flex: 0 0 80%;
    /* Show part of next card on mobile */
    min-width: 300px;
    scroll-snap-align: center;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a1a;
}

.carousel-card img,
.carousel-card video {
    width: 100%;
    height: 400px;
    /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.carousel-card:hover img,
.carousel-card:hover video {
    transform: scale(1.02);
}

.card-content {
    padding: 1.5rem;
    text-align: left;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.card-desc {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.5;
}

/* Navigation Buttons */
.carousel-nav-btn {
    position: absolute;
    top: 40%;
    /* Center relative to image height approx */
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    z-index: 10;
    transition: background 0.2s;
}

.carousel-nav-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.prev-btn {
    left: 3rem;
}

.next-btn {
    right: 3rem;
}

@media (min-width: 768px) {
    .carousel-card {
        flex: 0 0 45%;
        /* show 2 cards + bit of 3rd */
        scroll-snap-align: start;
    }

    .prev-btn {
        left: 1rem;
    }

    .next-btn {
        right: 1rem;
    }
}

@media (min-width: 1024px) {
    .carousel-card {
        flex: 0 0 32%;
        /* show 3 cards */
    }
}

/* --- Social Media Section --- */
.social-media-section {
    padding: 6rem 1rem;
    /* More padding for premium look */
    background-color: white;
}

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

.social-overline {
    font-size: 0.9rem;
    font-weight: 700;
    color: #666;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
}

.social-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-text-main);
    line-height: 1.1;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    /* Mobile: 1 column */
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.social-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 9/16;
    /* TikTok/Reels ratio */
    background: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.social-card:hover {
    transform: translateY(-10px);
}

.social-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.social-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    z-index: 2;
}

.social-handle {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .social-grid {
        grid-template-columns: repeat(3, 1fr);
        /* Desktop: 3 columns */
    }
}

.energy-flow-widget {
    position: relative;
    width: 320px;
    height: 600px;
    /* Phone ratio roughly */
    background: rgba(0, 0, 0, 0.8);
    border-radius: 40px;
    border: 4px solid #333;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-left: 10%;
    /* Offset from left */
    z-index: 10;
    backdrop-filter: blur(10px);
}

.flow-container {
    position: relative;
    width: 280px;
    height: 280px;
}


/* Icons */
.flow-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.icon-sun {
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    color: #29B6F6;
    /* Cyan Blue */
}

.icon-grid {
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: white;
}

.icon-home {
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    color: #F68B1F;
}

.icon-battery {
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    color: #78BE20;
}

.icon-bg {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    margin-bottom: 6px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.flow-label {
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Flow Lines SVG */
.flow-lines-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.flow-path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.15);
    /* Faint track */
    stroke-width: 2;
}

/* Animations using straight lines passing through center */

/* Sun to Center */
.anim-sun-center {
    animation: flowPulse 2s infinite linear;
    color: #29B6F6;
    offset-path: path('M160 80 L160 300');
    /* Top to Center */
}

/* Grid to Center */
.anim-grid-center {
    animation: flowPulse 3s infinite linear;
    color: white;
    offset-path: path('M50 300 L160 300');
    /* Left to Center */
}

/* Center to Home */
.anim-center-home {
    animation: flowPulse 2s infinite linear;
    animation-delay: 0.5s;
    color: #F68B1F;
    offset-path: path('M160 300 L270 300');
    /* Center to Right */
}

/* Center to Battery */
.anim-center-batt {
    animation: flowPulse 2.5s infinite linear;
    animation-delay: 1s;
    color: #78BE20;
    offset-path: path('M160 300 L160 520');
    /* Center to Bottom */
}

@keyframes flowPulse {
    0% {
        offset-distance: 0%;
        opacity: 0;
        transform: scale(0.5);
    }

    10% {
        opacity: 1;
        transform: scale(1);
    }

    90% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        offset-distance: 100%;
        opacity: 0;
        transform: scale(0.5);
    }
}

.central-dot {
    fill: #FFD100;
    /* Yellow hub */
    filter: drop-shadow(0 0 5px #FFD100);
}

@media (max-width: 900px) {
    .energy-flow-widget {
        margin-left: 0;
        width: 300px;
        height: 550px;
        margin-bottom: 2rem;
    }
}