/* style.css - Estilos principales del CMS Liceo Santa Ana del Sur */
:root {
    --primary: #1a4a8d;
    --secondary: #0d3a7a;
    --accent: #2c5aa0;
    --light: #f5f5f5;
    --dark: #333;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: \"Arial\", sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--secondary);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--primary);
    position: relative;
    animation: fadeIn 1s ease;
}

.section-title::after {
    content: \"\";
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--primary);
    margin: 0.5rem auto;
}

/* Header y navegación */
header {
    background-color: var(--primary);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 120px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    padding: 0.5rem;
    border-radius: 4px;
}

nav ul li a:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Banner principal */
.banner {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(\"https://via.placeholder.com/1920x600\") center/cover no-repeat;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 2rem;
    animation: zoomIn 1.5s ease;
}

.banner-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: slideInDown 1s ease;
}

.banner-content p {
    font-size: 1.2rem;
    animation: slideInUp 1s ease;
}

/* Sección de bienvenida */
.welcome-section {
    padding: 4rem 0;
    background-color: white;
}

.welcome-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.welcome-text {
    flex: 1;
}

.welcome-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.welcome-image img {
    width: 100%;
    height: auto;
    display: block;
}

.founded {
    font-style: italic;
    color: var(--primary);
    font-weight: bold;
    margin: 1rem 0;
}

/* Sección de servicios */
.services-section {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Sección de noticias */
.news-section {
    padding: 4rem 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.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, box-shadow 0.3s ease;
    animation: fadeInUp 0.8s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.news-excerpt {
    color: #555;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    color: var(--primary);
    font-weight: bold;
    position: relative;
}

.read-more::after {
    content: \"→\";
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: translateX(5px);
}

/* Sección de admisiones */
.admissions-section {
    padding: 4rem 0;
    background-color: var(--primary);
    color: white;
    text-align: center;
}

.admissions-content {
    max-width: 800px;
    margin: 0 auto;
}

.admissions-highlight {
    background-color: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.admissions-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-card {
    background-color: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 8px;
}

/* Sección de contacto */
.contact-section {
    padding: 4rem 0;
    background-color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary);
}

/* Footer */
footer {
    background-color: var(--primary);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p, .footer-section a {
    margin-bottom: 0.5rem;
    display: block;
}

.footer-section a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: rgba(255,255,255,0.2);
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Paginación */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    animation: fadeIn 1s ease;
}

.pagination a {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination a:hover, .pagination a.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Animaciones CSS */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(1.1);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    nav ul li {
        margin: 0.5rem;
    }
    
    .banner {
        height: 300px;
    }
    
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .welcome-content {
        flex-direction: column;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .admissions-info {
        grid-template-columns: 1fr;
    }
    
    /* Estilos para noticias individuales */
.news-single {
    max-width: 900px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #666;
}

.news-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.news-breadcrumb a:hover {
    text-decoration: underline;
}

.news-header {
    margin-bottom: 2rem;
    text-align: center;
}

.news-header h1 {
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.news-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    color: #666;
    font-size: 0.9rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-featured-image {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.news-featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.news-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #333;
}

.news-content p {
    margin-bottom: 1.5rem;
}

.news-content h2, .news-content h3, .news-content h4 {
    color: var(--primary);
    margin: 2rem 0 1rem 0;
}

.news-content ul, .news-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.news-content li {
    margin-bottom: 0.5rem;
}

.news-share {
    margin: 3rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.news-share h4 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    color: white;
}

.share-btn.facebook {
    background: #3b5998;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.whatsapp {
    background: #25d366;
}

/* Noticias relacionadas */
.related-news {
    margin: 4rem 0 2rem 0;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.related-news h3 {
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.related-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-image {
    height: 200px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card:hover .related-image img {
    transform: scale(1.1);
}

.related-content {
    padding: 1.5rem;
}

.related-content h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.4;
}

.related-content p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.news-navigation {
    text-align: center;
    margin: 3rem 0;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Mejoras para las tarjetas de noticias en grid */
.news-preview-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.news-card .news-meta {
    justify-content: flex-start;
    margin: 1rem 0;
}

.news-card .news-author {
    font-size: 0.85rem;
    color: #666;
}

.news-actions {
    text-align: center;
    margin-top: 3rem;
}

.no-news {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.no-news h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .news-single {
        margin: 1rem auto;
        padding: 1.5rem;
    }
    
    .news-header h1 {
        font-size: 1.8rem;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .news-featured-image img {
        height: 250px;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        width: 200px;
        justify-content: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .news-content {
        font-size: 1rem;
    }
    
}