/*
Theme Name: Twenty Twenty-Five
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Author: the WordPress team
Author URI: https://wordpress.org
Description: Twenty Twenty-Five emphasizes simplicity and adaptability. It offers flexible design options, supported by a variety of patterns for different page types, such as services and landing pages, making it ideal for building personal blogs, professional portfolios, online magazines, or business websites. Its templates cater to various blog styles, from text-focused to image-heavy layouts. Additionally, it supports international typography and diverse color palettes, ensuring accessibility and customization for users worldwide.
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}
/* Nuevo desde aqui */
#filtro-objetos {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

#filtro-objetos select {
  padding: 0.5rem;
  font-size: 1rem;
}

.grid-objetos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.objeto {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1rem;
  background-color: #1a1a1a;
  color: white;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

.objeto h3 {
  margin-top: 0;
  font-size: 1.25rem;
}

.objeto img {
  max-width: 100%;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}


/* Tamaño más pequeño para todos los ítems del menú de navegación */
/* Fuerza un tamaño más pequeño para los menús marcados como .has-large-font-size */
.wp-block-navigation .has-large-font-size {
  font-size: 0.99rem !important;
}

/* Centrado de entradas y páginas */
.single-post .entry-content,
.page .entry-content,
.page .wp-block-post-title,
.single-post .wp-block-post-title {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2em;
}

/* Título de la entrada o página */
h1.wp-block-post-title {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Imágenes dentro del contenido */
.entry-content img {
    display: block;
    margin: 2rem auto;
    max-width: 100%;
    height: auto;
}
body.single-diario .entry-content img {
  max-width: 900px;
  margin: 2rem auto;
  border-radius: 8px;
}

/* Estilo general para el buscador global */
#buscador-global-input {
  background-color: #121212;
  border: 1px solid #555;
  color: #fff;
  padding: 0.5rem 0.8rem;
  font-size: 1rem;
  border-radius: 6px;
  outline: none;
  width: 200px;
  transition: border-color 0.3s ease;
}

#buscador-global-input::placeholder {
  color: #aaa;
}

#buscador-global-input:focus {
  border-color: #e3c78c;
}

#buscador-global-form button {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  background-color: #2a2a2a;
  color: #fff;
  border: 1px solid #555;
  border-radius: 6px;
  cursor: pointer;
  margin-left: 0.5rem;
  transition: background-color 0.2s ease;
}

#buscador-global-form button:hover {
  background-color: #444;
}

/* Timeline diario */

.timeline {
  position: relative;
  margin: 4rem auto;
  padding-left: 2rem;
  max-width: 1000px;
  border-left: 3px solid #e3c78c;
}

.timeline-entry {
  position: relative;
  padding: 1.5rem 1rem;
  margin-bottom: 2rem;
  background-color: #1f1f1f;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.timeline-entry::before {
  content: "";
  position: absolute;
  left: -1.15rem;
  top: 1.5rem;
  width: 1rem;
  height: 1rem;
  background-color: #e3c78c;
  border-radius: 50%;
  border: 2px solid #1a1a1a;
}

.timeline-entry h3 {
  margin-top: 0;
  color: #e3c78c;
}

.timeline-entry p {
  margin-bottom: 0.5rem;
}

/* Estilo paginas de diario individuales */
/* Estilo para entradas individuales del tipo diario */
body.single-diario {
  font-size: 1rem;
  line-height: 1.8;
  padding: 2rem 1rem;
  background-color: #111;
  color: #e0e0e0;
}

/* Ajuste del ancho del contenido */
body.single-diario main {
  max-width: 850px;
  margin: 0 auto;
  padding: 2rem 1rem;
}


/* Imagen destacada más contenida */
body.single-diario .wp-block-post-featured-image img,
body.single-diario figure.wp-block-post-featured-image img {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: contain;
  margin: 2rem auto;
  border-radius: 8px;
}

body.single-diario .entry-content {
  max-width: 850px !important;
  margin: 0 auto !important;
  padding: 2rem 1rem !important;
}

/* Ajustes de imagen destacada de entradas tipo single-diario */

.imagen-destacada-diario {
  max-width: 95%;
  margin: 2rem auto;
  display: flex;
  justify-content: center;
}

.imagen-destacada-diario img {
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain !important;
  border-radius: 6px;

}

/* Ajuste responsivo para imagen destacada en móviles */
@media (max-width: 768px) {
  .imagen-destacada-diario {
    max-width: 100%;
    padding: 0 1rem;
  }
}

/* Ancho global más amplio para la web */
.wp-site-blocks {
  max-width: 100%;  /* Puedes probar también 100%, 90vw, etc. */
  margin: 0 auto;     /* Centrado horizontal */
  padding: 0 0rem;    /* Márgenes internos laterales */
}

