/* ════════════════════════════════════════════
   VARIABLES — cambia esto cuando tengas tu
   guía de estilo y todo el portal se actualiza
════════════════════════════════════════════ */
:root {
  /* Colores base */
  --bg:         #0F0F0D;
  --surface:    #181815;
  --surface2:   #1F1F1B;
  --border:     #2A2A25;
  --border2:    #333330;

  /* Texto */
  --text:       #F0EFE8;
  --muted:      #6B6A63;
  --muted2:     #4A4A44;

  /* Acento principal */
  --accent:     #C8F064;
  --accent-dim: #8AAF32;

  /* Semánticos */
  --green:      #3ECF8E;
  --green-dim:  #1A5C3E;
  --green-bg:   #0D2E1F;
  --amber:      #F5A623;
  --amber-bg:   #2A1E08;
  --blue:       #5B9CF6;
  --blue-bg:    #0D1E3A;
  --pink:       #F06292;
  --pink-bg:    #2A0D1A;

  /* Tipografía */
  --font-display: 'Instrument Serif', serif;
  --font-body:    'DM Sans', sans-serif;

  /* Radios */
  --r:    14px;
  --r-sm: 8px;
}

/* ════════════════════════════════════════════
   RESET Y BASE
════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ════════════════════════════════════════════
   SCREENS
════════════════════════════════════════════ */
.screen {
  display: none;
  min-height: 100vh;
  flex-direction: column;
  animation: fadeUp .4s ease both;
}
.screen.active { display: flex; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ════════════════════════════════════════════
   LOGIN
════════════════════════════════════════════ */
#screen-login {
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}

.login-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(200,240,100,.07) 0%, transparent 70%);
  pointer-events: none;
}

.login-box {
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 1;
}

.login-logo {
  text-align: center;
  margin-bottom: 40px;
}

.login-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent);
  font-family: var(--font-display);
  font-size: 24px;
  color: #0F0F0D;
  margin-bottom: 12px;
  font-style: italic;
}

.login-logo-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px;
}

.login-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-style: italic;
  line-height: 1.2;
  margin-bottom: 6px;
}

.login-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.5;
}

.field-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 6px;
  display: block;
  letter-spacing: .03em;
}

.field-input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--r-sm);
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text);
  font-family: var(--font-body);
  outline: none;
  transition: border-color .15s;
}
.field-input:focus   { border-color: var(--accent); }
.field-input::placeholder { color: var(--muted2); }
.field-input.error   { border-color: #E24B4A; }

.btn-primary {
  width: 100%;
  margin-top: 16px;
  background: var(--accent);
  color: #0F0F0D;
  border: none;
  border-radius: var(--r-sm);
  padding: 12px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: opacity .15s, transform .1s;
}
.btn-primary:hover  { opacity: .9; }
.btn-primary:active { transform: scale(.98); }

.btn-ghost {
  width: 100%;
  margin-top: 16px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border2);
  border-radius: var(--r-sm);
  padding: 11px;
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.btn-ghost:hover { border-color: var(--border); color: var(--text); }

.login-note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 20px;
  line-height: 1.5;
}

.sent-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--green-bg);
  border: 1px solid var(--green-dim);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin: 0 auto 20px;
}

.sent-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-style: italic;
  text-align: center;
  margin-bottom: 8px;
}

.sent-sub {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

.sent-email { color: var(--accent); font-weight: 500; }

/* ════════════════════════════════════════════
   SHELL (header + nav compartidos)
════════════════════════════════════════════ */
.shell-top {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 56px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
}

.shell-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; cursor: pointer;
}

.shell-logo-mark {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 16px; color: #0F0F0D; font-style: italic;
}

.shell-logo-name {
  font-size: 13px; font-weight: 500;
  color: var(--muted); letter-spacing: .05em;
}

.shell-spacer { flex: 1; }

.shell-client {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted);
}

.shell-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--green-bg);
  border: 1px solid var(--green-dim);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 500; color: var(--green);
}

.shell-logout {
  font-size: 12px; color: var(--muted2);
  cursor: pointer; padding: 4px 8px;
  border-radius: 6px; border: none; background: none;
  font-family: var(--font-body);
  transition: color .15s;
}
.shell-logout:hover { color: var(--muted); }

.shell-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  flex-shrink: 0;
}

.nav-item {
  font-size: 13px; color: var(--muted);
  padding: 10px 14px; cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  user-select: none;
}
.nav-item:hover          { color: var(--text); }
.nav-item.active         { color: var(--text); border-bottom-color: var(--accent); }
.nav-item.nav-disabled   { opacity: .35; cursor: default; }

.shell-body {
  flex: 1;
  padding: 28px 24px 60px;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
}

