:root {
  --cream: #FDFDFD;
  --cream-2: #F7F4EE;

  /* Author Studio sobrio — blanco editorial + tinta + marfil + arcilla medida */
  --coral-vivid: #9B4761;       /* FIRMA: acentos, dots, líneas. NUNCA texto largo */
  --coral-deep: #9B4761;        /* FUNCIONAL: enlaces, botón, nav activo (AA) */
  --coral-soft: #F5E8EE;        /* RELLENO suave: fondos activos */
  --coral-deep-hover: #873A55;
  --coral: var(--coral-deep);

  --gold: #B99954;
  --ink: #252525;
  --muted: #706A64;
  --line: #E7DEE3;
  --white-card: #FFFFFF;

  --lilac-mist: #F6F3FA;
  --sidebar-bg: #9B4761;
  --shadow-soft: 0 18px 45px rgba(36, 31, 28, .045);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Nunito Sans', -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3, h4, .serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  letter-spacing: 0.2px;
}

a { color: var(--coral); text-decoration: none; }

.tracked {
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 700;
}

/* ---------- Campos y botones comunes ---------- */
label.field-label { display: block; margin: 0 0 7px; }
.field { margin-bottom: 18px; }
.input {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line);
  border-radius: 12px; font-size: 0.95rem; background: #FDFDFD; font-family: inherit;
}
.input:focus { outline: none; border-color: var(--coral-deep); }
select.input { appearance: none; }
textarea.input { resize: vertical; min-height: 90px; }

.btn-primary {
  width: 100%; padding: 15px; border: none; border-radius: 12px;
  background: var(--coral-deep); color: #fff; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase; font-size: 0.82rem;
  cursor: pointer; transition: background .2s;
}
.btn-primary:hover { background: var(--coral-deep-hover); }
.btn-ghost { border: 1px solid var(--line); background: #fff; color: var(--coral);
  padding: 11px 18px; border-radius: 12px; font-size: 0.85rem; cursor: pointer; }
.btn-ghost:hover { border-color: var(--coral-deep); }

.error-msg { background: #FBEAE6; color: #A23B26; padding: 10px 14px;
  border-radius: 8px; font-size: 0.85rem; margin-bottom: 18px; }
