/*
Theme Name: TCUC Elementor Child
Theme URI: https://becerraweb.com/
Description: Tema hijo de Hello Elementor para Te Cuento un Crimen. Renderiza Header, Footer y plantillas Elementor de forma segura.
Author: Becerra Web
Template: hello-elementor
Version: 2.0.6
Text Domain: tcuc-elementor-child
*/
:root{--tcuc-crimson:#B01919;--tcuc-red-light:#C8514F;--tcuc-ink:#17110F;--tcuc-paper:#F3EFE8;--tcuc-paper-pure:#FBF9F5;--tcuc-muted:#8A7F74}
html,body{margin:0;padding:0;background:var(--tcuc-paper);color:var(--tcuc-ink);font-family:Archivo,Arial,sans-serif}
body{overflow-x:hidden}.site-main,.page-content{max-width:none!important;width:100%!important;margin:0!important;padding:0!important}.page-header{display:none!important}
a{color:var(--tcuc-crimson)}a:hover{color:#6B0F0F}
.tcuc-theme-fallback{max-width:1200px;margin:0 auto;padding:24px}
.tcuc-fallback-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:14px 24px;background:var(--tcuc-paper);border-bottom:1px solid rgba(23,17,15,.12)}
.tcuc-fallback-header img{width:250px;max-width:42vw;height:auto}.tcuc-fallback-header nav{display:flex;gap:22px;flex-wrap:wrap}.tcuc-fallback-header nav a{font-weight:700;color:var(--tcuc-ink);text-decoration:none}
.tcuc-fallback-footer{padding:60px 24px;background:var(--tcuc-ink);color:var(--tcuc-paper);text-align:center}
@media(max-width:767px){.tcuc-fallback-header{align-items:flex-start;flex-direction:column}.tcuc-fallback-header img{max-width:280px;width:80vw}}

/* v2.0.1: strict document order and safe single fallback */
.tcuc-single-main{position:relative;z-index:1}
.tcuc-single-fallback{max-width:none;padding:0;background:var(--tcuc-paper)}
.tcuc-single-fallback-header{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.9fr);min-height:520px;background:var(--tcuc-ink);color:var(--tcuc-paper)}
.tcuc-single-fallback-header>div:first-child{display:flex;flex-direction:column;justify-content:center;padding:72px max(28px,calc((100vw - 1200px)/2));padding-right:54px}
.tcuc-single-fallback-kicker{color:var(--tcuc-red-light);font:700 12px/1.3 monospace;letter-spacing:.18em}
.tcuc-single-fallback-header h1{font-size:clamp(44px,6vw,78px);line-height:1;margin:16px 0 22px;text-transform:uppercase}
.tcuc-single-fallback-image img{width:100%;height:100%;min-height:520px;object-fit:cover;display:block}
.tcuc-single-fallback-excerpt{color:#cfc7bd;font-size:18px;line-height:1.7}
.tcuc-single-fallback-content{max-width:920px;margin:0 auto;padding:64px 24px 96px;font-size:17px;line-height:1.75}
@media(max-width:767px){.tcuc-single-fallback-header{grid-template-columns:1fr}.tcuc-single-fallback-image{order:-1}.tcuc-single-fallback-image img{min-height:330px}.tcuc-single-fallback-header>div:first-child{padding:46px 22px}}


/* v2.0.2: soporte completo para el CPT tcuc_episodio */
.tcuc-child-player-shell{width:100%;background:#0f0e0e;border-radius:14px;padding:20px;overflow:hidden}
.tcuc-child-player-shell iframe,.tcuc-child-player-shell audio{display:block;width:100%;max-width:100%;border:0}
.tcuc-single-fallback-player{max-width:1200px;margin:0 auto;padding:56px 24px 8px}
.tcuc-archive-fallback{padding-top:0}
.tcuc-archive-fallback-header{margin:0 -24px 42px;padding:82px max(24px,calc((100vw - 1200px)/2));background:var(--tcuc-ink);color:var(--tcuc-paper)}
.tcuc-archive-fallback-header p{margin:0 0 10px;color:var(--tcuc-red-light);font:700 12px/1.4 monospace;letter-spacing:.18em}
.tcuc-archive-fallback-header h1{margin:0;font-size:clamp(48px,7vw,82px);line-height:1;text-transform:uppercase}
.tcuc-archive-fallback-list{display:grid;gap:28px}
.tcuc-archive-fallback-item{display:grid;grid-template-columns:220px minmax(0,1fr);gap:26px;padding:24px;background:var(--tcuc-paper-pure);border:1px solid rgba(23,17,15,.12);border-radius:16px}
.tcuc-archive-fallback-thumb img{width:100%;height:220px;object-fit:cover;border-radius:10px;display:block}
.tcuc-archive-fallback-body h2{margin:0 0 12px;font-size:30px}.tcuc-archive-fallback-body h2 a{text-decoration:none}
.tcuc-archive-fallback-body .tcuc-child-player-shell{margin-top:18px;padding:14px}
@media(max-width:767px){.tcuc-archive-fallback-item{grid-template-columns:1fr}.tcuc-archive-fallback-thumb img{height:300px}}


/* v2.0.3: compatibilidad total con el editor y Theme Builder de Elementor */
body.tcuc-elementor-library-preview .tcuc-fallback-header,
body.tcuc-elementor-library-preview .tcuc-fallback-footer{display:none!important}
.elementor-editor-active .site-main{min-height:1px}
