:root {
  --pva-ink: #211f1b;
  --pva-charcoal: #2e2b26;
  --pva-night: #171711;
  --pva-cream: #f4f0e8;
  --pva-paper: #fffdf8;
  --pva-linen: #ebe2d3;
  --pva-sand: #d9ccb7;
  --pva-gold: #b79a61;
  --pva-gold-dark: #8d7041;
  --pva-taupe: #756b5e;
  --pva-green: #66816f;
  --pva-warning: #b78843;
  --pva-muted: #989189;
  --pva-border: rgba(174, 155, 124, .28);
  --pva-shadow: 0 24px 70px rgba(45, 37, 27, .12);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--pva-cream); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--pva-ink);
  background:
    radial-gradient(circle at 85% 12%, rgba(183, 154, 97, .13), transparent 24%),
    linear-gradient(135deg, #f7f3eb 0%, #eee7da 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, input { font: inherit; }
svg { width: 1em; height: 1em; fill: currentColor; }

.pva-public-kicker {
  margin: 0 0 12px;
  color: var(--pva-gold-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.pva-public-brand > a {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
}

.pva-public-brand img {
  display: block;
  width: auto;
  max-width: 190px;
  max-height: 68px;
  object-fit: contain;
}

.pva-brand-mark {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(183, 154, 97, .62);
  border-radius: 50%;
  color: var(--pva-gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  letter-spacing: .04em;
}

.pva-brand-text { display: grid; gap: 2px; }
.pva-brand-text strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}
.pva-brand-text small {
  color: var(--pva-taupe);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.pva-public-shell {
  width: min(1180px, calc(100% - 38px));
  min-height: min(760px, calc(100vh - 54px));
  margin: 27px auto;
  overflow: hidden;
  border: 1px solid rgba(174, 155, 124, .34);
  background: var(--pva-paper);
  box-shadow: var(--pva-shadow);
}

.pva-login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(400px, .94fr);
}

.pva-login-story {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  padding: 54px 58px 46px;
  color: #f8f4ea;
  background:
    linear-gradient(145deg, rgba(20, 20, 16, .98), rgba(39, 37, 30, .96)),
    var(--pva-night);
}

.pva-login-story .pva-public-brand { position: relative; z-index: 3; }
.pva-login-story .pva-brand-mark { border-color: rgba(214, 185, 127, .6); }
.pva-login-story .pva-brand-text small { color: rgba(247, 240, 226, .56); }
.pva-login-story .pva-public-brand img { filter: brightness(0) invert(1); }

.pva-story-copy {
  position: relative;
  z-index: 3;
  max-width: 560px;
  margin-top: 140px;
}

.pva-story-copy .pva-public-kicker { color: #d4b777; }
.pva-story-copy h1,
.pva-login-card h2,
.pva-dashboard-topbar h1,
.pva-dashboard-hero h2,
.pva-dashboard-card h3,
.pva-denied-card h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.pva-story-copy h1 {
  max-width: 540px;
  margin: 0 0 22px;
  font-size: clamp(45px, 5.2vw, 76px);
  line-height: .98;
  letter-spacing: -.04em;
}

.pva-story-copy > p:last-child {
  max-width: 500px;
  margin: 0;
  color: rgba(247, 240, 226, .72);
  font-size: 16px;
  line-height: 1.8;
}

.pva-story-note {
  position: absolute;
  z-index: 3;
  left: 58px;
  bottom: 42px;
  max-width: 310px;
  margin: 0;
  color: rgba(247, 240, 226, .48);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.65;
  text-transform: uppercase;
}

.pva-compass-art {
  position: absolute;
  right: -140px;
  bottom: -165px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(214, 183, 119, .2);
  border-radius: 50%;
}

.pva-compass-art::before,
.pva-compass-art::after,
.pva-compass-art span,
.pva-compass-art i {
  content: "";
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
}

.pva-compass-art::before {
  width: 74%;
  height: 74%;
  border: 1px solid rgba(214, 183, 119, .18);
  border-radius: 50%;
}
.pva-compass-art::after {
  width: 44%;
  height: 44%;
  border: 1px solid rgba(214, 183, 119, .16);
  border-radius: 50%;
}
.pva-compass-art span { width: 1px; height: 90%; background: rgba(214, 183, 119, .2); }
.pva-compass-art i { width: 90%; height: 1px; background: rgba(214, 183, 119, .2); }

.pva-login-card {
  display: grid;
  place-items: center;
  padding: 54px;
  background:
    linear-gradient(rgba(255, 253, 248, .95), rgba(255, 253, 248, .95)),
    repeating-linear-gradient(90deg, transparent 0 49px, rgba(183, 154, 97, .05) 50px);
}

.pva-login-card-inner { width: min(100%, 390px); }
.pva-login-card h2 {
  margin: 0 0 12px;
  font-size: 42px;
  line-height: 1.04;
  letter-spacing: -.03em;
}
.pva-login-help {
  margin: 0 0 32px;
  color: var(--pva-taupe);
  font-size: 14px;
  line-height: 1.7;
}

.pva-public-notice {
  margin: -12px 0 22px;
  padding: 12px 14px;
  border-left: 3px solid var(--pva-green);
  background: rgba(102, 129, 111, .09);
  color: #4f6958;
  font-size: 12px;
  line-height: 1.55;
}

#pva-loginform p { margin: 0 0 18px; }
#pva-loginform label {
  display: block;
  margin-bottom: 8px;
  color: #6a5b47;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
#pva-loginform input[type="text"],
#pva-loginform input[type="password"] {
  width: 100%;
  min-height: 50px;
  padding: 10px 13px;
  border: 1px solid var(--pva-sand);
  border-radius: 0;
  outline: 0;
  background: #fff;
  color: var(--pva-ink);
  box-shadow: none;
  transition: .2s ease;
}
#pva-loginform input[type="text"]:focus,
#pva-loginform input[type="password"]:focus {
  border-color: var(--pva-gold);
  box-shadow: 0 0 0 3px rgba(183, 154, 97, .11);
}
#pva-loginform .login-remember label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--pva-taupe);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
#pva-loginform .login-remember input { accent-color: var(--pva-gold-dark); }
#pva-loginform .login-submit { margin-top: 24px; }
#pva-loginform .button-primary {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  background: var(--pva-gold);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  transition: .22s ease;
}
#pva-loginform .button-primary:hover,
#pva-loginform .button-primary:focus { background: var(--pva-gold-dark); }

.pva-login-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  font-size: 11px;
}
.pva-login-links a { color: var(--pva-gold-dark); text-underline-offset: 3px; }
.pva-support-line {
  margin: 32px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--pva-border);
  color: var(--pva-taupe);
  font-size: 10px;
}
.pva-support-line a { color: var(--pva-ink); }