.tag-soon { font-size: 0.62rem; letter-spacing: 1px; text-transform: uppercase;
  color: #B9AF9F; background: #F3EDE2; border-radius: 999px; padding: 3px 10px; }

/* ---------- UMBRAL (login) ---------- */
.umbral-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 48px 22px; background: linear-gradient(165deg, #fffdfa 0%, #faf8f4 100%); }
.umbral-left { display: none; }
.umbral-mark { display: flex; align-items: center; gap: 13px; }
.umbral-mark .feather { color: var(--coral-vivid); font-size: 1.35rem; }
.umbral-mark .m1 { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; letter-spacing: 1.5px; }
.umbral-founding { font-size: 0.64rem; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-top: 3px; }
.umbral-center { max-width: 480px; }
.umbral-line { font-family: 'Cormorant Garamond', serif; font-size: 3.1rem; line-height: 1.12;
  color: var(--ink); font-weight: 500; margin: 0; }
.umbral-rule { width: 56px; height: 1px; background: var(--gold); margin: 30px 0; opacity: .75; }
.umbral-whisper { font-size: 1.02rem; color: var(--muted); line-height: 1.75; max-width: 440px; }
.umbral-foot { height: 1px; }

.umbral-right { width: min(100%, 430px); display: flex; align-items: center; justify-content: center; }
.umbral-access { width: 100%; }
.umbral-login-brand { display: flex; justify-content: center; margin-bottom: 34px; }
.umbral-login-brand img { display: block; width: min(210px, 72%); height: auto; object-fit: contain; }
.umbral-access .greet { font-family: 'Cormorant Garamond', serif; font-size: 1.9rem; text-align: center; margin-bottom: 6px; }
.umbral-access .greet-sub { text-align: center; color: var(--muted); font-size: 1rem; margin-bottom: 30px;
  font-family: 'Cormorant Garamond', serif; font-style: italic; }
.umbral-access .u-rule { width: 36px; height: 1px; background: var(--gold); margin: 0 auto 30px; }
.restricted { text-align: center; color: var(--muted); font-size: 0.78rem; margin-top: 22px; }

/* ---------- ESTUDIO (layout) ---------- */
.studio { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar { background: var(--sidebar-bg); border-right: 1px solid var(--line); padding: 30px 20px;
  display: flex; flex-direction: column; }
.side-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 34px; }
.side-brand .circle { width: 44px; height: 44px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 8px rgba(150,120,80,.08); display: flex; align-items: center; justify-content: center; color: var(--gold); }
.side-brand .t1 { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; }
.side-brand .t2 { font-size: 0.62rem; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: 12px;
  color: var(--ink); font-size: 0.92rem; margin-bottom: 3px; }
.nav a.active { background: var(--coral-soft); color: var(--coral); font-weight: 600; }
.nav a:hover:not(.active) { background: #F2EEE6; }
.side-quote { margin-top: auto; background: #F7F2EA; border-radius: 12px; padding: 20px;
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.05rem; color: var(--ink); }
.side-quote .feather { color: var(--gold); margin-top: 12px; font-style: normal; }

.main { padding: 40px 46px; }
.welcome { color: var(--coral); font-size: 0.95rem; margin-bottom: 4px; }
.project-title { font-size: 2.8rem; margin: 0 0 8px; }
.project-title .by { color: var(--muted); font-size: 1.6rem; }
.project-sub { color: var(--muted); max-width: 580px; }
.current-phase-heading { margin: 0 0 8px; font-weight: 700; color: var(--coral-deep); }
.top-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }

.grid-2 { display: grid; grid-template-columns: 1fr 340px; gap: 28px; margin-top: 30px; align-items: start; }
.grid-2 > div { min-width: 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; margin-bottom: 26px; }
.card h3 { margin: 0 0 22px; font-size: 1.4rem; }

/* Recorrido: fichas verticales */
.journey { display: flex; flex-direction: column; gap: 2px; }
.j-step { display: flex; gap: 16px; align-items: flex-start; padding: 15px 14px; border-radius: 14px; }
.j-step.active { background: var(--coral-soft); }
.j-step.active { border-left: 4px solid var(--coral-deep); }
.j-num { width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.82rem; background: var(--cream-2); color: var(--muted); }
.j-step.active .j-num { background: var(--coral-deep); color: #fff; }
.j-step.done .j-num { background: #EBD9A8; color: #8A6D1E; }
.j-body { flex: 1; min-width: 0; }
.j-body .t { font-weight: 700; font-size: 0.98rem; color: var(--ink); }
.j-body .s { font-size: 0.85rem; color: var(--muted); margin-top: 2px; }
.j-step.soon .t { color: #B4ABA0; }
.j-tag { font-size: 0.58rem; letter-spacing: 1px; text-transform: uppercase; color: #B9AF9F;
  background: #F3EDE2; border-radius: 999px; padding: 3px 9px; margin-left: auto; align-self: center; }
.j-tag.active-label { color: #fff; background: var(--coral-deep); font-weight: 700; }
.j-tag.done-label { color: #6F5718; background: #F0DFB0; }

/* Universo del autor: materiales */
.mat-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 12px; }
.mat-intro { color: var(--muted); font-size: 0.9rem; margin: -2px 0 20px; }
.mat-row { display: flex; align-items: center; gap: 16px; padding: 16px; background: #FDFCF9;
  border-radius: 14px; margin-bottom: 12px; }
.mat-icon { width: 44px; height: 44px; border-radius: 11px; background: #F8EEE9; color: var(--coral-vivid);
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem; flex-shrink: 0; }
.mat-info { flex: 1; min-width: 0; }
.mat-info .t { font-weight: 600; font-size: 0.95rem; }
.mat-info .d { font-size: 0.78rem; color: var(--muted); }
.mat-cat { font-size: 0.8rem; color: var(--muted); min-width: 90px; }
.mat-date { font-size: 0.8rem; color: var(--muted); min-width: 84px; text-align: right; }
.mat-dl { font-size: 1rem; color: var(--coral); padding: 6px 10px; border-radius: 9px; }
.mat-dl:hover { background: var(--coral-soft); }
.empty { color: var(--muted); font-size: 0.9rem; padding: 8px 0; }

/* Panel lateral derecho */
.side-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; margin-bottom: 24px; }
.side-card h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; margin: 0 0 14px; }
.step-item { display: flex; gap: 12px; margin-bottom: 16px; }
.step-item .circle { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line);
  flex-shrink: 0; margin-top: 2px; }
.step-item.done .circle { background: var(--coral-deep); border-color: var(--coral-deep); }
.step-item .t { font-weight: 600; font-size: 0.88rem; }
.step-item .s { font-size: 0.78rem; color: var(--muted); }

/* Comunicación */
.msg { background: #FDFCF9; border-radius: 14px; padding: 15px 17px; margin-bottom: 12px; }
.msg.msg-from-studio { background: #F3EFE8; }
.msg-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.msg-who { font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.msg.msg-from-studio .msg-who { color: var(--coral); }
.msg-when { font-size: 0.72rem; color: var(--muted); }
.msg-body { font-size: 0.92rem; white-space: pre-wrap; }
.push-card { max-width: 760px; margin-top: 24px; padding: 18px 20px; border: 1px solid var(--line);
  border-radius: 16px; background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.push-card p { margin: 4px 0 0; color: var(--muted); font-size: 0.86rem; }
.push-card .push-status { color: var(--coral); font-weight: 600; }
.push-card .btn-ghost { flex-shrink: 0; }
.msg-mini { font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; }
.msg-mini b { color: var(--ink); }

/* Atmósfera: paletas */
.pal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 8px; }
.pal { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: #fff; }
.pal-name { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; margin-bottom: 12px; }
.pal-dots { display: flex; gap: 8px; }
.pal-dot { width: 34px; height: 34px; border-radius: 9px; }
.pal-hint { font-size: 0.8rem; color: var(--muted); margin-top: 10px; }
.pal-note { font-size: 0.9rem; color: var(--muted); margin-top: 22px;
  font-family: 'Cormorant Garamond', serif; font-style: italic; }

/* Modal subida */
.modal-bg { display: none; position: fixed; inset: 0; background: rgba(42,42,42,.4);
  align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.modal-bg.open { display: flex; }
.modal { background: #fff; border-radius: 18px; padding: 34px; width: 100%; max-width: 500px;
  max-height: 92vh; overflow-y: auto; }
.modal h3 { margin-top: 0; }
.consent-box { display: flex; gap: 10px; align-items: flex-start; background: #FDFCF9;
  border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-size: 0.82rem; color: var(--muted); }
.consent-box input { margin-top: 3px; }

/* Privacidad */
.legal-wrap { max-width: 720px; margin: 0 auto; padding: 60px 28px; }
.legal-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 40px; }
.legal-card h1 { font-size: 2.2rem; margin: 0 0 6px; }
.legal-p { color: var(--ink); font-size: 0.95rem; margin: 16px 0; }
.legal-note { color: var(--muted); font-size: 0.86rem; }


/* ---------- Dirección visual sobria: blanco editorial, sello y aire ---------- */
.main {
  position: relative;
  background:
    radial-gradient(circle at 84% 10%, rgba(246, 243, 250, .72), transparent 34%),
    linear-gradient(180deg, #FDFDFD 0%, #FCFBF8 100%);
  overflow: hidden;
}
.main::before {
  content: "AS";
  position: fixed;
  top: 46px;
  right: 76px;
  z-index: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(8rem, 16vw, 16rem);
  line-height: 1;
  color: rgba(37, 37, 37, .035);
  pointer-events: none;
}
.main > * { position: relative; z-index: 1; }

.sidebar {
  background:
    radial-gradient(circle at 18% 10%, rgba(255,255,255,.85), transparent 26%),
    linear-gradient(180deg, #FCFBF8 0%, var(--sidebar-bg) 100%);
  position: relative;
  overflow: hidden;
}
.sidebar::before,
.sidebar::after {
  content: "";
  position: absolute;
  inset: auto auto 46px -92px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(185, 153, 84, .22);
  border-radius: 50%;
  pointer-events: none;
}
.sidebar::after {
  inset: auto auto 92px -126px;
  width: 330px;
  height: 330px;
  opacity: .45;
}
.sidebar > * { position: relative; z-index: 1; }
.side-brand .circle {
  color: var(--gold);
  border: 1px solid rgba(185,153,84,.28);
  box-shadow: none;
}
.nav a.active {
  background: var(--coral-soft);
  color: var(--coral-deep);
}
.card,
.side-card,
.legal-card,
.modal,
.umbral-access {
  box-shadow: var(--shadow-soft);
}
.umbral-access {
  box-shadow: none;
}
.card {
  background: rgba(255,255,255,.86);
}
.j-step.active {
  background: var(--coral-soft);
}
.j-step.active .j-num,
.step-item.done .circle {
  background: var(--coral-deep);
  border-color: var(--coral-deep);
}
.j-step:not(.active):not(.done) {
  border-bottom: 1px solid rgba(232,223,210,.55);
}
.j-step:not(.active):not(.done):last-child { border-bottom: none; }
.btn-primary {
  background: var(--coral-deep);
}
.btn-primary:hover { background: var(--coral-deep-hover); }
.btn-ghost { color: var(--coral-deep); }
.welcome,
.msg.msg-from-studio .msg-who,
.mat-dl,
.atmosphere-feedback { color: var(--coral-deep); }
.umbral-mark .feather,
.mat-icon { color: var(--coral-vivid); }
.mat-process-note,
.pal.selected {
  background: linear-gradient(180deg, #FFFFFF, var(--coral-soft));
}
.success-msg {
  background: #EEF6F0;
  color: #3F704E;
  border: 1px solid #DCEBDD;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 18px;
}
.mat-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.mat-actions form { margin: 0; }
.mat-delete {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 9px;
  cursor: pointer;
  font-size: .95rem;
}
.mat-delete:hover,
.mat-delete:focus-visible {
  background: #FBEAE6;
  color: #A23B26;
  outline: none;
}
.utility-card {
  border-style: dashed;
  background: rgba(255,255,255,.72);
}
.btn-danger-soft {
  border: 1px solid #E7C7C0;
  background: #FFF8F6;
  color: #A23B26;
  padding: 11px 18px;
  border-radius: 12px;
  font-size: 0.85rem;
  cursor: pointer;
  width: 100%;
}
.btn-danger-soft:hover { background: #FBEAE6; }

@media (max-width: 900px) {
  .umbral-wrap { grid-template-columns: 1fr; }
  .umbral-left { display: none; }
  .studio { grid-template-columns: 1fr; }
  .sidebar { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .side-quote { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .pal-grid { grid-template-columns: 1fr; }
}

/* ---------- Ajustes funcionales PG1: login, materiales, atmósfera ---------- */
.password-wrap {
  position: relative;
}
.password-wrap .input {
  padding-right: 48px;
}
.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  line-height: 1;
}
.password-toggle:hover,
.password-toggle:focus-visible {
  border-color: var(--coral-deep);
  color: var(--coral-deep);
  outline: none;
}
.password-toggle .eye-closed { display: none; }
.password-toggle.is-visible .eye-open { display: none; }
.password-toggle.is-visible .eye-closed { display: inline; }

.mat-process-note {
  background: var(--coral-soft);
  border: 1px solid #F2D2CD;
  border-radius: 12px;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.55;
  margin: -8px 0 20px;
  padding: 12px 14px;
}
.mat-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.74rem;
}
.mat-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 10px;
  color: #B9AF9F;
}

.pal {
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: border-color .18s, box-shadow .18s, transform .18s, background .18s;
}
.pal:hover {
  border-color: var(--coral-deep);
  box-shadow: 0 10px 24px rgba(60, 42, 30, .06);
  transform: translateY(-1px);
}
.pal:focus-visible {
  outline: 2px solid var(--coral-deep);
  outline-offset: 3px;
}
.pal.selected {
  border-color: var(--coral-deep);
  background: linear-gradient(180deg, #FFFFFF, var(--coral-soft));
  box-shadow: 0 12px 28px rgba(36, 31, 28, .06);
}
.pal.selected::after {
  content: "Seleccionada";
  display: inline-block;
  margin-top: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--coral-deep);
  color: #fff;
  font-size: 0.62rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
}
.atmosphere-feedback {
  margin-top: 12px;
  color: var(--coral-deep);
  font-size: 0.84rem;
  font-weight: 700;
}

@media (max-width: 700px) {
  .mat-row { align-items: flex-start; }
  .mat-cat, .mat-date { min-width: 0; text-align: left; }
}


/* ---------- Ajuste final Eva: magenta editorial + sidebar blanca ---------- */
:root {
  --as-magenta: #A34767;
  --as-magenta-hover: #8F3657;
  --as-magenta-soft: #F7EAF0;
  --coral-vivid: var(--as-magenta);
  --coral-deep: var(--as-magenta);
  --coral-soft: var(--as-magenta-soft);
  --coral-deep-hover: var(--as-magenta-hover);
  --coral: var(--as-magenta);
  --line: #E7DEE3;
  --sidebar-bg: var(--as-magenta);
}

.main {
  background: linear-gradient(180deg, #FDFDFD 0%, #FCFBF9 100%);
}
.main::before {
  content: none !important;
  display: none !important;
}

.sidebar {
  background: var(--as-magenta);
  color: #FFFFFF;
  border-right: 0;
}
.sidebar::before,
.sidebar::after {
  border-color: rgba(255,255,255,.18);
}
.side-brand .circle {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255,255,255,.56);
  box-shadow: none;
  font-weight: 400;
}
.side-brand .t1,
.side-brand .t2,
.side-quote,
.side-quote .feather,
.nav a {
  color: #FFFFFF;
}
.side-brand .t2 {
  color: rgba(255,255,255,.72);
}
.nav a.active {
  background: rgba(255,255,255,.16);
  color: #FFFFFF;
  font-weight: 700;
}
.nav a:hover:not(.active) {
  background: rgba(255,255,255,.10);
}
.side-quote {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
}

.welcome,
.msg.msg-from-studio .msg-who,
.mat-dl,
.atmosphere-feedback,
a,
.btn-ghost {
  color: var(--as-magenta);
}
.btn-primary,
.j-step.active .j-num,
.step-item.done .circle,
.pal.selected::after {
  background: var(--as-magenta);
  border-color: var(--as-magenta);
}
.btn-primary:hover { background: var(--as-magenta-hover); }
.input:focus,
.btn-ghost:hover,
.password-toggle:hover,
.password-toggle:focus-visible,
.pal:hover,
.pal.selected {
  border-color: var(--as-magenta);
}
.password-toggle:hover,
.password-toggle:focus-visible { color: var(--as-magenta); }
.j-step.active,
.mat-process-note,
.pal.selected {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--as-magenta-soft) 100%);
}
.mat-icon {
  background: var(--as-magenta-soft);
  color: var(--as-magenta);
}
.mat-dl:hover { background: var(--as-magenta-soft); }


/* ---------- Ajustes finales de contenido y carrusel ---------- */
.quill-icon {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.side-brand .circle .quill-icon,
.umbral-mark .feather .quill-icon,
.side-quote .feather .quill-icon {
  width: 18px;
  height: 18px;
}
.side-brand .circle {
  border-color: rgba(255,255,255,.42);
}
.mat-meta .status-received,
.status-received {
  color: var(--muted);
}
.experience-structure {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.experience-structure h3 { margin-bottom: 8px; }
.experience-structure p { color: var(--muted); font-size: .9rem; margin-top: 0; }
.experience-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 22px;
}
.experience-list div {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #FDFCFB;
}
.experience-list b { display: block; font-size: .9rem; margin-bottom: 4px; color: var(--ink); }
.experience-list span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.45; }
.carousel-body {
  min-height: 100vh;
  background: #FDFDFD;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.story-carousel {
  width: min(520px, calc(100vw - 40px));
  aspect-ratio: 4 / 5;
  position: relative;
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(36,31,28,.08);
  background: #fff;
  overflow: hidden;
}
.story-slide {
  position: absolute;
  inset: 0;
  padding: 52px 44px;
  display: none;
  flex-direction: column;
  justify-content: center;
  background: #FDFDFD;
}
.story-slide.is-active { display: flex; }
.story-slide.dark-slide { background: var(--as-magenta); color: #fff; }
.story-kicker {
  position: absolute;
  top: 42px;
  left: 44px;
  letter-spacing: 6px;
  font-size: .72rem;
  font-weight: 700;
  color: currentColor;
  opacity: .78;
}
.story-slide h1,
.story-slide h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  line-height: 1.03;
  margin: 0 0 28px;
  color: currentColor;
}
.story-slide h1 { font-size: 4.4rem; }
.story-slide h1 span { font-size: 2.2rem; font-style: italic; }
.story-slide h2 { font-size: 2.3rem; }
.story-slide p,
.story-slide li {
  font-size: 1rem;
  line-height: 1.72;
  color: currentColor;
  opacity: .86;
}
.story-slide ul,
.story-slide ol { padding-left: 1.2rem; }
.story-line { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 2rem !important; line-height: 1.22 !important; }
.story-slide footer {
  position: absolute;
  left: 44px;
  right: 44px;
  bottom: 34px;
  display: flex;
  justify-content: space-between;
  letter-spacing: 2.2px;
  font-size: .7rem;
  opacity: .7;
}
.story-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}
.story-controls .btn-primary { width: auto; padding: 11px 18px; }
.story-controls #slideCount { color: var(--muted); font-size: .85rem; min-width: 58px; text-align: center; }
@media (max-width: 700px) {
  .experience-list { grid-template-columns: 1fr; }
  .story-slide { padding: 44px 30px; }
  .story-slide h1 { font-size: 3.3rem; }
  .story-slide h2 { font-size: 1.9rem; }
  .story-controls { flex-wrap: wrap; justify-content: center; }
}


/* ---------- Ajustes finales post-review Eva ---------- */
.eye-icon {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.password-toggle .eye-closed { display: none; }
.password-toggle.is-visible .eye-open { display: none; }
.password-toggle.is-visible .eye-closed { display: block; }
.pal-note {
  font-size: 1rem;
  line-height: 1.55;
}
.atmosphere-feedback {
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 700;
}
.simple-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #FDFDFD;
  padding: 32px;
}
.simple-card {
  width: min(720px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 28px 90px rgba(30, 24, 28, .08);
}
.simple-card h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.3rem;
  margin-top: 0;
}
.simple-card a { word-break: break-word; }

/* Carrusel exacto en espíritu: pantalla completa vertical, sin look de card de app */
.carousel-body {
  min-height: 100dvh;
  background: #FDFDFD;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
}
.story-carousel {
  height: 100dvh;
  width: min(100vw, calc(100dvh * .8));
  aspect-ratio: 4 / 5;
  position: relative;
  border: 0;
  box-shadow: none;
  background: #FDFDFD;
  overflow: hidden;
}
.story-slide {
  position: absolute;
  inset: 0;
  padding: 9.5vh 7.5vw;
  display: none;
  flex-direction: column;
  justify-content: center;
  background: #F8F7F2;
  color: #262320;
}
.story-slide.is-active { display: flex; }
.story-slide.dark-slide { background: var(--as-magenta); color: #fff; }
.story-main { transform: translateY(-1vh); }
.story-kicker {
  position: absolute;
  top: 7.5vh;
  left: 7.5vw;
  right: 7.5vw;
  letter-spacing: 7px;
  font-size: clamp(.72rem, 1.7vh, .95rem);
  font-weight: 700;
  color: currentColor;
  opacity: .82;
}
.story-slide h1,
.story-slide h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  line-height: 1.02;
  margin: 0 0 3.5vh;
  color: currentColor;
}
.story-slide h1 { font-size: clamp(4rem, 10vh, 6.8rem); }
.story-slide h1 span { font-size: clamp(2rem, 4.8vh, 3.3rem); font-style: italic; font-weight: 400; }
.story-slide h2 { font-size: clamp(2.3rem, 5.3vh, 4.2rem); }
.story-line {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(2.2rem, 5.4vh, 4rem) !important;
  line-height: 1.16 !important;
  opacity: .95 !important;
}
.story-slide p,
.story-slide li {
  font-size: clamp(1rem, 2.1vh, 1.32rem);
  line-height: 1.62;
  color: currentColor;
  opacity: .88;
}
.story-slide ul,
.story-slide ol {
  list-style: none;
  padding: 0;
  margin: 2.5vh 0 0;
}
.story-slide li {
  padding: 1.15vh 0;
  border-bottom: 1px solid currentColor;
  position: relative;
}
.story-slide.dark-slide li { border-color: rgba(255,255,255,.16); }
.story-slide:not(.dark-slide) li { border-color: rgba(38,35,32,.09); }
.story-slide ul li { padding-left: 2rem; }
.story-slide ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.85vh;
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: #FF6C74;
}
.story-slide ol { counter-reset: step; }
.story-slide ol li { padding-left: 2rem; }
.story-slide ol li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  color: currentColor;
  font-weight: 700;
}
.story-label {
  margin: 0 0 2vh;
  letter-spacing: 2.4px;
  font-size: clamp(.7rem, 1.55vh, .85rem);
  font-weight: 700;
  color: currentColor;
  opacity: .62;
}
.story-slide footer {
  position: absolute;
  left: 7.5vw;
  right: 7.5vw;
  bottom: 5.8vh;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  letter-spacing: 2.2px;
  font-size: clamp(.68rem, 1.55vh, .85rem);
  opacity: .64;
}
.story-controls {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 999px;
  z-index: 10;
}
.story-controls .btn-primary, .story-controls .btn-ghost {
  width: auto;
  padding: 9px 13px;
  border-radius: 999px;
  font-size: .78rem;
}
.story-controls #slideCount { color: var(--muted); font-size: .78rem; min-width: 58px; text-align: center; }
@media (max-width: 700px) {
  .experience-list { grid-template-columns: 1fr; }
  .story-carousel { width: 100vw; height: 100dvh; }
  .story-slide { padding: 8.5vh 7vw; }
  .story-kicker { top: 7vh; left: 7vw; right: 7vw; }
  .story-slide footer { left: 7vw; right: 7vw; bottom: 5vh; }
  .story-controls { bottom: 8px; max-width: calc(100vw - 16px); }
  .story-controls .btn-ghost:first-child { display: none; }
}

/* ---------- PDF Cómo funciona: documento real, pantalla completa ---------- */
.pdf-body {
  margin: 0;
  min-height: 100svh;
  background: #121016;
  overflow: hidden;
}
.pdf-viewer-shell {
  width: 100vw;
  height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
  background: #121016;
}
.pdf-topbar {
  height: 48px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(18, 16, 22, .96);
  color: rgba(255,255,255,.82);
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: .86rem;
  letter-spacing: .02em;
}
.pdf-topbar a {
  color: rgba(255,255,255,.84);
  text-decoration: none;
}
.pdf-topbar a:hover { color: #fff; }
.pdf-frame {
  display: block;
  width: 100%;
  height: calc(100svh - 48px);
  border: 0;
  background: #121016;
}
@media (max-width: 640px) {
  .pdf-topbar {
    height: 44px;
    padding: 0 12px;
    font-size: .78rem;
  }
  .pdf-open { display: none; }
  .pdf-frame { height: calc(100svh - 44px); }
}

/* ---------- Selector multi-proyecto y enlace privado ---------- */
.project-picker {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}
.project-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #FDFCFB;
}
.project-choice strong {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
}
.project-choice span {
  display: block;
  color: var(--muted);
  font-size: .84rem;
}
.project-choice .btn-ghost { flex: 0 0 auto; }
.private-link {
  padding: 14px;
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #FDFCFB;
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  .project-choice { align-items: flex-start; flex-direction: column; }
}


/* ---------- Subida directa multipart al Bucket ---------- */
.upload-inline-error {
  margin-top: 8px;
  padding: 9px 11px;
  border-radius: 9px;
  background: #FBEAE6;
  color: #A23B26;
  font-size: .82rem;
}
.upload-status {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #FDFCFB;
}
.upload-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink);
  font-size: .86rem;
}
.upload-status-row strong { font-weight: 700; }
.upload-status-row span {
  color: var(--as-magenta);
  font-weight: 700;
}
.upload-progress-track {
  height: 9px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #EEE8EB;
}
.upload-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: var(--as-magenta);
  transition: width .15s linear;
}
.upload-detail {
  margin-top: 8px;
  color: var(--muted);
  font-size: .78rem;
}
button:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: .62;
}

/* ---------- Condiciones del proyecto ---------- */
.legal-dashboard-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid #E8DCE2;
  border-radius: 16px;
  background: #FBF7F9;
}
.legal-dashboard-banner strong {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
}
.legal-dashboard-banner span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .84rem;
}
.legal-dashboard-banner .btn-ghost { flex: 0 0 auto; }
.legal-side-card .s { color: var(--muted); font-size: .86rem; }

