.title-container {
    padding: 0.3rem 0;
    text-align: center;
    margin-bottom: 0.8rem;
}

.main-title {
    padding-top: 50px;
    color: #ffffff;
    font-size: 2rem;
    margin: 0;
}

.temas-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.temas-column {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.tema-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 60px;
    overflow: hidden;
    position: relative;
}

.tema-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.tema-item i {
    font-size: 1.2rem;
    color: #1a23e0;
    min-width: 22px;
    text-align: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    background-color: rgba(26, 35, 224, 0.1);
    padding: 0.4rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.tema-item:hover i {
    background-color: rgba(26, 35, 224, 0.2);
}

.tema-item span {
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
    line-height: 1.2;
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
    z-index: 1;
    padding-left: 0.3rem;
}

@media (max-width: 768px) {
    .title-container {
        padding: 0 !important;
        margin-bottom: 0.5rem !important;
    }

    .main-title {
        padding-top: 10px !important;
        font-size: 2rem !important;
    }

    .temas-container {
        grid-template-columns: 1fr;
        padding: 0.6rem;
        gap: 0.5rem;
    }

    .tema-item {
        padding: 0.5rem 0.7rem;
        height: auto;
        min-height: 44px;
    }

    .tema-item i {
        font-size: 1.5rem;
        padding: 0.4rem;
        min-width: 30px;
    }

    .tema-item span {
        font-size: 0.85rem;
    }
}

/* ===== ESCRITORIO: que todo quepa en una pantalla (sin scroll) ===== */
@media (min-width: 769px) {
    .main-title { padding-top: 2px; font-size: 1.5rem; }
    .title-container { padding: 0.1rem 0; margin-bottom: 0.2rem; }
    .temas-container {
        height: calc(100vh - 118px);
        padding: 0.2rem 0.8rem;
        gap: 0.5rem;
        align-content: start;
        box-sizing: border-box;
    }
    .temas-column { gap: 0.3rem; justify-content: flex-start; }
    .tema-item { height: 48px; padding: 0.35rem 0.6rem; }
    .tema-item span { font-size: 0.86rem; line-height: 1.12; }
    .tema-item i { padding: 0.3rem; }
}