/* Área de miembros: entrar, inicio, listados, contenido, directo y cuenta. Usa los tokens de web.css. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.area main { min-height: 60vh; }
.nav a[aria-current="page"] { color: var(--green-dark); }
.site-foot.slim { padding-block: 26px; }
.site-foot.slim .legal { margin: 0; padding: 0; border: 0; }
.muted { color: var(--muted); }
.empty { color: var(--muted); padding: 28px; background: var(--bg-soft); border-radius: 16px; }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 16px; font-size: 13px; }
.btn-light { background: #fff; color: var(--forest); }
.btn-light:hover { background: var(--tint); }
.pill { display: inline-block; font: 800 12px/1 var(--display); text-transform: uppercase; letter-spacing: .05em; padding: 6px 10px; border-radius: 999px; background: var(--tint); color: var(--green-dark); text-decoration: none; }
.pill.warn { background: #fdf1dc; color: #9a5b00; }
.pill.bad { background: #fde8e6; color: #b3261e; }
.pill.ok { background: var(--tint); color: var(--green-dark); }

/* Avisos */
.notice { border-radius: 14px; padding: 14px 18px; font-size: 16px; margin-top: 18px; }
.notice.ok { background: var(--tint); color: var(--forest); }
.notice.info { background: #eef4fb; color: #16365c; }
.notice.error { background: #fde8e6; color: #8c1d18; }
.notice a { color: inherit; font-weight: 700; }

/* Formularios */
.form { display: flex; flex-direction: column; gap: 16px; margin-top: 22px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font: 700 14px/1.2 var(--display); color: var(--text); }
.field input, .field textarea, .search input { font: 500 17px/1.3 var(--body); color: var(--text); padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line-hi); background: #fff; width: 100%; }
.field input:focus, .field textarea:focus, .search input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(84,180,53,.18); }
.field input:disabled { background: var(--bg-soft); color: var(--muted); }
.hint, .field small { color: var(--muted); font-size: 14px; }

/* Entrar y recuperar */
.auth { min-height: calc(100vh - 170px); display: grid; place-items: center; padding: 48px 20px; background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 40px; width: min(460px, 100%); box-shadow: 0 30px 60px -40px rgba(26,55,16,.45); }
.auth-card.wide { width: min(620px, 100%); }
.auth-card h1 { font-size: clamp(30px, 4vw, 40px); font-weight: 900; margin-top: 12px; }
.auth-card > p.muted { margin-top: 12px; }
.auth-links { margin-top: 18px; text-align: center; }
.auth-foot { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); }
@media (max-width: 520px) { .auth-card { padding: 28px 22px; } }

/* Cabecera de cada página */
.area-head { padding-block: 44px 8px; }
.area-head h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 900; margin-top: 10px; }
.area-head .lede { margin-top: 14px; font-size: 19px; max-width: 60ch; }
.area-section { padding-block: 32px 72px; }
.row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.row-head h2 { font-size: 28px; font-weight: 900; }
.row-head a { font-weight: 700; text-decoration: none; }
.search { display: flex; gap: 10px; margin-top: 24px; max-width: 620px; }
.search input { border-radius: 999px; padding-inline: 22px; }
@media (max-width: 520px) { .search { flex-direction: column; } }

