:root {
    --primary-color: #34AE42;
    --title-color: #34AE42;
    --secondary-color: #272637;
    --accent-color: #E2AA31;
    --text-dark: #54595F;
    --text-light: #fff;
    --color-darkest: #1B1728;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: #f4f7fa;
    overflow-x: hidden;
}

.top-bar {
    padding: 0.3rem 1rem !important;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-bottom: 2px solid rgba(0,0,0,0.08);
}

.top-bar .nav-link {
    padding: 0.3rem 0.8rem !important;
    font-weight: 500;
    transition: var(--transition);
    border-radius: 6px;
    color: #272637 !important;
}

.top-bar .nav-link:hover {
    background: rgba(0,0,0,0.06);
}

.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.nav-link {
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.page-header {
    background: linear-gradient(135deg, var(--primary-color), #9AD7A1);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-weight: 700;
    font-size: 2.5rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.info-card {
    background: white;
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(52, 174, 66, 0.15);
    border-color: var(--primary-color);
}

.info-card h4 {
    font-weight: 700;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 15px;
}

.info-card p, .info-card li {
    color: var(--text-dark);
    font-size: 0.95rem;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card ul li:last-child {
    border-bottom: none;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(52, 174, 66, 0.05), rgba(154, 215, 161, 0.05));
    border-left: 4px solid var(--primary-color);
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
}

.highlight-box h5 {
    color: var(--primary-color);
    font-weight: 700;
}

.btn-regresar {
    background: var(--primary-color);
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    color: white !important;
    text-decoration: none !important;
    display: inline-block;
}

.btn-regresar:hover {
    background: transparent;
    color: var(--primary-color) !important;
}

.materia-card {
    background: white;
    border-radius: 25px;
    padding: 30px 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

.materia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(52, 174, 66, 0.15);
    border-color: var(--primary-color);
}

.materia-card .icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #9AD7A1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: white;
}

.materia-card h4 {
    font-weight: 700;
    color: var(--secondary-color);
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.materia-card ul {
    list-style: none;
    padding: 0;
}

.materia-card ul li {
    padding: 6px 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    font-size: 0.9rem;
}

.materia-card ul li:last-child {
    border-bottom: none;
}

footer {
    background: linear-gradient(135deg, var(--secondary-color), var(--color-darkest)) !important;
    color: white;
    padding: 40px 0 20px;
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
    margin-top: 100px;
}

/* Utility classes */
.nav-top-bg {
    background-color: #B0FF34 !important;
}

.text-secondary-color {
    color: var(--secondary-color) !important;
}
