:root {
    /* Colors */
    --color-primary: #E87C38;
    /* Vibrant Orange */
    --color-primary-hover: #D06B2E;
    --color-text-main: #333333;
    --color-text-secondary: #666666;
    --color-bg-body: #F8F9FB;
    /* Light Gray for body */
    --color-bg-white: #FFFFFF;
    --color-border: #E5E7EB;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
}

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

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.navbar {
    position: sticky;
    top: 0;
    background-color: var(--color-bg-white);
    height: var(--header-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid transparent;
    /* Optional border */
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-item {
    text-decoration: none;
    color: var(--color-text-main);
    font-weight: 500;
    font-size: 16px;
    position: relative;
    padding: 4px 0;
    transition: color 0.2s;
}

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

/* Hover effect for "Cómo funciona" */
.nav-item.active-hover:hover::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-text {
    text-decoration: none;
    color: var(--color-text-main);
    font-weight: 500;
    font-size: 15px;
}

.btn-text:hover {
    text-decoration: underline;
}

.btn-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--color-bg-white);
    border: 1px solid #E0E0E0;
    color: var(--color-text-main);
    padding: 10px 20px;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-secondary:hover {
    background-color: #F5F5F5;
    border-color: #D6D6D6;
}

.google-icon {
    width: 18px;
    height: 18px;
}

/* Mobile Menu Button - Hidden by default on Desktop */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.bar {
    width: 24px;
    height: 2px;
    background-color: var(--color-text-main);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    background-color: var(--color-bg-body);
    /* Or white depending on preference */
}

.hero-container h1 {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--color-text-main);
}

.hero-container h1 .highlight {
    color: var(--color-primary);
}

.hero-subtext {
    font-size: 18px;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    font-family: inherit;
    box-shadow: 0 4px 6px rgba(232, 124, 56, 0.2);
}

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

.btn-primary:active {
    transform: translateY(1px);
}

.link-secondary {
    color: var(--color-text-main);
    text-decoration: underline;
    font-size: 15px;
    cursor: pointer;
    text-underline-offset: 4px;
}

.link-secondary:hover {
    color: var(--color-primary);
}

/* Showcase / Carousel */
.showcase {
    padding: 60px 0 100px;
    overflow: hidden;
    /* Hide overflow for carousel */
}

.showcase-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    position: relative;
    max-width: 1400px;
    /* Slightly wider for the cards */
    margin: 0 auto;
    padding: 0 24px;
}

.nav-arrow {
    background-color: white;
    border: 1px solid var(--color-border);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
    color: var(--color-text-secondary);
    z-index: 10;
}

.nav-arrow:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: var(--color-text-main);
    transform: scale(1.05);
}

.carousel-window {
    width: 100%;
    max-width: 1000px;
    /* Adjust based on card width * 3 approx */
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 32px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    padding: 20px 10px;
    /* Padding for shadow clipping */
}

.card {
    min-width: 300px;
    height: 400px;
    background-color: var(--color-bg-white);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.card-header {
    height: 40px;
    background-color: #F8F9FB;
    /* Toolbar look */
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background-color: #FF5F56;
}

.dot.yellow {
    background-color: #FFBD2E;
}

.dot.green {
    background-color: #27C93F;
}

.card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-label {
    margin-top: auto;
    text-align: center;
    padding: 12px;
    font-size: 12px;
    color: var(--color-text-secondary);
    border-top: 1px solid var(--color-border);
    background-color: #FCFCFC;
}

/* Skeleton UI for fake interface */
.skeleton-line {
    height: 8px;
    background-color: #EEEEEE;
    border-radius: 4px;
}

.w-40 {
    width: 40%;
}

.w-50 {
    width: 50%;
}

.w-60 {
    width: 60%;
}

.w-70 {
    width: 70%;
}

.w-80 {
    width: 80%;
}

.w-90 {
    width: 90%;
}

.skeleton-block {
    background-color: #F3F3F3;
    border-radius: 8px;
}

.chat-message-left {
    height: 40px;
    width: 70%;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.chat-message-right {
    height: 40px;
    width: 70%;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    background-color: #E8E8E8;
}

.skeleton-input {
    height: 36px;
    border: 1px solid #E0E0E0;
    border-radius: 20px;
    margin-top: auto;
}

.chart-placeholder {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 100px;
    padding-bottom: 8px;
    border-bottom: 1px solid #E0E0E0;
}

.bar {
    flex: 1;
    background-color: #E0E0E0;
    border-radius: 4px 4px 0 0;
}

.h-40 {
    height: 40%;
}

.h-60 {
    height: 60%;
}

.h-30 {
    height: 30%;
}

.h-80 {
    height: 80%;
    background-color: var(--color-primary);
    opacity: 0.6;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkbox {
    width: 16px;
    height: 16px;
    border: 2px solid #DDDDDD;
    border-radius: 4px;
}

.checkbox.checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .hero-container h1 {
        font-size: 36px;
    }

    .hero-subtext {
        font-size: 16px;
        padding: 0 16px;
    }

    /* Mobile Menu */
    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
        /* Above mobile menu overlay */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        /* Drawer */
        background-color: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        padding: 40px;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .auth-buttons {
        display: none;
        /* Hide auth buttons on simple mobile view, or move them into drawer via JS if needed. For this MVP, we hide or stack */
    }

    /* Move auth buttons into the drawer logic is better for UX, 
       but strictly with CSS, let's keep it simple or use JS to append.
       For this specific requested "responsive" behavior:
       "En móvil, el menú debe colapsar (hamburguesa)"
    */

    /* Carousel */
    .showcase-container {
        flex-direction: column;
        gap: 20px;
    }

    .carousel-window {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px;
        /* Scrollbar space */
    }

    .carousel-track {
        gap: 16px;
    }

    .card {
        scroll-snap-align: center;
        min-width: 280px;
        /* Slightly smaller cards */
    }

    .nav-arrow {
        display: none;
        /* Hide arrows on mobile, use native scroll */
    }
}

/* Subpages */
.page-hero {
    padding: 60px 0 30px;
    text-align: center;
}

.page-hero h1 {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.page-hero p {
    color: var(--color-text-secondary);
    max-width: 720px;
    margin: 0 auto;
}

.page-content {
    padding: 40px 0 60px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.info-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-soft);
    min-height: 140px;
}

.page-cta {
    padding: 40px 0 80px;
    text-align: center;
}

@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 28px;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }
}

.nav-item.active {
    color: var(--color-primary);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    border-radius: 2px;
}