/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://mercadodefichajes.es
 Description:  Tema hijo de GeneratePress
 Author:       Eric
 Author URI:   https://mercadodefichajes.es
 Template:     generatepress
 Version:      1.0.0
*/

/* Aquí puedes añadir tus estilos personalizados */

figure {
    margin: 0 0 1.5em;
    text-align: center;
}

figcaption {
    font-size: 0.9em;
    color: #666;
    margin-top: 0.5em;
}

#cmplz-manage-consent {
  display: none !important;
}


/* --- 1. Paleta y fondo alterno en secciones --- */
body {
  background-color: #003572;

  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.sidebar, .widget {

  padding: 1rem;
  border-radius: 4px;
}

/* --- 2. Títulos y subrayado de color --- */
h1.entry-title, .page-title {
  color: #003366;
  font-size: 2rem;
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  position: relative;
}

h1.entry-title::after, .page-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: #f4a300;
  margin-top: 6px;
}


/* --- 3. Tarjetas para artículos en home/categoría --- */
.archive .post, .home .post {
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.archive .post:hover, .home .post:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.archive .post .post-thumbnail img,
.home .post .post-thumbnail img {
  border-bottom: 3px solid #f4a300;
  display: block;
}


/* --- 4. Enlaces --- */
a {
  color: #003366;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}


/* --- 5. Botones --- */
button, .button, input[type="submit"] {
  background-color: #003366;
  color: #ffffff;
  border: none;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button:hover, .button:hover, input[type="submit"]:hover {
  background-color: #002244;
}

/* --- 7. Footer --- */
footer {
  background-color: #333333;
  color: #cccccc;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.9rem;
}

footer a {
  color: #f4a300;
}
footer a:hover {
  color: #ffffff;
}


/* Fondo azul claro para widgets en el sidebar derecho */
#right-sidebar .widget_block .wp-block-group {
  background-color: #e6f0fa;
  padding: 1.5rem;
  border-radius: 6px;
  margin-bottom: 2rem;
}

/* Títulos de widgets */
#right-sidebar .wp-block-heading {
  color: #003366;
  font-size: 1.2rem;
  font-weight: 600;
  border-left: 4px solid #f4a300;
  padding-left: 0.5rem;
  margin-bottom: 1rem;
}



/* Contenedor lateral (widget) con fondo azul marino */
#right-sidebar .widget_block .wp-block-group {
  background-color: #003366;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Títulos de sección como "Últimas noticias" */
#right-sidebar .wp-block-heading {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 600;
  border-left: 4px solid #f4a300;
  padding-left: 0.6rem;
  margin-bottom: 1rem;
}

/* Enlaces blancos, hover en ámbar */
#right-sidebar a {
  color: #ffffff;
text-decoration: underline;
    text-underline-offset: 2px;
  font-weight: 500;
}

#right-sidebar a:hover {
  color: #f4a300;
}


/* Lista sin bullets */
#right-sidebar ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

#right-sidebar li {
  margin-bottom: 0.7rem;
}


.widget-area .widget {
    padding: 5px;
}



/* Elimina márgenes del contenedor del widget */
#block-3.widget {
  margin-bottom: 10px !important;
  padding-bottom: 10px !important;
}

#block-3 .wp-block-group {
  margin-bottom: 10px;
  padding-bottom: 10px;
}

.separate-containers .comments-area, .separate-containers .inside-article, .separate-containers .page-header, .separate-containers .paging-navigation {
    padding: 10px;
}

/* Fondo y estructura del header */
.site-header {
  background-color: #003366;
  padding: 1rem 0;
  border-bottom: 4px solid #f4a300;
}

/* Contenedor interno */
.inside-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Branding / nombre del sitio */
.site-branding .main-title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.site-branding .main-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
  text-transform: uppercase;
}

.site-branding .main-title a:hover {
  color: #f4a300;
  text-transform: uppercase;
}

/* Menú */
.main-navigation {
  background: none;
}

.main-navigation .menu-toggle,
.main-navigation .menu-toggle:hover {
  background: none;
  border: none;
  color: #ffffff;
}

.main-navigation .menu-toggle svg {
  fill: #ffffff;
}

.main-navigation .mobile-menu {
  color: #ffffff;
}

@media (max-width: 768px) {
  .site-header {
    padding: 0.5rem 0; /* reduce alto del header */
  }

  .inside-header {
    padding: 0 1rem; /* menos espacio lateral */
  }

  .site-branding .main-title {
    font-size: 17px;
  }

  .site-tagline {
    font-size: 0.7rem;
    margin-top: 0.1rem;
  }
}

/* Estilo para los enlaces del menú */
.main-nav a {
  color: #ffffff !important;
  text-decoration: underline;
}

/* Opcional: cambia el subrayado al pasar el ratón */
.main-nav a:hover {
  text-decoration: none;
  opacity: 0.8;
}