/* Hero Banner Section */
.hero {
    position: relative;
    background: linear-gradient(90deg, rgba(11, 25, 44, 0.92) 35%, rgba(15, 81, 40, 0.75) 50%),
        url('img/planta.jpg') center/cover no-repeat;
    color: white;
    padding: 6rem 2rem;
    min-height: 580px;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--emerald);
    color: var(--emerald);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.2rem;
}

.hero h1 span {
    color: #4ade80;
}

.hero p {
    font-size: 1.15rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: var(--primary-green);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(21, 128, 61, 0.4);
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--dark-green);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
    text-align: center;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Quick Stats Bar */
.stats-bar {
    background-color: white;
    margin: -3rem auto 4rem;
    max-width: 1180px;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 10;
    border-bottom: 4px solid var(--primary-green);
    width: calc(100% - 4rem);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background-color: var(--soft-green);
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-navy);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Section Titles */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.section-subtitle {
    color: var(--primary-green);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    color: var(--primary-navy);
    margin-top: 0.3rem;
}

/* Course Cards Grid */
.courses-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.course-card {
    background-color: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.course-image {
    height: 210px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.08);
}

.diploma-public-card {
    width: min(100%, 300px);
    justify-self: center;
}

.diploma-public-card .course-image {
    height: 210px;
    background: #f4f7fb;
}

.diploma-public-card .course-image img {
    height: 100%;
    object-fit: contain;
}

.diploma-public-card:hover .course-image img {
    transform: none;
}

.course-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(11, 25, 44, 0.85);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

.course-body {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.course-meta i {
    color: var(--accent-blue);
    margin-right: 4px;
}

.course-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.course-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.2rem;
    border-top: 1px solid var(--gray-border);
}

.course-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-green);
}

.btn-course {
    background-color: var(--light-blue);
    color: var(--accent-blue);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-course:hover {
    background-color: var(--accent-blue);
    color: white;
}

/* Showcase Banner */
.showcase-banner {
    max-width: 1280px;
    margin: 6rem auto 0;
    padding: 0 2rem;
}

.showcase-wrapper {
    background: linear-gradient(135deg, var(--primary-navy), var(--secondary-navy));
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    color: white;
}

.showcase-content {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.showcase-content h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.showcase-content p {
    color: #94a3b8;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.feature-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.feature-list i {
    color: var(--emerald);
    font-size: 1.2rem;
}

.showcase-image {
    position: relative;
    min-height: 300px;
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Index Queries */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .showcase-wrapper {
        grid-template-columns: 1fr;
    }

    .showcase-content {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .stats-bar {
        margin-top: -1.5rem;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .courses-grid {
        padding: 0 1rem;
    }

    .showcase-banner {
        padding: 0 1rem;
    }
}

/* Diploma Modal */
.modal {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-diploma-box {
    position: relative;
}

.modal-diploma-box img {
    max-height: 65vh;
}