/* General Body and Main Container Styles */
body {
    font-family: 'Arial', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa; /* Light background for the whole page */
    margin: 0; /* Remove default body margin */
    display: flex; /* Make body a flex container to push footer down */
    flex-direction: column;
    min-height: 100vh; /* Ensure it takes full viewport height */
}

.about-us-main {
    flex-grow: 1; /* Allow main content to grow and push footer down */
    width: 100%; /* Take full width */
}

/* Hero Section (Nosotros Title) */
.hero-section {
    background: linear-gradient(rgba(0, 123, 255, 0.8), rgba(0, 123, 255, 0.6)), url('{% static "images/background-about-us.jpg" %}'); /* Example background image with overlay */
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 30px 20px; /* Generous padding top/bottom */
    margin-bottom: 40px; /* Space below the hero section */
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    font-size: 1.4rem;
    opacity: 0.9;
}

/* Misión, Visión, Objetivo Section */
.mvp-section {
    max-width: 1200px; /* Max width for the content */
    margin: 0 auto 60px auto; /* Centered, with bottom margin */
    padding: 0 20px; /* Side padding */
}

.mvp-grid-container {
    display: grid;
    /* Grid layout with auto-fit for responsiveness, min 300px per column */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; /* Space between cards */
}

.mvp-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    display: flex; /* Use flexbox internally for content alignment */
    flex-direction: column;
    justify-content: flex-start; /* Align content to the top */
    align-items: center; /* Center horizontally */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mvp-card:hover {
    transform: translateY(-8px); /* Lift effect on hover */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.mvp-title {
    font-size: 2rem;
    color: #007bff; /* Primary brand color for titles */
    margin-bottom: 20px;
    position: relative; /* For the underline effect */
    padding-bottom: 10px;
}

/* Simple underline effect for MVP titles */
.mvp-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px; /* Width of the underline */
    height: 3px;
    background-color: #007bff;
    border-radius: 2px;
}

.mvp-description {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 0;
}

/* --- Media Queries for Responsiveness --- */

@media (max-width: 992px) { /* Tablets and smaller laptops */
    .hero-title {
        font-size: 3rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .mvp-grid-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjust min-width for cards */
        gap: 25px;
    }
    .mvp-card {
        padding: 25px;
    }
    .mvp-title {
        font-size: 1.8rem;
    }
    .mvp-description {
        font-size: 1rem;
    }
}

@media (max-width: 768px) { /* Tablets */
    .hero-section {
        padding: 60px 15px;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .mvp-section {
        padding: 0 15px;
    }
    .mvp-grid-container {
        grid-template-columns: 1fr; /* Stack cards vertically on smaller screens */
        gap: 20px;
    }
    .mvp-card {
        padding: 25px;
    }
}

@media (max-width: 576px) { /* Smartphones */
    .hero-section {
        padding: 50px 10px;
        margin-bottom: 30px;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .mvp-section {
        margin-bottom: 40px;
        padding: 0 10px;
    }
    .mvp-card {
        padding: 20px;
    }
    .mvp-title {
        font-size: 1.6rem;
    }
    .mvp-description {
        font-size: 0.95rem;
    }
}