/* 🔹 HERO SECTION */
.hero {
    position: relative;
    width: 100%;
    height: 50vh;
    background: url("img/hero-bg.jpg") no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.6);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    color: white;
    font-size: 3rem;
    text-align: center;
}

/* 🔹 SECCIÓN DE INTRODUCCIÓN */
.intro {
    text-align: center;
    padding: 2rem;
    max-width: 1000px;
    margin: auto;
}

.intro h2 {
    font-size: 3rem;
    color: green;
    font-weight: 600;
    margin-bottom: 20px;
}

.intro p {
    font-size: 1.5rem;
}

/* 🔹 SECCIÓN DE CARDS */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: auto;
}

.card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    background: white;
    margin-bottom: 20px; /* Espacio entre las cards */
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    text-align: center;
    padding: 1.5rem;
}

.card-body p{
    font-size: 0.9rem;
}

.card-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.badge-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.badge {
    font-size: 0.9rem;
    background: #198754;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
}

.card-btn {
    display: block;
    width: 100%;
    padding: 10px;
    text-align: center;
    background: #007bff;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s;
}

.card-btn:hover {
    background: #0056b3;
}

/* 🔹 Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .intro h2 {
        font-size: 1.8rem;
    }

    .intro p {
        font-size: 1.1rem;
    }

    .cards-container {
        padding: 2rem 1rem;
    }
}
