/* La Leyenda de Caillou - entradas y páginas del blog en móvil (2026-11-20). Solo se carga con max-width: 800px. */
html { -webkit-text-size-adjust: 100%; }
body.homebody { margin: 0; background: #f4f1ea; }

/* Cabecera */
div.blogcaillou {
	position: relative !important; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px;
	height: auto !important; margin: 0 !important; padding: 22px 16px 18px; top: auto !important; left: auto !important;
	background: linear-gradient(to bottom, rgba(27,39,23,.15), rgba(27,39,23,.92)), url(https://laleyendadecaillou.org/img/bg-blog4.jpg) 72% 28% / cover no-repeat #1b2717 !important;
}
.blogcaillou h1.logor {
	position: static !important; flex: 0 0 100%; margin: 0 !important;
	width: min(270px, 72vw) !important; height: auto !important; aspect-ratio: 365 / 89;
	background-size: contain !important; background-repeat: no-repeat; padding: 0 !important;
}
.blogcaillou h1.logor a { width: 100% !important; height: 100% !important; }
.blogcaillou .videoblog { display: block !important; position: static !important; order: 6; flex: 0 0 100%; width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; margin: 4px 0 0 !important; border: 0; border-radius: 8px; left: auto !important; top: auto !important; }
.blogcaillou ul { position: static !important; margin: 0 !important; padding: 0 !important; height: auto !important; top: auto !important; left: auto !important; }
.blogcaillou ul li { margin: 0; }
.blogcaillou ul .blog-btn { display: block; width: 100px; height: 16px; }
.blogcaillou h2 { margin: 0 0 0 auto; }
.blogcaillou h2 a.enlace-avatar {
	display: block !important; position: static !important; top: auto; left: auto; right: auto; margin: 0;
	width: 150px; height: 40px; background-size: contain; background-repeat: no-repeat;
}
.blogcaillou ul.enlaces { flex: 0 0 100%; order: 5; font-size: .82em !important; line-height: 1.9; color: #fff; }
.blogcaillou ul.enlaces li { display: block; }
.blogcaillou ul.enlaces a { font-weight: bold; text-decoration: underline; text-underline-offset: 2px; }

/* Contenido */
#wrapper { margin: 0 !important; width: auto !important; padding: 0 !important; float: none !important; }
#main, #container, #content { margin: 0 !important; width: auto !important; float: none !important; padding: 0 !important; }
#content { font-size: 18px !important; line-height: 1.6; overflow-wrap: anywhere; }
#content .post, #content .page, #content .hentry, #content .navigation, #comments { padding-left: 16px !important; padding-right: 16px !important; }
#content .entry-title { text-align: left !important; font-size: 1.45em !important; line-height: 1.2; padding: 18px 16px !important; margin: 0 -16px 16px !important; }
#content p { padding: 0 !important; text-align: left; }
#content img, #content iframe, #content video { max-width: 100% !important; height: auto; }
#content iframe { aspect-ratio: 16 / 9; width: 100% !important; height: auto !important; }
#content ul, #content ol { padding-left: 1.3em; }
.entry-meta, .entry-utility { font-size: 13px !important; text-align: left !important; }
#nav-below, .navigation { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
#nav-below > div, .navigation > div { float: none !important; width: auto !important; max-width: 48%; }

/* Pie */
#footer {
	display: flex; flex-direction: column; gap: 18px; margin: 28px 0 0 !important; padding: 26px 16px 30px !important;
	background: #1b2717 !important; color: #fff; width: auto !important; float: none !important; border: 0 !important; text-align: left;
}
#footer ul.articulos {
	display: block !important; position: static !important; float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; font-size: 15px !important; height: auto !important;
}
#footer ul.articulos li { height: auto; min-height: 0; margin: 0 0 12px; list-style: none; }
#footer ul.articulos a { display: flex !important; align-items: center; gap: 12px; width: auto !important; color: #fff; text-decoration: none; }
#footer ul.articulos img { float: none; padding: 0; width: 50px; height: 50px; object-fit: cover; flex: none; border-radius: 6px; }
#footer ul.idiomas { position: static !important; display: flex; gap: 8px; margin: 0 !important; padding: 0 !important; height: auto !important; order: 3; }
#footer .idiomas li { margin: 0; opacity: 1; background: rgba(255,255,255,.12); border-radius: 4px; }
#footer .idiomas li a { display: inline-block; padding: 8px 14px; font-size: 14px; color: #fff; }
#footer #searchform { order: 2; margin: 0; }
#footer #topsearch { box-sizing: border-box; width: 100%; font-size: 16px; padding: 12px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1); color: #fff; }
#footer #topsearch::placeholder { color: rgba(255,255,255,.75); }
#footer p { order: 4; margin: 0; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.85); text-align: left !important; }
#footer p a { color: #fff; }
#footer ul.articulos li { border: 0 !important; padding: 0 !important; background: none !important; }
#footer ul.articulos a, #wrapper #footer ul.articulos a:visited { color: #fff !important; font-weight: normal; line-height: 1.35; }
#footer ul.articulos img { display: block !important; max-width: none !important; margin: 0 !important; }
#footer ul.articulos:before { content: "Últimos artículos"; display: block; font-weight: bold; font-size: 16px; margin-bottom: 12px; color: #fff; }
#wrapper #content .entry-title, #wrapper #content h1.entry-title, #wrapper #content h2.entry-title { text-align: left !important; }
#wrapper h3#comments-title { text-align: left !important; font-size: 1.15em !important; line-height: 1.3; padding: 14px 16px !important; margin: 24px -16px 12px !important; }
#wrapper .commentlist { padding: 0 !important; margin: 0 !important; }
#wrapper .commentlist li.comment { padding: 12px 0 !important; margin: 0 !important; border-bottom: 1px solid rgba(0,0,0,.1); list-style: none; }
#wrapper .commentlist .children { padding-left: 14px !important; margin: 0 !important; }
#wrapper .commentlist .comment-author img { float: left; margin: 0 10px 4px 0; border-radius: 50%; }
#wrapper .commentlist .comment-body p { font-size: 16px; }
#respond input[type="text"], #respond input[type="email"], #respond input[type="url"], #respond textarea { box-sizing: border-box; width: 100% !important; font-size: 16px; }
#wrapper #content .entry-title, #wrapper h3#comments-title { text-indent: 0 !important; }
#content p[style*="background"] { padding: 12px 14px !important; }
