* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo-name {
    display: flex;
    align-items: center;
}

.school-name {
    margin-right: 20px;
}

.school-name h1 {
    color: #00356B;
    font-size: 24px;
    font-weight: bold;
}

.school-name p {
    color: #666;
    font-size: 16px;
}

.school-shield {
    width: 80px;
    height: 80px;
    background-color: #f0f0f0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.school-shield img {
    max-width: 100%;
    max-height: 100%;
}

.header-logo img {
    height: 60px;
}

/* Navegación */
nav {
    background-color: #00356B;
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: #004C99;
    border-radius: 4px;
}

/* Slider */
.slider {
    height: 500px;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    transition: all 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.slide:nth-child(1) {
    background-color: #3498db;
    left: 0;
}

.slide:nth-child(2) {
    background-color: #2ecc71;
    left: 100%;
}

.slide:nth-child(3) {
    background-color: #e74c3c;
    left: 200%;
}

.slider-text {
    color: white;
    text-align: center;
    padding: 20px;
    background-color: rgba(0,0,0,0.5);
    border-radius: 10px;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.slider-controls button {
    background-color: rgba(255,255,255,0.5);
    border: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}

.slider-controls button.active {
    background-color: white;
}

/* Noticias */
.news-section {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    color: #00356B;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #00356B;
}

.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    height: 200px;
    background-color: #ddd;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 20px;
}

.news-date {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.news-title {
    color: #00356B;
    margin-bottom: 10px;
    font-size: 18px;
}

.news-excerpt {
    color: #333;
    margin-bottom: 15px;
    line-height: 1.5;
}

.read-more {
    display: inline-block;
    color: #00356B;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #00356B;
    color: white;
    padding: 40px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.footer-column h3 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: white;
}

.footer-column p, .footer-column a {
    margin-bottom: 10px;
    display: block;
    color: #ddd;
    text-decoration: none;
}

.footer-column a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 20px;
    }
    
    .logo-name {
        margin-bottom: 20px;
    }
    
    .nav-container {
        flex-wrap: wrap;
    }
    
    nav a {
        margin: 5px;
    }
    
    .slider {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .school-name h1 {
        font-size: 20px;
    }
    
    .school-shield {
        width: 60px;
        height: 60px;
    }
    
    .header-logo img {
        height: 40px;
    }
    
    .slider {
        height: 250px;
    }
}
