/* ==========================================================================
   Ryan Crossley — estilos del sitio y del área de miembros
   ========================================================================== */
:root {
  --red: #DF453E;
  --red-600: #C8352E;
  --red-50: #FDF0EF;
  --teal: #1B3E41;
  --teal-900: #10282A;
  --teal-700: #24545A;
  --teal-500: #3F7A80;
  --teal-50: #EDF4F4;
  --sand: #F7F2EC;
  --ink: #142325;
  --text: #3B4A4C;
  --muted: #6A7A7C;
  --line: #E2E8E8;
  --bg: #FFFFFF;
  --bg-soft: #F5F7F7;
  --ok: #2B7A57;
  --ok-50: #E9F5EF;
  --warn: #A86A12;
  --warn-50: #FBF3E3;
  --bad: #B83228;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 40, 42, .06), 0 8px 24px rgba(16, 40, 42, .06);
  --shadow-lg: 0 18px 48px rgba(16, 40, 42, .14);
  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe, video { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 760px; }
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section-sm { padding: 40px 0; }
.section--soft { background: var(--bg-soft); }
.section--sand { background: var(--sand); }
.section--teal { background: var(--teal); color: #D6E4E5; }
.section--teal h2, .section--teal h3 { color: #fff; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font: 700 .78rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.stack > * + * { margin-top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 13px 22px; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  font: 600 .95rem/1.1 var(--font-head); text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(223, 69, 62, .25); }
.btn-primary:hover { background: var(--red-600); color: #fff; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-900); color: #fff; }
.btn-ghost { background: transparent; color: var(--teal); border-color: #C9D6D7; }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-50); }
.btn-light { background: #fff; color: var(--teal); }
.btn-light:hover { background: var(--sand); color: var(--teal); }
.btn-link { background: none; border: 0; padding: 0; color: var(--teal-700); font-weight: 600; }
.btn-link:hover { color: var(--red); }
.btn-sm { padding: 9px 14px; font-size: .85rem; }
.btn-lg { padding: 16px 28px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-whatsapp { background: #1FA855; color: #fff; }
.btn-whatsapp:hover { background: #178A45; color: #fff; }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .94); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 74px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 44px; width: auto; }
.brand-text { font: 800 1.05rem/1 var(--font-head); letter-spacing: .02em; color: var(--teal); text-transform: uppercase; text-decoration: none; }
.brand-text small { display: block; font-size: .6rem; letter-spacing: .3em; color: var(--muted); margin-bottom: 3px; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a {
  padding: 9px 12px; border-radius: 8px; text-decoration: none;
  font: 600 .92rem/1 var(--font-head); color: var(--teal);
}
.main-nav a:hover { background: var(--teal-50); color: var(--teal); }
.main-nav a.is-active { color: var(--red); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-link { position: relative; display: inline-flex; padding: 9px; border-radius: 10px; color: var(--teal); }
.cart-link:hover { background: var(--teal-50); color: var(--teal); }
.cart-link .icon { width: 22px; height: 22px; }
.cart-badge {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--red); color: #fff; font: 700 .7rem/18px var(--font-head); text-align: center;
}
.menu-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--teal); cursor: pointer; }
.menu-toggle .icon { width: 26px; height: 26px; }

.user-menu { position: relative; }
.user-menu > summary {
  list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 6px 10px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font: 600 .88rem/1 var(--font-head); color: var(--teal);
}
.user-menu > summary::-webkit-details-marker { display: none; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--teal); color: #fff; font: 700 .8rem/1 var(--font-head);
}
.user-menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
}
.user-menu-panel a, .user-menu-panel button {
  display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px;
  color: var(--text); text-decoration: none; font: 500 .92rem/1.2 var(--font-body); background: none; border: 0; cursor: pointer; text-align: left;
}
.user-menu-panel a:hover, .user-menu-panel button:hover { background: var(--bg-soft); color: var(--teal); }
.user-menu-panel .sep { height: 1px; background: var(--line); margin: 6px 4px; }

/* Barra del área de miembros */
.member-bar { background: var(--teal); }
.member-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 8px 0; }
.member-tabs::-webkit-scrollbar { display: none; }
.member-tabs a {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  color: #CFE0E1; text-decoration: none; font: 600 .88rem/1 var(--font-head); white-space: nowrap;
}
.member-tabs a .icon { width: 18px; height: 18px; opacity: .85; }
.member-tabs a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.member-tabs a.is-active { background: #fff; color: var(--teal); }
.member-tabs a.is-active .icon { color: var(--red); opacity: 1; }

/* ---------- Mensajes ---------- */
.flash-wrap { margin-top: 18px; display: grid; gap: 10px; }
.flash {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px;
  border: 1px solid; font-size: .95rem; background: #fff;
}
.flash .icon { margin-top: 2px; }
.flash-ok { border-color: #BFE2CF; background: var(--ok-50); color: #1D5A40; }
.flash-error { border-color: #F2C4C0; background: var(--red-50); color: #8E2A23; }
.flash-info { border-color: #CFE0E1; background: var(--teal-50); color: var(--teal); }
.flash-warn { border-color: #F1DDB0; background: var(--warn-50); color: #6E4A0E; }
.tile.is-locked { opacity: .72; }
.tile.is-locked .tile-icon { background: #EEF2F2; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--teal); color: #D9E7E8; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(223, 69, 62, .28), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(63, 122, 128, .55), transparent 60%);
}
.hero-media { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .22; mix-blend-mode: luminosity; }
.hero .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: clamp(64px, 9vw, 120px) 0; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero .lead { color: #C3D6D7; font-size: 1.2rem; }
.hero .eyebrow { color: #FF8C85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-card {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 22px; padding: 26px; backdrop-filter: blur(6px);
}
.hero-card h3 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { color: var(--red); margin-top: 3px; }
.hero-card .check-list .icon { color: #FF8C85; }

/* ---------- Tarjetas ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
}
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body > *:last-child { margin-bottom: 0; }
.card-body > .badge, .card-body .meta .badge { align-self: flex-start; }
.card h3 { margin: 0; font-size: 1.12rem; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--red); }
.card-media { aspect-ratio: 16 / 10; background: var(--teal-50); overflow: hidden; position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.03); }
.card-media--placeholder {
  display: grid; place-items: center; color: var(--teal-500);
  background: linear-gradient(135deg, var(--teal-50), var(--sand));
}
.card-media--placeholder .icon { width: 48px; height: 48px; opacity: .55; }
.card-foot { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .86rem; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta .icon { width: 16px; height: 16px; }

.feature {
  display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
}
.feature-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: var(--red-50); color: var(--red);
}
.feature-icon .icon { width: 24px; height: 24px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 4px; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font: 700 .72rem/1.2 var(--font-head); letter-spacing: .03em; background: var(--teal-50); color: var(--teal);
}
.badge-red { background: var(--red-50); color: var(--red-600); }
.badge-ok { background: var(--ok-50); color: var(--ok); }
.badge-warn { background: var(--warn-50); color: var(--warn); }
.badge-muted { background: var(--bg-soft); color: var(--muted); }

/* ---------- Planes ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 820px; margin: 0 auto; }
.plan {
  position: relative; background: #fff; border: 1.5px solid var(--line); border-radius: 22px; padding: 32px;
  display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow);
}
.plan--highlight { border-color: var(--red); box-shadow: 0 20px 50px rgba(223, 69, 62, .14); }
.plan-ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: #fff; padding: 6px 14px; border-radius: 999px; font: 700 .75rem/1 var(--font-head); white-space: nowrap;
}
.plan h3 { margin: 0; font-size: 1.15rem; }
.plan-price { display: flex; align-items: baseline; gap: 6px; color: var(--ink); }
.plan-price strong { font: 800 2.6rem/1 var(--font-head); letter-spacing: -.02em; }
.plan-price span { color: var(--muted); font-weight: 500; }
.plan-note { font-size: .88rem; color: var(--ok); font-weight: 600; min-height: 1.4em; }
.plan .check-list { font-size: .95rem; }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; gap: 7px; }
.field label, .label { font: 600 .88rem/1.2 var(--font-head); color: var(--ink); }
.field .help { font-size: .82rem; color: var(--muted); }
.input, .field input[type=text], .field input[type=email], .field input[type=password], .field input[type=tel],
.field input[type=url], .field input[type=number], .field input[type=date], .field input[type=datetime-local],
.field input[type=month], .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid #D5DEDF; background: #fff;
  font: 400 1rem/1.4 var(--font-body); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { height: 48px; padding-top: 0; padding-bottom: 0; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus {
  outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 4px rgba(63, 122, 128, .15);
}
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.check input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--red); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.auth-wrap { min-height: calc(100vh - 74px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side {
  background: var(--teal); color: #CFE0E1; padding: 64px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden;
}
.auth-side::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 400px at 100% 0%, rgba(223, 69, 62, .3), transparent 60%); }
.auth-side > * { position: relative; }
.auth-side h2 { color: #fff; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 20px; }
.auth-box { width: 100%; max-width: 420px; }
.auth-box h1 { font-size: 1.9rem; }

/* ---------- Contenido largo ---------- */
.prose { font-size: 1.06rem; color: var(--text); }
.prose h2 { font-size: 1.55rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.6em; }
.prose img { border-radius: 14px; margin: 1.5em 0; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--red); color: var(--ink); font-style: italic; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: .25em; }
.page-head .lead { margin: 0; }
.page-head .center .lead { margin: 0 auto; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .86rem; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--red); }

/* ---------- Área de miembros ---------- */
.member-hero { background: linear-gradient(180deg, var(--teal-50), #fff); padding: 40px 0 8px; }
.member-hero h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: .2em; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-50); }
.dot-warn { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-50); }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--text);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.tile:hover { border-color: #BFD1D3; box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.tile-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal); }
.tile:hover .tile-icon { background: var(--red); color: #fff; }
.tile-icon .icon { width: 23px; height: 23px; }
.tile strong { font: 700 1rem/1.25 var(--font-head); color: var(--ink); }
.tile span { font-size: .86rem; color: var(--muted); }
.tile .tile-go { position: absolute; top: 20px; right: 18px; color: #B4C3C4; }
.tile:hover .tile-go { color: var(--red); }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-head h2, .panel-head h3 { margin: 0; font-size: 1.15rem; }
.panel--teal { background: var(--teal); border-color: var(--teal); color: #CFE0E1; }
.panel--teal h2, .panel--teal h3 { color: #fff; }

.lesson-list { display: grid; gap: 14px; }
.lesson {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 18px; align-items: center;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
}
.lesson-num {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: var(--sand); color: var(--red); font: 800 1.2rem/1 var(--font-head);
}
.lesson h3 { margin: 0 0 4px; font-size: 1.05rem; }
.lesson h3 a { color: var(--ink); text-decoration: none; }
.lesson h3 a:hover { color: var(--red); }
.lesson p { margin: 0; color: var(--muted); font-size: .93rem; }
.lesson-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.month-title { display: flex; align-items: center; gap: 14px; margin: 34px 0 14px; font: 700 .85rem/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.month-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.month-title:first-child { margin-top: 0; }

.video-frame { position: relative; aspect-ratio: 16 / 9; background: #0B1A1B; border-radius: 14px; overflow: hidden; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-thumb { position: relative; aspect-ratio: 16 / 9; background: #0B1A1B center/cover no-repeat; border-radius: 14px 14px 0 0; display: grid; place-items: center; cursor: pointer; border: 0; width: 100%; padding: 0; }
.video-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .45)); }
.video-thumb .play {
  position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%; background: rgba(223, 69, 62, .95); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .15s;
}
.video-thumb:hover .play { transform: scale(1.08); }
.video-thumb .play .icon { width: 28px; height: 28px; margin-left: 4px; }

.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.time {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px;
  border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line);
}
.time strong { font: 700 1rem/1 var(--font-head); color: var(--ink); white-space: nowrap; }
.time span { font-size: .88rem; color: var(--muted); }
.time small { display: block; font-size: .72rem; color: var(--warn); }
.time--mine { background: var(--red-50); border-color: #F4C8C4; }
.big-date { font: 800 clamp(1.6rem, 3vw, 2.2rem)/1.1 var(--font-head); color: #fff; }
.countdown { display: flex; gap: 10px; margin-top: 14px; }
.countdown div { background: rgba(255, 255, 255, .08); border-radius: 12px; padding: 10px 12px; min-width: 64px; text-align: center; }
.countdown strong { display: block; font: 800 1.5rem/1 var(--font-head); color: #fff; }
.countdown span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.copy-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 10px; background: var(--bg-soft); }
.copy-row code { font: 600 1rem/1.2 ui-monospace, Menlo, monospace; color: var(--ink); }

/* ---------- Tienda ---------- */
.price { font: 800 1.15rem/1 var(--font-head); color: var(--ink); }
.price-lg { font-size: 2rem; }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-image { border-radius: 20px; overflow: hidden; background: var(--teal-50); aspect-ratio: 1 / 1; display: grid; place-items: center; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.buy-box { position: sticky; top: 100px; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table td, .cart-table th { padding: 16px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.cart-table th { font: 600 .78rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cart-thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--teal-50); }
.qty { width: 70px; padding: 8px; border-radius: 8px; border: 1.5px solid #D5DEDF; }
.summary { display: grid; gap: 10px; }
.summary-row { display: flex; justify-content: space-between; }
.summary-total { font: 800 1.3rem/1 var(--font-head); color: var(--ink); padding-top: 12px; border-top: 1px solid var(--line); }

/* ---------- Eventos ---------- */
.date-chip {
  width: 64px; flex: none; border-radius: 14px; overflow: hidden; text-align: center; border: 1px solid var(--line); background: #fff;
}
.date-chip b { display: block; background: var(--red); color: #fff; font: 700 .72rem/1 var(--font-head); letter-spacing: .1em; padding: 6px 0; text-transform: uppercase; }
.date-chip strong { display: block; font: 800 1.6rem/1 var(--font-head); color: var(--ink); padding: 8px 0; }
.event-row { display: flex; gap: 18px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.event-row h3 { margin: 0 0 6px; }
.event-row h3 a { color: var(--ink); text-decoration: none; }
.event-row h3 a:hover { color: var(--red); }

/* ---------- Tablas simples ---------- */
.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.table th { font: 600 .75rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* ---------- CTA y pie ---------- */
.cta {
  border-radius: 26px; padding: clamp(32px, 5vw, 56px); background: var(--teal); color: #CFE0E1; position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
}
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 300px at 100% 100%, rgba(223, 69, 62, .35), transparent 60%); }
.cta > * { position: relative; }
.cta h2 { color: #fff; }
.site-footer { background: var(--teal-900); color: #9DB5B7; padding: 64px 0 28px; margin-top: 0; }
.site-footer a { color: #CFE0E1; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: .94rem; }
.footer-logo img { height: 40px; width: auto; background: #fff; padding: 8px 12px; border-radius: 10px; box-sizing: content-box; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); }
.socials a:hover { background: var(--red); }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }

.empty {
  text-align: center; padding: 48px 24px; border: 1.5px dashed #D3DDDE; border-radius: var(--radius); color: var(--muted); background: #fff;
}
.empty .icon { width: 40px; height: 40px; color: #A9BABB; margin: 0 auto 10px; display: block; }
.searchbar { display: flex; gap: 10px; max-width: 420px; }
.searchbar input { flex: 1; }
.pill-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.pill-nav a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--text); font: 600 .85rem/1 var(--font-head); background: #fff; }
.pill-nav a.is-active, .pill-nav a:hover { border-color: var(--teal); background: var(--teal); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav { gap: 0; }
  .main-nav a { padding: 9px 9px; font-size: .88rem; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .header-row { gap: 12px; }
  .header-actions { margin-left: auto; }
  .main-nav {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .18s;
  }
  .main-nav a { padding: 14px 12px; font-size: 1rem; }
  .nav-open .main-nav { transform: none; opacity: 1; pointer-events: auto; }
  .hide-mobile { display: none !important; }
  .hero-grid, .product-layout, .auth-wrap, .cta { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .buy-box { position: static; }
  .member-aside { order: -1; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .grid-2, .grid-3, .grid-4, .form-row { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { padding: 16px; }
  .tile .tile-go { display: none; }
  .lesson { grid-template-columns: 44px 1fr; gap: 12px; padding: 16px; }
  .lesson-num { width: 44px; height: 44px; font-size: 1rem; border-radius: 12px; }
  .lesson-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand img { height: 36px; }
  .plan { padding: 26px; }
  .cart-table thead { display: none; }
  .cart-table tr { display: grid; grid-template-columns: 64px 1fr; gap: 6px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .cart-table td { border: 0; padding: 0; }
  .cart-table td:first-child { grid-row: span 3; }
  .user-menu > summary .hide-mobile { display: none; }
}

/* Videos dentro de artículos, páginas y eventos */
.prose .video-embed { margin: 1.4em 0; }
.prose .video-embed .video-thumb { border-radius: 14px; }
.prose .video-embed iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; display: block; }
.price-old { text-decoration: line-through; color: var(--muted); font-weight: 500; font-size: .85em; margin-right: 6px; }
.file-includes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .92rem; }
.file-includes li { display: flex; gap: 8px; align-items: center; color: var(--text); }
.file-includes .icon { width: 16px; height: 16px; color: var(--teal); flex: none; }
.dl-list { display: grid; gap: 8px; width: 100%; margin-top: 4px; }
.dl-list a { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .93rem; background: #fff; }
.dl-list a:hover { border-color: var(--teal); color: var(--teal); }
.dl-list a .muted { font-weight: 500; }

/* Archivo de lecciones por mes */
.archive-months { display: grid; gap: 10px; }
.archive-month { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.archive-month > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; font: 700 1rem/1.2 var(--font-head); color: var(--ink); }
.archive-month > summary::-webkit-details-marker { display: none; }
.archive-month > summary::after { content: "+"; font-size: 1.3rem; color: var(--red); margin-left: 8px; }
.archive-month[open] > summary::after { content: "–"; }
.archive-month[open] > summary { border-bottom: 1px solid var(--line); }
.archive-month > .lesson-list { padding: 14px; }

/* Sobre Ryan: el texto se edita desde Páginas; la lista numerada se muestra como línea de tiempo */
.about-head .eyebrow { margin-bottom: 10px; }
.about .prose > p:first-child { font-size: 1.22rem; line-height: 1.65; color: var(--ink); }
.about .prose h2 { font-size: 1.4rem; }
.about .prose ol { list-style: none; padding: 0; margin: 1.4em 0 2em; position: relative; }
.about .prose ol::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.about .prose ol li { position: relative; padding-left: 36px; margin: 0 0 1.25em; }
.about .prose ol li::before { content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--red); box-sizing: border-box; }
.about .prose ol li strong:first-child { display: block; font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: 2px; }
.about .prose blockquote { font-size: 1.12rem; }
