:root{color-scheme:dark;--bg:#080808;--panel:#181818;--panel-2:#212121;--ink:#f8f8f6;--muted:#b0b0b0;--line:#353535;--lime:#FFD400;--blue:#FFDA31;--gold:#FFBF00;--red:#ff7379;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}html,body{min-height:100%}body{margin:0;background:var(--bg);color:var(--ink)}button,input,select{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--lime);outline-offset:2px}a{color:var(--blue)}.site-shell{min-height:100dvh;background:radial-gradient(circle at 20% 0%,#55440036,transparent 330px),var(--bg)}
.app-header{position:sticky;top:0;z-index:9;background:#0d0d0df5;backdrop-filter:blur(14px);border-bottom:1px solid #303030}.header-inner{max-width:740px;margin:auto;padding:13px 18px;display:flex;align-items:center;justify-content:space-between;gap:10px}.brand{display:flex;align-items:center;gap:11px}.brand .mark{width:38px;height:38px;border-radius:12px;background:linear-gradient(140deg,var(--lime),#F4B900);color:#101010;display:grid;place-items:center;font-size:24px;font-weight:900}.brand strong{display:block;letter-spacing:.7px;font-size:18px;line-height:1.2}.brand strong span{color:var(--lime)}.brand small{display:block;color:#a5a5a5;font-size:10px;margin-top:2px}.mini-btn{border:1px solid #484848;background:#242424;color:#f6f6f3;font-weight:750;padding:9px 12px;border-radius:11px;font-size:12px}
.content{max-width:740px;padding:21px 16px calc(110px + env(safe-area-inset-bottom));margin:auto}.eyebrow{font-weight:800;letter-spacing:1.35px;text-transform:uppercase;color:var(--lime);font-size:11px;margin:0 0 8px}.view-head h1{font-size:clamp(27px,6.4vw,35px);letter-spacing:-1px;line-height:1.06;margin:0 0 10px}.view-head p{color:var(--muted);font-size:14px;line-height:1.5;margin:0 0 18px}.mode-banner{display:flex;align-items:center;justify-content:space-between;gap:9px;background:#222222;border:1px solid #444444;border-radius:13px;padding:10px 12px;margin-bottom:17px;font-size:12px;color:#d4d4d4}.mode-banner strong{color:#FFE680}.mode-banner button{border:0;background:transparent;color:var(--lime);font-size:12px;font-weight:800;flex-shrink:0}
.days{display:flex;gap:8px;overflow:auto;padding:3px 1px 11px;scrollbar-width:none;margin-right:-16px}.days::-webkit-scrollbar{display:none}.day-pill{flex:0 0 auto;border:1px solid var(--line);border-radius:12px;min-width:65px;padding:11px 9px;background:#1e1e1e;color:#bebebe;font-weight:750;text-align:center;font-size:13px}.day-pill.selected{background:var(--lime);color:#141414;border-color:var(--lime)}.day-pill small{display:block;font-size:9px;opacity:.75;margin-top:3px;letter-spacing:.4px}.day-pill:disabled{opacity:.6}
.day-hero{border:1px solid #63551c;border-radius:21px;padding:19px;background:linear-gradient(130deg,#292514,#201e18 67%,#171717);margin:8px 0 18px;box-shadow:0 12px 32px #0002}.day-hero .day-label{font-size:12px;text-transform:uppercase;letter-spacing:1.1px;font-weight:900;color:var(--lime)}.day-hero h2{font-size:22px;line-height:1.2;margin:6px 0}.day-hero p{color:#c6c6c6;font-size:13px;margin:0 0 16px}.hero-stats{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:12px;color:#d9d9d9;margin-bottom:9px}.hero-stats strong{color:white;font-size:14px}.progress{height:9px;border-radius:999px;background:#3f3b2e;overflow:hidden}.progress>span{display:block;height:100%;background:linear-gradient(90deg,#F3B900,#FFE35D);border-radius:inherit;transition:width .3s}
.section-title{display:flex;align-items:baseline;justify-content:space-between;margin:26px 1px 12px;gap:10px}.section-title h3{font-size:18px;margin:0;letter-spacing:-.3px}.section-title small{font-size:12px;color:var(--muted)}.exercise-card{background:var(--panel);border:1px solid var(--line);border-radius:17px;margin:0 0 11px;overflow:hidden}.exercise-card[open]{border-color:#8a7220}.exercise-summary{display:flex;gap:11px;padding:16px 13px;align-items:center;list-style:none;cursor:pointer}.exercise-summary::-webkit-details-marker{display:none}.exercise-number{border-radius:12px;min-width:32px;height:32px;background:#292929;display:grid;place-items:center;font-weight:850;color:#e3d7aa;font-size:13px}.exercise-meta{flex:1;min-width:0}.exercise-meta h4{font-size:15px;line-height:1.3;font-weight:800;margin:0 0 7px}.meta-line{display:flex;flex-wrap:wrap;gap:5px}.chip{display:inline-flex;background:#2b2b2b;border-radius:6px;color:#dddddd;padding:4px 7px;font-size:11px;line-height:1.1;font-weight:700}.chip.weight{background:#3d350e;color:#FFE477}.chevron{font-size:21px;color:var(--lime);width:18px}.exercise-card[open] .chevron{transform:rotate(90deg)}.exercise-body{padding:0 13px 15px}.technique{background:#111111;padding:12px;border-radius:11px;color:#c2c2c2;font-size:12px;line-height:1.5;margin:0 0 13px}.technique b{color:#fff}.series-head,.series-row{display:grid;grid-template-columns:55px 1fr 1fr 50px;align-items:center;gap:8px}.series-head{color:#aaaaaa;font-size:10px;text-align:center;margin-bottom:6px}.series-head span:first-child{text-align:left}.series-row{margin-bottom:7px}.series-row>label{font-size:12px;color:#e3e3e3}.series-row input[type=number]{width:100%;min-width:0;min-height:44px;color:white;background:#252525;border:1px solid #4a4a4a;border-radius:9px;text-align:center;padding:8px 3px;font-size:15px}.series-row .round-check{appearance:none;display:block;width:29px;height:29px;border:2px solid #777777;border-radius:9px;margin:auto;background:#282828}.series-row .round-check:checked{background:var(--lime);border-color:var(--lime)}.series-row .round-check:checked:after{content:'✓';display:block;text-align:center;color:#101010;font-weight:900;font-size:21px;line-height:24px}.exercise-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}.action-link,.soft-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none;border-radius:10px;border:1px solid #575757;background:#242424;color:#f5f5f5;font-size:12px;font-weight:800;padding:11px 13px}.action-link{background:#FFD400;border-color:#FFD400;color:white;flex:1}.soft-btn{flex:0 0 auto}
.primary-btn{border:0;background:var(--lime);color:#111111;padding:14px 16px;border-radius:13px;font-weight:900;font-size:14px;min-height:47px;display:flex;align-items:center;justify-content:center;gap:9px;width:100%}.secondary-btn{border:1px solid #4c4c4c;background:#292929;color:#f2f2f2;padding:12px 16px;border-radius:12px;font-weight:750;font-size:13px}.danger-btn{background:#352023;color:#ffc9cb;border:1px solid #794147}.row-actions{display:flex;gap:8px;margin-top:12px}.row-actions>*{flex:1}.info-note{color:#aaaaaa;font-size:12px;line-height:1.55;margin:11px 2px}.empty-box{padding:24px 16px;text-align:center;background:#1b1b1b;border:1px dashed #426078;border-radius:16px;color:#eeeeee}.empty-box h3{margin:0 0 5px}.empty-box p{color:var(--muted);font-size:13px;line-height:1.5}
.bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:15;display:flex;justify-content:space-around;gap:5px;background:#111111f7;border-top:1px solid #373737;padding:10px 13px calc(10px + env(safe-area-inset-bottom));backdrop-filter:blur(16px)}.nav-item{border:0;background:transparent;color:#aaaaaa;display:flex;flex:1;flex-direction:column;align-items:center;gap:4px;padding:4px 2px;font-size:25px;line-height:1.2}.nav-item small{font-size:11px;font-weight:750}.nav-item.active{color:var(--lime)}.history-card,.settings-card{border:1px solid var(--line);border-radius:16px;background:var(--panel);padding:16px;margin-bottom:12px}.history-card h3,.settings-card h3{margin:0 0 7px;font-size:16px}.history-card p,.settings-card p{margin:4px 0 10px;color:var(--muted);font-size:12px;line-height:1.6}.history-card .metrics{display:flex;gap:7px;flex-wrap:wrap}.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:17px}.stat-card{background:#1c1c1c;border:1px solid var(--line);padding:16px;border-radius:14px}.stat-card b{font-size:26px;color:var(--lime);display:block}.stat-card small{font-size:12px;color:var(--muted)}.history-bars{display:flex;align-items:end;height:95px;gap:7px;margin:14px 0}.bar-col{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:end;gap:6px;height:100%}.bar-col>div{width:100%;max-width:30px;min-height:3px;background:linear-gradient(var(--lime),#a77d00);border-radius:6px 6px 0 0}.bar-col small{font-size:9px;color:var(--muted)}
.settings-card .settings-actions{display:flex;flex-wrap:wrap;gap:8px}.status-dot{width:9px;height:9px;border-radius:50%;background:var(--gold);display:inline-block;margin-right:5px}.status-dot.good{background:var(--lime)}.timer-bar{position:fixed;z-index:20;bottom:calc(73px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(95%,470px);background:#242424;box-shadow:0 8px 35px #000a;border:1px solid #716022;border-radius:14px;padding:11px;display:flex;gap:11px;align-items:center;justify-content:space-between}.timer-bar strong{font-size:20px;font-variant-numeric:tabular-nums}.timer-bar button{border:0;background:#393939;border-radius:8px;color:white;padding:8px 10px;font-weight:800}.hidden{display:none!important}.toast{position:fixed;z-index:35;left:50%;top:76px;transform:translateX(-50%);border-radius:12px;background:var(--lime);color:#161616;font-weight:800;padding:12px 15px;font-size:12px;box-shadow:0 7px 20px #0006;max-width:92%;display:none}.toast.show{display:block}
.modal{border:1px solid #555555;border-radius:20px;background:#1b1b1b;color:var(--ink);padding:0;width:min(93vw,460px);max-height:88dvh;overflow:auto;box-shadow:0 18px 70px #000c}.modal::backdrop{background:#000b}.modal-inner{padding:21px}.modal h2{font-size:21px;margin:0 0 9px}.modal p{font-size:13px;color:var(--muted);line-height:1.55}.field{display:flex;flex-direction:column;gap:6px;margin:12px 0}.field label{font-size:12px;color:#dddddd;font-weight:700}.field input,.field select{min-height:46px;border:1px solid #426078;border-radius:10px;background:#252525;color:white;padding:10px;font-size:15px;width:100%}.field input::placeholder{color:#999999}.modal-actions{display:flex;gap:9px;margin-top:16px}.modal-actions>*{flex:1}.error{color:#ff9fa3!important}.footnote{font-size:11px;color:var(--muted)}.loading{text-align:center;color:var(--muted);margin-top:60px}
@media(min-width:640px){.bottom-nav{left:50%;transform:translateX(-50%);max-width:740px;border-left:1px solid #373737;border-right:1px solid #373737;border-radius:17px 17px 0 0}.content{padding-left:24px;padding-right:24px}.day-pill{min-width:95px}.exercise-summary{padding:18px 17px}.exercise-body{padding:0 17px 17px}}
@media(prefers-reduced-motion:reduce){*,*::after,*::before{scroll-behavior:auto!important;transition:none!important}}

/* Biblioteca de videos: los enlaces sin tutorial confirmado se distinguen por color y no se pueden abrir. */
.exercise-actions .no-video{background:#333333;border:1px dashed #676767;color:#b9b9b9;cursor:not-allowed;opacity:.92;box-shadow:none;}
.exercise-actions .soft-btn{flex:1 1 90px;min-height:42px;}
.exercise-actions .action-link{flex:1 0 100%;min-height:43px;}
.video-hint{font-size:12px;line-height:1.5;color:#b3b3b3;padding:7px 0;}
.video-hint.error{color:#ffaeb5;}
.remove-video-btn{width:100%;margin-top:12px;}

/* Cronómetro móvil: opciones rápidas, personalizado y controles de pausa/ajuste. */
.rest-selector{margin:15px 0 5px;background:#1b1b1b;border:1px solid #3f3f3f;border-radius:16px;padding:15px;}
.rest-title{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:13px;}
.rest-title strong{font-size:15px}.rest-title small{color:var(--muted);font-size:11px}
.rest-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.rest-presets button,.rest-custom{border:1px solid #535353;color:#eeeeee;background:#282828;border-radius:10px;min-height:46px;font-weight:850;font-size:13px;padding:10px 5px;}
.rest-presets button:active{background:#665513}.rest-custom{width:100%;margin-top:10px;background:#342d17;border-color:#9b8015;color:#ffe58b}
.timer-bar{padding:12px;align-items:center;gap:10px;max-width:min(96%,480px)}
.timer-clock{min-width:81px;display:flex;flex-direction:column;gap:1px}
.timer-clock small{font-size:9px;font-weight:900;letter-spacing:.5px;color:#bfbfbf}
.timer-clock strong{font-size:25px;letter-spacing:-.6px}
.timer-controls{display:flex;justify-content:end;align-items:center;gap:5px;flex:1}
.timer-controls button{padding:9px 7px;min-height:41px;min-width:41px;font-size:12px;color:#f4f4f4}
.timer-controls button:nth-child(2){background:#ffd400;color:#fff}
.timer-custom-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:350px){.timer-bar{gap:5px}.timer-controls button{min-width:36px;padding:8px 5px}.timer-clock strong{font-size:22px}}

.exercise-actions .no-video small{font-weight:600;opacity:.85;font-size:11px}


/* Selector semanal compacto: seis días visibles sin desplazamiento lateral. */
.day-select-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 1px 8px}
.day-select-heading strong{font-size:13px;font-weight:850;color:#eeeeee}
.day-nav-meta{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}
.day-nav-meta span{font-size:11px;color:var(--muted)}
.return-today{font-size:11px;font-weight:850;color:var(--lime);border:1px solid #a18a2c;border-radius:8px;background:#302a12;padding:5px 7px}
.days{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;overflow:visible;margin:0 0 11px;padding:0}
.day-pill{position:relative;min-width:0;width:100%;min-height:52px;padding:7px 3px 6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border-radius:10px;font-size:12px;line-height:1.2;white-space:normal;overflow-wrap:normal;box-shadow:none}
.day-pill-name{display:block;font-weight:850;text-align:center}
.day-pill small{font-size:9px;line-height:1.15;letter-spacing:0;margin:0;white-space:nowrap;opacity:.82}
.day-pill.selected{box-shadow:0 0 0 1px #ffd40055 inset}
.day-pill.is-today:not(.selected){border-color:#af911a;color:#ffe995}
.day-pill.is-today::after{content:'';position:absolute;top:5px;right:6px;width:6px;height:6px;border-radius:50%;background:var(--lime)}
.day-pill.is-today.selected::after{background:#101010}
.rest-day-hero{padding:20px 18px}
.rest-day-hero p{margin-bottom:17px;line-height:1.5}
@media(max-width:355px){.days{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.day-pill{min-height:49px;padding:6px 2px;font-size:11px}.day-pill small{font-size:8px}.day-pill.is-today::after{right:4px;top:4px;width:5px;height:5px}}
@media(min-width:640px){.days{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.day-pill{min-width:0;min-height:54px;padding:7px 3px;font-size:12px}.day-pill small{font-size:9px}}


/* Entrena+ Fit: tema negro + amarillo (octubre 2026). 
   Solo cambios visuales. Se mantienen datos, historial, vídeos y selección de día. */
:root{--bg:#080808;--panel:#181818;--panel-2:#212121;--ink:#f8f8f6;--muted:#b0b0b0;--line:#353535;--lime:#ffd400;--blue:#ffd400;--gold:#ffbf00;accent-color:#ffd400}
body{background:#080808}
.site-shell{background:radial-gradient(circle at 50% -135px,#5647002e,transparent 430px),#080808}
.app-header{background:#0a0a0af5;border-color:#333}
.brand .mark{background:linear-gradient(145deg,#ffe45a,#ffd400 67%,#e6a800);box-shadow:0 3px 16px #ffd40018;color:#141414}
.brand strong span{color:#ffd400}
.mini-btn{background:#202020;border-color:#555;color:#f5f5f5}
.day-hero{background:linear-gradient(138deg,#302814,#202020 60%,#181818);border-color:#6c5a1b}
.day-hero .day-label{color:#ffe052}
.day-pill{background:#1c1c1c;color:#e0e0e0;border-color:#444}
.day-pill.selected{background:#ffd400;color:#151515;border-color:#ffd400;box-shadow:0 2px 14px #ffd40022}
.day-pill.selected small{color:#242424;opacity:1}
.day-pill.is-today:not(.selected){border-color:#aa8a17;color:#ffe27a}
.day-pill.is-today.selected::after{background:#171717}
.return-today{background:#302910;border-color:#8f781e;color:#ffe16b}
.progress{background:#3b3422}.progress>span{background:linear-gradient(90deg,#f5b800,#ffe35d)}
.exercise-card{border-color:#363636;background:#191919}
.exercise-card[open]{border-color:#826d22}
.exercise-number{background:#302a1b;color:#ffe27c}
.chip{background:#2b2b2b;color:#e1e1e1}.chip.weight{background:#413509;color:#ffde58}
.series-row input[type=number]{background:#252525;border-color:#555;color:#fff}
.series-row .round-check:checked{background:#ffd400;border-color:#ffd400}
.series-row .round-check:checked:after{color:#141414}
.action-link{background:#ffd400;border-color:#ffd400;color:#111}
.exercise-actions .no-video{background:#303030;border-color:#575757;color:#bfbfbf;opacity:1}
.primary-btn{background:#ffd400;color:#161616}
.primary-btn:hover,.action-link:hover{background:#ffe04a}
.secondary-btn,.soft-btn{background:#262626;border-color:#505050;color:#f2f2f2}
.mode-banner{background:#1f1f1f;border-color:#57502c;color:#dadada}
.mode-banner strong,.mode-banner button{color:#ffdf57}
.nav-item.active{color:#ffd400}
.rest-selector{background:#191919;border-color:#414141}
.rest-presets button,.rest-custom{background:#252525;border-color:#555;color:#f5f5f5}
.rest-presets button:active{background:#5c4b0c;color:#ffe86e}
.rest-custom{background:#302914;border-color:#7c651b;color:#ffe27a}
.timer-bar{background:#252525;border-color:#927b25}
.timer-controls button:nth-child(2){background:#ffd400;color:#101010}
.toast{background:#ffd400;color:#121212}
.stat-card b,.chevron{color:#ffd400}
.bar-col>div{background:linear-gradient(#ffd400,#b98a00)}
:focus-visible{outline-color:#ffd400}

.icon-btn{gap:10px;}
.btn-icon{display:inline-flex;align-items:center;justify-content:center;font-size:19px;line-height:1;min-width:20px;}

/* Edición de series y descanso directamente en cada ejercicio (versión 8). */
.set-editor{display:flex;align-items:center;justify-content:space-between;gap:7px;margin:13px 0 14px;color:#bfbfbf;font-size:12px}
.set-editor-buttons{display:flex;gap:7px}
.set-adjust{background:#292929;border:1px solid #646464;border-radius:9px;color:#fafafa;min-height:38px;min-width:70px;padding:7px 9px;font-size:15px;font-weight:850;white-space:nowrap}
.set-adjust span{font-size:12px;vertical-align:1px}
.set-adjust.add{border-color:#a38820;color:#ffe06a}
.set-adjust:disabled{opacity:.35;cursor:not-allowed}
.rest-inline{background:#111111;border:1px solid #3c3826;border-radius:12px;padding:12px;margin:9px 0 14px}
.rest-inline-heading{display:flex;justify-content:space-between;align-items:baseline;gap:7px;margin-bottom:10px;flex-wrap:wrap}
.rest-inline-heading strong{font-size:13px;color:#f7f4e7}
.rest-inline-heading small{font-size:10px;color:#a7a7a7}
.rest-inline-controls{display:flex;gap:9px;align-items:center}
.rest-inline-controls label{display:flex;flex:1;align-items:center;justify-content:center;gap:6px;background:#252525;border:1px solid #565656;border-radius:10px;min-width:0;padding:2px 7px;min-height:45px}
.rest-inline-controls input{width:42px;min-width:0;text-align:center;color:white;font-size:17px;font-weight:850;padding:7px 0;border:0;background:transparent;outline-offset:0;-moz-appearance:textfield}
.rest-inline-controls input::-webkit-inner-spin-button,.rest-inline-controls input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.rest-inline-controls label span{font-size:11px;color:#b6b6b6;white-space:nowrap}
.rest-start-btn{flex:1.15;min-width:0;min-height:45px;border-radius:10px;border:1px solid #ffda4c;background:#ffd400;color:#141414;font-weight:850;font-size:13px;padding:8px 6px}
@media(max-width:360px){.set-editor{flex-wrap:wrap}.set-editor-buttons{margin-left:auto}.rest-inline-controls{gap:5px}.rest-inline-controls label{padding:2px 3px;gap:3px}.rest-inline-controls input{width:31px}.rest-start-btn{font-size:12px}}


/* ENTRENA+ FIT · CRONÓMETRO CIRCULAR XXL · versión 9 */
#timerBar.timer-bar:not(.hidden):not(.minimized){
  position:fixed;inset:0;z-index:110;transform:none;left:0;top:0;right:0;bottom:0;
  width:100%;height:100dvh;max-width:none;max-height:none;overflow-y:auto;
  background:transparent;border:0;box-shadow:none;border-radius:0;padding:env(safe-area-inset-top) 16px env(safe-area-inset-bottom);
  display:flex;justify-content:center;align-items:center;
}
#timerBar .timer-scrim{position:fixed;inset:0;width:100%;height:100%;background:rgba(0,0,0,.88);border:0;border-radius:0;padding:0;cursor:pointer;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
#timerBar .timer-panel{position:relative;z-index:1;flex:0 1 410px;width:100%;max-width:410px;max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 14px);overflow-y:auto;background:linear-gradient(165deg,#242014 0%,#161616 27%,#111 82%);border:1px solid #715c21;border-radius:26px;box-shadow:0 24px 85px #000b,0 0 40px #ffd40012;padding:19px 19px 22px;text-align:center;color:#fafafa;scrollbar-width:none}
#timerBar .timer-panel::-webkit-scrollbar{display:none}
#timerBar .timer-panel-top{display:flex;justify-content:space-between;align-items:center;gap:8px;text-align:left}
#timerBar .timer-panel-brand{display:inline-flex;align-items:center;gap:7px;font-size:11px;font-weight:900;letter-spacing:1.4px;color:#ffdc46}
#timerBar .timer-brand-dot{width:10px;height:10px;background:#ffd400;border-radius:4px;box-shadow:0 0 12px #ffd40066}
#timerBar .timer-minimize{display:inline-flex;align-items:center;gap:7px;border:1px solid #484848;border-radius:11px;background:#242424;color:#e9e9e9;font-size:12px;font-weight:750;padding:8px 11px;min-height:36px;white-space:nowrap}
#timerBar .timer-heading{margin:13px 0 12px}
#timerBar .timer-heading h2{margin:0;color:#fff;letter-spacing:-.8px;font-size:clamp(22px,5vw,28px);line-height:1.18}
#timerBar .timer-heading p{margin:6px 0 0;color:#a9a9a9;font-size:12px}
#timerBar .timer-ring{--progress:100%;width:min(72vw,272px);height:min(72vw,272px);aspect-ratio:1;margin:0 auto 12px;position:relative;border-radius:50%;display:grid;place-items:center;background:conic-gradient(from 0deg,#ffe66b 0%,#ffd400 var(--progress),#383328 var(--progress),#383328 100%);box-shadow:0 0 35px #ffd40014,0 0 0 6px #ffce0010;transition:background .2s linear}
#timerBar .timer-ring::before{content:'';position:absolute;inset:7px;background:radial-gradient(circle at 35% 20%,#272312 0%,#111 66%);border-radius:50%;border:1px solid #6f5c1c}
#timerBar .timer-ring-inner{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:0}
#timerBar .timer-ring-label{font-size:11px;letter-spacing:2.5px;font-weight:900;color:#d7cfae}
#timerBar .timer-countdown{font-size:clamp(56px,14vw,76px);line-height:1.09;color:#ffd830;letter-spacing:-3px;font-weight:900;font-variant-numeric:tabular-nums;text-shadow:0 3px 25px #ffdb003b}
#timerBar .timer-ring-foot{font-size:10px;letter-spacing:1.5px;color:#a8a18e;font-weight:750}
#timerBar .timer-ring.timer-urgent{box-shadow:0 0 30px #ffab2447,0 0 0 6px #ffd40015;animation:timer-final-pulse 1s ease-in-out infinite alternate}
#timerBar .timer-ring.timer-urgent .timer-countdown{color:#ffb63d}
@keyframes timer-final-pulse{from{transform:scale(1)}to{transform:scale(1.03)}}
#timerBar .timer-status{color:#bebebe;font-size:12px;min-height:18px;margin:6px 0 17px}
#timerBar .timer-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.45fr) minmax(0,1fr);gap:9px;align-items:stretch}
#timerBar .timer-controls button{border:1px solid #515151;background:#292929;min-width:0;min-height:51px;border-radius:13px;padding:10px 7px;font-weight:800;font-size:14px;color:#f7f7f7}
#timerBar .timer-controls .timer-pause-btn{background:#ffd400;color:#101010;border-color:#ffd400;font-size:15px;box-shadow:0 3px 18px #ffd40022}
#timerBar .timer-finish{width:100%;min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:8px;margin-top:12px;background:transparent;color:#aaa;border:0;border-radius:12px;font-size:12px;font-weight:750}
#timerBar .timer-finish span{font-size:13px}
#timerBar.timer-bar.minimized{z-index:105;position:fixed;inset:auto auto calc(77px + env(safe-area-inset-bottom)) 50%;transform:translateX(-50%);width:min(90vw,300px);max-width:none;max-height:none;background:transparent;border:0;padding:0;box-shadow:none;border-radius:0;pointer-events:none;display:block}
#timerBar .timer-mini{pointer-events:auto;width:100%;display:flex;align-items:center;gap:12px;background:#1c1c1c;border:1px solid #c19a16;border-radius:19px;box-shadow:0 10px 35px #000c,0 0 18px #ffd40015;padding:11px 16px;color:#fff;text-align:left}
#timerBar .timer-mini-icon{display:grid;place-items:center;width:39px;height:39px;flex:0 0 39px;border:2px solid #ffd400;border-radius:50%;font-size:25px;color:#ffd400;line-height:1}
#timerBar .timer-mini-text{display:flex;flex-direction:column;flex:1;gap:1px}
#timerBar .timer-mini-text small{font-size:10px;color:#b9b9b9;font-weight:800;letter-spacing:1px}
#timerBar .timer-mini-text strong{font-size:27px;color:#ffe15a;line-height:1.1;font-variant-numeric:tabular-nums;letter-spacing:-.6px}
#timerBar .timer-mini-open{font-size:24px;color:#ffd400;font-weight:650}
@media(max-height:640px){#timerBar .timer-panel{padding:12px 15px 13px}#timerBar .timer-heading{margin:7px 0}#timerBar .timer-ring{width:min(48vh,220px);height:min(48vh,220px);margin-bottom:5px}#timerBar .timer-status{margin:3px 0 7px}#timerBar .timer-controls button{min-height:43px}#timerBar .timer-countdown{font-size:clamp(48px,12vw,66px)}}
@media(max-width:355px){#timerBar.timer-bar:not(.hidden):not(.minimized){padding-inline:9px}#timerBar .timer-panel{padding:15px 12px 17px}#timerBar .timer-ring{width:min(76vw,245px);height:min(76vw,245px)}#timerBar .timer-countdown{font-size:58px}#timerBar .timer-minimize{padding:8px 9px}#timerBar .timer-panel-brand{letter-spacing:.7px}}
@media(prefers-reduced-motion:reduce){#timerBar .timer-ring.timer-urgent{animation:none}}

/* Una sola acción de edición: incluye el enlace YouTube en el formulario del ejercicio. */
.exercise-actions .soft-btn[data-action="edit-exercise"]{flex:1 1 100%;min-height:44px;}

/* V11: edición de series integrada en la cabecera del registro. */
.series-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:17px 0 15px;min-height:50px}
.series-toolbar-title{display:flex;flex-direction:column;gap:4px;min-width:0}
.series-toolbar-title strong{color:#fff;font-size:15px;line-height:1.1;font-weight:850;letter-spacing:.05px}
.series-toolbar-title small{color:#aaa;font-size:11px;line-height:1.2}
.series-stepper{display:inline-grid;grid-template-columns:46px 47px 46px;align-items:center;padding:4px;border:1px solid #484848;border-radius:15px;background:#202020;box-shadow:inset 0 1px 0 rgba(255,255,255,.04);flex-shrink:0}
.stepper-button{appearance:none;cursor:pointer;display:grid;place-items:center;width:46px;height:46px;min-width:46px;min-height:46px;padding:0;border:0;border-radius:11px;background:#303030;color:#eee;font-size:29px;font-weight:480;line-height:1;-webkit-tap-highlight-color:transparent;transition:background .12s,transform .12s}
.stepper-button.plus{background:#ffd400;color:#131313;font-weight:600}
.stepper-button:active:not(:disabled){transform:scale(.95)}
.stepper-button:focus-visible{outline:3px solid #fff;outline-offset:2px}
.stepper-button:disabled{opacity:.3;cursor:not-allowed}
.stepper-value{font-size:22px;line-height:1;font-weight:900;color:#fff;text-align:center;font-variant-numeric:tabular-nums}
@media(max-width:355px){.series-toolbar{gap:6px}.series-toolbar-title strong{font-size:14px}.series-toolbar-title small{font-size:10px}.series-stepper{grid-template-columns:44px 35px 44px;padding:3px}.stepper-button{width:44px;height:44px;min-width:44px;min-height:44px}.stepper-value{font-size:20px}}
@media(prefers-reduced-motion:reduce){.stepper-button{transition:none}}


/* ENTRENA+ FIT — v12 | Jerarquía tipográfica y legibilidad móvil
   Ejercicio > sección > etiqueta > explicación. Sin alterar controles ni datos. */
:root{
  --type-display:clamp(25px,6vw,32px);
  --type-exercise:clamp(18px,4.7vw,20px);
  --type-section:18px;
  --type-body:14px;
  --type-label:12px;
  --type-number:17px;
}
body{font-size:16px;line-height:1.45}
/* Marca y encabezados generales */
.brand strong{font-size:19px;line-height:1.13;letter-spacing:.5px}
.brand small{font-size:12px;line-height:1.3;margin-top:4px}
.mini-btn{font-size:14px;line-height:1.2}
.eyebrow{font-size:12px;letter-spacing:1.15px}
.view-head h1{font-size:var(--type-display);line-height:1.17;letter-spacing:-.7px}
.view-head p{font-size:14px;line-height:1.52}
.day-hero h2{font-size:23px;line-height:1.22;letter-spacing:-.35px}
.day-hero p,.hero-stats{font-size:14px}
.day-hero .day-label{font-size:12px}
.section-title h3{font-size:20px;letter-spacing:-.4px}
.section-title small{font-size:12px}
.day-select-heading strong{font-size:14px}
.day-nav-meta span{font-size:12px}
.day-pill{font-size:13px}
.day-pill small{font-size:10px}
/* Cada ejercicio: nombre claramente dominante, datos nítidos y consejo secundario */
.exercise-summary{gap:11px;align-items:center;padding-top:18px;padding-bottom:18px}
.exercise-meta h4{font-size:var(--type-exercise);font-weight:800;line-height:1.26;letter-spacing:-.42px;margin-bottom:9px;text-wrap:pretty}
.exercise-number{min-width:35px;height:35px;font-size:15px;font-weight:800}
.chip{font-size:12px;line-height:1.2;padding:5px 8px;letter-spacing:.02px}
.chevron{font-size:24px}
.technique{font-size:14px;line-height:1.52;padding:14px;margin-bottom:14px;color:#c2c2c2}
.technique b{display:block;color:#fff;font-size:15px;font-weight:800;line-height:1.35;margin-bottom:2px}
.technique br{display:none}
/* Cabecera de series más discreta que el nombre del ejercicio */
.series-toolbar{margin-top:16px;margin-bottom:15px}
.series-toolbar-title strong{font-size:17px;line-height:1.2;letter-spacing:-.2px}
.series-toolbar-title small{font-size:12px;line-height:1.35;color:#aeb0b4}
.stepper-value{font-size:23px;font-variant-numeric:tabular-nums}
.series-head{font-size:12px;line-height:1.25;margin-bottom:9px;color:#acacac}
.series-row>label{font-size:13px;color:#d3d3d3}
.series-row input[type=number]{font-size:17px;font-weight:600;line-height:1.3;font-variant-numeric:tabular-nums;min-height:46px}
.series-row input[type=number]::placeholder{font-size:15px;font-weight:400;color:#9c9c9c;opacity:1}
/* Descanso: título y explicación ya no compiten en una sola fila */
.rest-inline{padding:14px;margin:13px 0 15px}
.rest-inline-heading{display:flex;flex-direction:column;align-items:flex-start;gap:3px;margin-bottom:12px}
.rest-inline-heading strong{font-size:16px;line-height:1.26;font-weight:800;letter-spacing:-.25px}
.rest-inline-heading small{font-size:12px;line-height:1.35;color:#aaaaaa}
.rest-inline-controls label{min-height:49px}
.rest-inline-controls input{font-size:20px;font-weight:800;line-height:1;font-variant-numeric:tabular-nums}
.rest-inline-controls label span{font-size:12px}
.rest-start-btn{min-height:49px;font-size:15px;line-height:1.2}
/* Acciones: texto claro, uniforme y fácil de leer en móvil */
.action-link,.soft-btn{font-size:15px;line-height:1.28;font-weight:800;min-height:48px;gap:9px}
.exercise-actions .action-link{min-height:49px}
.exercise-actions .soft-btn[data-action="edit-exercise"]{min-height:47px}
.exercise-actions .no-video small{font-size:12px}
.btn-icon{font-size:21px;min-width:23px}
.primary-btn{font-size:15px}
.secondary-btn{font-size:14px}
.nav-item small{font-size:12px;line-height:1.25}
.history-card h3,.settings-card h3{font-size:18px;line-height:1.3}
.history-card p,.settings-card p,.info-note{font-size:13px;line-height:1.55}
.field label{font-size:14px}
.field input,.field select{font-size:16px}
.modal h2{font-size:22px}
.modal p{font-size:14px}
/* Las pantallas pequeñas conservan el orden, sin desbordar. */
@media(max-width:355px){
  .exercise-meta h4{font-size:17px}
  .series-toolbar-title strong{font-size:16px}
  .series-toolbar-title small{font-size:11px}
  .series-head{font-size:11px}
  .series-row input[type=number]{font-size:16px}
  .rest-inline{padding:11px}
  .rest-inline-heading strong{font-size:15px}
  .rest-inline-controls input{font-size:18px}
  .rest-start-btn{font-size:14px}
  .day-pill{font-size:12px}
  .day-pill small{font-size:9px}
}
@media(min-width:640px){
  .exercise-meta h4{font-size:20px}
  .rest-inline-heading{flex-direction:row;align-items:baseline;justify-content:space-between;gap:12px}
}


/* v13: espacio seguro de iOS cuando Entrena+ está instalada como PWA.
   black-translucent hace que el contenido se extienda por debajo del reloj;
   reservamos el área superior dentro del encabezado sticky, incluso al hacer scroll.
   El mínimo cubre iPhone con Dynamic Island si env(...) devuelve 0.
   Safari normal y Android mantienen su encabezado habitual. */
html.ios-standalone .app-header {
  padding-top: max(env(safe-area-inset-top, 0px), 62px);
}
/* El temporizador a pantalla completa también evita la barra de estado. */
html.ios-standalone #timerBar.timer-bar:not(.hidden):not(.minimized) {
  padding-top: max(env(safe-area-inset-top, 0px), 62px);
}
html.ios-standalone #timerBar .timer-panel {
  max-height: calc(100dvh - max(env(safe-area-inset-top, 0px), 62px) - env(safe-area-inset-bottom, 0px) - 14px);
}

/* v14 · Planificación flexible: los días calendario no son rutinas obligatorias. */
.week-summary{font-size:11px;color:#a9a9a9;font-weight:550}
.days .day-pill:nth-child(7){grid-column:1 / -1;min-height:42px;flex-direction:row;gap:9px}
.days .day-pill:nth-child(7) small{font-size:10px}
.day-pill.rest-pill:not(.selected){background:#151515;color:#c0c0c0;border-style:dashed}
.day-pill.rest-pill.selected{background:#ffd400;color:#151515;border-style:solid}
.week-manage{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:41px;padding:8px 14px;margin:-3px 0 15px;border:1px solid #65551a;border-radius:11px;background:#201c13;color:#ffe27b;font-weight:800;font-size:12px;text-align:left}
.week-manage:active{background:#383018}
.week-editor{padding-bottom:calc(20px + env(safe-area-inset-bottom))}
.week-editor-count{padding:10px 12px;border:1px solid #776522;border-radius:10px;background:#282313;color:#ffe78a;font-size:13px;font-weight:800;margin:12px 0}
.week-editor-rows{display:flex;flex-direction:column;gap:9px}
.week-editor-row{display:grid;grid-template-columns:92px minmax(0,1fr);gap:10px;align-items:center}
.week-editor-row label{color:#f6f6f6;font-weight:750;font-size:13px}
.week-editor-row select{width:100%;min-width:0;min-height:46px;background:#282828;border:1px solid #565656;color:#f6f6f6;font-size:13px;font-weight:650;padding:8px;border-radius:11px}
.week-editor-help{padding:10px 0 0;font-size:12px!important;line-height:1.55}
@media(min-width:640px){.days{grid-template-columns:repeat(7,minmax(0,1fr))}.days .day-pill:nth-child(7){grid-column:auto;min-height:54px;flex-direction:column;gap:2px}}
@media(max-width:350px){.week-editor-row{grid-template-columns:75px minmax(0,1fr);gap:5px}.week-editor-row select{font-size:12px}.week-summary{font-size:10px}}

/* v14 · Los siete días visibles sin scroll: domingo ocupa una fila compacta. */
@media(max-width:639px){
  .days .day-pill:nth-child(7){grid-column:1 / -1;min-height:43px;flex-direction:row;gap:9px;}
  .days .day-pill:nth-child(7) small{font-size:11px;}
}
@media(min-width:640px){
  .days{grid-template-columns:repeat(7,minmax(0,1fr));}
}

/* v15 · Rutinas personales: tarjetas simples y controles accesibles en móvil */
.routine-edit-quick{display:inline-flex;align-items:center;justify-content:center;border:1px solid #6b591b;background:#272110;color:#ffe587;border-radius:10px;padding:9px 13px;margin:9px 0 0;font-size:13px;font-weight:800;min-height:40px;max-width:100%}
.routine-manager-list{display:flex;flex-direction:column;gap:9px;margin:18px 0}
.routine-manager-item{border:1px solid #454545;background:#242424;border-radius:13px;padding:11px;display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between}
.routine-manager-item>div:first-child{flex:1;min-width:140px}
.routine-manager-item strong{display:block;color:#fff;font-size:15px;line-height:1.35}
.routine-manager-item small{display:block;color:#aaa;font-size:12px;margin-top:5px}
.routine-manager-actions{display:flex;gap:6px}
.routine-manager-actions .secondary-btn{padding:9px 10px;font-size:12px;min-height:40px}
.routine-cardio{display:flex;align-items:center;gap:10px;color:#f7f7f7;font-size:14px;font-weight:600;margin:16px 0}
.routine-cardio input{width:20px;height:20px;accent-color:#ffd400}
@media(max-width:350px){.routine-manager-item{align-items:stretch}.routine-manager-actions{width:100%}.routine-manager-actions .secondary-btn{flex:1}}

/* v17 · cuentas y rutinas compartidas */
.shared-readonly-note{background:#252114;border:1px solid #65531f;color:#f2dda0;border-radius:11px;padding:12px;margin:0 0 14px;font-size:12px;line-height:1.5}
.routine-manager-actions{flex-wrap:wrap;justify-content:flex-end}
.routine-manager-actions .secondary-btn{min-height:42px}
.routine-manager-item:has([data-action="refresh-shared"]) {border-color:#65531f}
.stepper-button:disabled,.icon-btn:disabled{opacity:.43;cursor:not-allowed}
@media(max-width:460px){.routine-manager-item{align-items:stretch}.routine-manager-actions{width:100%;justify-content:stretch}.routine-manager-actions .secondary-btn{flex:1;min-width:78px}}

/* v20 · Íconos de edición legibles, alineados y consistentes en iPhone/Android */
.routine-edit-quick{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  min-height:48px;padding:11px 16px;font-size:15px;line-height:1.25;
  text-align:center;vertical-align:middle;
}
.routine-edit-icon{
  display:block;width:22px;height:22px;min-width:22px;flex:0 0 22px;
  color:currentColor;stroke:currentColor;vertical-align:middle;
}
.exercise-actions .soft-btn[data-action="edit-exercise"]{gap:10px;min-height:48px;font-size:14px;line-height:1.25;}
.routine-edit-quick:focus-visible,.exercise-actions .soft-btn[data-action="edit-exercise"]:focus-visible{
  outline:2px solid #FFD400;outline-offset:3px;
}
@media(max-width:350px){.routine-edit-quick{font-size:14px;padding-inline:12px;gap:8px}}


/* v21 · Identidad visible de la cuenta activa: iPhone y Android. */
.account-header[hidden]{display:none!important}
.account-header{display:flex;align-items:center;gap:10px;width:calc(100% - 36px);max-width:704px;margin:0 auto 10px;padding:7px 9px;background:#1b1b1b;border:1px solid #504821;border-radius:13px;color:#f8f8f8;text-align:left;min-height:51px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.account-header:focus-visible{outline:2px solid #ffdc41;outline-offset:2px}
.account-avatar,.profile-avatar{display:grid;place-items:center;flex:none;border-radius:50%;background:#ffda30;color:#171717;font-weight:950}
.account-avatar{width:34px;height:34px;font-size:16px}
.account-identification{display:flex;flex-direction:column;gap:1px;min-width:0;flex:1}
.account-identification strong{font-size:12px;font-weight:850;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-identification small{font-size:10px;color:#b8b8b8;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-sync{display:inline-flex;align-items:center;gap:5px;flex:none;background:#203025;border:1px solid #3d684a;border-radius:999px;padding:6px 8px;color:#a9e6b8;font-size:10px;font-weight:800;white-space:nowrap}
.account-sync .sync-dot{width:7px;height:7px;border-radius:50%;background:#6cdc91;flex:none}
.account-sync.pending{background:#332b16;border-color:#665523;color:#f9dc8f}
.account-sync.pending .sync-dot{background:#ffd351}
.account-sync.failed{background:#391e1e;border-color:#824445;color:#ffb5b5}
.account-sync.failed .sync-dot{background:#ff7777}
.account-chevron{font-size:23px;color:#d2d2d2;font-weight:500;line-height:1}
.profile-heading{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.profile-avatar{width:54px;height:54px;font-size:24px}
.profile-heading h2{margin:0 0 3px}
.profile-heading .profile-state{margin:0;font-size:12px;color:#b9e1b8}
.profile-detail{background:#262626;border:1px solid #4d4d4d;padding:13px;border-radius:12px;overflow-wrap:anywhere}
.profile-detail span{display:block;color:#aeb0b2;font-size:11px;margin-bottom:5px}
.profile-detail strong{font-size:14px;color:#ffdd59}
.profile-help{color:#a3a3a3;line-height:1.5;font-size:11px}
.profile-full-button{width:100%;margin-top:10px}
@media(max-width:350px){.account-header{gap:7px;width:calc(100% - 24px)}.account-sync{font-size:9px;padding:6px}.account-identification strong{font-size:11px}.account-identification small{font-size:9px}.account-chevron{display:none}}

/* v22 · Mini ilustraciones vectoriales orientativas, sin afectar el alto de pantalla innecesariamente */
.exercise-summary{gap:12px}
.exercise-visual{position:relative;display:block;width:68px;height:68px;min-width:68px;align-self:center;flex-shrink:0}
.exercise-thumbnail{display:block;width:68px;height:68px;object-fit:contain;border-radius:13px;background:#252216;border:1px solid #50441e}
.exercise-visual .exercise-number{position:absolute;left:-5px;bottom:-5px;min-width:25px;height:25px;border-radius:8px;background:#FFD400;color:#151515;font-weight:900;font-size:12px;border:2px solid #191919;box-shadow:0 2px 6px #0008}
.exercise-meta{min-width:0;flex:1}
.exercise-meta h4{overflow-wrap:break-word}
.exercise-illustration-large{display:flex;gap:15px;align-items:center;padding:13px;margin:4px 0 14px;background:linear-gradient(120deg,#242215,#161616);border:1px solid #544620;border-radius:15px}
.exercise-illustration-large img{width:132px;height:132px;flex:0 0 132px;display:block;border-radius:14px}
.exercise-art-label{display:flex;flex-direction:column;gap:8px;min-width:0}
.exercise-art-label .art-label{color:#FFD400;font-size:11px;font-weight:850;letter-spacing:1.1px}
.exercise-art-label strong{font-size:17px;line-height:1.3;color:#f7f6f0;overflow-wrap:break-word}
.exercise-art-label small{font-size:12px;line-height:1.4;color:#aeadab}
@media(max-width:390px){
 .exercise-summary{gap:9px;padding-left:11px;padding-right:11px}
 .exercise-visual,.exercise-thumbnail{width:60px;height:60px;min-width:60px}
 .exercise-visual .exercise-number{left:-3px;bottom:-4px}
 .exercise-meta h4{font-size:clamp(15px,4.2vw,18px);letter-spacing:-.35px}
 .exercise-illustration-large img{width:103px;height:103px;flex-basis:103px}
 .exercise-art-label strong{font-size:15px}
 .exercise-art-label small{font-size:11px}
}
@media(max-width:340px){
 .exercise-visual,.exercise-thumbnail{width:53px;height:53px;min-width:53px}
 .chip{font-size:10px;padding:4px 6px}
}


/* v23 — Fotografía realista y una interfaz de imagen sobria, sin caricaturas. */
.exercise-summary{gap:13px;align-items:center}
.exercise-visual{width:108px;min-width:108px;height:90px;position:relative;display:block;align-self:center;flex-shrink:0}
.exercise-thumbnail,.exercise-photo-placeholder{width:108px;height:90px;border-radius:13px;border:1px solid #514a31;display:block}
.exercise-thumbnail{object-fit:cover;object-position:center 38%;background:#181818}
.exercise-anatomy{position:absolute;top:5px;right:5px;width:30px;height:34px;object-fit:cover;object-position:center;border:1px solid #958246;border-radius:6px;box-shadow:0 2px 10px #000b}
.exercise-visual .exercise-number{position:absolute;left:-7px;bottom:-6px;min-width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:9px;background:#ffd400;color:#151515;border:2px solid #141414;font-size:13px;font-weight:900}
.exercise-photo-placeholder{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;background:linear-gradient(137deg,#27251f,#141414);color:#bfb9a6}
.exercise-photo-placeholder .placeholder-spark{font-size:22px;line-height:1;color:#e4bc39}
.exercise-photo-placeholder small{font-size:8px;line-height:1.25;letter-spacing:.8px;text-align:center;font-weight:850}
.exercise-meta{min-width:0;flex:1}
.exercise-meta h4{font-size:clamp(16px,4.5vw,22px);line-height:1.23;letter-spacing:-.35px}
.exercise-photo-large{position:relative;overflow:hidden;border-radius:15px;border:1px solid #5d5126;background:#171717;margin:3px 0 14px}
.exercise-photo-large>img{display:block;width:100%;height:220px;object-fit:cover;object-position:center 37%}
.exercise-photo-large .photo-shade{position:absolute;inset:auto 0 0;display:flex;flex-wrap:wrap;align-items:center;gap:9px;padding:26px 12px 12px;background:linear-gradient(transparent,#000e 55%)}
.exercise-photo-large .photo-shade small{color:#e4e4e4;font-size:11px;line-height:1.4;text-shadow:0 1px 3px #000}
.photo-target{display:inline-flex;background:#ffd400;color:#111;font-size:10px;font-weight:900;padding:6px 9px;border-radius:7px;letter-spacing:.8px}
.exercise-photo-pending-large{min-height:140px;border:1px dashed #5e5436;border-radius:14px;background:linear-gradient(130deg,#29251b,#141414);display:flex;flex-direction:column;gap:7px;align-items:center;justify-content:center;text-align:center;padding:16px;margin:3px 0 14px}
.exercise-photo-pending-large>span{font-size:24px;color:#ffd400}
.exercise-photo-pending-large strong{font-size:15px;color:#f1e3ac}
.exercise-photo-pending-large small{color:#bfbcb4;line-height:1.5;max-width:280px}
@media(max-width:390px){
 .exercise-summary{gap:9px;padding-left:12px;padding-right:12px}
 .exercise-visual,.exercise-thumbnail,.exercise-photo-placeholder{width:91px;min-width:91px;height:83px}
 .exercise-meta h4{font-size:clamp(14px,4.1vw,17px);letter-spacing:-.25px}
 .exercise-anatomy{width:26px;height:30px}
 .exercise-photo-large>img{height:185px}
}
@media(max-width:340px){
 .exercise-visual,.exercise-thumbnail,.exercise-photo-placeholder{width:77px;min-width:77px;height:75px}
 .exercise-summary{gap:7px;padding-left:9px;padding-right:9px}
 .exercise-meta h4{font-size:14px}
 .exercise-anatomy{width:22px;height:27px}
}


/* v24: desglose visual del enfoque muscular, sin cambiar controles ni geometría general */
.exercise-anatomy{width:39px;height:46px;right:4px;top:4px;border-color:#f5d451;background:#141414;object-fit:cover;object-position:center 30%;border-radius:8px;box-shadow:0 0 0 1px #000b,0 3px 12px #000b}
.exercise-muscle-focus{display:flex;align-items:center;gap:13px;margin:0 0 15px;padding:11px;border:1px solid #655324;border-radius:13px;background:linear-gradient(110deg,#292317,#191919)}
.exercise-muscle-focus>img{width:103px;height:127px;object-fit:cover;object-position:center 30%;border:1px solid #a58a33;border-radius:9px;flex:none;background:#131313}
.exercise-muscle-focus .focus-description{min-width:0;flex:1}
.exercise-muscle-focus .focus-description>small{display:block;font-size:9px;letter-spacing:1px;font-weight:900;color:#ffdf65;margin:0 0 5px}
.exercise-muscle-focus .focus-description>strong{font-size:15px;line-height:1.25;display:block;color:#fff}
.exercise-muscle-focus .focus-description>p{margin:6px 0;color:#ddd;font-size:12px;line-height:1.45}
.exercise-muscle-focus .focus-description>em{display:block;color:#a9a9a9;font-size:10px;line-height:1.4;font-style:normal}
.exercise-muscle-focus .focus-no-anatomy{display:grid;place-items:center;width:54px;height:54px;border:1px solid #71612d;border-radius:10px;color:#ffd400;font-size:24px;flex:none}
.exercise-photo-large .photo-target{letter-spacing:.1px;font-size:11px;line-height:1.25;max-width:100%;text-transform:none}
@media(max-width:390px){.exercise-anatomy{width:36px;height:42px}.exercise-muscle-focus{gap:10px;padding:9px}.exercise-muscle-focus>img{width:88px;height:113px}.exercise-muscle-focus .focus-description>strong{font-size:14px}.exercise-muscle-focus .focus-description>p{font-size:11px}}
@media(max-width:340px){.exercise-anatomy{width:30px;height:36px}.exercise-muscle-focus>img{width:68px;height:88px}}

/* v25 — tarjetas con fotografía sin capas y detalle de ejercicio de pantalla completa. */
.exercise-card{border-radius:19px;margin-bottom:12px}
.exercise-summary{gap:12px;min-height:120px;padding:12px;align-items:center}
.exercise-visual,.exercise-thumbnail,.exercise-photo-placeholder{width:112px;min-width:112px;height:106px}
.exercise-thumbnail{border-radius:13px;object-fit:cover;object-position:center;background:#171717;border:1px solid #4c493f}
.exercise-visual .exercise-number{left:-7px;bottom:-5px;font-size:15px;min-width:29px;height:29px}
.exercise-meta h4{font-size:clamp(16px,4.3vw,21px);line-height:1.16;margin-bottom:7px}
.exercise-focus-tag{display:inline-flex;align-items:center;max-width:100%;border-radius:8px;background:#ffd400;color:#121212;padding:5px 8px;font-weight:900;font-size:11px;line-height:1.15;margin:0 0 8px;white-space:normal}
.exercise-meta .meta-line{gap:5px;align-items:center}
.exercise-meta .chip{font-size:11px;padding:5px 7px}
.exercise-summary .chevron{font-size:30px;min-width:12px;width:12px;line-height:1}
/* Una sola vista de detalle abierta, superpuesta a la lista. La barra del iPhone se respeta. */
body.exercise-detail-visible{overflow:hidden}
.exercise-card[open]{position:fixed;inset:0;z-index:70;width:100%;height:100dvh;max-height:100dvh;margin:0;padding:0;border:0;border-radius:0;overflow-y:auto;overscroll-behavior:contain;background:#080808;box-shadow:none;scrollbar-width:thin}
.exercise-card[open]>.exercise-summary{display:none}
.exercise-card[open]>.exercise-body{box-sizing:border-box;max-width:590px;margin:0 auto;padding:calc(env(safe-area-inset-top,0px) + 8px) 16px calc(env(safe-area-inset-bottom,0px) + 34px)}
.exercise-detail-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:0 0 12px}
.exercise-detail-head strong{font-size:17px;font-weight:850}
.exercise-detail-back{width:42px;height:42px;display:flex;align-items:center;justify-content:center;flex-shrink:0;border:0;background:transparent;color:#ffd400;font-size:42px;font-weight:300;line-height:1;border-radius:10px;cursor:pointer}
.exercise-detail-back:focus-visible{outline:2px solid #ffd400}
.detail-head-space{width:42px;height:42px;flex-shrink:0}
.exercise-photo-large{border:0;border-radius:15px;margin:0 0 14px;position:relative;overflow:hidden;background:#191919}
.exercise-photo-large>img{width:100%;height:clamp(205px,54vw,305px);object-fit:cover;object-position:center}

.detail-exercise-title{font-size:clamp(23px,6.5vw,32px);line-height:1.14;font-weight:900;letter-spacing:-.6px;margin:0 0 9px}
.detail-gallery>.exercise-focus-tag{font-size:12px;margin-bottom:16px;padding:8px 11px}
.detail-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #454545;border-radius:11px;background:#232323;overflow:hidden;margin-bottom:18px}
.detail-tab{border:0;color:#ddd;background:transparent;font-weight:800;font-size:13px;min-height:45px;padding:8px 5px}
.detail-tab.selected{background:#ffd400;color:#111;border-radius:9px}
.detail-panel{display:none;margin:0 0 19px}
.detail-panel.active{display:block}
.detail-panel h3{font-size:19px;font-weight:900;margin:0 0 13px}
.detail-info-text{font-size:14px;line-height:1.65;color:#efefef;margin:0 0 13px}
.detail-info-text.secondary{color:#b3b3b3}
.exercise-muscle-focus{background:transparent;border:0;padding:0;gap:17px;align-items:center;margin:0 0 15px}
.focus-anatomy-visual{width:44%;max-width:210px;flex:none;border-radius:14px;background:#161616;overflow:hidden;border:1px solid #51472c;display:grid;place-items:center}
.exercise-muscle-focus .focus-anatomy-visual img{display:block;width:100%;height:228px;object-fit:contain}
.exercise-muscle-focus .focus-description{align-self:center}
.exercise-muscle-focus .focus-description small{color:#ffd400;font-size:10px}
.exercise-muscle-focus .focus-description strong{color:#fff;font-size:15px;line-height:1.3}
.exercise-muscle-focus .focus-description p{font-size:12px;line-height:1.5;margin-top:10px}
.exercise-muscle-focus .focus-description em{font-size:10px;line-height:1.4}
.detail-metrics{background:#1b1b1b;border:1px solid #545454;border-radius:15px;padding:4px 15px;margin-top:15px}
.detail-metrics>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 0;border-bottom:1px solid #393939;font-size:13px}
.detail-metrics>div:last-child{border-bottom:0}
.detail-metrics span{color:#d4d4d4}
.detail-metrics strong{font-size:14px;text-align:right;color:#fff;font-variant-numeric:tabular-nums}
.set-log-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:20px 0 12px;font-size:18px}
.set-log-heading small{font-size:11px;color:#bbb;font-weight:600}
.exercise-card[open] .exercise-body .series-head{margin-top:12px}
.exercise-card[open] .detail-mark-btn{display:block;width:100%;border:0;border-radius:13px;background:#ffd400;color:#121212;font-weight:900;font-size:17px;padding:15px;margin-top:20px;min-height:52px}
.exercise-card[open] .exercise-actions{margin-top:16px}
.exercise-card[open] .exercise-photo-pending-large{min-height:205px}
@media(max-width:390px){
 .exercise-summary{gap:9px;padding:11px;min-height:108px}
 .exercise-visual,.exercise-thumbnail,.exercise-photo-placeholder{width:91px;min-width:91px;height:98px}
 .exercise-meta h4{font-size:16px}
 .exercise-focus-tag{font-size:10px;padding:5px 7px}
 .exercise-meta .chip{font-size:10px;padding:5px 6px}
 .exercise-card[open]>.exercise-body{padding-left:14px;padding-right:14px}
 .focus-anatomy-visual{width:43%}
 .exercise-muscle-focus .focus-anatomy-visual img{height:205px}
}
@media(max-width:350px){
 .exercise-visual,.exercise-thumbnail,.exercise-photo-placeholder{width:76px;min-width:76px;height:91px}
 .exercise-meta h4{font-size:14px}
 .exercise-focus-tag{font-size:9px}
 .exercise-summary .chevron{width:8px;font-size:24px}
 .exercise-meta .chip{font-size:9px}
}


/* v26 · Registro prioritario / Detalles anatómicos · mismo diseño premium negro/amarillo */
.exercise-card[open] .exercise-detail-head>strong{font-size:17px;letter-spacing:.2px;font-weight:900}
.head-accent{color:#ffd400}
.exercise-card[open] .detail-gallery{margin-bottom:11px}
.exercise-card[open] .detail-gallery>.detail-exercise-title{margin:0 0 8px;font-size:clamp(23px,6.2vw,31px)}
.exercise-card[open] .detail-tabs{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:15px;border-radius:12px}
.exercise-card[open] .detail-tab{font-size:15px;min-height:46px}
.exercise-card[open] .detail-panel{margin-bottom:0}
.exercise-card[open] .detail-panel[data-panel-content="registro"]>.set-log-heading{margin:8px 0 14px}
.exercise-card[open] .detail-panel[data-panel-content="registro"]>.series-toolbar{margin-top:12px}
.exercise-card[open] .detail-panel[data-panel-content="detalles"]>h3{font-size:20px;margin:3px 0 15px}
.exercise-card[open] .detail-panel[data-panel-content="detalles"] .exercise-muscle-focus{margin:0 0 17px}
.exercise-card[open] .detail-panel[data-panel-content="detalles"] .detail-metrics{margin:15px 0 16px}
.detail-no-anatomy{background:#191919;border:1px solid #51472c;padding:17px;border-radius:13px;font-size:14px}
.detail-no-anatomy strong{font-size:16px}
.detail-no-anatomy p{color:#bdbdbd;line-height:1.55;margin:8px 0 0}
.detail-info-accordion{border:1px solid #464646;border-radius:13px;background:#1d1d1d;margin:12px 0;overflow:hidden}
.detail-info-accordion>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;padding:14px 15px;font-size:16px;font-weight:850;color:#f3f3f3;min-height:50px}
.detail-info-accordion>summary::-webkit-details-marker{display:none}
.detail-info-accordion>summary:focus-visible{outline:2px solid #ffd400;outline-offset:-3px}
.detail-info-accordion .accordion-chevron{color:#ffd400;font-size:21px;transition:transform .2s}
.detail-info-accordion[open] .accordion-chevron{transform:rotate(180deg)}
.accordion-copy{padding:0 15px 15px;font-size:13px;line-height:1.6;color:#dedede}
.accordion-copy p{margin:0 0 10px}.accordion-copy p:last-child{margin-bottom:0}
.accordion-copy .detail-disclaimer{color:#aaaaaa;font-size:12px}
.detail-info-accordion .detail-metrics{margin-top:0;background:#181818}
.detail-info-accordion .accordion-copy .detail-metrics{padding:4px 15px}

@media(max-width:390px){.exercise-card[open] .detail-tab{font-size:14px}.detail-info-accordion>summary{font-size:15px}}

/* v27: el cronómetro y su botón minimizado deben quedar POR ENCIMA de la vista
   de ejercicio, que usa position:fixed y z-index:70. Antes quedaban detrás,
   por eso solo se veían cuando se cerraba el detalle. */

/* ENTRENA+ FIT v30 · Detalle del ejercicio adaptable a la altura real del celular.
 * Prioridad: registro de 3 series visible en un teléfono estándar, manteniendo
 * scroll accesible para 4+ series, zoom de texto y teclados abiertos.
 * No afecta otros módulos ni los datos de entrenamiento.
 */
@media (max-width: 680px) and (orientation: portrait) {
  .exercise-card[open] {
    overscroll-behavior: contain;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scroll-padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
  }
  .exercise-card[open] > .exercise-body {
    padding: calc(env(safe-area-inset-top, 0px) + 4px) 12px
      calc(env(safe-area-inset-bottom, 0px) + 12px);
  }
  .exercise-card[open] .exercise-detail-head {
    min-height: 37px;
    height: 37px;
    padding: 0;
    margin-bottom: 5px;
  }
  .exercise-card[open] .exercise-detail-head > strong { font-size: 15px; }
  .exercise-card[open] .exercise-detail-back,
  .exercise-card[open] .detail-head-space {
    width: 38px; height: 37px;
  }
  .exercise-card[open] .exercise-detail-back { font-size: 35px; }
  .exercise-card[open] .detail-gallery {
    margin: 0 0 7px;
    position: relative;
    isolation: isolate;
    border-radius: 13px;
    overflow: hidden;
    background: #161616;
  }
  .exercise-card[open] .exercise-photo-large {
    border-radius: 13px;
    margin: 0;
    background: #191919;
  }
  .exercise-card[open] .exercise-photo-large > img {
    width: 100%;
    height: clamp(96px, 17.8dvh, 155px);
    object-fit: cover;
    object-position: center 43%;
  }
  .exercise-card[open] .exercise-photo-pending-large {
    min-height: clamp(96px, 17.8dvh, 155px);
    padding: 12px;
  }
  .exercise-card[open] .detail-gallery > .detail-exercise-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 20px 12px 8px;
    margin: 0;
    color: white;
    background: linear-gradient(transparent, rgba(0,0,0,.91) 75%);
    font-size: clamp(17px, 4.8vw, 22px);
    line-height: 1.08;
    letter-spacing: -.45px;
    pointer-events: none;
    text-wrap: balance;
    text-shadow: 0 1px 5px #000;
  }

.exercise-card[open] .detail-tabs {
    margin: 0 0 6px;
    border-radius: 11px;
  }
  .exercise-card[open] .detail-tab {
    min-height: 39px;
    font-size: 14px;
    padding: 6px;
  }
  .exercise-card[open] .detail-panel[data-panel-content="registro"] > .set-log-heading {
    margin: 3px 0 4px;
    font-size: 16px;
    line-height: 1.2;
  }
  .exercise-card[open] .set-log-heading small { font-size: 10px; }
  .exercise-card[open] .detail-panel[data-panel-content="registro"] > .series-toolbar {
    min-height: 42px;
    margin: 3px 0 5px;
  }
  .exercise-card[open] .series-toolbar-title strong { font-size: 14px; }
  .exercise-card[open] .series-toolbar-title small { font-size: 10px; }
  .exercise-card[open] .series-stepper {
    grid-template-columns: 42px 36px 42px;
    padding: 2px;
    border-radius: 12px;
  }
  .exercise-card[open] .stepper-button {
    width: 42px; height: 42px;
    min-width: 42px; min-height: 42px;
    border-radius: 9px;
    font-size: 26px;
  }
  .exercise-card[open] .stepper-value { font-size: 20px; }
  .exercise-card[open] .series-head,
  .exercise-card[open] .series-row {
    grid-template-columns: 39px minmax(0,1fr) minmax(0,1fr) 42px;
    gap: 6px;
  }
  .exercise-card[open] .series-head {
    font-size: 10px;
    margin: 3px 0 4px;
    line-height: 1.2;
  }
  .exercise-card[open] .series-row { margin-bottom: 4px; }
  .exercise-card[open] .series-row > label { font-size: 12px; }
  .exercise-card[open] .series-row input[type=number] {
    min-height: 40px;
    height: 40px;
    padding: 5px 2px;
    border-radius: 8px;
    font-size: 16px;
  }
  .exercise-card[open] .series-row .round-check {
    width: 30px; height: 30px; border-radius: 8px;
  }
  .exercise-card[open] .rest-inline {
    margin: 7px 0 6px;
    padding: 7px 9px 8px;
    border-radius: 11px;
  }
  .exercise-card[open] .rest-inline-heading {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 5px;
    gap: 7px;
  }
  .exercise-card[open] .rest-inline-heading strong {
    font-size: 13px;
    line-height: 1.15;
    white-space: nowrap;
  }
  .exercise-card[open] .rest-inline-heading small {
    font-size: 10px;
    line-height: 1.15;
    text-align: right;
  }
  .exercise-card[open] .rest-inline-controls { gap: 6px; }
  .exercise-card[open] .rest-inline-controls label {
    min-height: 40px;
    padding: 1px 4px;
    gap: 3px;
    border-radius: 9px;
  }
  .exercise-card[open] .rest-inline-controls input {
    font-size: 17px;
    width: 34px;
    padding: 4px 0;
  }
  .exercise-card[open] .rest-inline-controls label span { font-size: 10px; }
  .exercise-card[open] .rest-start-btn {
    min-height: 40px;
    padding: 6px 4px;
    font-size: 13px;
    border-radius: 9px;
  }
  .exercise-card[open] .exercise-actions { margin-top: 6px; }
  .exercise-card[open] .exercise-actions .soft-btn[data-action="edit-exercise"] {
    min-height: 40px;
    padding: 7px 11px;
    font-size: 13px;
    border-radius: 9px;
  }
  
  .exercise-card[open] .routine-edit-icon { width: 18px; height: 18px; }
  .exercise-card[open] .detail-mark-btn {
    min-height: 44px;
    padding: 8px 10px;
    margin-top: 7px;
    font-size: 15px;
    border-radius: 10px;
  }
  /* Panel de detalles: mantener anatomía y las tres secciones cerradas visibles. */
  .exercise-card[open] .detail-panel[data-panel-content="detalles"] > h3 {
    font-size: 17px;
    margin: 4px 0 8px;
  }
  .exercise-card[open] .detail-panel[data-panel-content="detalles"] .exercise-muscle-focus {
    margin: 0 0 7px;
    gap: 10px;
  }
  .exercise-card[open] .focus-anatomy-visual { width: 38%; }
  .exercise-card[open] .exercise-muscle-focus .focus-anatomy-visual img {
    height: clamp(115px, 22dvh, 171px);
  }
  .exercise-card[open] .exercise-muscle-focus .focus-description small { font-size: 9px; }
  .exercise-card[open] .exercise-muscle-focus .focus-description strong { font-size: 13px; }
  .exercise-card[open] .exercise-muscle-focus .focus-description p { margin-top: 5px; font-size: 11px; line-height: 1.4; }
  .exercise-card[open] .exercise-muscle-focus .focus-description em { font-size: 9px; }
  .exercise-card[open] .detail-info-accordion { margin: 6px 0; border-radius: 11px; }
  .exercise-card[open] .detail-info-accordion > summary {
    min-height: 44px; padding: 8px 12px; font-size: 14px;
  }
  .exercise-card[open] .detail-no-anatomy { padding: 11px; }
}

/* Teléfonos de menor altura: recortar únicamente márgenes, no los controles. */
@media (max-width:680px) and (max-height:740px) and (orientation:portrait) {
  .exercise-card[open] .exercise-photo-large > img { height: clamp(86px, 15dvh, 115px); }
  .exercise-card[open] .exercise-photo-pending-large { min-height: clamp(86px, 15dvh, 115px); }
  .exercise-card[open] .exercise-detail-head { min-height: 33px; height: 33px; margin-bottom: 3px; }
  .exercise-card[open] .detail-gallery { margin-bottom: 5px; }
  .exercise-card[open] .detail-tabs { margin-bottom: 4px; }
  .exercise-card[open] .detail-tab { min-height: 36px; }
  .exercise-card[open] .series-toolbar-title small { display: none; }
  .exercise-card[open] .rest-inline-heading small { display: none; }
  .exercise-card[open] .series-row input[type=number] { height: 38px; min-height: 38px; }
  .exercise-card[open] .exercise-muscle-focus .focus-anatomy-visual img { height: 110px; }
}

/* En formato horizontal/tableta hay más anchura, por lo que no comprimimos las fotos. */
@media (prefers-reduced-motion:reduce) {
  .exercise-card[open] { scroll-behavior:auto; }
}

/* Ajuste fino v30: llenar mejor la pantalla sin sacrificar legibilidad. */
@media (max-width:680px) and (orientation:portrait) {
  .exercise-card[open] .exercise-photo-large > img {
    height: clamp(120px, 20dvh, 190px);
  }
  .exercise-card[open] .exercise-photo-pending-large {
    min-height: clamp(120px, 20dvh, 190px);
  }
  .exercise-card[open] .detail-tab { min-height: 43px; font-size: 15px; }
  .exercise-card[open] .detail-panel[data-panel-content="registro"] > .set-log-heading {
    font-size: 17px;
  }
  .exercise-card[open] .set-log-heading small { font-size: 11px; }
  .exercise-card[open] .series-toolbar-title strong { font-size: 15px; }
  .exercise-card[open] .series-toolbar-title small { font-size: 11px; }
  .exercise-card[open] .series-head { font-size: 11px; margin-bottom: 5px; }
  .exercise-card[open] .series-row > label { font-size: 13px; }
  .exercise-card[open] .series-row input[type=number] {
    min-height: 43px; height: 43px; font-size: 17px;
  }
  .exercise-card[open] .rest-inline-heading strong { font-size: 14px; }
  .exercise-card[open] .rest-inline-controls label,
  .exercise-card[open] .rest-start-btn { min-height: 43px; }
  .exercise-card[open] .rest-inline-controls input { font-size: 18px; }
  .exercise-card[open] .exercise-actions .soft-btn[data-action="edit-exercise"] {
    min-height: 43px; font-size: 14px;
  }
  .exercise-card[open] .detail-mark-btn { min-height: 47px; font-size: 16px; }
  .exercise-card[open] .exercise-muscle-focus .focus-anatomy-visual img {
    height: clamp(148px, 25dvh, 218px);
  }
  .exercise-card[open] .exercise-muscle-focus .focus-description strong { font-size: 14px; }
  .exercise-card[open] .exercise-muscle-focus .focus-description p { font-size: 12px; }
  .exercise-card[open] .detail-info-accordion > summary { min-height: 47px; font-size: 15px; }
}
@media (max-width:680px) and (max-height:740px) and (orientation:portrait) {
  .exercise-card[open] .exercise-photo-large > img { height: clamp(110px, 18dvh, 130px); }
  .exercise-card[open] .exercise-photo-pending-large { min-height: clamp(110px, 18dvh, 130px); }
  .exercise-card[open] .exercise-muscle-focus .focus-anatomy-visual img {
    height: clamp(140px, 24dvh, 178px);
  }
}


/* v31: fotografías de ejercicio COMPLETAS al abrir Detalle/Registro.
   El marco conserva su altura adaptable de v30; object-fit:contain impide
   recortes y agrandamientos accidentales para todas las proporciones.
   Las miniaturas siguen usando object-fit:cover para mantener sus tarjetas. */
.exercise-card[open] .exercise-photo-large {
  background: radial-gradient(ellipse at 50% 40%, #262626 0%, #111111 80%);
}
.exercise-card[open] .exercise-photo-large > img {
  object-fit: contain;
  object-position: center center;
  background: transparent;
}


/* v34 · OPCIÓN A (muestra aprobada): fotografía principal más grande,
   nombre superpuesto y registro compacto conservados, sin alterar las
   miniaturas, temporizador ni información de los ejercicios.
   La prioridad del encuadre es ver rostro, manos y equipo de entrenamiento;
   los archivos originales panorámicos se conservan sin cambios. */
@media (max-width: 680px) and (orientation: portrait) {
  .exercise-card[open] .exercise-photo-large {
    background: #111;
    border-radius: 14px;
  }
  .exercise-card[open] .exercise-photo-large > img {
    display: block;
    width: 100%;
    height: clamp(190px, 27dvh, 238px);
    object-fit: cover;
    object-position: 50% 47%;
    background: #111;
  }
  .exercise-card[open] .exercise-photo-pending-large {
    min-height: clamp(190px, 27dvh, 238px);
  }
  .exercise-card[open] .detail-gallery {
    margin-bottom: 10px;
  }
  .exercise-card[open] .detail-gallery > .detail-exercise-title {
    font-size: clamp(19px, 5.25vw, 24px);
    font-weight: 900;
    padding: 29px 13px 10px;
    line-height: 1.08;
    text-align: left;
    text-shadow: 0 2px 7px #000;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.4) 35%, rgba(0,0,0,.9) 100%);
  }

.exercise-card[open] .detail-tabs { margin-bottom: 8px; }
}
/* En dispositivos de menor altura no imponer una foto excesiva:
   el registro siempre podrá desplazarse y los botones nunca se recortan. */
@media (max-width: 680px) and (max-height: 740px) and (orientation: portrait) {
  .exercise-card[open] .exercise-photo-large > img {
    height: clamp(172px, 25dvh, 200px);
  }
  .exercise-card[open] .exercise-photo-pending-large {
    min-height: clamp(172px, 25dvh, 200px);
  }
}
@media (min-width: 681px) {
  .exercise-card[open] .exercise-photo-large > img {
    height: clamp(245px, 35vh, 360px);
    object-fit: cover;
    object-position: 50% 47%;
  }
}

/* Approved full-width muscle infographic: press inclinado */
.exercise-card[open] .exercise-muscle-focus.muscle-wide-approved,
.exercise-muscle-focus.muscle-wide-approved {display:block!important;width:100%!important;max-width:none!important;padding:0!important;margin:0 0 15px!important;border:0!important;background:transparent!important;}
.exercise-muscle-focus.muscle-wide-approved .muscle-wide-image,
.exercise-card[open] .exercise-muscle-focus.muscle-wide-approved .muscle-wide-image {display:block!important;width:100%!important;height:auto!important;max-width:100%!important;object-fit:contain!important;border:0!important;border-radius:12px!important;}

/* Imagen horizontal aprobada: proporciones completas, sin recorte. */
.exercise-muscle-focus.muscle-wide-approved {overflow:visible!important;}
.exercise-muscle-focus.muscle-wide-approved img.muscle-wide-image {
 width:100%!important;height:auto!important;aspect-ratio:auto!important;
 object-fit:contain!important;object-position:center!important;
 max-height:none!important;clip-path:none!important;
}

/* V9: formato anatómico único para las fichas aprobadas.
   El mismo espacio visual para Press Inclinado y Press Hammer. */
.exercise-muscle-focus.muscle-wide-approved {
  width: 100% !important;
  aspect-ratio: 1961 / 802 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  background: #000 !important;
  border-radius: 12px !important;
}
.exercise-muscle-focus.muscle-wide-approved img.muscle-wide-image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  max-height: none !important;
  border-radius: 0 !important;
}

/* V20: plantilla anatómica única. La leyenda es texto HTML, no parte de la imagen. */
.anatomy-unified{box-sizing:border-box;width:100%;aspect-ratio:1961/802;display:grid;grid-template-columns:minmax(0,69%) 3px minmax(0,1fr);align-items:center;gap:1.2%;padding:2% 1.7%;background:#000;border:2px solid #ffd400;border-radius:20px;overflow:hidden;margin-bottom:15px}
.anatomy-figures{height:100%;min-width:0;display:flex;align-items:center;justify-content:center;overflow:hidden}
.anatomy-figures img{width:100%;height:100%;object-fit:contain;display:block}
.anatomy-separator{width:3px;height:88%;background:#f21b29;border-radius:4px}
.anatomy-legend{height:90%;display:flex;flex-direction:column;justify-content:space-around;min-width:0;gap:8px;font-family:Arial,Helvetica,sans-serif;color:white}
.anatomy-line{display:grid;grid-template-columns:clamp(9px,3.7vw,24px) minmax(0,1fr);align-items:start;gap:clamp(4px,1.1vw,10px)}
.anatomy-line>div{display:flex;flex-direction:column;gap:1px;min-width:0}
.anatomy-line strong{font-size:clamp(8px,2.1vw,17px);line-height:1.12;font-weight:750}
.anatomy-line span{font-size:clamp(7px,1.9vw,15px);line-height:1.17;font-weight:400}
.anatomy-swatch{display:block;aspect-ratio:1;border-radius:4px;margin-top:1px}
.anatomy-swatch.main{background:#f11a20}.anatomy-swatch.secondary{background:#f4a6b1}
@media(min-width:700px){.anatomy-line strong{font-size:17px}.anatomy-line span{font-size:15px}.anatomy-line{grid-template-columns:24px minmax(0,1fr)}}

/* V21: unified single outer border and equal figure sizing */
.anatomy-unified{border:2px solid #ffd400;border-radius:19px;gap:1.2%}.anatomy-figures img{object-fit:contain}

/* V27: fixed standard frame, no clipping and identical figure area for all four exercises */
.anatomy-unified{grid-template-columns:minmax(0,69%) 3px minmax(0,1fr);overflow:hidden}
.anatomy-figures{min-width:0;overflow:hidden}
.anatomy-figures img{width:100%;height:100%;object-fit:fill;object-position:center;max-width:none}

/* V29: aumentar 2% adicional las cuatro ilustraciones sin modificar marco ni leyenda */
.anatomy-figures img{transform:scale(1.10);transform-origin:center center}


/* V36: evitar recorte de las figuras anatómicas en Vuelos Laterales.
   Mantener proporción original, centrado y sin zoom artificial. */
.anatomy-unified .anatomy-figures {
  min-width: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.anatomy-unified .anatomy-figures img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
}

/* V38 visual refresh · Option C: bold, motivational home. Functional markup/actions preserved. */
.motivation-hero{position:relative;isolation:isolate;min-height:174px;margin:0 0 15px;padding:25px 19px 22px;border-radius:19px;overflow:hidden;display:flex;align-items:flex-end;background:#111 url('fotografias/1-3.webp?v=38-option-c') center 34%/cover no-repeat;border:1px solid #292929;box-shadow:0 12px 30px #0008}
.motivation-hero:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#050505f2 0%,#050505c9 42%,#05050520 100%),linear-gradient(0deg,#050505a8,transparent 70%)}
.motivation-copy{position:relative;z-index:1;max-width:75%}.motivation-kicker{display:block;color:#ffd400;font-size:10px;font-weight:950;letter-spacing:2px;margin-bottom:8px}.motivation-copy h1{font-size:clamp(31px,8vw,43px);line-height:.98;letter-spacing:-1.5px;margin:0;color:#fff;font-weight:950}.motivation-copy h1 span{color:#ffd400}.motivation-copy p{font-size:12px;color:#e2e2e2;margin:9px 0 0}.home-account-strip .mode-banner{margin:0 0 18px;background:#191919;border-color:#393939;border-radius:12px;padding:9px 12px}.home-account-strip .mode-banner span{font-size:11px}.day-select-heading{margin-top:3px}.days{display:flex;gap:8px;overflow-x:auto;padding:2px 1px 9px;scrollbar-width:none;scroll-snap-type:x mandatory}.days::-webkit-scrollbar{display:none}.day-pill{flex:0 0 76px;min-height:67px;scroll-snap-align:start;border-radius:13px;background:#191919;border:1px solid #383838;padding:9px 5px}.day-pill.selected{background:linear-gradient(145deg,#ffe34a,#ffd000);border-color:#ffd400;box-shadow:0 5px 18px #ffd40025;color:#111}.day-pill.selected .day-pill-name,.day-pill.selected small{color:#111}.day-pill .day-pill-name{font-size:13px;font-weight:900}.day-pill small{font-size:10px;line-height:1.2}.home-quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:2px 0 17px}.home-quick-actions button{min-height:76px;border:1px solid #333;border-radius:14px;background:linear-gradient(145deg,#1d1d1d,#111);color:#f5f5f5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:9px 5px}.home-quick-actions button span{font-size:22px;color:#ffd400;line-height:1}.home-quick-actions button b{font-size:11px}.option-c-day-hero{position:relative;border:1px solid #6d5910;background:linear-gradient(135deg,#302710,#191919 75%);box-shadow:0 12px 28px #0008;padding:19px;border-radius:19px;margin-top:0}.option-c-day-hero:before{content:"";position:absolute;right:-35px;top:-45px;width:145px;height:145px;border-radius:50%;background:#ffd4000d;pointer-events:none}.option-c-day-hero .day-label{letter-spacing:1.3px}.option-c-day-hero h2{font-size:24px}.option-c-day-hero .routine-edit-quick{border-radius:12px}.option-c-day-hero .progress{height:10px}
@media(min-width:600px){.motivation-hero{min-height:220px}.motivation-copy h1{font-size:48px}.day-pill{flex:1}}

/* V38 C - navegacion Inicio / Rutina */
.home-training-card{margin-top:14px;padding:22px 19px}
.home-training-card .home-start-btn{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin-top:18px;border-radius:13px;min-height:51px;font-size:16px}
.training-screen{animation:trainAppear .16s ease-out}
.training-back{display:inline-flex;align-items:center;gap:8px;background:transparent;border:0;color:#ffd400;font-size:15px;font-weight:850;padding:11px 0 17px;cursor:pointer}
.training-screen .option-c-day-hero{margin-bottom:22px}
@keyframes trainAppear{from{opacity:.75;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}

/* V38 Option C approved reference: mobile homepage */
body{background:#050505}
.app-header{position:relative;background:#050505;border-bottom:0;backdrop-filter:none}
.header-inner{padding:12px 16px 7px}
.brand .mark{background:#ffda05;border-radius:12px}
.account-header{background:#080808;border-color:#d0a900;border-radius:16px;margin-bottom:3px;min-height:53px}
.content{padding:5px 15px calc(95px + env(safe-area-inset-bottom))}
.motivation-hero{display:block;min-height:0;height:auto;aspect-ratio:656/297;margin:0 0 9px;padding:0;border:0;border-radius:0;box-shadow:none;background:#050505 url('fotografias/portada-opcion-c-aprobada.webp?v=2') center center/100% 100% no-repeat}
.motivation-hero:before{display:none}
.home-training-card{margin:0 0 13px;padding:16px 15px 13px;background:linear-gradient(120deg,#121212,#070707 72%);border:1px solid #d5ae00;border-radius:19px;box-shadow:none}
.home-training-card:before{display:none}
.home-card-title{display:flex;gap:8px;align-items:center;font-size:14px;font-weight:800;color:#fff}
.home-card-main{display:flex;gap:10px;align-items:center;justify-content:space-between;margin:10px 0 10px}
.home-card-main h2{font-size:clamp(19px,5.6vw,25px);line-height:1.16;margin:0;letter-spacing:-.4px;flex:1;color:#fff}
.home-play-btn{flex:0 0 55px;width:55px;height:55px;border:0;border-radius:50%;background:#ffd400;color:#050505;font-size:24px;display:grid;place-items:center;cursor:pointer}
.home-play-btn span{transform:translateX(2px)}
.home-card-meta{display:flex;gap:17px;flex-wrap:wrap;font-size:12px;color:#eee;padding:3px 0 12px;border-bottom:1px solid #333}
.home-training-card .hero-stats{margin-top:11px;font-size:13px;color:#fff;font-weight:700}
.home-training-card .progress{height:10px;margin-top:9px;background:#383838}
.option-c-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;overflow:visible;padding:0;margin:0 0 15px;scroll-snap-type:none}
.option-c-week .day-pill{flex:initial;min-width:0;width:100%;min-height:55px;border:0;border-radius:12px;padding:8px 0 5px;background:linear-gradient(160deg,#202020,#111);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
.option-c-week .day-pill.selected{background:#ffd400;color:#111;box-shadow:none}
.option-c-week .day-pill .day-pill-name{font-size:clamp(11px,3.1vw,15px);font-weight:850;white-space:nowrap}
.option-c-week .day-pill small{font-size:9px;line-height:1;color:#d5d5d5;opacity:1;margin:0}
.option-c-week .day-pill.selected small{color:#101010}
.home-quick-actions{gap:9px;margin:0 0 10px}
.home-quick-actions button{min-height:86px;background:linear-gradient(155deg,#131313,#050505);border:1px solid #333;border-radius:16px;gap:8px;padding:9px 3px}
.home-quick-actions button span{font-size:28px;color:#ffd400}
.home-quick-actions button b{font-size:clamp(10px,2.8vw,13px);line-height:1.18}
.bottom-nav{background:#050505;border-top:1px solid #2a2a2a}
.nav-item{font-size:25px}
.nav-item small{font-size:11px}
@media(min-width:600px){.motivation-hero{min-height:0}.option-c-week .day-pill{min-height:67px}.home-training-card{padding:22px}}
@media(max-width:360px){.header-inner{padding-top:8px}.account-header{min-height:46px}.home-training-card{padding:12px}.home-card-main{margin:7px 0}.home-play-btn{width:46px;height:46px;flex-basis:46px}.option-c-week{gap:4px}.home-quick-actions button{min-height:72px}}

/* V3: correcciones de la opción C aprobada — sin alterar registros ni sincronización. */
.home-bell-btn{display:flex;align-items:center;justify-content:center;flex:0 0 42px;width:42px;height:42px;border:0;background:transparent;color:#f5f5f5;padding:7px;border-radius:12px;cursor:pointer}
.home-bell-btn:focus-visible{outline:2px solid #ffd400}
.option-c-week{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:clamp(3px,1vw,7px)!important;width:100%!important;max-width:100%!important;overflow:visible!important;padding:0!important;margin:0 0 12px!important}
.option-c-week .day-pill,.option-c-week .day-pill:nth-child(7){grid-column:auto!important;grid-row:auto!important;min-width:0!important;width:100%!important;min-height:50px!important;max-width:100%!important;padding:7px 0 5px!important;display:flex!important;flex-direction:column!important;gap:4px!important;justify-content:center!important;align-items:center!important;white-space:nowrap!important}
.option-c-week .day-pill .day-pill-name{font-size:clamp(10px,2.9vw,14px)!important}
.option-c-week .day-pill small,.option-c-week .day-pill:nth-child(7) small{font-size:8px!important;line-height:1!important}
.header-inner{padding-top:8px!important;padding-bottom:5px!important}
.account-header{min-height:49px!important}
.content{padding-top:3px!important}
.motivation-hero{aspect-ratio:656/270!important;margin-bottom:7px!important}
.home-training-card{padding:12px 14px 11px!important;margin-bottom:11px!important}
.home-card-main{margin:7px 0!important}
.home-card-meta{padding-bottom:9px!important}
.home-training-card .hero-stats{margin-top:8px!important}
.home-training-card .progress{margin-top:7px!important}
.home-quick-actions{margin-bottom:10px!important;gap:7px!important}
.home-quick-actions button{min-height:74px!important;padding:7px 2px!important}
.home-quick-actions button span{font-size:24px!important}
@media(max-width:375px){.option-c-week{gap:3px!important}.option-c-week .day-pill .day-pill-name{font-size:10px!important}.home-training-card .home-card-main h2{font-size:19px!important}}

/* Opción C V4: compactación exclusiva de la cabecera de rutina, no de inicio */
.training-screen .compact-routine-hero{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;row-gap:5px;padding:13px 14px 12px!important;margin-top:0!important;margin-bottom:15px!important;border-radius:19px;background:linear-gradient(135deg,#171717,#101010 78%)}
.training-screen .compact-routine-hero .day-label{grid-column:1/-1;font-size:clamp(9px,2.6vw,12px)!important;letter-spacing:.7px;line-height:1.25;margin:0!important}
.training-screen .compact-routine-hero h2{grid-column:1;grid-row:2;font-size:clamp(16px,4vw,20px)!important;line-height:1.17!important;letter-spacing:-.4px;margin:1px 0 0!important;align-self:center;min-width:0}
.training-screen .compact-routine-hero p{grid-column:1;grid-row:3;font-size:12px!important;line-height:1.35;margin:0!important;color:#c8c8c8}
.training-screen .compact-routine-hero .routine-edit-quick{grid-column:2;grid-row:2/4;align-self:center;margin:0!important;min-height:35px!important;padding:6px 9px!important;border-radius:11px;font-size:11px!important;gap:5px;white-space:nowrap;background:#121212}
.training-screen .compact-routine-hero .routine-edit-quick svg{width:15px;height:15px;flex:none}
.training-screen .compact-routine-hero .hero-stats{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:8px;border-top:1px solid #37332b;margin-top:5px!important;padding-top:9px!important;font-size:12px!important;line-height:1.25}
.training-screen .compact-routine-hero .hero-stats strong{font-size:14px!important;white-space:nowrap}
.training-screen .compact-routine-hero .progress{grid-column:1/-1;margin-top:0!important;height:7px!important;min-height:7px!important;border-radius:10px}
.training-screen .training-back{padding:6px 0 11px!important;font-size:14px!important}
.training-screen .section-title{margin-top:8px!important}
@media(max-width:365px){.training-screen .compact-routine-hero{padding:12px 10px!important;column-gap:4px}.training-screen .compact-routine-hero h2{font-size:15px!important}.training-screen .compact-routine-hero .routine-edit-quick{font-size:10px!important;padding:5px!important}}

/* V5 — encabezado de cuenta Minimal Pro + compactación visual; no modifica acciones ni autenticación. */
.app-header .header-inner{padding:10px 18px 8px!important;min-height:62px;}
.app-header .brand{gap:12px;}
.app-header .brand .mark{width:44px;height:44px;border-radius:13px;font-size:27px;}
.app-header .brand strong{font-size:21px;letter-spacing:.45px;}
.app-header .brand small{font-size:11px;margin-top:3px;}
.app-header .home-bell-btn{position:relative;width:40px;height:40px;flex-basis:40px;border-radius:50%;}
.app-header .home-bell-btn:after{content:"";position:absolute;right:6px;top:5px;width:7px;height:7px;border-radius:50%;background:#ffd400;box-shadow:0 0 0 2px #050505;}
.app-header .account-header{width:calc(100% - 36px)!important;max-width:704px;min-height:56px!important;margin:0 auto 8px!important;padding:8px 11px!important;gap:10px!important;background:linear-gradient(105deg,#101010,#080808 75%)!important;border:1px solid #c6a500!important;border-radius:16px!important;box-shadow:0 4px 16px #0005;}
.app-header .account-avatar{width:39px!important;height:39px!important;font-size:18px!important;background:linear-gradient(145deg,#ffe45a,#ffd400 72%,#e9b900)!important;}
.app-header .account-identification{gap:2px!important;}
.app-header .account-identification strong{font-size:13px!important;line-height:1.2!important;font-weight:900!important;}
.app-header .account-identification small{font-size:11px!important;line-height:1.2!important;color:#bdbdbd!important;}
.app-header .account-sync{font-size:10px!important;padding:6px 9px!important;gap:5px!important;border-radius:999px!important;}
.app-header .account-sync .sync-dot{width:7px!important;height:7px!important;}
.app-header .account-chevron{font-size:23px!important;margin-left:1px;}
@media(max-width:380px){
 .app-header .header-inner{padding-inline:14px!important;}
 .app-header .brand .mark{width:40px;height:40px;font-size:24px;}
 .app-header .brand strong{font-size:19px;}
 .app-header .account-header{width:calc(100% - 24px)!important;gap:7px!important;padding:7px 9px!important;}
 .app-header .account-avatar{width:35px!important;height:35px!important;}
 .app-header .account-sync{font-size:9px!important;padding:5px 7px!important;}
}


/* V6 — acabado visual del encabezado aprobado: avatar con inicial, brillo sutil y estado nube. */
.app-header .header-inner{
  padding:8px 18px 7px!important;
  min-height:58px!important;
}
.app-header .brand{gap:11px!important;}
.app-header .brand .mark{
  width:42px!important;height:42px!important;border-radius:12px!important;
  font-size:25px!important;box-shadow:0 0 15px rgba(255,212,0,.13)!important;
}
.app-header .brand strong{font-size:20px!important;letter-spacing:.35px!important;}
.app-header .brand small{font-size:11px!important;margin-top:2px!important;}
.app-header .home-bell-btn{width:38px!important;height:38px!important;flex-basis:38px!important;}
.app-header .home-bell-btn svg{width:25px!important;height:25px!important;}
.app-header .account-header{
  width:calc(100% - 36px)!important;max-width:704px!important;
  min-height:54px!important;padding:7px 10px!important;gap:9px!important;
  margin:0 auto 7px!important;border:1px solid #d0ad00!important;
  border-radius:17px!important;
  background:linear-gradient(105deg,rgba(255,212,0,.035),#080808 42%,#090909)!important;
  box-shadow:0 0 0 1px rgba(255,212,0,.07),0 5px 18px rgba(255,212,0,.075),inset 0 0 18px rgba(255,212,0,.025)!important;
}
.app-header .account-avatar{
  display:grid!important;place-items:center!important;flex:0 0 40px!important;
  width:40px!important;height:40px!important;border-radius:50%!important;
  background:linear-gradient(145deg,#ffe45a,#ffd400 75%,#e9b900)!important;
  color:#111!important;font-size:19px!important;font-weight:950!important;
  box-shadow:0 0 12px rgba(255,212,0,.12)!important;
}
.app-header .account-identification{gap:2px!important;}
.app-header .account-identification strong{font-size:13px!important;line-height:1.15!important;}
.app-header .account-identification small{font-size:10.5px!important;line-height:1.2!important;}
.app-header .account-sync{
  display:inline-flex!important;align-items:center!important;gap:5px!important;
  padding:6px 9px!important;font-size:9.5px!important;white-space:nowrap!important;
  background:rgba(28,83,53,.52)!important;border:1px solid rgba(81,173,112,.58)!important;
  color:#a9e9bd!important;border-radius:999px!important;
}
.app-header .account-sync .sync-dot{display:none!important;}
.app-header .account-sync:before{
  content:"☁";display:inline-block!important;font-size:12px!important;
  line-height:1!important;color:#8ee0aa!important;
}
.app-header .account-chevron{font-size:23px!important;margin-left:0!important;}
@media(max-width:390px){
  .app-header .header-inner{padding-inline:14px!important;}
  .app-header .account-header{width:calc(100% - 28px)!important;gap:7px!important;padding-inline:8px!important;}
  .app-header .account-avatar{flex-basis:37px!important;width:37px!important;height:37px!important;}
  .app-header .account-sync{font-size:9px!important;padding:5px 7px!important;}
  .app-header .account-identification strong{font-size:12px!important;}
  .app-header .account-identification small{font-size:9.5px!important;}
}


/* V7 — sesión integrada en la misma fila del logotipo; compacta y adaptable. */
.app-header .header-inner{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:8px!important;padding:9px 14px!important;min-height:66px!important;
  max-width:900px!important;
}
.app-header .brand{flex:0 1 auto!important;min-width:0!important;gap:8px!important;}
.app-header .brand .mark{width:36px!important;height:36px!important;flex:0 0 36px!important;border-radius:11px!important;font-size:22px!important;}
.app-header .brand strong{font-size:16px!important;letter-spacing:.2px!important;white-space:nowrap!important;}
.app-header .brand small{font-size:9px!important;margin-top:1px!important;white-space:nowrap!important;}
.app-header .account-header{
  display:flex!important;align-items:center!important;flex:1 1 auto!important;min-width:0!important;
  width:auto!important;max-width:390px!important;min-height:44px!important;height:44px!important;
  margin:0!important;padding:5px 7px!important;gap:6px!important;border-radius:14px!important;
  border:1px solid #c9a900!important;
  background:linear-gradient(105deg,rgba(255,212,0,.045),#080808 48%,#090909)!important;
  box-shadow:0 0 0 1px rgba(255,212,0,.05),0 3px 12px rgba(255,212,0,.07)!important;
}
.app-header .account-avatar{
  display:grid!important;place-items:center!important;flex:0 0 30px!important;width:30px!important;height:30px!important;
  border-radius:50%!important;background:linear-gradient(145deg,#ffe45a,#ffd400 75%,#e9b900)!important;
  color:#111!important;font-size:15px!important;font-weight:950!important;
}
.app-header .account-identification{display:flex!important;flex:1 1 auto!important;min-width:0!important;gap:1px!important;}
.app-header .account-identification strong{font-size:11px!important;line-height:1.15!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.app-header .account-identification small{display:block!important;font-size:8px!important;line-height:1.15!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.app-header .account-sync{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;
  gap:4px!important;padding:5px 6px!important;font-size:8px!important;line-height:1!important;white-space:nowrap!important;
  border-radius:999px!important;background:rgba(28,83,53,.48)!important;border:1px solid rgba(81,173,112,.55)!important;
  color:#a9e9bd!important;
}
.app-header .account-sync .sync-dot{display:none!important;}
.app-header .account-sync .cloud-status-icon{display:block!important;width:12px!important;height:12px!important;flex:0 0 12px!important;}
.app-header .account-chevron{font-size:18px!important;line-height:1!important;margin-left:0!important;flex:0 0 auto!important;}
.app-header .home-bell-btn{flex:0 0 30px!important;width:30px!important;height:34px!important;margin:0!important;padding:0!important;}
.app-header .home-bell-btn svg{width:23px!important;height:23px!important;}
@media(max-width:430px){
  .app-header .header-inner{gap:6px!important;padding:8px 10px!important;}
  .app-header .brand{gap:6px!important;}
  .app-header .brand .mark{width:32px!important;height:32px!important;flex-basis:32px!important;font-size:20px!important;border-radius:9px!important;}
  .app-header .brand strong{font-size:14px!important;letter-spacing:0!important;}
  .app-header .brand small{font-size:8px!important;letter-spacing:-.1px!important;}
  .app-header .account-header{gap:5px!important;padding:4px 5px!important;height:40px!important;min-height:40px!important;border-radius:12px!important;}
  .app-header .account-avatar{width:27px!important;height:27px!important;flex-basis:27px!important;font-size:13px!important;}
  .app-header .account-identification strong{font-size:10px!important;}
  .app-header .account-identification small{display:none!important;}
  .app-header .account-sync{gap:3px!important;padding:4px 5px!important;font-size:7px!important;}
  .app-header .account-sync .cloud-status-icon{width:11px!important;height:11px!important;flex-basis:11px!important;}
  .app-header .account-chevron{font-size:16px!important;}
  .app-header .home-bell-btn{flex-basis:25px!important;width:25px!important;height:30px!important;}
  .app-header .home-bell-btn svg{width:21px!important;height:21px!important;}
}
@media(max-width:360px){
  .app-header .header-inner{gap:4px!important;padding-inline:7px!important;}
  .app-header .brand{gap:5px!important;}
  .app-header .brand .mark{width:29px!important;height:29px!important;flex-basis:29px!important;}
  .app-header .brand strong{font-size:12px!important;}
  .app-header .brand small{font-size:7px!important;}
  .app-header .account-header{gap:4px!important;padding-inline:4px!important;}
  .app-header .account-sync{font-size:0!important;padding:4px!important;}
  .app-header .account-sync .cloud-status-icon{width:13px!important;height:13px!important;}
}

/* Preserve account visibility semantics before/after authentication. */
.app-header .account-header[hidden]{display:none!important;}


/* V8 — sesión secundaria y más estrecha; ENTRENA+ conserva el protagonismo. */
.app-header .header-inner{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:8px!important;padding:8px 14px!important;min-height:62px!important;
}
.app-header .brand{flex:1 1 auto!important;min-width:0!important;gap:7px!important;}
.app-header .brand .mark{width:34px!important;height:34px!important;flex:0 0 34px!important;font-size:21px!important;}
.app-header .brand strong{font-size:16px!important;letter-spacing:.15px!important;}
.app-header .brand small{font-size:9px!important;}
.app-header .account-header{
  flex:0 1 205px!important;width:205px!important;max-width:205px!important;min-width:0!important;
  height:40px!important;min-height:40px!important;padding:4px 6px!important;gap:6px!important;
  border-radius:12px!important;
}
.app-header .account-avatar{
  flex:0 0 28px!important;width:28px!important;height:28px!important;font-size:14px!important;
}
.app-header .account-identification{flex:1 1 45px!important;min-width:0!important;}
.app-header .account-identification strong{
  display:block!important;font-size:10px!important;line-height:1.1!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
.app-header .account-identification small{display:none!important;}
.app-header .account-sync{
  flex:0 0 auto!important;gap:3px!important;padding:4px 5px!important;
  font-size:7.5px!important;line-height:1!important;white-space:nowrap!important;
}
.app-header .account-sync:before{content:none!important;display:none!important;}
.app-header .account-sync .cloud-status-icon{
  display:block!important;width:12px!important;height:12px!important;flex:0 0 12px!important;
}
.app-header .account-chevron{font-size:16px!important;flex:0 0 auto!important;}
.app-header .home-bell-btn{flex:0 0 27px!important;width:27px!important;height:30px!important;}
.app-header .home-bell-btn svg{width:22px!important;height:22px!important;}
@media(max-width:390px){
  .app-header .header-inner{gap:5px!important;padding-inline:8px!important;}
  .app-header .brand{gap:5px!important;}
  .app-header .brand .mark{width:30px!important;height:30px!important;flex-basis:30px!important;font-size:19px!important;}
  .app-header .brand strong{font-size:13px!important;}
  .app-header .brand small{font-size:7.5px!important;}
  .app-header .account-header{flex-basis:178px!important;width:178px!important;max-width:178px!important;gap:4px!important;padding-inline:4px!important;}
  .app-header .account-avatar{width:25px!important;height:25px!important;flex-basis:25px!important;font-size:12px!important;}
  .app-header .account-identification{flex-basis:36px!important;}
  .app-header .account-identification strong{font-size:9px!important;}
  .app-header .account-sync{font-size:7px!important;padding:4px!important;}
  .app-header .account-sync .cloud-status-icon{width:11px!important;height:11px!important;flex-basis:11px!important;}
  .app-header .home-bell-btn{flex-basis:24px!important;width:24px!important;}
}
@media(max-width:350px){
  .app-header .account-header{flex-basis:158px!important;width:158px!important;max-width:158px!important;}
  .app-header .account-sync{font-size:0!important;}
}


/* V9 — acceso de inicio de sesión visible cuando no hay una sesión activa. */
.app-header .login-header{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  gap:6px!important;flex:0 0 auto!important;min-width:112px!important;height:38px!important;
  padding:0 10px!important;border:1px solid rgba(255,212,0,.72)!important;
  border-radius:12px!important;background:linear-gradient(120deg,rgba(255,212,0,.13),rgba(255,212,0,.035))!important;
  color:#ffdc32!important;font:700 10px/1 inherit!important;white-space:nowrap!important;
  box-shadow:inset 0 0 12px rgba(255,212,0,.035)!important;
}
.app-header .login-header svg{width:15px!important;height:15px!important;flex:0 0 15px!important;}
.app-header .login-header[hidden]{display:none!important;}
@media(max-width:390px){
  .app-header .login-header{min-width:96px!important;height:35px!important;padding:0 7px!important;gap:4px!important;font-size:9px!important;}
  .app-header .login-header svg{width:13px!important;height:13px!important;flex-basis:13px!important;}
}

/* V10 — icono de acceso alineado visualmente con el estado de nube. */
.app-header .login-header .login-icon{
  display:block!important;width:15px!important;height:15px!important;
  flex:0 0 15px!important;stroke:currentColor!important;
}
@media(max-width:390px){
  .app-header .login-header .login-icon{width:13px!important;height:13px!important;flex-basis:13px!important;}
}

/* V11 — icono de inicio redibujado como casa limpia, coherente con la navegación. */
.bottom-nav .nav-item .nav-icon-home{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:27px!important;height:27px!important;font-size:initial!important;line-height:1!important;
}
.bottom-nav .nav-item .nav-icon-home svg{
  display:block!important;width:25px!important;height:25px!important;
  stroke:currentColor!important;stroke-width:2.1!important;
}
.bottom-nav .nav-item.active .nav-icon-home svg{stroke:var(--lime)!important;}


/* V14 — las rutinas personales solo se muestran con una sesión autenticada. */
.login-required{
  min-height:54vh;display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;padding:34px 24px 48px;gap:13px;
}
.login-required-mark{
  width:58px;height:58px;border-radius:18px;display:grid;place-items:center;
  background:linear-gradient(145deg,#ffe45a,#ffd400);color:#111;
  font-size:39px;font-weight:900;box-shadow:0 8px 28px rgba(255,212,0,.16);
}
.login-required .eyebrow{color:#ffd400;font-size:11px;font-weight:800;letter-spacing:2px;}
.login-required h1{font-size:clamp(24px,6vw,32px);margin:0;color:#fff;}
.login-required p{max-width:330px;margin:0;color:#aaa;font-size:14px;line-height:1.55;}
.login-required .primary-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-width:190px;margin-top:8px;}
.login-required>small{color:#777;font-size:11px;}


/* V15 — pantalla de acceso Opción 3. Solo presentación; autenticación intacta. */
.login-gateway{padding:12px 20px 34px;max-width:680px;margin:0 auto;display:flex;flex-direction:column;gap:18px}
.login-gateway-brand{display:flex;align-items:center;gap:12px;padding:4px 0}
.login-gateway-mark,.auth-premium-icon{width:48px;height:48px;border-radius:14px;background:#ffd400;color:#111;display:grid;place-items:center;font-size:39px;font-weight:900;line-height:1;flex:none}
.login-gateway-brand strong{display:block;font-size:23px;letter-spacing:.3px;color:#fff}
.login-gateway-brand strong span,.auth-premium-heading h2 span{color:#ffd400}
.login-gateway-brand small{display:block;color:#aaa;font-size:12px;margin-top:2px}
.login-gateway-hero{min-height:245px;border-radius:18px;overflow:hidden;position:relative;background:#090909 url('./assets/login-option3.webp') center 51%/cover no-repeat;display:flex;align-items:flex-end;padding:20px;isolation:isolate}
.login-gateway-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.75),rgba(0,0,0,.08)),linear-gradient(0deg,rgba(0,0,0,.75),transparent 70%);z-index:-1}
.login-gateway-copy{display:flex;flex-direction:column;align-items:flex-start;gap:2px;font-size:clamp(27px,7vw,38px);font-weight:950;line-height:.98;font-style:italic;letter-spacing:-1px;color:#fff}
.login-gateway-copy strong{background:#ffd400;color:#111;padding:5px 10px;margin-top:5px;transform:skew(-5deg)}
.login-gateway-benefits{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid #292929;border-radius:14px;padding:14px 4px;background:#101010}
.login-gateway-benefits>div{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;text-align:center;border-right:1px solid #333;min-width:0}
.login-gateway-benefits>div:last-child{border:0}
.login-gateway-benefits b{font-size:25px;color:#ffd400;line-height:1.1}
.login-gateway-benefits span{font-size:12px;color:#eee}
.login-gateway-actions{display:grid;gap:10px}
.login-gateway-primary,.login-gateway-secondary{width:100%;min-height:54px;border-radius:14px;font-weight:850;font-size:16px;cursor:pointer}
.login-gateway-primary{border:0;background:#ffd400;color:#111;box-shadow:0 8px 22px rgba(255,212,0,.13)}
.login-gateway-primary span{margin-right:8px}
.login-gateway-secondary{border:1px solid #aaa;background:transparent;color:#fff}
.login-gateway-note{margin:0;text-align:center;color:#888;font-size:11px}
.auth-premium{padding-top:20px}
.auth-premium-heading{display:flex;align-items:center;gap:11px;margin-bottom:15px}
.auth-premium-heading h2{margin:0;font-size:21px}
.auth-premium-heading small{color:#aaa}
.auth-premium-banner{height:86px;border-radius:12px;margin-bottom:17px;padding:15px;display:flex;align-items:flex-end;background:linear-gradient(0deg,rgba(0,0,0,.75),rgba(0,0,0,.1)),url('./assets/login-option3.webp') center 45%/cover}
.auth-premium-banner strong{font-size:13px;letter-spacing:1px;color:#ffd400}
@media(max-width:380px){.login-gateway{padding:8px 14px 28px;gap:14px}.login-gateway-hero{min-height:215px}.login-gateway-benefits span{font-size:11px}}


/* V16 — acceso limpio: marca única en cabecera, hero fotográfico sin texto incrustado. */
body.logged-out .app-header #loginHeader,
body.logged-out .app-header #installBtn,
body.logged-out .bottom-nav{display:none!important}
body.logged-out .app-header .header-inner{justify-content:flex-start}
body.logged-out .app-header{border-bottom:1px solid #171717}
body.logged-out .content{padding-top:14px;padding-bottom:28px}
.login-gateway{padding:0 20px 28px;max-width:680px;margin:0 auto;display:flex;flex-direction:column;gap:16px}
.login-gateway-hero{min-height:clamp(190px,47vw,265px);border-radius:18px;overflow:hidden;position:relative;background:#090909 url('./assets/login-option3.webp') 58% center/cover no-repeat;display:flex;align-items:flex-end;padding:20px;isolation:isolate}
.login-gateway-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.78),rgba(0,0,0,.05)),linear-gradient(0deg,rgba(0,0,0,.72),transparent 65%);z-index:-1}
.login-gateway-copy{display:flex;flex-direction:column;align-items:flex-start;gap:2px;font-size:clamp(28px,7vw,39px);font-weight:950;line-height:.98;font-style:italic;letter-spacing:-1px;color:#fff}
.login-gateway-copy strong{background:#ffd400;color:#111;padding:5px 10px;margin-top:5px;transform:skew(-5deg)}
.login-gateway-benefits{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid #292929;border-radius:14px;padding:13px 4px;background:#101010}
.login-gateway-benefits>div{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;text-align:center;border-right:1px solid #333;min-width:0}
.login-gateway-benefits>div:last-child{border:0}
.login-gateway-benefits b{font-size:25px;color:#ffd400;line-height:1.1}
.login-gateway-benefits span{font-size:12px;color:#eee}
.login-gateway-actions{display:grid;gap:10px}
.login-gateway-primary,.login-gateway-secondary{width:100%;min-height:54px;border-radius:14px;font-weight:850;font-size:16px;cursor:pointer}
.login-gateway-primary{border:0;background:#ffd400;color:#111;box-shadow:0 8px 22px rgba(255,212,0,.13);display:flex;align-items:center;justify-content:center;gap:10px}
.login-gateway-primary svg{width:21px;height:21px}
.login-gateway-secondary{border:1px solid #aaa;background:transparent;color:#fff}
.login-gateway-note{margin:0;text-align:center;color:#888;font-size:11px}
@media(max-width:380px){.login-gateway{padding:0 14px 24px;gap:13px}.login-gateway-hero{min-height:190px}}


/* V18 — fotografía más abierta, iconografía uniforme y composición vertical equilibrada. */
body.logged-out .content{min-height:calc(100svh - 118px);display:flex;flex-direction:column;justify-content:center;padding-top:18px!important;padding-bottom:30px!important}
.login-gateway{width:100%;max-width:720px;margin:0 auto;padding:0 20px 20px;display:flex;flex-direction:column;justify-content:center;gap:clamp(17px,2.8vh,26px);min-height:inherit}
.login-gateway-hero{width:100%;aspect-ratio:16/9;min-height:0;max-height:300px;border-radius:20px;overflow:hidden;position:relative;background:#090909 url('./assets/login-option3.webp') center center/cover no-repeat;display:flex;align-items:flex-end;padding:clamp(18px,4vw,26px);isolation:isolate}
.login-gateway-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.72),rgba(0,0,0,.05) 85%),linear-gradient(0deg,rgba(0,0,0,.64),transparent 65%);z-index:-1}
.login-gateway-copy{display:flex;flex-direction:column;align-items:flex-start;gap:2px;font-size:clamp(26px,6.8vw,39px);font-weight:950;line-height:.98;font-style:italic;letter-spacing:-1px;color:#fff}
.login-gateway-copy strong{background:#ffd400;color:#111;padding:5px 10px;margin-top:5px;transform:skew(-5deg)}
.login-gateway-benefits{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid #292929;border-radius:16px;padding:16px 4px;background:#101010}
.login-gateway-benefits>div{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;border-right:1px solid #333;min-width:0}
.login-gateway-benefits>div:last-child{border:0}
.login-gateway-benefits b{width:30px;height:30px;color:#ffd400;display:grid;place-items:center}
.login-gateway-benefits b svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.login-gateway-benefits span{font-size:clamp(11px,3vw,14px);color:#eee}
.login-gateway-actions{display:grid;gap:11px}
.login-gateway-primary,.login-gateway-secondary{width:100%;min-height:58px;border-radius:15px;font-weight:850;font-size:clamp(16px,4.2vw,19px);cursor:pointer}
.login-gateway-primary{border:0;background:#ffd400;color:#111;box-shadow:0 8px 22px rgba(255,212,0,.13);display:flex;align-items:center;justify-content:center;gap:12px}
.login-gateway-primary svg{width:23px;height:23px}
.login-gateway-secondary{border:1px solid #aaa;background:transparent;color:#fff}
.login-gateway-note{margin:0;text-align:center;color:#888;font-size:clamp(10px,2.9vw,12px)}
@media(max-height:760px){body.logged-out .content{min-height:auto}.login-gateway{gap:14px}.login-gateway-hero{max-height:210px}.login-gateway-primary,.login-gateway-secondary{min-height:52px}}
@media(min-width:700px){.login-gateway{gap:24px}.login-gateway-hero{max-height:310px}}


/* V19 — composición alineada a la referencia aprobada por el usuario. */
body.logged-out .app-header{display:none!important}
body.logged-out .content{min-height:100svh!important;display:flex;flex-direction:column;justify-content:flex-start;padding:0!important}
body.logged-out .login-gateway{width:100%;max-width:720px;margin:0 auto;padding:0 0 28px;display:flex;flex-direction:column;gap:clamp(16px,2.5vh,24px)}
body.logged-out .login-gateway-hero{width:100%;aspect-ratio:953/917;max-height:none;min-height:0;border-radius:0;background:#050505 url('./assets/login-option3.webp') center top/100% 100% no-repeat;padding:0}
body.logged-out .login-gateway-hero:before{display:none}
body.logged-out .login-gateway-copy{display:none}
body.logged-out .login-gateway-benefits{margin:0 8.2%;padding:15px 4px;border-radius:18px;background:#101010;border:1px solid #303030}
body.logged-out .login-gateway-benefits b{width:32px;height:32px}
body.logged-out .login-gateway-benefits b svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
body.logged-out .login-gateway-benefits span{font-size:clamp(11px,3vw,14px)}
body.logged-out .login-gateway-actions{margin:0 8.2%;gap:11px}
body.logged-out .login-gateway-primary,body.logged-out .login-gateway-secondary{min-height:60px;border-radius:16px;font-size:clamp(17px,4.3vw,20px)}
body.logged-out .login-gateway-note{margin:0 5%;font-size:clamp(10px,2.8vw,12px)}
@media(min-width:700px){body.logged-out .login-gateway-hero{aspect-ratio:953/917}}


/* V21 — modal de acceso simplificado, coherente con la identidad ENTRENA+ FIT. */
.modal:has(.auth-login-only){width:min(92vw,520px);max-height:91dvh;border-radius:22px;background:#101010;border:1px solid #4a4a4a}
.auth-login-only{padding:0 22px 18px}
.auth-modal-brand{margin:0 -22px 19px}
.auth-modal-brandline{display:flex;align-items:center;gap:13px;padding:18px 20px 14px}
.auth-modal-brandline .auth-premium-icon{width:52px;height:52px;border-radius:15px;font-size:40px}
.auth-modal-brandline strong{display:block;font-size:clamp(20px,5vw,25px);font-weight:950;color:#fff;letter-spacing:-.5px}
.auth-modal-brandline strong span{color:#ffd400}
.auth-modal-brandline small{display:block;color:#aaa;font-size:13px;margin-top:3px}
.auth-modal-photo{height:104px;position:relative;display:flex;align-items:flex-end;padding:13px 20px;background:linear-gradient(0deg,rgba(0,0,0,.75),rgba(0,0,0,.05)),url('./assets/login-option3.webp') center 63%/cover}
.auth-modal-photo span{font-size:clamp(10px,2.8vw,13px);font-weight:900;letter-spacing:1.1px;color:#ffd400}
.auth-login-only .auth-modal-title{font-size:clamp(24px,6vw,29px);font-weight:900;margin:0 0 5px;color:#fff}
.auth-login-only .auth-modal-subtitle{font-size:14px;color:#aaa;margin:0 0 17px;line-height:1.45}
.auth-login-only .field{margin:13px 0}
.auth-login-only .field label{font-size:14px;color:#eee}
.auth-login-only .field input{min-height:52px;border:1px solid #555;border-radius:12px;background:#1b1b1b;padding:12px 14px;font-size:16px;outline:none}
.auth-login-only .field input:focus{border-color:#ffd400;box-shadow:0 0 0 2px #ffd40022}
.auth-password-wrap{position:relative}
.auth-password-wrap input{padding-right:52px!important}
.auth-password-toggle{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:36px;height:36px;border:0;background:transparent;color:#ddd;display:grid;place-items:center}
.auth-password-toggle svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.auth-login-only .auth-submit{min-height:58px;border-radius:14px;font-size:18px;margin-top:12px}
.auth-login-only #authMessage{min-height:0;margin:4px 0;font-size:13px}
.auth-cancel{display:block;margin:10px auto 0;padding:9px 20px;border:0;background:transparent;color:#999;font-size:15px;font-weight:700}
@media(max-height:760px){.modal:has(.auth-login-only){max-height:94dvh}.auth-modal-brandline{padding-top:12px;padding-bottom:10px}.auth-modal-photo{height:78px}.auth-modal-brand{margin-bottom:13px}.auth-login-only .field{margin:9px 0}.auth-login-only .auth-submit{min-height:52px}}


/* V22 — modal según diseño aprobado. */
.auth-modal-brandline{gap:14px;padding:17px 20px 14px}
.auth-modal-brandline .auth-premium-icon{width:56px;height:56px;border-radius:16px;font-size:42px}
.auth-modal-brandcopy{min-width:0}
.auth-modal-brandline strong{display:flex;align-items:center;gap:6px;font-size:clamp(19px,5vw,25px);white-space:nowrap}
.auth-brand-dumbbell{width:27px;height:22px;flex:none;color:#ffd400}
.auth-modal-brandline small{font-size:13px;margin-top:4px}
.auth-modal-photo{height:clamp(82px,18vw,112px);margin:0 20px;border:1px solid #414141;border-radius:15px;background:#080808 url('./assets/login-modal-banner.webp') center center/cover no-repeat;padding:0}
.auth-modal-brand{margin-bottom:19px}
.auth-modal-photo span{display:none}
.auth-login-only .field label{display:flex;align-items:center;gap:10px;font-size:14px}
.auth-field-icon{width:22px;height:22px;flex:none;fill:none;stroke:#ffd400;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.auth-login-only .field{margin:13px 0}
.auth-login-only .auth-submit{margin-top:14px;min-height:60px}
@media(max-height:760px){.auth-modal-photo{height:76px}.auth-modal-brand{margin-bottom:12px}.auth-modal-brandline{padding-top:11px;padding-bottom:10px}}

/* V24 — iPhone instalado (PWA): evita solapamiento con hora, Dynamic Island y batería.
   No altera la distribución del sitio en Safari normal ni en Android. */
@media (display-mode: standalone) {
  .app-header { padding-top: max(env(safe-area-inset-top, 0px), 54px) !important; }
}
/* Respaldo para versiones de iOS que solo exponen navigator.standalone. */
html.ios-standalone .app-header {
  padding-top: max(env(safe-area-inset-top, 0px), 54px) !important;
}

/* V25: resumen semanal en el espacio libre de la pantalla de inicio. */
.weekly-progress-home{margin:18px 0 24px;padding:18px 17px 17px;border:1px solid #393939;border-radius:22px;background:linear-gradient(155deg,#141414,#0b0b0b);color:#f6f6f6}
.weekly-progress-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:15px}
.weekly-progress-head h3{font-size:17px;line-height:1.2;margin:0;font-weight:800}
.weekly-progress-head h3 span{color:#ffd400;margin-right:6px}
.weekly-progress-head>small{color:#aaa;font-size:11px;white-space:nowrap}
.weekly-progress-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:16px}
.weekly-progress-stats>div{min-width:0;background:#202020;border-radius:13px;padding:12px 5px 11px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}
.weekly-progress-stats strong{font-size:clamp(20px,5.5vw,27px);font-weight:900;color:#ffd400;line-height:1;white-space:nowrap;font-variant-numeric:tabular-nums}
.weekly-progress-stats strong span{font-size:.7em}
.weekly-progress-stats small{font-size:clamp(10px,2.5vw,12px);color:#c8c8c8;line-height:1.2}
.weekly-progress-track{height:8px;border-radius:100px;background:#333;overflow:hidden}
.weekly-progress-track>span{display:block;height:100%;background:#ffd400;border-radius:100px;transition:width .2s}

/* V26: restaurar cuatro ilustraciones anatómicas previamente aprobadas, sin zoom ni recortes. */
.anatomy-unified.anatomy-restored .anatomy-figures img{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;transform:none!important}

/* V27: plantilla anatómica única. Esta regla prevalece sobre las variantes históricas. */
.anatomy-unified.anatomy-base-template{display:grid!important;grid-template-columns:minmax(0,69%) 3px minmax(0,1fr)!important;align-items:stretch!important;gap:1.2%!important;width:100%!important;min-height:0!important;aspect-ratio:2.48/1!important;padding:10px!important;margin:0 0 15px!important;border:2px solid #ffd400!important;border-radius:19px!important;background:#000!important;overflow:hidden!important;box-sizing:border-box!important}
.anatomy-base-template .anatomy-figures{min-width:0!important;min-height:0!important;width:100%!important;height:100%!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important}
.anatomy-base-template .anatomy-figures img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;transform:none!important;border:0!important;border-radius:0!important}
.anatomy-base-template .anatomy-separator{width:3px!important;min-width:3px!important;height:auto!important;align-self:stretch!important;background:#ed2939!important;border-radius:4px!important}
.anatomy-base-template .anatomy-legend{display:flex!important;flex-direction:column!important;justify-content:space-evenly!important;min-width:0!important;gap:8px!important;padding:2px 0!important}
.anatomy-base-template .anatomy-line{display:flex!important;align-items:flex-start!important;gap:6px!important;min-width:0!important}
.anatomy-base-template .anatomy-line>div{min-width:0!important}
.anatomy-base-template .anatomy-line strong{display:block!important;font-size:clamp(9px,2.2vw,13px)!important;line-height:1.2!important;color:#fff!important}
.anatomy-base-template .anatomy-line span{display:block!important;font-size:clamp(8px,1.95vw,12px)!important;line-height:1.22!important;color:#e8e8e8!important;overflow-wrap:anywhere!important}
.anatomy-base-template .anatomy-swatch{flex:none!important;width:clamp(10px,3vw,18px)!important;height:clamp(10px,3vw,18px)!important;border-radius:4px!important}
.anatomy-pending{height:100%;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;color:#aaa;text-align:center;font-size:clamp(10px,2.5vw,14px);border:1px dashed #555;border-radius:10px;padding:8px;box-sizing:border-box}
.anatomy-pending-symbol{font-size:clamp(25px,8vw,45px);color:#555}
@media(max-width:360px){.anatomy-unified.anatomy-base-template{padding:6px!important;gap:1%!important}.anatomy-base-template .anatomy-line{gap:4px!important}}

/* V28 PWA iPhone — corrección localizada de salto visual al abrir ejercicios.
   Misma reserva superior para encabezado principal y detalle superpuesto.
   No cambia dimensiones internas, tipografía ni diseño de ejercicios. */
@supports (-webkit-touch-callout: none) {
  @media (display-mode: standalone) {
    :root { --entrena-ios-top: max(env(safe-area-inset-top, 0px), 54px); }
    .app-header { padding-top: var(--entrena-ios-top) !important; }
    .exercise-card[open] > .exercise-body {
      padding-top: calc(var(--entrena-ios-top) + 8px) !important;
    }
    .exercise-card[open] { top: 0; bottom: 0; height: 100dvh; }
  }
}
/* Fallback para iOS PWA con clase standalone, si existe. */
html.ios-standalone .exercise-card[open] > .exercise-body {
  padding-top: calc(max(env(safe-area-inset-top, 0px), 54px) + 8px) !important;
}

/* V29: rediseño aprobado de la LISTA de ejercicios; detalle y cabecera iOS intactos. */
.training-screen-v29 .routine-v29-hero{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:7px 10px!important;padding:14px!important;margin-bottom:14px!important;overflow:hidden;background:linear-gradient(110deg,#222017,#101010 70%)!important;border:1px solid #c5a600!important}
.training-screen-v29 .routine-v29-hero:before{display:none!important}
.training-screen-v29 .routine-v29-hero .day-label{grid-column:1/-1!important;grid-row:1!important;color:#ffe066;font-size:clamp(10px,2.65vw,12px)!important;letter-spacing:.55px!important}
.training-screen-v29 .routine-v29-hero h2{grid-column:1!important;grid-row:2!important;font-size:clamp(17px,4.25vw,22px)!important;line-height:1.16!important;margin:0!important}
.training-screen-v29 .routine-v29-info{grid-column:1!important;grid-row:3!important;display:flex;flex-wrap:wrap;gap:5px 12px;color:#e1e1e1;font-size:clamp(10px,2.9vw,12px);font-weight:650}
.training-screen-v29 .routine-v29-hero .routine-edit-quick{grid-column:2!important;grid-row:2/4!important;align-self:center!important;min-height:35px!important;font-size:clamp(10px,2.6vw,12px)!important;padding:7px 9px!important}
.training-screen-v29 .routine-v29-progress{grid-column:1/-1;display:flex;align-items:center;gap:12px;margin-top:3px}
.training-screen-v29 .routine-v29-progress-text{flex:1;min-width:0;font-size:12px}
.training-screen-v29 .routine-v29-progress-text strong{display:block;margin-bottom:7px;font-size:12px;color:#e8e8e8}
.training-screen-v29 .routine-v29-hero .progress{height:7px!important;background:#343434!important;margin:0!important}
.training-screen-v29 .routine-v29-ring,.training-screen-v29 .routine-v29-mini-ring{background:conic-gradient(#ffd400 calc(var(--pct)*1%),#444 calc(var(--pct)*1%));border-radius:50%;display:grid;place-items:center;flex:none}
.training-screen-v29 .routine-v29-ring{width:48px;height:48px}
.training-screen-v29 .routine-v29-ring:before{content:"";grid-area:1/1;background:#171717;border-radius:50%;width:37px;height:37px}
.training-screen-v29 .routine-v29-ring span{grid-area:1/1;z-index:1;color:#ffd400;font-weight:900;font-size:13px}
.training-screen-v29 .routine-v29-title{margin:5px 1px 11px!important}
.training-screen-v29 .routine-v29-title h3{font-size:20px}
.training-screen-v29 .exercise-card:not([open]){background:linear-gradient(110deg,#1c1c1c,#111);border:1px solid #454545;border-radius:17px;margin-bottom:9px}
.training-screen-v29 .exercise-card:not([open])>.exercise-summary{display:flex;gap:9px;min-height:0;padding:10px;align-items:center}
.training-screen-v29 .exercise-card:not([open]) .exercise-visual,.training-screen-v29 .exercise-card:not([open]) .exercise-thumbnail,.training-screen-v29 .exercise-card:not([open]) .exercise-photo-placeholder{width:clamp(82px,24vw,115px);min-width:clamp(82px,24vw,115px);height:clamp(94px,25vw,113px);border-radius:13px}
.training-screen-v29 .exercise-card:not([open]) .exercise-meta h4{font-size:clamp(14px,3.7vw,19px);line-height:1.16;margin:0 0 6px}
.training-screen-v29 .exercise-card:not([open]) .exercise-focus-tag{font-size:clamp(9px,2.6vw,11px);padding:4px 6px;margin-bottom:6px}
.training-screen-v29 .exercise-card:not([open]) .exercise-meta .meta-line{gap:4px}
.training-screen-v29 .exercise-card:not([open]) .chip{font-size:clamp(9px,2.5vw,11px);padding:5px 6px}
.training-screen-v29 .routine-v29-set-progress{flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:44px;padding:5px 3px;border:1px solid #3c3c3c;border-radius:11px;background:#151515}
.training-screen-v29 .routine-v29-set-progress strong{font-size:clamp(13px,3.7vw,18px);line-height:1.1;color:white}
.training-screen-v29 .routine-v29-set-progress small{font-size:9px;color:#c8c8c8}
.training-screen-v29 .routine-v29-mini-ring{width:19px;height:19px;margin-top:2px}
.training-screen-v29 .routine-v29-mini-ring:after{content:"";width:13px;height:13px;background:#151515;border-radius:50%}
.training-screen-v29 .exercise-card:not([open]) .chevron{font-size:25px;width:10px;min-width:10px}
@media(max-width:375px){.training-screen-v29 .exercise-card:not([open])>.exercise-summary{gap:6px;padding:8px}.training-screen-v29 .routine-v29-set-progress{min-width:38px}.training-screen-v29 .exercise-card:not([open]) .exercise-meta h4{font-size:13px}.training-screen-v29 .routine-v29-hero{padding:11px!important}}

/* V30 — portada fotográfica de rutina, sin alterar altura ni distribución V29. */
.training-screen .routine-v29-hero{isolation:isolate;overflow:hidden;background:#111!important}
.training-screen .routine-v29-hero::before{
 content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
 background-image:linear-gradient(90deg,rgba(12,12,12,.97) 0%,rgba(12,12,12,.92) 38%,rgba(12,12,12,.70) 68%,rgba(12,12,12,.56) 100%),var(--routine-cover,none);
 background-position:center,right center;background-size:cover,48% auto;background-repeat:no-repeat;
 opacity:1;
}
.training-screen .routine-v29-hero::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(0deg,rgba(0,0,0,.45),transparent 60%)}
.training-screen .routine-v29-hero .day-label,.training-screen .routine-v29-hero h2,.training-screen .routine-v29-hero .routine-v29-info,.training-screen .routine-v29-hero .routine-v29-progress,.training-screen .routine-v29-hero .routine-edit-quick{position:relative;z-index:1}
@media(max-width:420px){.training-screen .routine-v29-hero::before{background-size:cover,60% auto;background-position:center,right center}}

/* V31: corregir apilamiento de portada; imagen sobre el fondo, contenido por encima. */
.training-screen .routine-v29-hero{position:relative;isolation:isolate;overflow:hidden}
.training-screen .routine-v29-hero::before{z-index:0!important;background-size:cover,cover!important;background-position:center,center center!important}
.training-screen .routine-v29-hero::after{z-index:0!important}
.training-screen .routine-v29-hero > *{position:relative;z-index:1}

/* V32: imagen real como elemento, independiente de pseudo-elementos heredados. */
.training-screen .routine-v29-hero{position:relative!important;isolation:isolate;overflow:hidden;background:#101010!important}
.training-screen .routine-v29-hero::before,.training-screen .routine-v29-hero::after{display:none!important}
.training-screen .routine-v29-hero .routine-cover-photo{display:block!important;position:absolute!important;inset:0!important;z-index:0!important;pointer-events:none;background-repeat:no-repeat;background-size:cover;background-position:center;opacity:1}
.training-screen .routine-v29-hero .routine-cover-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,8,8,.94) 0%,rgba(8,8,8,.84) 40%,rgba(8,8,8,.42) 100%)}
.training-screen .routine-v29-hero > :not(.routine-cover-photo){position:relative;z-index:1}

/* V33: portada exclusiva pecho a la izquierda; conservar diseño y comportamiento restantes */
.training-screen .routine-v29-hero:has(.routine-cover-photo[style*="portada-pecho-exclusiva"]) {background:#090909!important;}
.training-screen .routine-v29-hero .routine-cover-photo[style*="portada-pecho-exclusiva"] {inset:0 auto 0 0!important;width:36%!important;background-size:cover!important;background-position:48% center!important;}
.training-screen .routine-v29-hero .routine-cover-photo[style*="portada-pecho-exclusiva"]::after {background:linear-gradient(90deg,transparent 15%,rgba(7,7,7,.2) 50%,#090909 100%)!important;}
.training-screen .routine-v29-hero:has(.routine-cover-photo[style*="portada-pecho-exclusiva"]) > :not(.routine-cover-photo){margin-left:26%!important;}
@media(max-width:420px){.training-screen .routine-v29-hero:has(.routine-cover-photo[style*="portada-pecho-exclusiva"]) > :not(.routine-cover-photo){margin-left:22%!important;}.training-screen .routine-v29-hero .routine-cover-photo[style*="portada-pecho-exclusiva"]{width:36%!important;}}

/* V34: portada exclusiva con clase explícita, sin :has ni dependencia de selector de style. */
.training-screen .routine-v29-hero.routine-pecho-exclusive {background:#090909!important;position:relative!important;isolation:isolate!important;overflow:hidden!important}
.training-screen .routine-v29-hero.routine-pecho-exclusive::before,.training-screen .routine-v29-hero.routine-pecho-exclusive::after {display:none!important;content:none!important}
.training-screen .routine-v29-hero.routine-pecho-exclusive .routine-cover-photo {display:block!important;position:absolute!important;inset:0 auto 0 0!important;width:39%!important;height:100%!important;z-index:0!important;background-image:url('fotografias/portada-pecho-exclusiva.webp?v=34')!important;background-size:cover!important;background-position:48% center!important;background-repeat:no-repeat!important;opacity:1!important;pointer-events:none!important}
.training-screen .routine-v29-hero.routine-pecho-exclusive .routine-cover-photo::after {content:''!important;position:absolute!important;inset:0!important;background:linear-gradient(90deg,transparent 5%,rgba(9,9,9,.1) 42%,#090909 100%)!important}
.training-screen .routine-v29-hero.routine-pecho-exclusive > :not(.routine-cover-photo) {position:relative!important;z-index:2!important;margin-left:26%!important}
@media(max-width:420px){.training-screen .routine-v29-hero.routine-pecho-exclusive > :not(.routine-cover-photo){margin-left:23%!important}}

/* V35: distribución estable para portada de pecho en iPhone; sin cambiar el resto de la app. */
.training-screen-v29 .routine-v29-hero.routine-pecho-exclusive {
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  column-gap:8px!important;row-gap:7px!important;
  padding:14px!important;
}
.training-screen-v29 .routine-v29-hero.routine-pecho-exclusive > :not(.routine-cover-photo) {
  margin-left:0!important;min-width:0!important;
}
.training-screen-v29 .routine-v29-hero.routine-pecho-exclusive .day-label {
  grid-column:1/-1!important;grid-row:1!important;
  padding-left:27%!important;overflow-wrap:anywhere;
}
.training-screen-v29 .routine-v29-hero.routine-pecho-exclusive h2 {
  grid-column:1/-1!important;grid-row:2!important;
  padding-left:27%!important;max-width:100%!important;
  font-size:clamp(16px,4.1vw,21px)!important;
}
.training-screen-v29 .routine-v29-hero.routine-pecho-exclusive .routine-v29-info {
  grid-column:1/-1!important;grid-row:3!important;
  padding-left:27%!important;display:flex!important;
  flex-wrap:nowrap!important;align-items:center!important;
  gap:10px!important;white-space:nowrap!important;
  font-size:clamp(10px,2.55vw,12px)!important;
}
.training-screen-v29 .routine-v29-hero.routine-pecho-exclusive .routine-edit-quick {
  grid-column:2!important;grid-row:4!important;justify-self:end!important;
  align-self:center!important;box-sizing:border-box!important;
  width:max-content!important;min-width:132px!important;max-width:100%!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  gap:8px!important;padding:9px 12px!important;
  white-space:nowrap!important;font-size:12px!important;
  line-height:1.2!important;overflow:visible!important;
}
.training-screen-v29 .routine-v29-hero.routine-pecho-exclusive .routine-edit-quick span {white-space:nowrap!important;display:inline-block!important;flex:none!important}
.training-screen-v29 .routine-v29-hero.routine-pecho-exclusive .routine-edit-quick svg {flex:none!important;width:16px!important;height:16px!important}
.training-screen-v29 .routine-v29-hero.routine-pecho-exclusive .routine-v29-progress {
  grid-column:1/-1!important;grid-row:5!important;
  margin-left:27%!important;min-width:0!important;
}
@media(max-width:370px){
  .training-screen-v29 .routine-v29-hero.routine-pecho-exclusive .routine-v29-info {gap:6px!important;font-size:9px!important}
  .training-screen-v29 .routine-v29-hero.routine-pecho-exclusive .routine-edit-quick {min-width:125px!important;padding:8px 9px!important;font-size:11px!important}
}


/* V36: el estado de descanso comparte la misma geometría que la tarjeta de entrenamiento. */
.rest-day-home-card{
  min-height:185px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:12px 14px 11px!important;
  margin:0 0 11px!important;
  background:linear-gradient(120deg,#121212,#070707 72%)!important;
  border:1px solid #d5ae00!important;
  border-radius:19px!important;
  box-shadow:none!important;
}
.rest-day-home-card:before{display:none!important}
.rest-day-home-card .home-card-title{font-size:14px;line-height:1.2}
.rest-day-home-card .rest-card-main{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:7px 0!important}
.rest-day-home-card .rest-card-main h2{flex:1;min-width:0;font-size:clamp(20px,5.4vw,25px);line-height:1.12;margin:0;letter-spacing:-.45px}
.rest-day-home-card .rest-assign-btn{flex:0 0 auto;min-height:42px;padding:0 12px;border:1px solid #555;border-radius:12px;background:#222;color:#f5f5f5;font-size:12px;font-weight:800;white-space:nowrap}
.rest-day-home-card .rest-card-meta{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:3px 0 7px;border-bottom:1px solid #333;font-size:12px;color:#eee}
.rest-day-home-card .rest-card-note{font-size:11px;line-height:1.3;color:#aaa;margin:6px 0 0}
@media(max-width:375px){
 .rest-day-home-card{min-height:185px;padding:11px 12px 10px!important}
 .rest-day-home-card .rest-card-main h2{font-size:19px}
 .rest-day-home-card .rest-assign-btn{padding:0 9px;font-size:11px}
}


/* V37: misma altura exacta para la tarjeta de entrenamiento y la de descanso en inicio. */
.home-training-card,
.home-training-card.rest-day-home-card{
  height:185px!important;
  min-height:185px!important;
  max-height:185px!important;
  box-sizing:border-box!important;
}
.home-training-card.rest-day-home-card{
  display:flex!important;
  flex-direction:column!important;
  justify-content:space-between!important;
  overflow:hidden!important;
  padding:12px 14px 11px!important;
  margin:0 0 11px!important;
}
.home-training-card.rest-day-home-card .home-card-title{flex:0 0 auto!important}
.home-training-card.rest-day-home-card .rest-card-main{flex:1 1 auto!important;min-height:0!important;margin:5px 0!important}
.home-training-card.rest-day-home-card .rest-card-meta{flex:0 0 auto!important;padding:2px 0 5px!important}
.home-training-card.rest-day-home-card .rest-card-note{flex:0 0 auto!important;margin:5px 0 0!important;font-size:11px!important;line-height:1.2!important}
@media(max-width:375px){
  .home-training-card,
  .home-training-card.rest-day-home-card{height:185px!important;min-height:185px!important;max-height:185px!important}
}


/* V38: un único componente de tarjeta para los siete días. El estado de descanso solo cambia los datos. */
.home-training-card.home-rest-card{height:185px!important;min-height:185px!important;max-height:185px!important;box-sizing:border-box!important}
.home-training-card.home-rest-card .home-card-main h2{max-width:calc(100% - 65px)}
.home-training-card.home-rest-card .home-card-meta{align-items:center}
.home-training-card.home-rest-card .home-play-btn span{transform:none}
.home-training-card.home-rest-card .hero-stats{margin-top:11px;font-size:13px;color:#fff;font-weight:700}
.home-training-card.home-rest-card .progress{height:10px;margin-top:9px;background:#383838}


/* V39: plantilla maestra única para el encabezado de detalle de los siete días.
   La composición del lunes (foto a la izquierda y contenido a la derecha) se aplica
   a cualquier rutina; solo cambian imagen, textos, métricas y datos. */
.training-screen-v29 .routine-v29-hero.routine-master-cover{
  position:relative!important;isolation:isolate!important;overflow:hidden!important;
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
  column-gap:8px!important;row-gap:7px!important;
  padding:14px!important;margin:0 0 15px!important;
  min-height:230px!important;box-sizing:border-box!important;
  border:1px solid #c5a600!important;border-radius:19px!important;
  background:#090909!important;
}
.training-screen-v29 .routine-v29-hero.routine-master-cover::before,
.training-screen-v29 .routine-v29-hero.routine-master-cover::after{display:none!important;content:none!important}
.training-screen-v29 .routine-v29-hero.routine-master-cover .routine-cover-photo{
  display:block!important;position:absolute!important;inset:0 auto 0 0!important;
  width:39%!important;height:100%!important;z-index:0!important;
  background-size:cover!important;background-position:center center!important;
  background-repeat:no-repeat!important;opacity:1!important;pointer-events:none!important;
}
.training-screen-v29 .routine-v29-hero.routine-master-cover .routine-cover-photo::after{
  content:''!important;position:absolute!important;inset:0!important;
  background:linear-gradient(90deg,transparent 4%,rgba(9,9,9,.12) 42%,#090909 100%)!important;
}
.training-screen-v29 .routine-v29-hero.routine-master-cover > :not(.routine-cover-photo){
  position:relative!important;z-index:2!important;margin-left:0!important;min-width:0!important;
}
.training-screen-v29 .routine-v29-hero.routine-master-cover .day-label{
  grid-column:1/-1!important;grid-row:1!important;padding-left:27%!important;
  color:#ffe066!important;font-size:clamp(10px,2.65vw,12px)!important;
  letter-spacing:.7px!important;line-height:1.25!important;overflow-wrap:anywhere!important;
}
.training-screen-v29 .routine-v29-hero.routine-master-cover h2{
  grid-column:1/-1!important;grid-row:2!important;padding-left:27%!important;
  max-width:100%!important;margin:0!important;
  font-size:clamp(16px,4.1vw,21px)!important;line-height:1.17!important;
  letter-spacing:-.4px!important;
}
.training-screen-v29 .routine-v29-hero.routine-master-cover .routine-v29-info{
  grid-column:1/-1!important;grid-row:3!important;padding-left:27%!important;
  display:flex!important;flex-wrap:nowrap!important;align-items:center!important;
  gap:8px!important;white-space:nowrap!important;
  font-size:clamp(9px,2.55vw,12px)!important;color:#e1e1e1!important;font-weight:650!important;
}
.training-screen-v29 .routine-v29-hero.routine-master-cover .routine-edit-quick{
  grid-column:2!important;grid-row:4!important;justify-self:end!important;
  align-self:center!important;box-sizing:border-box!important;
  width:max-content!important;min-width:132px!important;max-width:100%!important;
  min-height:38px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  gap:8px!important;padding:9px 12px!important;white-space:nowrap!important;
  font-size:12px!important;line-height:1.2!important;overflow:visible!important;
}
.training-screen-v29 .routine-v29-hero.routine-master-cover .routine-edit-quick span{white-space:nowrap!important;display:inline-block!important;flex:none!important}
.training-screen-v29 .routine-v29-hero.routine-master-cover .routine-edit-quick svg{flex:none!important;width:16px!important;height:16px!important}
.training-screen-v29 .routine-v29-hero.routine-master-cover .routine-v29-progress{
  grid-column:1/-1!important;grid-row:5!important;margin:0 0 0 27%!important;
  min-width:0!important;display:flex!important;align-items:center!important;gap:12px!important;
}
.training-screen-v29 .routine-v29-hero.routine-master-cover .routine-v29-progress-text{flex:1!important;min-width:0!important;font-size:12px!important}
.training-screen-v29 .routine-v29-hero.routine-master-cover .routine-v29-progress-text strong{
  display:block!important;margin:0 0 7px!important;font-size:12px!important;color:#e8e8e8!important;
}
.training-screen-v29 .routine-v29-hero.routine-master-cover .progress{
  height:7px!important;min-height:7px!important;margin:0!important;border-radius:10px!important;background:#343434!important;
}
.training-screen-v29 .routine-v29-hero.routine-master-cover .routine-v29-ring{
  width:48px!important;height:48px!important;flex:none!important;border-radius:50%!important;
  display:grid!important;place-items:center!important;
  background:conic-gradient(#ffd400 calc(var(--pct)*1%),#444 calc(var(--pct)*1%))!important;
}
.training-screen-v29 .routine-v29-hero.routine-master-cover .routine-v29-ring:before{
  content:''!important;grid-area:1/1!important;width:37px!important;height:37px!important;
  border-radius:50%!important;background:#171717!important;
}
.training-screen-v29 .routine-v29-hero.routine-master-cover .routine-v29-ring span{
  grid-area:1/1!important;z-index:1!important;color:#ffd400!important;font-weight:900!important;font-size:13px!important;
}
@media(max-width:420px){
 .training-screen-v29 .routine-v29-hero.routine-master-cover{min-height:230px!important;padding:13px!important}
 .training-screen-v29 .routine-v29-hero.routine-master-cover .routine-cover-photo{width:39%!important}
 .training-screen-v29 .routine-v29-hero.routine-master-cover .day-label,
 .training-screen-v29 .routine-v29-hero.routine-master-cover h2,
 .training-screen-v29 .routine-v29-hero.routine-master-cover .routine-v29-info{padding-left:27%!important}
 .training-screen-v29 .routine-v29-hero.routine-master-cover .routine-v29-info{gap:6px!important;font-size:clamp(8px,2.35vw,10px)!important}
 .training-screen-v29 .routine-v29-hero.routine-master-cover .routine-edit-quick{min-width:125px!important;padding:8px 9px!important;font-size:11px!important}
 .training-screen-v29 .routine-v29-hero.routine-master-cover .routine-v29-progress{margin-left:27%!important}
}



/* V44: mostrar completas las fotografías de ejercicios, sin recortes */
.exercise-thumbnail {
  object-fit: contain !important;
  object-position: center center !important;
  background: #080808 !important;
}
.exercise-photo-large {
  background: #080808;
}
.exercise-photo-large > img {
  object-fit: contain !important;
  object-position: center center !important;
  background: #080808;
}

/* V45: miniaturas más grandes en tarjetas de ejercicios. */
.exercise-card .exercise-visual .exercise-thumbnail,
.exercise-card .exercise-thumbnail {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 38% !important;
  background: #171717 !important;
}


/* PLANTILLA MAESTRA DE EJERCICIOS — botón de video único y consistente */
.exercise-photo-large { position: relative; overflow: hidden; }
.exercise-photo-large .hero-video-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: auto;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  box-sizing: border-box;
  padding: 7px 12px;
  border: 1px solid #777;
  border-radius: 999px;
  background: rgba(9,9,9,.88);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  backdrop-filter: blur(8px);
}
.exercise-photo-large .hero-video-btn:focus-visible {
  outline: 2px solid #ffd400;
  outline-offset: 2px;
}


/* Protección adicional: si una vista antigua inserta un segundo enlace,
   solo se muestra el primer botón de video dentro de la fotografía. */
.exercise-photo-large > .hero-video-btn ~ .hero-video-btn {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.exercise-photo-large > .hero-video-btn {
  z-index: 20 !important;
}

/* V106: prensa 45, misma imagen en ambas vistas, sin recorte de cabeza o pies */
.exercise-thumbnail-prensa45{object-fit:contain!important;object-position:center center!important;background:#171717!important}

/* V111: enfoque de miniatura plancha sin modificar la fotografía */
.exercise-thumbnail.exercise-thumbnail-plancha{object-position:76% center!important;}