/* Portal autenticado */
.pva-dashboard-shell {
  width: min(1500px, calc(100% - 30px));
  min-height: calc(100vh - 30px);
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  margin: 15px auto;
  overflow: hidden;
  border: 1px solid rgba(174, 155, 124, .32);
  background: var(--pva-paper);
  box-shadow: var(--pva-shadow);
}

.pva-dashboard-sidebar {
  min-height: calc(100vh - 30px);
  display: flex;
  flex-direction: column;
  padding: 36px 26px 28px;
  color: #f5efe4;
  background: linear-gradient(165deg, #1b1c17, #29271f);
}
.pva-dashboard-sidebar .pva-brand-mark { border-color: rgba(214, 185, 127, .6); }
.pva-dashboard-sidebar .pva-brand-text small { color: rgba(247, 240, 226, .52); }
.pva-dashboard-sidebar .pva-public-brand img { filter: brightness(0) invert(1); }

.pva-dashboard-nav {
  display: grid;
  gap: 7px;
  margin-top: 50px;
}
.pva-dashboard-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 47px;
  padding: 10px 12px;
  border-left: 2px solid transparent;
  color: rgba(247, 240, 226, .65);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: .2s ease;
}
.pva-dashboard-nav a svg { flex: 0 0 auto; width: 18px; height: 18px; color: #c1a66d; }
.pva-dashboard-nav a:hover,
.pva-dashboard-nav a.is-active {
  border-left-color: #c1a66d;
  background: rgba(255, 255, 255, .055);
  color: #fff;
}
.pva-dashboard-nav a.is-disabled { pointer-events: none; opacity: .35; }

.pva-dashboard-security {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: auto;
  padding: 18px 15px;
  border: 1px solid rgba(214, 185, 127, .18);
  background: rgba(255, 255, 255, .035);
}
.pva-dashboard-security > svg { flex: 0 0 auto; width: 20px; height: 20px; color: #c7ad75; }
.pva-dashboard-security div { display: grid; gap: 5px; }
.pva-dashboard-security strong { font-size: 10px; letter-spacing: .11em; text-transform: uppercase; }
.pva-dashboard-security span { color: rgba(247, 240, 226, .5); font-size: 10px; line-height: 1.5; }

.pva-dashboard-main {
  min-width: 0;
  padding: 30px 34px 36px;
  background:
    linear-gradient(rgba(248, 245, 239, .95), rgba(248, 245, 239, .95)),
    repeating-linear-gradient(90deg, transparent 0 59px, rgba(183, 154, 97, .045) 60px);
}

.pva-dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
}
.pva-dashboard-topbar h1 { margin: 0; font-size: 31px; line-height: 1.08; letter-spacing: -.025em; }

.pva-dashboard-user { display: flex; align-items: center; gap: 9px; }
.pva-user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 4px 12px 4px 5px;
  border: 1px solid var(--pva-border);
  background: rgba(255, 253, 248, .82);
  text-decoration: none;
}
.pva-user-profile img { width: 38px; height: 38px; border-radius: 50%; }
.pva-user-profile span { display: grid; gap: 2px; }
.pva-user-profile strong { max-width: 190px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.pva-user-profile small { color: var(--pva-taupe); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.pva-square-action {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--pva-border);
  background: rgba(255, 253, 248, .82);
  color: var(--pva-gold-dark);
  text-decoration: none;
  transition: .2s ease;
}
.pva-square-action:hover { border-color: var(--pva-gold); background: #fff; }
.pva-square-action svg { width: 19px; height: 19px; }

.pva-dashboard-hero {
  min-height: 230px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
  padding: 40px 42px;
  color: #f9f4eb;
  background:
    radial-gradient(circle at 92% 50%, rgba(201, 172, 110, .22), transparent 24%),
    linear-gradient(135deg, #27271f, #3b382f);
}
.pva-dashboard-hero > div { max-width: 760px; }
.pva-dashboard-hero .pva-public-kicker { color: #d5b878; }
.pva-dashboard-hero h2 { margin: 0 0 14px; font-size: clamp(34px, 3.5vw, 52px); line-height: 1.02; letter-spacing: -.035em; }
.pva-dashboard-hero p:last-child { margin: 0; color: rgba(249, 244, 235, .68); font-size: 14px; line-height: 1.72; }

.pva-public-button {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 11px 16px;
  border: 1px solid var(--pva-gold);
  background: var(--pva-gold);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: .22s ease;
}
.pva-public-button:hover { border-color: var(--pva-gold-dark); background: var(--pva-gold-dark); }
.pva-button-light { flex: 0 0 auto; border-color: rgba(255, 255, 255, .38); background: rgba(255, 255, 255, .07); }
.pva-button-light:hover { border-color: #fff; background: #fff; color: var(--pva-ink); }
.pva-button-secondary { border-color: var(--pva-border); background: transparent; color: var(--pva-gold-dark); }
.pva-public-button.is-disabled { pointer-events: none; opacity: .45; }

.pva-dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 17px 0;
}
.pva-dashboard-metrics > div {
  min-height: 87px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 15px 18px;
  border: 1px solid var(--pva-border);
  background: rgba(255, 253, 248, .76);
}
.pva-dashboard-metrics strong { margin-bottom: 4px; font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 500; }
.pva-dashboard-metrics span { color: var(--pva-taupe); font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.pva-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.pva-dashboard-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  padding: 23px;
  border: 1px solid var(--pva-border);
  background: rgba(255, 253, 248, .92);
  box-shadow: 0 10px 30px rgba(45, 37, 27, .035);
  transition: .22s ease;
}
.pva-dashboard-card:hover { transform: translateY(-3px); border-color: rgba(183, 154, 97, .65); box-shadow: 0 18px 38px rgba(45, 37, 27, .07); }
.pva-dashboard-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 19px; }
.pva-dashboard-card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pva-linen);
  color: var(--pva-gold-dark);
}
.pva-dashboard-card-icon svg { width: 22px; height: 22px; }
.pva-dashboard-status { padding: 6px 8px; color: #fff; font-size: 7px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.pva-dashboard-status.is-ok { background: var(--pva-green); }
.pva-dashboard-status.is-warning { background: var(--pva-warning); }
.pva-dashboard-status.is-muted { background: var(--pva-muted); }
.pva-dashboard-card h3 { margin: 0 0 10px; font-size: 25px; line-height: 1.08; letter-spacing: -.02em; }
.pva-dashboard-card p { margin: 0 0 20px; color: var(--pva-taupe); font-size: 12px; line-height: 1.68; }
.pva-dashboard-card .pva-public-button { align-self: flex-start; margin-top: auto; }

.pva-dashboard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 17px;
  padding: 22px 24px;
  border: 1px solid var(--pva-border);
  background: rgba(255, 253, 248, .75);
}
.pva-dashboard-footer div { display: grid; gap: 5px; }
.pva-dashboard-footer strong { font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 500; }
.pva-dashboard-footer span { color: var(--pva-taupe); font-size: 11px; line-height: 1.55; }
.pva-dashboard-footer > a { flex: 0 0 auto; color: var(--pva-gold-dark); font-size: 9px; font-weight: 800; letter-spacing: .11em; text-decoration: none; text-transform: uppercase; }

.pva-denied-card {
  width: min(670px, calc(100% - 34px));
  margin: 10vh auto;
  padding: 44px;
  border: 1px solid var(--pva-border);
  background: var(--pva-paper);
  box-shadow: var(--pva-shadow);
}
.pva-denied-card .pva-public-brand { margin-bottom: 60px; }
.pva-denied-card h1 { margin: 0 0 17px; font-size: 43px; line-height: 1.03; letter-spacing: -.03em; }
.pva-denied-card > p:not(.pva-public-kicker) { margin: 0 0 28px; color: var(--pva-taupe); line-height: 1.7; }

/* Login nativo de WordPress */
body.login {
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 20%, rgba(183, 154, 97, .16), transparent 25%),
    linear-gradient(135deg, #eee7da, #f8f5ee);
}
body.login #login { width: 380px; padding: 6vh 0 30px; }
body.login #login h1 a {
  width: 210px;
  height: 86px;
  margin-bottom: 25px;
  background-size: contain;
  background-position: center;
}
body.login .pva-native-login-intro { display: grid; gap: 7px; margin: 0 0 18px; text-align: center; }
body.login .pva-native-login-intro strong { font-family: Georgia, "Times New Roman", serif; font-size: 27px; font-weight: 500; }
body.login .pva-native-login-intro span { color: var(--pva-taupe); font-size: 12px; line-height: 1.55; }
body.login form {
  padding: 26px;
  border: 1px solid var(--pva-border);
  border-radius: 0;
  background: var(--pva-paper);
  box-shadow: 0 18px 55px rgba(45, 37, 27, .1);
}
body.login label { color: #655744; font-size: 11px; }
body.login input[type="text"], body.login input[type="password"] { border-color: var(--pva-sand); border-radius: 0; box-shadow: none; }
body.login input[type="text"]:focus, body.login input[type="password"]:focus { border-color: var(--pva-gold); box-shadow: 0 0 0 2px rgba(183, 154, 97, .12); }
body.login .button-primary { border: 0; border-radius: 0; background: var(--pva-gold); box-shadow: none; text-shadow: none; }
body.login .button-primary:hover, body.login .button-primary:focus { background: var(--pva-gold-dark); }
body.login #nav, body.login #backtoblog { text-align: center; }
body.login #nav a, body.login #backtoblog a { color: var(--pva-gold-dark); }
body.login .message, body.login #login_error { border-left-color: var(--pva-gold); box-shadow: none; }

@media (max-width: 1180px) {
  .pva-dashboard-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .pva-dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pva-login-story { padding: 46px; }
  .pva-story-note { left: 46px; }
}

@media (max-width: 900px) {
  .pva-public-shell { width: min(680px, calc(100% - 24px)); margin: 12px auto; }
  .pva-login-shell { grid-template-columns: 1fr; }
  .pva-login-story { min-height: 410px; padding: 35px; }
  .pva-story-copy { margin-top: 72px; }
  .pva-story-copy h1 { font-size: 48px; }
  .pva-story-note { display: none; }
  .pva-compass-art { right: -180px; bottom: -220px; }
  .pva-login-card { padding: 46px 30px; }

  .pva-dashboard-shell { width: calc(100% - 18px); grid-template-columns: 1fr; margin: 9px auto; }
  .pva-dashboard-sidebar { min-height: 0; padding: 22px; }
  .pva-dashboard-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 22px; }
  .pva-dashboard-nav a { justify-content: center; border: 1px solid rgba(255, 255, 255, .08); }
  .pva-dashboard-nav a.is-active { border-color: rgba(214, 185, 127, .45); }
  .pva-dashboard-security { display: none; }
  .pva-dashboard-main { padding: 24px; }
}