/* Inicio */
.home-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; padding-block: 24px 8px; }
.live-card { background: var(--forest); color: #fff; border-radius: 24px; padding: 34px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.live-card h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); font-weight: 900; }
.live-card.on { background: linear-gradient(135deg, var(--forest), #2c5a1c); }
.eyebrow.light { color: var(--green-light); }
.muted-light { color: var(--forest-text); }
.count { display: flex; gap: 22px; }
.count div { display: flex; flex-direction: column; }
.count b { font: 900 40px/1 var(--display); font-variant-numeric: tabular-nums; }
.count small { font: 700 11px/1 var(--display); text-transform: uppercase; letter-spacing: .12em; margin-top: 7px; color: #b7c9ae; }
.count.dark { margin-top: 20px; color: var(--text); }
.count.dark small { color: var(--muted); }
.audio-card { background: var(--bg-soft); border-radius: 24px; padding: 34px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.audio-card h2 { font-size: 26px; font-weight: 900; }
.audio-card h2 a { color: inherit; text-decoration: none; }
.audio-card .btn { margin-top: auto; }
@media (max-width: 860px) { .home-grid { grid-template-columns: 1fr; } }

/* Tarjetas de contenido */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; min-width: 0; }
.card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -26px rgba(26,55,16,.5); }
.card-media { aspect-ratio: 16 / 9; background: var(--tint); color: var(--green-dark); display: grid; place-items: center; position: relative; }
.card-media.directo { background: var(--forest); color: var(--green-light); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .lock { position: absolute; top: 10px; left: 10px; background: rgba(11,18,32,.82); color: #fff; font: 800 11px/1 var(--display); text-transform: uppercase; letter-spacing: .05em; padding: 7px 10px; border-radius: 999px; }
.card.locked .card-media { filter: grayscale(.6); opacity: .8; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body .kind { font: 800 12px/1.2 var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--green-dark); }
.card-body h3 { font-size: 19px; font-weight: 800; line-height: 1.2; }
.card-body p { color: var(--muted); font-size: 15px; }
.card-body .meta { margin-top: auto; color: var(--faint); font-size: 14px; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; font-weight: 700; }
.pager a { text-decoration: none; }

/* Contenido */
.content { max-width: 900px; padding-block: 32px 80px; }
.content .back { font-weight: 700; text-decoration: none; display: inline-block; margin-bottom: 18px; }
.content h1 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 900; margin: 10px 0 24px; }
.content .lede { font-size: 19px; margin-top: 26px; color: var(--text-soft); }
.player { border-radius: 20px; overflow: hidden; background: var(--forest); }
.player.video16 { aspect-ratio: 16 / 9; position: relative; }
.player.video16 iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player.audio { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.player.audio audio { width: 100%; }
.speeds { display: flex; gap: 8px; }
.speeds button { font: 800 13px/1 var(--display); border-radius: 999px; padding: 9px 14px; border: 1.5px solid rgba(255,255,255,.35); background: transparent; color: #fff; cursor: pointer; }
.speeds button[aria-pressed="true"] { background: #fff; color: var(--forest); border-color: #fff; }
.locked-box { background: var(--bg-soft); border-radius: 20px; padding: 40px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--muted); }
.locked-box h2 { font-size: 24px; font-weight: 900; }
.prose-area { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.comments { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.comments h2 { font-size: 26px; font-weight: 900; margin-bottom: 18px; }
.comments h2 span { color: var(--muted); font-size: 20px; }
.comment { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment .who { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; }
.comment .who time { color: var(--faint); font-size: 14px; }
.comment p { white-space: pre-wrap; overflow-wrap: anywhere; }
.comment.team { background: var(--bg-soft); border-radius: 14px; padding: 16px; border-bottom: 0; margin: 8px 0; }
.replies { margin-left: 28px; border-left: 3px solid var(--tint); padding-left: 18px; }
.comment-form { margin-top: 26px; align-items: flex-start; }
.comment-form .field { width: 100%; }

/* Directo */
.live-room { padding-block: 28px 64px; }
.live-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.live-top h1 { font-size: 32px; font-weight: 900; }
.live-grid { display: grid; grid-template-columns: 1fr 340px; gap: 16px; margin-bottom: 16px; }
.chat { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); min-height: 420px; }
.chat iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }
@media (max-width: 900px) { .live-grid { grid-template-columns: 1fr; } }

/* Cuenta */
.account { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-block: 24px 72px; align-items: start; }
.acc-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; min-width: 0; }
.acc-card h2 { font-size: 22px; font-weight: 900; margin-bottom: 8px; }
.acc-card dl { display: grid; grid-template-columns: auto 1fr; gap: 12px 20px; margin: 16px 0 0; }
.acc-card dt { color: var(--muted); }
.acc-card dd { margin: 0; font-weight: 700; color: var(--text); }
.acc-note { margin-top: 20px; background: var(--bg-soft); border-radius: 12px; padding: 14px 16px; font-size: 15px; }
.devices { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.devices li { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--bg-soft); border-radius: 12px; padding: 12px 14px; }
.devices small { display: block; color: var(--muted); }
@media (max-width: 860px) { .account { grid-template-columns: 1fr; } }

/* Alta y pagos */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .two { grid-template-columns: 1fr; } }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text-soft); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green); flex: none; }
.hint.center { text-align: center; }
.acc-actions { margin-top: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.welcome-list { list-style: none; padding: 0; margin: 22px 0 28px; display: flex; flex-direction: column; gap: 10px; font-size: 18px; }
.welcome-list li { padding-left: 32px; position: relative; }
.welcome-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.locked-box form { margin-top: 6px; }

/* Enlaces extra del menú y accesos directos del inicio */
.nav-more { display: contents; }
@media (max-width: 760px) { .nav-more.hide-sm { display: none; } }
.shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.shortcut { display: flex; flex-direction: column; gap: 4px; padding: 22px 26px; border-radius: 20px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.shortcut:hover { border-color: var(--green); transform: translateY(-2px); }
.shortcut strong { font: 900 20px/1.2 var(--display); color: var(--green-dark); }
.shortcut span { color: var(--muted); }
@media (max-width: 620px) { .shortcuts { grid-template-columns: 1fr; } }
.area-head .back, .content .back { font-weight: 700; text-decoration: none; display: inline-block; margin-bottom: 14px; }

/* Comunidad */
.community { display: grid; grid-template-columns: 1fr 340px; gap: 20px; padding-block: 16px 72px; align-items: start; }
@media (max-width: 900px) { .community { grid-template-columns: 1fr; } }
.forums { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.forum-group h2 { font: 800 13px/1.2 var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--green-dark); margin-bottom: 10px; }
.forum { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; text-decoration: none; color: var(--text); margin-bottom: 10px; }
.forum:hover { border-color: var(--green); }
.forum strong { display: block; font: 800 18px/1.25 var(--display); }
.forum span { display: block; color: var(--muted); font-size: 15px; margin-top: 4px; }
.forum-stats { text-align: right; color: var(--muted); font-size: 14px; flex: none; }
.forum-stats b { font: 900 22px/1 var(--display); color: var(--text); }
.forum-stats small { display: block; margin-top: 4px; }
.recent ul, .topics { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 12px; }
.recent li a { font-weight: 700; text-decoration: none; }
.recent li small { display: block; color: var(--muted); font-size: 14px; }
.recent .hint { margin-top: 18px; }
.topics li a { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--text); background: #fff; }
.topics li a:hover { border-color: var(--green); }
.topics strong { font-size: 17px; }
.topics small { color: var(--muted); }
.new-topic { margin-top: 28px; }
.posts { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.post { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; background: #fff; }
.post.first { border-color: var(--green); }
.post.team { background: var(--bg-soft); }
.post .who { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.post .who time { color: var(--faint); font-size: 14px; }
.post-body { display: flex; flex-direction: column; gap: 10px; overflow-wrap: anywhere; }
.follow { margin-top: 18px; }

/* Mentorías */
.bookings { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.booking h3 { font: 900 19px/1.2 var(--display); }
.booking p { margin-top: 8px; overflow-wrap: anywhere; }
.booking .row-head { margin-bottom: 4px; gap: 10px; }
.booking .acc-actions { flex-direction: row; flex-wrap: wrap; margin-top: 14px; }
.wide-card { max-width: 860px; }
.slots { display: flex; flex-direction: column; gap: 14px; }
.slot-day { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.slot-day legend { font-weight: 800; margin-bottom: 8px; padding: 0; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.slot span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line-hi); font: 800 15px/1 var(--display); font-variant-numeric: tabular-nums; }
.slot input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.slot input:focus-visible + span { outline: 2px solid var(--green-dark); outline-offset: 2px; }

/* Marca de agua sobre los vídeos (seguridad, oct 2026) */
.player.video16 { position: relative; }
.player .wm { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; }
.player .wm span { position: absolute; font: 600 13px/1.2 Karla, system-ui, sans-serif; color: rgba(255, 255, 255, .38); text-shadow: 0 0 2px rgba(0, 0, 0, .45); white-space: nowrap; transition: top 1.2s ease, left 1.2s ease; user-select: none; }
.player .wm-full { position: absolute; right: 10px; bottom: 54px; z-index: 3; width: 38px; height: 38px; border-radius: 10px; border: 0; background: rgba(0, 0, 0, .55); color: #fff; font-size: 18px; cursor: pointer; }
.player:fullscreen { width: 100vw; height: 100vh; aspect-ratio: auto; background: #000; }
.player:fullscreen iframe { width: 100%; height: 100%; }
.player:fullscreen .wm span { font-size: 18px; }
.btn-danger { background: #c62828; color: #fff; border-color: #c62828; }
.btn-danger:hover { background: #a91f1f; }
