/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", system-ui, sans-serif;
    background-color: #ffffff;
    color: #111;
}

/* TOP BAR */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 32px;
    border-bottom: 1px solid #e5e5e5;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #8b0000;
}

.logo strong {
    font-size: 28px;
    font-weight: 700;
}

.logo span {
    font-size: 13px;
    line-height: 1.2;
    font-weight: 600;
}

.program-label {
    display: flex;
    align-items: center;
    background: #c6db2c;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
}

.program-label .online {
    margin-right: 10px;
}

/* ===============================
   HERO GENERAL (INDEX)
================================ */
.hero {
    position: relative;
    min-height: 80vh;
    background: 
        linear-gradient(120deg, rgba(0,0,0,0.85) 40%, rgba(0,0,0,0.1) 65%),
        url("../images/foto1.png") center / cover no-repeat;
    display: flex;
    align-items: center;
}

/* HERO ESPECÍFICO IA DOCENTES */
.hero-ia-docentes {
    background:
        linear-gradient(120deg, rgba(0,0,0,0.85) 40%, rgba(0,0,0,0.1) 65%),
        url("../images/ia-docentes-hero.png") center / cover no-repeat;
}

.hero-overlay {
    padding: 60px;
    max-width: 520px;
}

.hero h1 {
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
}

.subtitle {
    color: #fff;
    font-size: 22px;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    background-color: #b7f000;
    color: #000;
    padding: 14px 22px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 20px;
}

.btn-primary:hover {
    background-color: #a5dd00;
}

.footer-text {
    color: #ccc;
    font-size: 13px;
}

/* BELOW HERO */
.below-hero {
    padding: 40px;
    text-align: center;
}

.below-hero h2 {
    font-size: 26px;
    font-weight: 700;
}

/* ===============================
   SECCIÓN PROGRAMAS
================================ */
.programas-section {
    padding: 70px 6% 90px;
    background-color: #f6f6f6;
}

.programas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

/* Card */
.programa-card {
    position: relative;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    /* Zona segura para badge */
    padding-top: 18px;
}

.programa-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.programa-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

/* Badge */
.badge {
    position: absolute;
    top: 12px;
    left: 14px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    color: #fff;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.badge-alta {
    background-color: #d4af37;
    color: #000;
}

.badge-online {
    background-color: #b7f000;
    color: #000;
}

.badge-cert {
    background-color: #8b0000;
}

/* Texto */
.programa-card h3 {
    font-size: 18px;
    font-weight: 700;
    padding: 26px 20px 8px;
}

.programa-card p {
    font-size: 14px;
    color: #555;
    padding: 0 20px 18px;
}

/* Botones */
.btn-ver {
    display: inline-block;
    margin: 0 20px 22px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
}

.btn-ver.gold {
    background-color: #d4af37;
    color: #000;
}

.btn-ver.green {
    background-color: #b7f000;
    color: #000;
}

.btn-ver.red {
    background-color: #8b0000;
    color: #fff;
}

.btn-ver:hover {
    opacity: 0.9;
}

.programas-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 50px;
}

.programa-card .area {
    font-size: 14px;
    color: #666;
    padding: 0 20px 6px;
}

.programa-card .duracion {
    font-size: 14px;
    padding: 0 20px 18px;
}