@media (max-width: 680px) {
  .pva-login-story { min-height: 350px; padding: 27px; }
  .pva-story-copy { margin-top: 54px; }
  .pva-story-copy h1 { font-size: 39px; }
  .pva-story-copy > p:last-child { font-size: 13px; }
  .pva-login-card { padding: 38px 22px; }
  .pva-login-card h2 { font-size: 35px; }
  .pva-login-links { flex-direction: column; }

  .pva-dashboard-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pva-dashboard-topbar { align-items: flex-start; flex-direction: column; }
  .pva-dashboard-user { width: 100%; }
  .pva-user-profile { flex: 1; min-width: 0; }
  .pva-dashboard-hero { align-items: flex-start; flex-direction: column; padding: 30px 25px; }
  .pva-dashboard-hero h2 { font-size: 38px; }
  .pva-button-light { width: 100%; }
  .pva-dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pva-dashboard-grid { grid-template-columns: 1fr; }
  .pva-dashboard-card { min-height: 0; }
  .pva-dashboard-footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 420px) {
  .pva-dashboard-main { padding: 18px 14px 24px; }
  .pva-dashboard-sidebar { padding: 18px 14px; }
  .pva-dashboard-nav { grid-template-columns: 1fr; }
  .pva-dashboard-metrics { grid-template-columns: 1fr; }
  .pva-dashboard-user { align-items: stretch; }
  .pva-user-profile strong { max-width: 130px; }
  .pva-dashboard-card .pva-public-button { width: 100%; }
  body.login #login { width: calc(100% - 30px); }
}