.legal-page-body { background: #F8F6F3; }
.legal-page-shell {
  width: min(900px, calc(100% - 40px));
  margin: 42px auto 70px;
}
.legal-page-shell-narrow { width: min(760px, calc(100% - 40px)); }
.legal-page-header {
  margin-bottom: 24px;
  padding: 4px 6px;
}
.legal-page-header h1 {
  margin: 12px 0 2px;
  font-size: clamp(2.35rem, 6vw, 3.6rem);
  line-height: 1.05;
}
.legal-page-header > p { margin: 0; color: var(--muted); }
.legal-back {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: .84rem;
}
.legal-calm-note { margin-top: 14px !important; max-width: 620px; }
.legal-accepted-badge {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #EEF4EC;
  color: #456543;
  font-size: .78rem;
  font-weight: 700;
}
.legal-notice { margin: 0 0 20px; }
.legal-document,
.legal-annex,
.legal-acceptance-form,
.legal-acceptance-complete {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.legal-document { padding: clamp(28px, 6vw, 58px); }
.legal-document h1 { display: none; }
.legal-document h2 {
  margin: 38px 0 12px;
  font-size: 1.65rem;
}
.legal-document h2:first-of-type { margin-top: 12px; }
.legal-document p,
.legal-document li {
  font-size: .97rem;
  line-height: 1.78;
}
.legal-document ul { padding-left: 22px; }
.legal-document strong { color: #282323; }
.legal-annex {
  margin-top: 20px;
  overflow: hidden;
}
.legal-annex summary {
  cursor: pointer;
  padding: 21px 24px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
}
.legal-annex-content {
  padding: 0 28px 30px;
  border-top: 1px solid var(--line);
}
.legal-annex-content h1 { display: none; }
.legal-annex-content h2 {
  margin: 30px 0 10px;
  font-size: 1.4rem;
}
.legal-annex-content p,
.legal-annex-content li { font-size: .93rem; line-height: 1.72; }
.legal-provider-link { margin-top: 28px; }
.legal-acceptance-form,
.legal-acceptance-complete {
  margin-top: 20px;
  padding: 26px;
}
.legal-consent-box { margin: 0 0 18px; }
.legal-inline-button {
  display: inline-block;
  width: auto;
  padding: 13px 28px;
}
.legal-acceptance-complete p { color: var(--muted); }
.legal-page-footer {
  padding: 18px 6px 0;
  text-align: right;
}
.legal-page-footer a {
  color: var(--muted);
  font-size: .76rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 720px) {
  .push-card { align-items: flex-start; flex-direction: column; }
  .push-card .btn-ghost { width: 100%; }
  .legal-dashboard-banner { align-items: flex-start; flex-direction: column; }
  .legal-page-shell { width: min(100% - 24px, 900px); margin-top: 24px; }
  .legal-document { padding: 24px 20px; }
  .legal-annex-content { padding: 0 20px 24px; }
}

@media print {
  .legal-back,
  .legal-page-footer,
  .legal-acceptance-form,
  .legal-acceptance-complete,
  .legal-accepted-badge,
  .legal-calm-note { display: none !important; }
  .legal-page-body { background: #fff; }
  .legal-page-shell { width: 100%; margin: 0; }
  .legal-document,
  .legal-annex { border: 0; box-shadow: none; }
  .legal-annex { display: block; }
  .legal-annex > summary { display: none; }
  .legal-annex-content { display: block; border: 0; padding: 0 58px 30px; }
}
