/*
Theme Name: IESJPC Theme
Author: Fernando
Description: Tema minimalista integrado con Astro.
Version: 1.0
*/

/* MENÚ SUPERIOR — ESTRUCTURA Y ESTILO UNIFICADO */
.menu-fullwidth {
  width: 100%;
  display: flex;
  justify-content: center;
  background: transparent;
  padding: 0 0.5rem;
}

.top-menu {
  background: linear-gradient(135deg, #1a2a6c, #3a7bd5);
  padding: 0.9rem 1.2rem;
  border-radius: 8px;
  max-width: 1100px;
  width: 100%;
  margin: 1.5rem auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.10);
}

.top-menu nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-evenly;
  gap: 0.7rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  align-items: center;
}

.top-menu nav::-webkit-scrollbar {
  display: none;
}

.top-menu a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.91rem;
  letter-spacing: 0.3px;
  padding: 0.48rem 0.50rem;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  transition: transform 0.18s ease, background 0.18s ease;
  white-space: nowrap;
  flex: 0 0 auto;
}

.top-menu a:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.top-menu a:last-child {
  margin-right: 0.6rem;
}
.footer {
    background: #f5f5f5;
    padding: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #333;
}
.contenedor {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}
/* CONTENEDOR GENERAL */
.contenedor {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    border: 2px solid #1a2a6c;
    border-top-width: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* TITULO DE LA NOTICIA */
.titulo-entrada {
    font-size: 2rem;
    font-weight: 700;
    color: #1a2a6c;
    margin-bottom: 0.5rem;
}

/* FECHA */
.fecha-entrada {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* CONTENIDO */
.contenido-entrada {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #222;
}

.contenido-entrada img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1rem 0;
}

.contenido-entrada p {
    margin-bottom: 1rem;
}

.contenido-entrada h2,
.contenido-entrada h3 {
    color: #1a2a6c;
    margin-top: 2rem;
}
.listado-entradas {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tarjeta-entrada {
    background: #ffffff;
    padding: 1.2rem;
    border-radius: 8px;
    border: 2px solid #1a2a6c;
    border-top-width: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.tarjeta-entrada h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
}

.tarjeta-entrada h2 a {
    color: #1a2a6c;
    text-decoration: none;
}

.tarjeta-entrada h2 a:hover {
    text-decoration: underline;
}

.leer-mas {
    font-weight: 600;
    color: #1a2a6c;
    text-decoration: none;
}

.leer-mas:hover {
    text-decoration: underline;
}
.contenedor .leer-mas {
    display: inline-block;
    margin-top: 1rem;
}
/* JUSTIFICAR TEXTO POR DEFECTO */
.contenido-entrada p,
.contenido-entrada li,
.contenido-entrada {
  text-align: justify;
}
/* LISTAS CON CUADRADO RELLENO */
.contenido-entrada ul {
  list-style-type: square;
  padding-left: 1.4rem;
}

.contenido-entrada ol {
  padding-left: 1.4rem;
}
/* PERMITIR LÍNEAS MÚLTIPLES EN LISTAS Y PÁRRAFOS */
.contenido-entrada li,
.contenido-entrada p {
  white-space: normal !important;
  overflow: visible !important;
}
/* ======== FORZAR ESTILOS EN TODO EL CONTENIDO ======== */



/* Listas con cuadrado relleno */
.entry-content ul,
.contenido-entrada ul {
  list-style-type: square !important;
  padding-left: 1.4rem !important;
}

/* Listas ordenadas */
.entry-content ol,
.contenido-entrada ol {
  padding-left: 1.4rem !important;
}

/* Permitir varias líneas */
.entry-content li,
.entry-content p,
.contenido-entrada li,
.contenido-entrada p {
  white-space: normal !important;
  overflow: visible !important;
}

/* ANULAR REGLA DE GUTENBERG QUE IMPIDE JUSTIFICAR */
.editor-styles-wrapper :where(:not(.is-layout-flex,.is-layout-grid)) > .wp-block {
    margin-left: 0 !important;
    margin-right: 0 !important;
}
/* Justificar texto */
.entry-content,
.entry-content p,
.entry-content li,
.contenido-entrada,
.contenido-entrada p,
.contenido-entrada li {
  text-align: justify !important;
}


