/*
Theme Name: La Ranchera Editorial
Theme URI: https://maquinaelemental.com/
Author: Máquina Elemental
Author URI: https://maquinaelemental.com/
Description: Tema editorial independiente para La Ranchera de Mty, basado en el prototipo V3 aprobado.
Version: 1.0.2
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: la-ranchera-editorial
*/

:root{--yellow:#F7C80A;--orange:#F59B18;--red:#F21D2D;--black:#171415;--white:#fff}*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;color:var(--black);background:#fff;padding-bottom:72px}button,a{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #1676c2;outline-offset:3px}.wrap{max-width:1220px;margin:auto;padding:0 24px}.program-strip{background:#fff;border-bottom:1px solid #e9e3d0}.program-strip .wrap{display:block;padding-top:18px;padding-bottom:16px}.program-strip-head{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:14px}.program-strip-head strong{font-family:Montserrat,Arial,sans-serif;font-size:16px;letter-spacing:-.2px}.program-strip-head span{font-size:12px;color:#6e675c}.program-scroller{display:flex;gap:14px;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin;scrollbar-color:var(--yellow) #f1f1f1}.program-card{flex:0 0 188px;background:#fff;border:1px solid #ece5cf;border-radius:16px;padding:12px 12px 10px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:8px;box-shadow:0 6px 18px rgba(0,0,0,.05);transition:transform .18s,border-color .18s,box-shadow .18s;min-height:158px}.program-card:hover{transform:translateY(-2px);border-color:var(--orange);box-shadow:0 10px 22px rgba(0,0,0,.08)}.program-logo-box{display:grid;place-items:center;width:100%;height:108px;border-radius:12px;background:linear-gradient(180deg,#fffdf6,#fff7dd)}.program-card img{max-width:100%;max-height:92px;width:auto;height:auto;display:block;object-fit:contain}.program-name{font-size:12px;font-weight:800;text-align:center;line-height:1.2}.top{background:var(--black);color:white;font-size:12px}.top .wrap{display:flex;justify-content:space-between;padding-top:9px;padding-bottom:9px}.mast{background:linear-gradient(110deg,var(--yellow),var(--orange))}.mast .wrap{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:132px}.logo{width:210px;display:block}.live{border:0;border-radius:5px;background:var(--black);color:white;padding:13px 20px;display:flex;align-items:center;gap:12px;font-weight:800}.play{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--red);color:white;font-size:18px}.live small{display:block;font-size:11px;font-weight:400;margin-top:4px;text-align:left}.nav{background:var(--black);color:white}.nav .wrap{display:flex;gap:28px;align-items:center}.nav a{font-size:13px;font-weight:800;padding:17px 0;border-bottom:3px solid transparent}.nav a.active{color:var(--yellow);border-color:var(--yellow)}.menu{display:none}main{padding-top:28px!important}.eyebrow{font-size:11px;letter-spacing:1.5px;font-weight:800;color:#665d50}.section{display:flex;align-items:center;gap:12px;margin:0 0 18px;font-size:25px;font-weight:900;letter-spacing:-.6px}.section:before{content:'';width:6px;height:26px;background:var(--yellow)}.section:after{content:'';height:1px;background:#ddd;flex:1}.hero{display:grid;grid-template-columns:1.8fr 1fr;gap:12px;height:440px}.side{display:grid;grid-template-rows:1fr 1fr;gap:12px;min-height:0}.story{position:relative;overflow:hidden;display:block;border-radius:4px;background:#332820;min-height:0;color:white}.art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .35s}.story:hover .art{transform:scale(1.035)}.shade{position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.94),rgba(0,0,0,.05) 80%)}.storytext{position:absolute;bottom:0;padding:24px;width:100%}.tag{display:inline-block;background:var(--yellow);color:var(--black);font-size:11px;font-weight:900;padding:5px 8px;text-transform:uppercase;letter-spacing:.5px}.story h2{font-size:clamp(25px,3.2vw,42px);line-height:1.06;margin:10px 0 0;letter-spacing:-1px}.side h2{font-size:23px;letter-spacing:-.4px}.side .storytext{padding:16px}.story p{font-size:14px;line-height:1.5;margin-bottom:0}.ad{margin:30px auto;background:#f6f6f6;border:1px dashed #d0d0d0;max-width:850px;min-height:88px;display:grid;place-items:center;color:#777;font-size:11px;letter-spacing:1.5px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-bottom:36px}.news{display:block;border-bottom:1px solid #ddd;padding-bottom:18px}.thumb{position:relative;aspect-ratio:16/9;overflow:hidden;border-radius:3px;background:#38251e}.news h3{font-size:21px;line-height:1.2;margin:9px 0}.news small{font-size:11px;color:#696969}.news .tag{margin-top:12px}.station{background:var(--black);color:white;padding:30px;margin:35px 0;display:flex;align-items:center;justify-content:space-between;gap:20px;border-left:8px solid var(--yellow)}.station h2{margin:0 0 8px;font-size:27px}.station p{margin:0;color:#ccc}.station button{background:var(--yellow);color:var(--black);border:0;padding:14px 20px;font-weight:bold}.footer{background:var(--black);color:white;padding:35px 0}.footer .wrap{display:flex;align-items:center;justify-content:space-between;gap:20px}.footer img{width:120px}.footer small{color:#bbb}.player{position:fixed;bottom:0;left:0;right:0;background:var(--black);border-top:3px solid var(--yellow);color:white;z-index:10}.player .wrap{display:flex;align-items:center;gap:15px;height:65px}.player button{border:0}.player strong{font-size:14px}.player small{display:block;color:#ccc;font-size:11px;margin-top:3px}.demo{margin-left:auto;color:#ccc;font-size:11px}.controls{display:flex;justify-content:center;align-items:center;gap:14px;margin:16px 0 24px}.controls button{border:1px solid #ddd;background:white;color:#171415;border-radius:50%;width:35px;height:35px;font-weight:bold}.article{max-width:800px;margin:0 auto 45px}.article h1{font-size:clamp(30px,5vw,52px);line-height:1.06}.article p{font-size:18px;line-height:1.7}.article .thumb{margin:22px 0}.back{display:inline-block;font-size:14px;font-weight:bold;margin-bottom:20px}.notice{position:fixed;bottom:85px;left:50%;transform:translateX(-50%);background:#171415;color:white;padding:14px 20px;border:1px solid var(--yellow);border-radius:5px;z-index:30;max-width:90%;display:none;font-size:14px}.empty{padding:30px;background:#f6f6f6}.label-demo{background:#fff4ca;color:#594500;font-size:12px;text-align:center;padding:7px 12px}.program{padding:20px;border-bottom:1px solid #ddd}.program strong{display:block;font-size:22px;margin:8px 0}.program span{color:#555}@media(max-width:700px){.wrap{padding-left:15px;padding-right:15px}.program-strip .wrap{padding-top:14px;padding-bottom:12px}.program-strip-head{display:block}.program-strip-head span{display:block;margin-top:4px}.program-card{flex-basis:145px;min-height:136px;padding:10px}.program-logo-box{height:88px}.program-card img{max-height:74px}.top .wrap{justify-content:center}.top .right{display:none}.mast .wrap{min-height:104px;gap:12px}.logo{width:155px}.live{padding:8px;gap:7px;font-size:12px}.live small{display:none}.play{width:32px;height:32px}.nav .wrap{display:block}.menu{display:block;border:0;background:transparent;color:white;padding:14px 0;font-weight:bold;width:100%;text-align:left}.navlinks{display:none!important}.navlinks.open{display:flex!important;flex-direction:column;gap:0!important;align-items:stretch!important}.nav a{padding:12px 0}.hero{display:block;height:auto}.hero>.story{aspect-ratio:4/3}.side{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto;margin-top:10px;gap:10px}.side .story{aspect-ratio:1/1}.side h2{font-size:17px}.side .storytext{padding:12px}.storytext{padding:18px}.story h2{letter-spacing:-.4px}.cards{grid-template-columns:1fr 1fr;gap:14px}.news h3{font-size:17px}.section{font-size:21px}.ad{min-height:65px;margin:22px auto}.station{display:block;padding:22px}.station button{margin-top:18px}.footer .wrap{flex-direction:column;align-items:flex-start}.demo{max-width:95px;text-align:right}.story p{display:none}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* V3: logotipos independientes sobre blanco, sin cajas visibles. */
.program-strip{background:#fff;border:0}
.program-strip .wrap{padding-top:14px;padding-bottom:14px}
.program-scroller{gap:18px;justify-content:space-between;align-items:center;padding:5px 4px 8px;scrollbar-color:#ddd #fff}
.program-card,.program-card:hover{flex:1 0 0;min-width:0;min-height:0;height:106px;padding:6px 8px;border:0;border-radius:0;background:transparent;box-shadow:none;display:flex;align-items:center;justify-content:center;transition:transform .18s}
.program-card:hover{transform:translateY(-2px)}
.program-logo-box{display:grid;place-items:center;width:100%;height:100%;border:0;border-radius:0;background:transparent}
.program-card img{max-width:100%;max-height:94px;width:auto;height:auto;object-fit:contain;filter:drop-shadow(0 2px 2px rgba(0,0,0,.17))}
@media(max-width:700px){.program-strip .wrap{padding-top:8px;padding-bottom:8px}.program-scroller{justify-content:flex-start;gap:12px}.program-card,.program-card:hover{flex:0 0 132px;height:78px;padding:4px}.program-card img{max-height:68px}}

/* Adaptación WordPress */
.navlinks{display:flex;gap:28px;align-items:center;flex-wrap:wrap}.navlinks ul{list-style:none;padding:0;margin:0;display:flex;gap:28px;align-items:center;flex-wrap:wrap}.navlinks li a{display:block}.navlinks .current-menu-item>a,.navlinks .current-menu-ancestor>a{color:var(--yellow);border-color:var(--yellow)}.navlinks .sub-menu{display:none}.navlinks li:hover>.sub-menu,.navlinks li:focus-within>.sub-menu{display:block;position:absolute;background:var(--black);padding:10px;z-index:20}.hero.single-hero{grid-template-columns:1fr}.hero.two-hero{grid-template-columns:1.8fr 1fr}.hero.two-hero .side{grid-template-rows:1fr}.hero[hidden]{display:none}.article img,.entry-content img{max-width:100%;height:auto}.entry-content iframe{max-width:100%}.entry-content a{text-decoration:underline}.entry-content{overflow-wrap:anywhere}.entry-content .alignwide{max-width:100%}.article .thumb img{position:absolute;height:100%;width:100%;object-fit:cover}.story h2,.news h3{overflow-wrap:anywhere}.pagination{margin:30px 0;display:flex;gap:12px;flex-wrap:wrap}.pagination .page-numbers{padding:8px 12px;border:1px solid #ddd}.pagination .current{background:var(--yellow);border-color:var(--yellow)}.player-status{margin-left:auto;font-size:11px;color:#ccc}.player[hidden]{display:none}body.admin-bar .player{z-index:999}.skip-link{position:absolute;left:-9999px}.skip-link:focus{left:10px;top:10px;background:#fff;padding:10px;z-index:9999}.program-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin:24px 0 40px}.program-grid img{width:100%;height:120px;object-fit:contain}.program-grid .program{border:0;text-align:center}.search-form input{padding:10px;max-width:100%}.search-form button{padding:10px;background:var(--yellow);border:0}.notice{pointer-events:none}.footer a:hover{text-decoration:underline}.entry-meta{color:#666;font-size:13px}.article .entry-content h2{font-size:26px}.article .entry-content h3{font-size:22px}.program-card:focus-visible{outline-offset:-3px}.custom-logo{width:210px;height:auto;display:block}.ad img{max-width:100%;height:auto}.ad:empty{display:none}@media(max-width:700px){.navlinks ul{display:block}.navlinks .sub-menu{display:block;position:static;padding-left:12px}.custom-logo{width:155px}.hero.single-hero,.hero.two-hero{display:block}.program-grid{grid-template-columns:1fr 1fr}.program-grid img{height:90px}}

/* AM / FM */
.lr-radio-group{display:flex;flex-direction:column;gap:8px}.lr-radio-label{font-size:12px;letter-spacing:.6px;text-align:center}.lr-band-row{display:flex;align-items:center;gap:8px}.lr-band-row .lr-band{padding:8px 13px;gap:8px;background:var(--black);color:white;border:1px solid transparent;font-weight:800;border-radius:5px;display:flex;align-items:center;white-space:nowrap}.lr-band-row .lr-band[aria-pressed="true"]{border-color:var(--yellow)}.lr-band-row .play{width:30px;height:30px;font-size:15px}.player .lr-band{padding:4px 8px;border-color:#555}.player .lr-band[aria-pressed="true"]{border-color:var(--yellow)}.player .lr-band span{display:inline}.station .lr-band{margin-top:0}.player .wrap{gap:10px}@media(max-width:700px){.lr-radio-label{font-size:10px}.lr-band-row{gap:5px}.lr-band-row .lr-band{padding:5px 7px;font-size:12px;gap:5px}.lr-band-row .play{width:24px;height:24px;font-size:12px}.mast .wrap{flex-wrap:wrap}.player .wrap{gap:7px}.player-status{max-width:70px;text-align:right}.player strong{font-size:12px}.player small{font-size:10px}}

/* Radio controls: CSS geometry, independent of emoji fonts. */
.lr-band-row .lr-band .play{display:grid;place-items:center;flex-shrink:0;background:#fff;color:var(--red);border-radius:50%;position:relative;}
.lr-band .play::before{content:"";display:block;width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:9px solid var(--red);margin-left:2px;}
.lr-band[aria-pressed="true"] .play::before{width:10px;height:12px;border:0;margin:0;background:linear-gradient(to right,var(--red) 0 35%,transparent 35% 65%,var(--red) 65% 100%);}
