:root {
    --primary-purple: #4b2191;
    --primary-purple-hover: #3a1a70;
    --accent-orange: #E2725B;
    --text-dark: #333333;
    --text-light: #777777;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
#main-header {
    background-color: var(--primary-purple);
    color: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 70px;
    filter: brightness(0) invert(1);
    /* Makes the logo white if it's not already */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
}

/* Main Content */
.content {
    flex: 1;
    padding: 60px 0;
}

/* Typography & Elements */
h1,
h2,
h3 {
    color: var(--primary-purple);
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    background-color: var(--accent-orange);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #c9624d;
    transform: translateY(-2px);
}

.hero-section {
    text-align: center;
    padding: 40px 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
    margin-top: auto;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Mobile Navigation & Helpers */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

/* Specific Grid Adjustments */
#nosotros-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

@media (max-width: 768px) {

    /* Header adjustments */
    #main-header .container {
        flex-wrap: wrap;
    }

    .logo img {
        height: 70px;
        /* Slightly smaller logo on mobile */
    }

    .menu-toggle {
        display: block;
        /* Show hamburger */
    }

    /* Hide nav initially on mobile, show when active */
    #main-nav {
        width: 100%;
        display: none;
        margin-top: 15px;
        background-color: var(--primary-purple-hover);
        border-radius: 5px;
        overflow: hidden;
    }

    #main-nav.active {
        display: block;
    }

    #main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    #main-nav a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    #main-nav li:last-child a {
        border-bottom: none;
    }

    /* Layout overrides for mobile */
    .hero-section h1 {
        font-size: 1.8rem;
    }

    #nosotros-grid {
        grid-template-columns: 1fr;
        /* Stack columns on mobile */
        gap: 20px;
    }
}