/* Ajustes propios sobre el CSS de SmartMag (la portada era de Elementor). */

/* Portada */
.home-section { margin-bottom: 30px; }
.home-feature .feat-grid { --feat-grid-title-l: 38px; }
.home-feature .feat-grid .post-title { max-width: 820px; }
.home-full .home-ads, .home-row .home-ads { display: flex; flex-direction: column; gap: 20px; }
.home-ad { text-align: center; }
.home-ad img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.home-full .home-ads { padding-bottom: 20px; border-bottom: 1px solid var(--c-separator); }
.home-full .block-overlay { padding-bottom: 30px; border-bottom: 1px solid var(--c-separator); }
.home-row .main-content > * + *, .home-row .main-sidebar > * + * { margin-top: 30px; }
.home-row .main-sidebar .home-ads { padding: 20px 0; border-top: 1px solid var(--c-separator); border-bottom: 1px solid var(--c-separator); }
.home-row .ts-row { --sidebar-c-width: 33.333%; }
@media (min-width: 941px) {
	.home-row .col-8 { flex: 0 0 66.666%; width: 66.666%; }
	.home-row .col-4 { flex: 0 0 33.333%; width: 33.333%; }
}
@media (max-width: 767px) {
	.only-desktop { display: none !important; }
}
@media (min-width: 768px) {
	.only-mobile { display: none !important; }
}

/* Barra lateral */
.widget_media_image img { max-width: 100%; height: auto; }

/* Contenido de las notas */
.post-content video, .post-content iframe { max-width: 100%; }
.post-content video { height: auto; }
.post-content .gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 1.5em; }
.post-content .gallery-columns-1 { grid-template-columns: 1fr; }
.post-content .gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.post-content .gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.post-content .gallery-item { margin: 0; }
.post-content .gallery-icon img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.post-content .gallery-caption { margin: 4px 0 0; font-size: 13px; line-height: 1.4; }
@media (max-width: 540px) {
	.post-content .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* Aviso del formulario de comentarios */
.cn-comment-notice { padding: 12px 15px; margin: 0 0 20px; border-radius: 2px; font-size: 14px; }
.cn-comment-success { background: #e8f6ee; color: #1d6b3d; }
.cn-comment-error { background: #fdecea; color: #a12622; }
.comment-notes { font-size: 13px; color: var(--c-contrast-400); }

/* Archivos */
.archive-description { margin: -10px 0 25px; }
.no-results .search-form { display: flex; gap: 8px; margin-top: 15px; }

@media print {
	.smart-head, .main-footer, .main-sidebar, .post-share-float, .post-share-bot, .related-posts, .comments, .breadcrumbs { display: none !important; }
	.main-content { width: 100% !important; }
}
