
:root{
  --ivory:#F6F2EA;
  --paper:#FCFAF6;
  --ink:#0F1115;
  --gold:#C8A96A;
  --muted:#6E685E;
  --line:#DED6C8;
  --white:#fff;
  --shadow:0 18px 55px rgba(15,17,21,.07);
}
*{box-sizing:border-box}
html{color-scheme:light}
body{
  margin:0;background:var(--ivory);color:var(--ink);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  line-height:1.55
}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
.member-container{width:min(1160px,calc(100% - 32px));margin:auto}
.member-brand{display:inline-block}.member-brand img{width:min(340px,78vw);height:auto;display:block}
.member-brand.small img{height:72px;width:auto;max-height:none;object-fit:contain;object-position:left center;display:block}
.eyebrow{text-transform:uppercase;letter-spacing:.18em;color:#9A7A38;font-weight:700;font-size:.72rem}
.auth-page{min-height:100vh;display:grid;place-items:center;padding:32px 16px}
.auth-shell{width:min(520px,100%);display:grid;gap:22px}
.auth-shell>.member-brand{justify-self:center}
.auth-card{background:var(--paper);border:1px solid #E5DDCF;border-radius:24px;padding:34px;box-shadow:var(--shadow)}
.auth-card h1,.member-main h1,.course-heading h1,.module-page h1{
  font-family:Georgia,"Times New Roman",serif;font-weight:400;line-height:1.05
}
.auth-card h1{font-size:2.7rem;margin:.55rem 0 1rem}
.auth-card p{color:var(--muted)}
.auth-form{display:grid;gap:15px;margin-top:24px}
.auth-form label{display:grid;gap:7px;font-size:.83rem;font-weight:650}
.auth-form input{
  width:100%;border:1px solid #CEC4B5;border-radius:12px;background:#fff;
  min-height:48px;padding:10px 13px;outline:none
}
.auth-form input:focus{border-color:var(--gold);box-shadow:0 0 0 3px rgba(200,169,106,.12)}
.primary-button,.secondary-button{
  border:0;border-radius:999px;min-height:48px;padding:0 22px;font-weight:700;
  display:inline-flex;align-items:center;justify-content:center;cursor:pointer
}
.primary-button{background:var(--ink);color:#fff}
.secondary-button{background:transparent;border:1px solid var(--ink);color:var(--ink)}
.primary-button.inline{width:max-content;margin-top:16px}
.alert{background:#FFF2ED;color:#8B3825;border:1px solid #F0C8BC;padding:11px 13px;border-radius:10px;font-size:.85rem}
.tiny-note{font-size:.76rem!important;margin-top:18px}
.member-nav{position:sticky;top:0;z-index:20;background:rgba(246,242,234,.96);backdrop-filter:blur(12px);border-bottom:1px solid rgba(15,17,21,.06)}
.nav-row{min-height:86px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.text-button{border:0;background:transparent;cursor:pointer;color:var(--muted)}
.text-link,.back-link{color:var(--muted);font-size:.86rem}
.member-main{padding:62px 0 80px}
.member-main>h1{font-size:clamp(3rem,6vw,5.2rem);margin:.4rem 0 .7rem}
.lead{max-width:650px;color:var(--muted);font-size:1.06rem}
.member-section{margin-top:52px}
.section-title{display:flex;align-items:end;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);padding-bottom:13px;margin-bottom:24px}
.section-title h2{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:2rem;margin:0}
.section-title span{font-size:.82rem;color:var(--muted)}
.course-list{display:grid;gap:22px}
.member-course-card{background:var(--paper);border:1px solid #E2DACD;border-radius:22px;overflow:hidden;display:grid;grid-template-columns:42% 1fr;box-shadow:var(--shadow)}
.member-course-card>img{width:100%;height:100%;min-height:300px;object-fit:cover}
.course-card-copy{padding:28px}
.course-card-copy h3{font-family:Georgia,"Times New Roman",serif;font-size:2.3rem;font-weight:400;line-height:1.05;margin:.5rem 0 .8rem}
.course-card-copy p{color:var(--muted)}
.progress-line{height:6px;border-radius:999px;background:#E8E1D6;overflow:hidden;margin-top:20px}
.progress-line span{display:block;height:100%;background:var(--gold)}
.progress-meta{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:.76rem;margin-top:7px}
.empty-state{border:1px dashed #CFC4B4;border-radius:18px;padding:30px;color:var(--muted)}
.back-link{display:inline-flex;margin-bottom:20px}
.course-banner{overflow:hidden;border-radius:22px;border:1px solid #E2DACD;box-shadow:var(--shadow)}
.course-banner img{width:100%;aspect-ratio:3/1;object-fit:cover;display:block}
.course-heading{padding:34px 0 16px}
.course-heading h1{font-size:clamp(3rem,6vw,5rem);margin:.5rem 0 .8rem}
.course-heading>p{max-width:720px;color:var(--muted)}
.course-progress-box{margin-top:24px;background:var(--paper);border:1px solid #E2DACD;border-radius:16px;padding:17px}
.course-progress-box>div:first-child{display:flex;justify-content:space-between;gap:14px;font-size:.82rem}
.course-progress-box strong{font-size:1.2rem}
.course-progress-box span{color:var(--muted)}
.module-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;padding:28px 0 70px}
.module-card{background:var(--paper);border:1px solid #E2DACD;border-radius:20px;overflow:hidden;transition:.2s;display:block}
.module-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.module-card img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block}
.module-card>div{padding:20px}
.module-card h2{font-family:Georgia,"Times New Roman",serif;font-size:1.7rem;font-weight:400;line-height:1.1;margin:.5rem 0 1rem}
.status-badge{display:inline-block;border:1px solid #D7CCBA;border-radius:999px;padding:6px 10px;font-size:.7rem;color:var(--muted)}
.status-badge.done{border-color:#B7C7B3;color:#496648;background:#F3F7F1}
.module-page{padding:40px 0 80px}
.module-hero{display:grid;grid-template-columns:44% 1fr;gap:34px;align-items:center;margin-top:16px}
.module-hero img{width:100%;border-radius:20px;border:1px solid #E2DACD}
.module-hero h1{font-size:clamp(2.8rem,5vw,4.7rem);margin:.5rem 0 1rem}
.module-hero p{color:var(--muted)}
.protected-placeholder{margin:44px 0 28px;background:var(--paper);border:1px solid #E2DACD;border-radius:20px;padding:28px}
.protected-placeholder>span{text-transform:uppercase;letter-spacing:.16em;color:var(--gold);font-size:.7rem}
.protected-placeholder h2{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:2rem;margin:.6rem 0}
.protected-placeholder p{color:var(--muted)}
.complete-form{display:flex;justify-content:flex-end}

@media(max-width:760px){
  .member-brand.small img{height:56px;width:auto}
  .nav-row{min-height:72px}
  .member-main{padding-top:42px}
  .member-course-card{grid-template-columns:1fr}
  .member-course-card>img{min-height:0;aspect-ratio:16/9}
  .module-list{grid-template-columns:1fr}
  .course-banner img{aspect-ratio:16/7.5}
  .module-hero{grid-template-columns:1fr;gap:22px}
  .complete-form{justify-content:stretch}
  .complete-form button{width:100%}
}

.sequence-note{font-size:.82rem;color:var(--muted);margin-top:16px}
.module-cover-wrap{position:relative}
.module-card--locked{opacity:.58;cursor:not-allowed}
.lock-overlay{position:absolute;inset:0;display:grid;place-items:center;background:rgba(246,242,234,.42);backdrop-filter:blur(1px)}
.lock-overlay span{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:rgba(15,17,21,.88);font-size:1.1rem}
.status-badge.locked{background:#F3EEE6;color:#796F60}
.audio-section,.materials-section,.completion-section{margin-top:38px;background:var(--paper);border:1px solid #E2DACD;border-radius:20px;padding:28px}
.course-audio{width:100%;margin-top:16px}
.audio-note{font-size:.78rem;color:var(--muted);margin:10px 0 0}
.media-pending{margin-top:16px;border:1px dashed #CFC4B4;border-radius:14px;padding:18px;color:var(--muted)}
.materials-section h2{font-family:Georgia,"Times New Roman",serif;font-size:2rem;font-weight:400;margin:.6rem 0 1.1rem}
.materials-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.material-card{border:1px solid #D8CDBD;background:#fff;border-radius:16px;padding:18px;display:grid;gap:7px;transition:.2s}
.material-card:hover{transform:translateY(-1px);border-color:var(--gold)}
.material-card strong{font-family:Georgia,"Times New Roman",serif;font-size:1.25rem;font-weight:400}
.material-card span{font-size:.8rem;color:var(--muted)}
.completion-section{display:grid;gap:18px}
.next-module-link{font-weight:700;text-align:right}
.course-finished{font-family:Georgia,"Times New Roman",serif;font-size:1.4rem}
@media(max-width:760px){
  .materials-grid{grid-template-columns:1fr}
  .audio-section,.materials-section,.completion-section{padding:20px}
}


/* Ajustes de experiencia v1.3 */
.module-card--locked{opacity:.82}
.module-card--locked .module-cover-wrap img{opacity:.72}
.lock-overlay{background:rgba(246,242,234,.28);backdrop-filter:blur(.4px)}
.status-badge.locked{background:#F6F1E9;color:#6D6253}
.material-action{margin-top:8px!important;color:#9A7A38!important;font-size:.72rem!important;font-weight:700;letter-spacing:.02em}
.complete-form{width:100%}
.completion-done-row{width:100%;display:flex;align-items:center;justify-content:flex-end;gap:14px;flex-wrap:wrap}
.completion-status{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border:1px solid #B7C7B3;border-radius:999px;background:#F3F7F1;color:#496648;font-weight:700}
.completion-reset{border:0;background:transparent;color:var(--muted);text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:8px 4px}
.course-finished{display:grid;gap:10px;padding-top:4px}
.course-finished h2{font-family:Georgia,"Times New Roman",serif;font-size:clamp(1.8rem,3vw,2.5rem);font-weight:400;line-height:1.12;margin:0}
.course-finished p{max-width:720px;color:var(--muted);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:.95rem;margin:0}
.course-finished .primary-button{margin-top:8px}
@media(max-width:760px){
  .completion-done-row{align-items:stretch;justify-content:stretch;flex-direction:column}
  .completion-status{justify-content:center}
  .completion-reset{text-align:center}
}
