:root {
  --ink: #201c1a;
  --muted: #746d68;
  --paper: #ffffff;
  --canvas: #f5f2ee;
  --wine: #7a3f4d;
  --wine-dark: #5c2e39;
  --rose: #d8b8b2;
  --gold: #b88a56;
  --line: rgba(32, 28, 26, .09);
  --shadow: 0 18px 60px rgba(62, 43, 35, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.page-slug-estudio {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  background: var(--canvas) !important;
  color: var(--ink) !important;
  -webkit-font-smoothing: antialiased;
}

.el-portal,
.el-login { min-height: 100vh; }

/* Acceso */
.el-login {
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background:
    radial-gradient(circle at 50% 15%, rgba(216, 184, 178, .5), transparent 42%),
    linear-gradient(145deg, #2d2825, #54343b);
}

.el-login-card {
  width: min(100%, 480px);
  padding: 48px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 30px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .24);
  text-align: center;
  backdrop-filter: blur(18px);
}

.el-moon { color: var(--gold); font-size: 48px; line-height: 1; }
.el-eyebrow { margin: 16px 0 8px; color: var(--wine); font-size: 11px; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
.el-login h1,
.el-hero h1,
.el-section-title h2 { font-family: Georgia, "Times New Roman", serif; }
.el-login h1 { margin: 0 0 16px; font-size: 42px; font-weight: 500; line-height: 1.05; }
.el-lead { color: var(--muted); font-size: 16px; line-height: 1.65; }
.el-login form { margin-top: 28px; text-align: left; }
.el-login label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.el-login input { width: 100%; height: 52px; padding: 0 15px; border: 1px solid var(--line); border-radius: 13px; background: #fff; font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s; }
.el-login input:focus { border-color: rgba(122, 63, 77, .55); box-shadow: 0 0 0 4px rgba(122, 63, 77, .09); }
.el-login button { width: 100%; height: 52px; margin-top: 12px; border: 0; border-radius: 13px; background: var(--wine); color: #fff; font-size: 15px; font-weight: 750; cursor: pointer; transition: transform .2s, background .2s; }
.el-login button:hover { background: var(--wine-dark); transform: translateY(-1px); }
.el-help, .el-notice, .el-error { font-size: 13px; }
.el-help { margin: 24px 0 0; color: #817973; }
.el-notice { padding: 14px; border-radius: 10px; background: #efe3d3; }
.el-error { margin: 8px 0 0; color: #a12f38; }

/* Cabecera */
.el-hero {
  padding: 22px clamp(20px, 5vw, 76px) 54px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 10%, rgba(216, 184, 178, .42), transparent 32%),
    radial-gradient(circle at 70% 90%, rgba(184, 138, 86, .16), transparent 30%),
    #fbfaf8;
  color: var(--ink);
}

.el-hero nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.el-brand, .el-exit { color: var(--ink); text-decoration: none; }
.el-brand { font-family: Georgia, "Times New Roman", serif; font-size: 21px; }
.el-brand span { color: var(--gold); font-size: 30px; vertical-align: -3px; }
.el-exit { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; transition: background .2s; }
.el-exit:hover { background: rgba(255, 255, 255, .8); }
.el-hero-shell { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: clamp(36px, 7vw, 100px); align-items: end; max-width: 1360px; margin: 58px auto 0; }
.el-hero-copy { max-width: 740px; }
.el-hero .el-eyebrow { margin-top: 0; color: var(--wine); }
.el-hero h1 { margin: 10px 0 18px; font-size: clamp(48px, 6vw, 78px); font-weight: 500; letter-spacing: -.045em; line-height: .98; }
.el-hero-copy > p:not(.el-eyebrow) { max-width: 620px; margin-bottom: 0; color: var(--muted); font-size: 18px; line-height: 1.6; }

.el-progress-panel {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 24px;
  background: rgba(255, 255, 255, .72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.el-progress-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.el-progress-heading span { color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.el-progress-heading strong { font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 500; }
.el-progress-track { height: 7px; margin: 18px 0 13px; overflow: hidden; border-radius: 99px; background: rgba(32, 28, 26, .08); }
.el-progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--wine), #b2727d); transition: width .45s cubic-bezier(.22, 1, .36, 1); }
.el-progress-copy { min-height: 20px; margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.el-progress-steps { display: grid; grid-template-columns: repeat(9, 1fr); gap: 7px; }
.el-progress-step { display: grid; place-items: center; aspect-ratio: 1; min-width: 0; border: 0; border-radius: 50%; background: #eee9e5; color: #8a817b; font-size: 11px; cursor: pointer; transition: transform .18s, background .18s, color .18s; }
.el-progress-step:hover { transform: translateY(-2px); }
.el-progress-step.is-complete { background: var(--wine); color: #fff; }
.el-progress-step:focus-visible, .el-complete:focus-visible, .el-actions a:focus-visible { outline: 3px solid rgba(122, 63, 77, .25); outline-offset: 3px; }

/* Contenido */
.el-certificate-ready { display:flex;align-items:center;justify-content:space-between;gap:24px;max-width:1210px;margin:36px auto 0;padding:28px 34px;border:1px solid rgba(184,138,86,.28);border-radius:24px;background:#fffaf4;box-shadow:var(--shadow); }
.el-certificate-ready .el-eyebrow { margin:0 0 5px; }
.el-certificate-ready h2 { margin:0;font-family:Georgia,serif;font-size:28px;font-weight:500; }
.el-certificate-ready a { flex:none;padding:13px 20px;border-radius:999px;background:var(--wine);color:#fff;font-size:13px;font-weight:750;text-decoration:none; }
.el-content { max-width: 1360px; margin: auto; padding: 68px clamp(20px, 5vw, 76px) 92px; }
.el-section-title { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 34px; }
.el-section-title .el-eyebrow { margin-top: 0; }
.el-section-title h2 { margin: 0; font-size: clamp(38px, 4vw, 52px); font-weight: 500; letter-spacing: -.035em; }
.el-section-title > p { max-width: 430px; margin-bottom: 4px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.el-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

.el-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 12px 44px rgba(61, 44, 37, .07);
  transition: transform .28s cubic-bezier(.22, 1, .36, 1), box-shadow .28s;
}
.el-card:hover { transform: translateY(-4px); box-shadow: 0 22px 64px rgba(61, 44, 37, .11); }
.el-card-cover { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #eee6dd; }
.el-account-actions { display: flex; align-items: center; gap: 9px; }
.el-billing { padding: 9px 13px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: inherit; font-size: 12px; text-decoration: none; }
.el-greeting { margin: 0 0 12px !important; color: #b88a56 !important; font-family: Georgia, serif; font-size: clamp(22px, 3vw, 30px) !important; }
.el-card-body { display: flex; flex: 1; flex-direction: column; padding: 22px 24px 24px; }
.el-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.el-module { margin: 0; color: var(--wine); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.el-status { color: #9a918b; font-size: 11px; }
.el-card.is-complete .el-status { color: var(--wine); }
.el-summary { margin: 16px 0 22px; color: #6c6560; font-size: 13px; line-height: 1.65; }
.el-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: auto; }
.el-actions a { padding: 10px 14px; border-radius: 999px; font-size: 12px; font-weight: 750; text-decoration: none; transition: transform .18s, background .18s; }
.el-actions a:hover { transform: translateY(-1px); }
.el-video { background: var(--ink); color: #fff; }
.el-video:hover { background: #000; }
.el-pdf { border: 1px solid var(--line); background: #f8f6f3; color: var(--ink); }

.el-complete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 18px;
  padding: 14px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.el-complete-label { display: flex; align-items: center; gap: 10px; }
.el-check { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid rgba(32, 28, 26, .18); border-radius: 50%; color: transparent; font-size: 11px; transition: background .2s, border-color .2s, color .2s, transform .2s; }
.el-complete:hover .el-check { transform: scale(1.05); border-color: var(--wine); }
.el-card.is-complete .el-check { border-color: var(--wine); background: var(--wine); color: #fff; }
.el-complete-arrow { color: #b1aaa5; font-size: 16px; }

footer { padding: 52px 20px; background: #282321; color: #e9e2dc; text-align: center; }
footer span { color: #d9b47d; font-size: 32px; }
footer p { margin: 8px; font-family: Georgia, serif; font-size: 20px; }
footer small { color: #b9b0aa; }

@media (max-width: 980px) {
  .el-hero-shell { grid-template-columns: 1fr; gap: 34px; }
  .el-progress-panel { max-width: 660px; }
  .el-section-title { display: block; }
  .el-section-title > p { margin-top: 16px; }
}

@media (max-width: 720px) {
  .el-certificate-ready { align-items:flex-start;flex-direction:column;margin:24px 20px 0;padding:24px; }
  .el-hero { padding-bottom: 42px; }
  .el-hero-shell { margin-top: 44px; }
  .el-hero h1 { font-size: clamp(44px, 13vw, 62px); }
  .el-hero-copy > p:not(.el-eyebrow) { font-size: 16px; }
  .el-grid { grid-template-columns: 1fr; }
  .el-content { padding-top: 52px; }
}

@media (max-width: 480px) {
  .el-login-card { padding: 36px 22px; }
  .el-login h1 { font-size: 36px; }
  .el-brand { font-size: 18px; }
  .el-exit { padding: 8px 11px; }
  .el-account-actions { gap: 5px; }
  .el-billing { padding: 8px 9px; font-size: 10px; }
  .el-progress-panel { padding: 20px; border-radius: 21px; }
  .el-progress-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .el-progress-steps { gap: 5px; }
  .el-progress-step { font-size: 10px; }
  .el-card { border-radius: 23px; }
  .el-card-body { padding: 20px; }
  .el-actions a { flex: 1; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

.el-remember { display: flex !important; align-items: center; gap: 8px; margin-top: 16px; font-weight: 400 !important; }
.el-login .el-remember input { width: 18px; height: 18px; flex: 0 0 18px; }
.el-progress-panel [data-save-status] { font-size: 12px; line-height: 1.5; color: var(--muted); }
.el-resume { display: inline-block; margin-bottom: 18px; color: var(--wine); font-size: 14px; }
.el-resume[hidden], [data-progress-retry][hidden] { display: none; }
[data-progress-retry] { margin-bottom: 16px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; }
.el-complete:disabled, .el-progress-step:disabled { opacity: .5; cursor: wait; }
