:root {
    /* Brand Colors */
    --primary-color: #4F55EA;
    --secondary-color: #C8EEEC;
    --accent-color: #F3C36A;
    --text-color: #2F2F2F;
    --text-light: #BDBDBD;
    --white: #FFFFFF;

    /* Fonts */
    --font-heading: 'Poetsen One', sans-serif;
    --font-body: 'Inclusive Sans', sans-serif;

    /* Spacing & Borders */
    --border-radius: 20px;
    --section-padding: 80px 0;
    --card-padding: 24px;
    --shadow-soft: 0 10px 30px rgba(79, 85, 234, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #EEF2F6;
    /* Adjusted for better contrast */
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.8;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: var(--font-body);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 85, 234, 0.3);
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    /* Space between logo and text */
}

.logo img {
    height: 48px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    line-height: 1;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-color);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    padding: 60px 0 100px;
    background: radial-gradient(circle at top right, #E0F7FA 0%, #EEF2F6 70%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.slogan {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 24px;
    max-width: 500px;
}

.problem-cards {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    /* Increased min-width to avoid narrow columns */
    gap: 20px;
}

.card {
    background: var(--white);
    padding: var(--card-padding);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.problem-card {
    text-align: center;
    padding: 30px 24px;
    /* Increased padding */
}

.problem-card h3 {
    color: var(--accent-color);
    font-size: 2.5rem;
    /* Larger percent number */
    margin-bottom: 5px;
    line-height: 1.2;
}

.problem-card h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-image {
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: #000;
    border-radius: 40px;
    border: 12px solid #333;
    padding: 0;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    /* Critical for overflow fix */
    max-width: 100%;
}

.phone-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cover or contain based on preference, cover usually better for filling */
    border-radius: 28px;
    /* Match inner radius roughly */
}

.screen-placeholder {
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: bold;
    text-align: center;
}

/* Sections General */
section {
    padding: var(--section-padding);
}

/* Ours / Company */
.company-section {
    background-color: transparent;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.team-member {
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: var(--shadow-soft);
}

.personas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 24px;
}

.persona-header h4 {
    margin: 0;
    color: var(--primary-color);
}

.persona-quote {
    font-style: italic;
    color: var(--accent-color);
    font-weight: 700;
    margin: 10px 0;
}

/* Research */
.research-section {
    background-color: var(--white);
}

.stat-highlight {
    text-align: center;
    margin-bottom: 40px;
    background: var(--primary-color);
    color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
}

.big-number {
    font-family: var(--font-heading);
    font-size: 5rem;
    display: block;
    line-height: 1;
    color: var(--accent-color);
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.insight-card {
    border-left: 5px solid var(--accent-color);
    background: #F8FAFF;
}

/* Process */
.process-section {
    background-color: transparent;
}

.flow-diagram {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
    padding: 20px;
    background: var(--secondary-color);
    border-radius: var(--border-radius);
}

.flow-step {
    background: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    color: var(--primary-color);
}

.arrow {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.feature-card {
    text-align: center;
}

.design-system-preview {
    background: #f4f4f4;
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
}

.ds-colors {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.color-swatch {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.reflection-block {
    background: var(--primary-color);
    color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
}

.reflection-block h3 {
    color: var(--accent-color);
}

/* Footer */
footer {
    background: var(--text-color);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    /* Improved Hierarchy */
    h2,
    h3 {
        margin-top: 2rem;
        margin-bottom: 1.5rem;
    }

    /* Increased Section Padding */
    section {
        padding: 60px 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        gap: 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        margin-top: 40px;
        order: -1;
    }

    /* Vertical Spacing for Nosotros Section */
    .mission-block,
    .audience-block,
    .team-block,
    .personas-section {
        margin-bottom: 40px;
    }

    /* Ensure gaps in grids */
    .problem-cards,
    .team-grid,
    .personas-grid,
    .insights-grid,
    .features-grid {
        gap: 24px;
        justify-content: center;
    }

    .card {
        margin-bottom: 0;
        /* Let gap handle it, but ensured just in case */
    }
}