/* General */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    text-decoration: none;
    color: #333;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.logo .material-icons {
    font-size: 1.8rem;
    margin-right: 5px;
}

.logo .highlight {
    color: #0051FF;
}

.menu-toggle {
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    display: none;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.nav-links .register-btn {
    color: #fff;
    background-color: black;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
}

.nav-links .register-btn:hover {
    background-color: #333;
}

/* Sidebar (Menu lateral) */
.sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 250px;
    height: 100%;
    background-color: white;
    color: black;
    padding: 20px;
    transition: left 0.3s ease;
    z-index: 1001;
}


.sidebar.active {
    left: 0;
    display: block;
}

.sidebar .menu-close {
    font-size: 1.8rem;
    background: none;
    border: none;
    color: black;
    cursor: pointer;
    margin-bottom: 20px;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 15px;
}

.sidebar ul li a {
    text-decoration: none;
    color: black;
    font-size: 1.2rem;
}

.sidebar ul li a:hover {
    text-decoration: underline;
}

.news-page {
    /* Centrar y limitar el ancho del contenido */
    max-width: 800px; 
    margin: 80px auto 40px auto; /* 80px superior para el header fijo */
    padding: 0 20px;
}

.news-article {
    background-color: #ffffff;
    padding: 20px 0;
}

/* Título Principal */
.article-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.2;
    font-weight: 800;
}

/* Metadatos (Autor, Fecha) */
.article-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: #6a6a6a;
    align-items: center;
    flex-wrap: wrap; 
}

.article-meta .author {
    font-weight: 600;
    color: var(--primary-color);
}

.article-meta .category-tag {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    background-color: #f0f0f0;
    border-radius: 15px;
    font-size: 0.85rem;
}

.article-meta .category-tag i {
    font-size: 16px;
    color: var(--cetpay-blue);
}

.article-meta .category-tag a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
}

/* Imagen Destacada */
.article-image {
    margin: 20px 0;
    overflow: hidden; 
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-image figcaption {
    background-color: #f7f7f7;
    padding: 10px 15px;
    font-size: 0.85rem;
    color: #6a6a6a;
    text-align: center;
}

/* Cuerpo del Contenido */
.article-content {
    line-height: 1.7;
    font-size: 1.1rem;
    color: var(--text-color);
}

.article-content h2,
.article-content h3 {
    margin: 30px 0 15px 0;
    color: var(--primary-color);
    font-weight: 700;
    border-left: 4px solid var(--cetpay-blue); /* Toque de estilo */
    padding-left: 15px;
}

.article-content p {
    margin-bottom: 20px;
}

/* Citas Destacadas (Blockquote) */
.article-content blockquote {
    margin: 20px 0;
    padding: 20px 25px;
    border-left: 5px solid var(--accent-color);
    background-color: #f0f8ff;
    font-style: italic;
    color: #444;
    border-radius: 0 8px 8px 0;
}

.article-content blockquote cite {
    display: block;
    margin-top: 10px;
    text-align: right;
    font-style: normal;
    font-weight: 600;
    color: var(--cetpay-blue);
}

.article-content a {
    color: var(--cetpay-blue);
    text-decoration: none;
    font-weight: 600;
}

.article-content a:hover {
    text-decoration: underline;
}

/* Compartir (Opcional) */
.article-share {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px;
}

.article-share p {
    font-weight: 600;
    margin: 0;
    font-size: 0.95rem;
}

.share-btn {
    padding: 8px 15px;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    transition: opacity 0.3s;
}

.share-btn.twitter { background-color: #1DA1F2; }
.share-btn.facebook { background-color: #4267B2; }
.share-btn.linkedin { background-color: #0A66C2; }

.share-btn:hover {
    opacity: 0.9;
}

/* Ajuste de contenido para móviles */
@media (max-width: 768px) {
    /* Mantenemos el main-padding-top para cuando el menú está cerrado (60px) */
    .news-page {
        padding: 0 15px;
    }
    
    .article-title {
        font-size: 1.8rem;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .article-share {
        flex-wrap: wrap;
        justify-content: center;
    }
}



/* Footer */
.footer-section {
    background-color: black;
    color: #fff;
    padding: 20px;
    font-family: Arial, sans-serif;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.footer-column {
    flex: 1;
    min-width: 150px;
    margin: 10px;
    text-align: left;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #ddd;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.social-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: filter 0.3s;
}

.social-icon:hover {
    filter: brightness(1.5) saturate(2);
}

/* Copyright */
.footer-copyright {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 10px;
}

/* Mostrar las opciones del encabezado en pantallas grandes */
@media (min-width: 769px) {
    .nav-links {
        display: flex; /* Mostrar opciones del menú horizontalmente */
        list-style: none;
        margin: 0;
    }

    .nav-links li {
        margin-left: 20px;
    }

    .nav-links a {
        text-decoration: none;
        color: #333;
        font-weight: bold;
    }

    .menu-toggle {
        display: none; /* Ocultar el botón de menú en computadoras */
    }

    .sidebar {
        display: none; /* Ocultar el menú lateral en computadoras */
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none; /* Ocultar solo en móviles */
    }

    .sidebar {
        display: block; /* Mostrar el menú lateral en móviles */
    }
}

/* Footer links sin subrayado */
.footer-column a {
    text-decoration: none;
    color: #ddd;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #fff;
    text-decoration: none;
}