/* ════════════════════════════════════════════
   DASHBOARD
════════════════════════════════════════════ */
.dash-greeting        { margin-bottom: 28px; }
.dash-greeting-sub    { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.dash-greeting-title  { font-family: var(--font-display); font-size: 30px; font-style: italic; line-height: 1.2; }

.section-title {
  font-size: 11px; font-weight: 500;
  color: var(--muted); text-transform: uppercase;
  letter-spacing: .07em; margin-bottom: 12px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.service-card:hover        { border-color: var(--border2); background: var(--surface2); }
.service-card.service-active { border-color: var(--accent); }
.service-card.service-coming { opacity: .4; cursor: default; }
.service-card.service-coming:hover { border-color: var(--border); background: var(--surface); }

.service-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 14px;
}
.service-icon-green { background: var(--green-bg); border: 1px solid var(--green-dim); }
.service-icon-blue  { background: var(--blue-bg);  border: 1px solid #1A2F5A; }

.service-name   { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.service-status { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.status-dot          { width: 6px; height: 6px; border-radius: 50%; }
.status-dot-green    { background: var(--green); }
.status-dot-muted    { background: var(--muted2); }
.status-label-green  { color: var(--green); }
.status-pct          { color: var(--muted); }

.service-prog      { height: 2px; background: var(--border); border-radius: 99px; margin-top: 14px; }
.service-prog-fill { height: 2px; border-radius: 99px; transition: width .5s ease; }
.prog-green        { background: var(--green); }

.coming-tag {
  display: inline-block; font-size: 10px; font-weight: 500;
  padding: 2px 7px; border-radius: 99px;
  background: var(--surface2); color: var(--muted);
  margin-bottom: 14px; letter-spacing: .03em; text-transform: uppercase;
}

.activity-list { display: flex; flex-direction: column; gap: 1px; }

.activity-item {
  background: var(--surface);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  font-size: 13px;
}
.activity-item:first-child { border-radius: var(--r) var(--r) 0 0; }
.activity-item:last-child  { border-radius: 0 0 var(--r) var(--r); }

.activity-dot        { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.activity-dot-green  { background: var(--green); }
.activity-dot-amber  { background: var(--amber); }
.activity-text       { flex: 1; color: var(--text); }
.activity-date       { font-size: 12px; color: var(--muted); white-space: nowrap; }

.cta-strip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px 20px;
  display: flex; align-items: center; gap: 14px;
  margin-top: 16px; cursor: pointer;
  transition: border-color .15s;
}
.cta-strip:hover { border-color: var(--border2); }

.cta-strip-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--blue-bg);
  border: 1px solid #1A2F5A;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.cta-strip-text  { flex: 1; }
.cta-strip-title { font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.cta-strip-sub   { font-size: 12px; color: var(--muted); }
.cta-strip-arrow { font-size: 18px; color: var(--muted); }

/* ════════════════════════════════════════════
   GBP VIEW
════════════════════════════════════════════ */
.gbp-header      { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.gbp-back        { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; cursor: pointer; margin-bottom: 8px; background: none; border: none; font-family: var(--font-body); padding: 0; transition: color .15s; }
.gbp-back:hover  { color: var(--text); }
.gbp-title       { font-family: var(--font-display); font-size: 26px; font-style: italic; }
.gbp-sub         { font-size: 13px; color: var(--muted); margin-top: 4px; }

.gbp-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 20px; }

.gbp-stat       { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 14px 16px; }
.gbp-stat-label { font-size: 11px; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.gbp-stat-val   { font-size: 24px; font-weight: 500; }
.gbp-stat-bar   { height: 2px; background: var(--border); border-radius: 99px; margin-top: 8px; }
.gbp-stat-fill  { height: 2px; border-radius: 99px; background: var(--green); transition: width .5s ease; }

.phase          { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 8px; overflow: hidden; }
.phase-head     { padding: 14px 18px; display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; transition: background .12s; }
.phase-head:hover { background: var(--surface2); }
.phase-tag      { font-size: 10px; font-weight: 500; padding: 2px 9px; border-radius: 99px; text-transform: uppercase; letter-spacing: .04em; }
.phase-name     { font-size: 14px; font-weight: 500; flex: 1; }
.phase-count    { font-size: 12px; color: var(--muted); }
.phase-chevron  { font-size: 14px; color: var(--muted); transition: transform .2s; line-height: 1; }
.phase.open .phase-chevron { transform: rotate(180deg); }
.phase-bar      { height: 2px; background: var(--border); }
.phase-bar-fill { height: 2px; transition: width .4s ease; }

.phase-items             { display: none; border-top: 1px solid var(--border); }
.phase.open .phase-items { display: block; }

.item       { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border); transition: background .1s; }
.item:last-child { border-bottom: none; }
.item:hover { background: var(--surface2); }

.check      { width: 20px; height: 20px; flex-shrink: 0; border-radius: 5px; border: 1.5px solid var(--border2); display: flex; align-items: center; justify-content: center; transition: all .15s; }
.check.done { background: var(--green); border-color: var(--green); }
.check.done::after { content: ''; display: block; width: 10px; height: 6px; border-left: 2px solid #0F0F0D; border-bottom: 2px solid #0F0F0D; transform: rotate(-45deg) translateY(-1px); }

.item-text      { flex: 1; font-size: 13px; line-height: 1.45; }
.item-text.done { text-decoration: line-through; color: var(--muted); }

.item-badge { font-size: 10px; font-weight: 500; padding: 2px 8px; border-radius: 99px; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; flex-shrink: 0; }

.gbp-contact { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 18px 20px; display: flex; align-items: center; gap: 14px; margin-top: 16px; }

.contact-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--surface2); border: 1px solid var(--border2); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 16px; font-style: italic; color: var(--muted); flex-shrink: 0; }
.contact-info   { flex: 1; }
.contact-name   { font-size: 14px; font-weight: 500; }
.contact-role   { font-size: 12px; color: var(--muted); margin-top: 2px; }
.contact-btns   { display: flex; gap: 8px; }

.contact-btn { font-size: 12px; padding: 7px 14px; border-radius: var(--r-sm); border: 1px solid var(--border2); background: transparent; color: var(--text); font-family: var(--font-body); cursor: pointer; transition: border-color .15s, background .15s; white-space: nowrap; }
.contact-btn:hover { border-color: var(--border); background: var(--surface2); }
.contact-btn.contact-btn-primary { background: var(--accent); color: #0F0F0D; border-color: var(--accent); }
.contact-btn.contact-btn-primary:hover { opacity: .9; }
