/* Casa Mujeres – PDF, Audio y Video (sitio público) */
:root { --cmx-accent: #6a2c91; --cmx-border: rgba(0,0,0,.12); --cmx-radius: 10px; }

/* Ocultar imagen destacada (temas clásicos, bloques y Elementor) */
body.cmx-hide-featured .post-thumbnail,
body.cmx-hide-featured .entry-thumbnail,
body.cmx-hide-featured .wp-block-post-featured-image,
body.cmx-hide-featured .elementor-widget-theme-post-featured-image { display: none !important; }

/* Video */
.cmx-video { width: 100%; max-width: 100%; margin: 0 0 1.5em; clear: both; }
.cmx-video__frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--cmx-radius); overflow: hidden; }
.cmx-video__frame iframe,
.cmx-video__frame video,
.cmx-video__frame embed,
.cmx-video__frame object { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.cmx-video__frame video { object-fit: contain; }
.cmx-video__frame > a { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; }

/* Secciones */
.cmx-section { clear: both; margin: 2em 0 0; padding-top: 1.25em; border-top: 1px solid var(--cmx-border); }
.cmx-section__title { margin: 0 0 .9em; font-size: 1.25em; line-height: 1.3; }

/* PDF */
.cmx-pdfs__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; align-items: start; }
.cmx-pdf { border: 1px solid var(--cmx-border); border-radius: var(--cmx-radius); padding: 16px; background: rgba(0,0,0,.02); }
.cmx-pdf__head { display: flex; align-items: center; gap: 12px; }
.cmx-pdf__icon { color: var(--cmx-accent); flex: 0 0 auto; display: inline-flex; }
.cmx-pdf__info { min-width: 0; display: flex; flex-direction: column; }
.cmx-pdf__title { overflow-wrap: anywhere; line-height: 1.3; }
.cmx-pdf__meta { font-size: .85em; opacity: .7; }
.cmx-pdf__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cmx-btn {
	display: inline-block; padding: 8px 16px; border-radius: 999px; text-decoration: none !important;
	background: var(--cmx-accent); color: #fff !important; border: 2px solid var(--cmx-accent);
	font-size: .9em; line-height: 1.2; font-weight: 600; transition: opacity .15s;
}
.cmx-btn:hover { opacity: .85; }
.cmx-btn--ghost { background: transparent; color: var(--cmx-accent) !important; }
.cmx-pdf__preview { margin-top: 12px; }
.cmx-pdf__preview summary { cursor: pointer; font-size: .9em; color: var(--cmx-accent); }
.cmx-pdf__preview iframe { width: 100%; height: 480px; margin-top: 10px; border: 1px solid var(--cmx-border); border-radius: 6px; background: #fff; }

/* Audio */
.cmx-audio { margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--cmx-border); border-radius: var(--cmx-radius); background: rgba(0,0,0,.02); }
.cmx-audio__title { display: block; margin-bottom: 8px; }
.cmx-audio audio { display: block; width: 100%; }

@media (max-width: 600px) {
	.cmx-pdfs__grid { grid-template-columns: 1fr; }
	.cmx-pdf__preview iframe { height: 360px; }
}
