/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
:root {
    --accent-color: #667eea;
    --font-heading: 'Segoe UI', sans-serif;
    --font-body: 'Segoe UI', sans-serif;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
header .container .logo {
  width: 60px;
  height: 60px;
  vertical-align: middle; /* alinea el logo con el texto */
  margin-right: 10px;     /* espacio entre logo y texto */
}

header h1 a {
    color: white;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-left: 2rem;
    position: relative; /* necesario para posicionar el submenu */
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    font-size: 1.2rem; /* aqui se define el tamaño del texto */
}

nav a:hover {
    opacity: 0.8;
}
/* Submenú oculto por defecto */
nav .submenu {
    display: none;
    position: absolute;
    top: 100%; /* aparece debajo del padre */
    left: 0;
    background-color: #f9f9f9; /*fondo clar*/
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    min-width: 200px; /* ancho mínimo */
    border-radius: 6px;/* bordes redondeados */
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); /* sombra suave */
}

/* Estilo de los enlaces dentro del submenú */
nav .submenu li {
    margin: 0;
}

nav .submenu a {
    display: block;
    padding: 0.7rem 1rem;
    color: #333;
    font-size: 1rem; /* un poco más pequeño que el menú principal */
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

/* Mostrar submenú al pasar el mouse */
nav .submenu a:hover {
    background-color: #e6e6e6;   /* gris claro al pasar el mouse */
    color: var(--accent-color);  /* tu color de acento */
}



/* Mostrar submenú */
nav li:hover .submenu {
    display: block;
}


/* Main */
main {
    padding: 3rem 0;
}

/* Noticias en página principal */
.noticias {
    display: grid;
    gap: 2rem;
}

.noticia-preview {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.noticia-preview:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.noticia-preview h2 {
    margin-bottom: 0.5rem;
}

.noticia-preview h2 a {
    color: #333;
    text-decoration: none;
    font-size: 1.4rem;
}

.noticia-preview h2 a:hover {
    color: #667eea;
}

.fecha {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.noticia-preview p {
    margin-bottom: 1.5rem;
    color: #555;
}

.leer-mas {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 2px solid #667eea;
    border-radius: 25px;
    transition: all 0.3s;
}

.leer-mas:hover {
    background: #667eea;
    color: white;
}

/* Artículo completo */
.articulo-completo {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    max-width: 800px;
    margin: 0 auto;
}
table {
    width: 60%;
    border-collapse: collapse;
    margin: 20px auto;
    font-family: Arial, sans-serif;
    text-align: center;
}
        
thead {
    background-color: #2c3e50;
    color: #fff;
}
        
th, td {
    border: 1px solid #ccc;
    padding: 2px;
}
        
tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}
        
.cobrado {
    background-color: #27ae60;
    color: #fff;
    font-weight: bold;
}
        
.no-cobrado {
    background-color: #e74c3c;
    color: #fff;
    font-weight: bold;
}
.documentos{
    color: #012ffa;
    text-decoration: none;
    font-family: 'Lucida Sans';
    padding: 0.5rem 1rem;
    transition: all 0.3s;   
}

.articulo-completo h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.articulo-completo .fecha {
    margin-bottom: 2rem;
}

.articulo-completo img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.articulo-completo p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.volver-inicio {
    display: inline-block;
    margin-top: 2rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: 2px solid #667eea;
    border-radius: 25px;
    transition: all 0.3s;
}

.volver-inicio:hover {
    background: #667eea;
    color: white;
}
.destacado {
  font-weight: bold;
  font-size: 1.1em;
  color: #1E3A8A; /* azul oscuro */
  background-color: #f9f2f2;
  padding: 10px;
  border-left: 4px solid #b22222;
}
.centrada {
  display: block;
  margin: 0 auto;
  width:300px;
  height: 300px;
}
/* Footer */
/*footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}*/
.footer {
    background: #333;
    color: white;
    padding: 20px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.footer-section p {
    opacity: 0.85;
    margin-bottom: 10px;
}
.footer-section ul {
    list-style: none;   /* elimina los puntos */
    padding: 0;         /* quita el espacio por defecto */
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    opacity: 0.85;
    transition: var(--transition);
}

.footer-section a:hover {
    opacity: 1;
    color: var(--accent-color);
}
.footer-section ul li a {
    font-family: var(--font-body);   /* usa tu fuente definida */
    font-size: 1rem;                 /* tamaño de letra */
    text-decoration: none;           /* quita subrayado */
    color: var(--white);             /* color base */
    transition: color 0.3s ease;     /* animación suave */
}

.footer-section ul li a:hover {
    color: var(--accent-color);      /* cambia color al pasar el mouse */
    font-weight: bold;               /* resalta en hover */
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    opacity: 0.7;
}


/* Responsive */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav li {
        margin: 0 1rem;
    }

    .noticia-preview,
    .articulo-completo {
        padding: 1.5rem;
    }

    .articulo-completo h1 {
        font-size: 2rem;
    }

    .articulo-completa img {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .noticias {
        gap: 1.5rem;
    }

    .noticia-preview h2 a {
        font-size: 1.2rem;
    }
 
    .articulo-completo {
        padding: 1rem;
    }
}

