/* CEDILAG - Estilos principales rediseñados */
:root {
    --primary-color: #97BF04;
    --secondary-color: #F2913D;
    --dark-color: #1A3C34;
    --light-color: #F8F9FA;
    --accent-color: #418C35;
    --text-color: #333333;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
    background-color: #fff;
    padding-top: 76px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--dark-color);
}

/* Navbar */
.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: white !important;
}

.navbar-brand img {
    margin-right: 10px;
    border-radius: 8px;
}

.navbar {
    background-color: var(--primary-color) !important;
    padding: 0.8rem 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-link {
    color: white !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 5px;
    border-radius: 4px;
    transition: var(--transition);
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.25);
    font-weight: 600;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    filter: invert(1);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(26, 60, 52, 0.8), rgba(26, 60, 52, 0.9)), url('../IMG/venado.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0 60px;
    text-align: center;
    border-radius: 0 0 30px 30px;
    margin-bottom: 40px;
}

.hero-section h1 {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.hero-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    margin: 5px;
}

.hero-btn:hover {
    background-color: #e07c1e;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-btn.outline {
    background-color: transparent;
    border: 2px solid white;
}

.hero-btn.outline:hover {
    background-color: white;
    color: var(--dark-color);
}

/* Section Styling */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-padding {
    padding: 60px 0;
}

.bg-light-section {
    background-color: var(--light-color);
}

/* Cards */
.info-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.info-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.info-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.info-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Oferta Educativa Cards */
.educacion-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    height: 100%;
    text-decoration: none;
    color: inherit;
    display: block;
    margin-bottom: 30px;
}

.educacion-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.educacion-card-img {
    height: 200px;
    overflow: hidden;
}

.educacion-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.educacion-card:hover .educacion-card-img img {
    transform: scale(1.05);
}

.educacion-card-body {
    padding: 25px;
    background: white;
}

.educacion-card-body h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.educacion-card-body p {
    color: #666;
    margin-bottom: 15px;
}

.educacion-card .badge {
    background-color: var(--primary-color);
    padding: 5px 15px;
    font-weight: 500;
    border-radius: 20px;
    color: white;
    display: inline-block;
    margin-bottom: 15px;
}

/* Stats */
.stats-section {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0;
    border-radius: 30px;
    margin: 40px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.stat-text {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer h5 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: none;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.3rem;
    }
    
    .section-padding {
        padding: 50px 0;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 40px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-btn {
        display: block;
        margin: 10px auto;
        width: 90%;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}