:root {
  --aranjuez-navy: #213f66;
  --aranjuez-navy-dark: #173354;
  --aranjuez-blue-soft: #2d4c75;
  --aranjuez-gold: #d0a64c;
  --aranjuez-gold-dark: #b98f35;
  --aranjuez-cream: #f7f3ea;
  --aranjuez-ink: #172238;
  --aranjuez-muted: #5d6b82;
  --aranjuez-access-bg: none;
  --aranjuez-access-logo: none;
}

.aranjuez-access,
.aranjuez-access * {
  box-sizing: border-box;
}

.aranjuez-access {
  position: relative;
  min-height: min(860px, calc(100vh - 80px));
  padding: clamp(32px, 6vw, 86px) 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(16,42,73,.94), rgba(30,63,101,.82) 42%, rgba(10,31,55,.95)),
    var(--aranjuez-access-bg),
    linear-gradient(135deg, #274b75, #132b49);
  background-size: cover;
  background-position: center;
  color: #fff;
}

.aranjuez-access__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(208,166,76,.30), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(255,255,255,.10), transparent 24%),
    radial-gradient(circle at 72% 90%, rgba(208,166,76,.16), transparent 28%),
    linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.48));
  pointer-events: none;
}

.aranjuez-access__shell {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
}

.aranjuez-access__brandbar {
  width: fit-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  margin: 0 auto clamp(22px, 4vw, 34px);
  padding: 16px 22px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(18,43,74,.88);
  box-shadow: 0 20px 54px rgba(0,0,0,.30);
  backdrop-filter: blur(14px);
}

.aranjuez-access__brandbar img {
  display: block;
  max-width: min(340px, 78vw);
  max-height: 94px;
  object-fit: contain;
}

.aranjuez-access__crest {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(208,166,76,.38);
  color: var(--aranjuez-gold);
  font-size: 26px;
}

.aranjuez-access__brandtext {
  display: grid;
  line-height: 1;
}

.aranjuez-access__brandtext strong {
  color: #fff;
  font-size: clamp(32px, 6vw, 46px);
  font-weight: 900;
  letter-spacing: -.045em;
}

.aranjuez-access__brandtext small {
  margin-top: 6px;
  color: rgba(255,255,255,.75);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.aranjuez-access__hero {
  width: min(850px, 100%);
  margin: 0 auto clamp(24px, 4vw, 34px);
  text-align: center;
}

.aranjuez-access__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: rgba(255,255,255,.86);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.aranjuez-access__eyebrow::before,
.aranjuez-access__eyebrow::after {
  content: "";
  width: 54px;
  height: 1px;
  background: rgba(208,166,76,.92);
}

.aranjuez-access h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 7vw, 72px);
  line-height: .98;
  letter-spacing: -.055em;
  text-shadow: 0 18px 48px rgba(0,0,0,.38);
}

.aranjuez-access__hero p {
  width: min(760px, 100%);
  margin: 18px auto 0;
  color: rgba(255,255,255,.88);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.aranjuez-access__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(310px, .84fr);
  gap: clamp(18px, 3vw, 28px);
  align-items: stretch;
}

.aranjuez-access__card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 30px;
  background: rgba(255,255,255,.95);
  color: var(--aranjuez-ink);
  box-shadow: 0 30px 90px rgba(0,0,0,.31);
  backdrop-filter: blur(14px);
}

.aranjuez-access__card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--aranjuez-gold), rgba(208,166,76,.28));
}

.aranjuez-access__card--panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(247,243,234,.95));
}

.aranjuez-access__tag {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(33,63,102,.10);
  color: var(--aranjuez-navy);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.aranjuez-access__tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--aranjuez-gold);
}

.aranjuez-access h2 {
  margin: 0 0 10px;
  color: var(--aranjuez-navy-dark);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
  letter-spacing: -.04em;
}

.aranjuez-access__card p {
  margin: 0 0 20px;
  color: #4d5b72;
  font-size: 16px;
  line-height: 1.65;
}

.aranjuez-access__form {
  margin-top: 18px;
}

.aranjuez-access__form form,
.aranjuez-access__form p {
  margin: 0;
}

.aranjuez-access__form p + p {
  margin-top: 15px;
}

.aranjuez-access__form label {
  display: block;
  margin-bottom: 7px;
  color: var(--aranjuez-navy-dark);
  font-size: 13px;
  font-weight: 900;
}

.aranjuez-access__form input[type="text"],
.aranjuez-access__form input[type="password"] {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(23,34,56,.16);
  border-radius: 14px;
  background: #fff;
  color: var(--aranjuez-ink);
  font-size: 16px;
  padding: 12px 14px;
  outline: none;
  box-shadow: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.aranjuez-access__form input[type="text"]:focus,
.aranjuez-access__form input[type="password"]:focus {
  border-color: var(--aranjuez-gold);
  box-shadow: 0 0 0 4px rgba(208,166,76,.17);
}

.aranjuez-access__form .login-remember label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #4d5b72;
  font-weight: 800;
}

.aranjuez-access__form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--aranjuez-gold);
}

.aranjuez-access__btn,
.aranjuez-access__form input[type="submit"] {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 999px;
  padding: 13px 23px;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.aranjuez-access__form input[type="submit"],
.aranjuez-access__btn--primary {
  border: 1px solid var(--aranjuez-navy);
  background: var(--aranjuez-navy);
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(33,63,102,.24);
}

.aranjuez-access__btn--gold {
  margin-top: auto;
  border: 1px solid var(--aranjuez-gold);
  background: var(--aranjuez-gold);
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(185,143,53,.26);
}

.aranjuez-access__form input[type="submit"]:hover,
.aranjuez-access__btn:hover {
  transform: translateY(-1px);
}

.aranjuez-access__form input[type="submit"]:hover,
.aranjuez-access__btn--primary:hover {
  border-color: var(--aranjuez-navy-dark);
  background: var(--aranjuez-navy-dark);
}

.aranjuez-access__btn--gold:hover {
  border-color: var(--aranjuez-gold-dark);
  background: var(--aranjuez-gold-dark);
}

.aranjuez-access__minor {
  display: block;
  margin-top: 14px;
  color: var(--aranjuez-navy) !important;
  font-weight: 800;
  text-align: center;
  text-decoration-color: var(--aranjuez-gold) !important;
  text-underline-offset: 4px;
}

.aranjuez-access__card small {
  display: block;
  margin-top: 14px;
  color: var(--aranjuez-muted);
  font-size: 12px;
  line-height: 1.45;
  word-break: break-word;
}

.aranjuez-access__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 22px;
}

.aranjuez-access__links a {
  color: rgba(255,255,255,.92) !important;
  font-weight: 900;
  text-decoration: none !important;
}

.aranjuez-access__links a:hover {
  color: #fff !important;
  text-decoration: underline !important;
  text-decoration-color: var(--aranjuez-gold) !important;
  text-underline-offset: 5px;
}

@media (max-width: 860px) {
  .aranjuez-access__grid {
    grid-template-columns: 1fr;
  }

  .aranjuez-access__card--panel {
    min-height: 280px;
  }
}

@media (max-width: 560px) {
  .aranjuez-access {
    padding: 24px 14px;
    min-height: calc(100vh - 64px);
  }

  .aranjuez-access__brandbar {
    border-radius: 24px;
    padding: 15px 17px;
  }

  .aranjuez-access__brandbar img {
    max-height: 68px;
  }

  .aranjuez-access__eyebrow::before,
  .aranjuez-access__eyebrow::after {
    width: 34px;
  }

  .aranjuez-access__card {
    border-radius: 24px;
    text-align: center;
  }

  .aranjuez-access__tag {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Acceso propio del panel de rutas: /panel/login/ */
body.aranjuez-panel-login {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(16,42,73,.94), rgba(30,63,101,.82) 42%, rgba(10,31,55,.95)),
    var(--aranjuez-access-bg),
    linear-gradient(135deg, #274b75, #132b49) !important;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
}

body.aranjuez-panel-login #page,
body.aranjuez-panel-login .site,
body.aranjuez-panel-login .site-content,
body.aranjuez-panel-login #content,
body.aranjuez-panel-login .ast-container,
body.aranjuez-panel-login .content-area,
body.aranjuez-panel-login .site-main,
body.aranjuez-panel-login article,
body.aranjuez-panel-login .entry-content {
  background: transparent !important;
}

body.aranjuez-panel-login .site-content,
body.aranjuez-panel-login #content {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(208,166,76,.26), transparent 28%),
    radial-gradient(circle at 88% 14%, rgba(255,255,255,.10), transparent 24%),
    linear-gradient(135deg, rgba(16,42,73,.92), rgba(30,63,101,.80) 42%, rgba(10,31,55,.95)),
    var(--aranjuez-access-bg),
    linear-gradient(135deg, #274b75, #132b49) !important;
  background-size: cover !important;
  background-position: center !important;
}

body.aranjuez-panel-login .site-content::before,
body.aranjuez-panel-login #content::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.44));
  pointer-events: none;
}

body.aranjuez-panel-login .site-content > .ast-container,
body.aranjuez-panel-login #content > .ast-container,
body.aranjuez-panel-login .site-main {
  position: relative;
  z-index: 1;
}

body.aranjuez-panel-login .site-content > .ast-container,
body.aranjuez-panel-login #content > .ast-container {
  min-height: min(820px, calc(100vh - 120px));
  display: grid !important;
  place-items: center !important;
  padding: clamp(34px, 6vw, 76px) 16px !important;
}

body.aranjuez-panel-login .site-header,
body.aranjuez-panel-login .main-header-bar,
body.aranjuez-panel-login .ast-primary-header-bar,
body.aranjuez-panel-login .ast-above-header-bar,
body.aranjuez-panel-login .ast-below-header-bar {
  background: rgba(18,43,74,.94) !important;
  box-shadow: 0 12px 34px rgba(0,0,0,.22) !important;
}

body.aranjuez-panel-login .site-header .ast-container,
body.aranjuez-panel-login .main-header-bar .ast-container,
body.aranjuez-panel-login .ast-primary-header-bar .site-primary-header-wrap,
body.aranjuez-panel-login .ast-builder-grid-row {
  justify-content: center !important;
  text-align: center !important;
}

body.aranjuez-panel-login .site-branding,
body.aranjuez-panel-login .ast-site-identity,
body.aranjuez-panel-login .custom-logo-link,
body.aranjuez-panel-login .site-logo-img,
body.aranjuez-panel-login .ast-builder-layout-element[data-section="title_tagline"] {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
  justify-content: center !important;
}

body.aranjuez-panel-login .custom-logo-link img,
body.aranjuez-panel-login .site-logo-img img,
body.aranjuez-panel-login header img.custom-logo {
  display: block !important;
  width: auto !important;
  max-width: min(330px, 82vw) !important;
  max-height: 92px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  object-fit: contain !important;
}

body.aranjuez-panel-login .main-header-menu,
body.aranjuez-panel-login .ast-builder-menu,
body.aranjuez-panel-login .ast-main-header-bar-alignment,
body.aranjuez-panel-login .ast-header-button-1,
body.aranjuez-panel-login .ast-header-button-2 {
  margin-left: auto !important;
  margin-right: auto !important;
  justify-content: center !important;
}

body.aranjuez-panel-login .entry-header,
body.aranjuez-panel-login .entry-title {
  display: none !important;
}

body.aranjuez-panel-login .entry-content,
body.aranjuez-panel-login .site-main > article,
body.aranjuez-panel-login .ast-article-single,
body.aranjuez-panel-login .ast-separate-container .ast-article-single {
  width: min(520px, 100%) !important;
  max-width: 520px !important;
  margin: 0 auto !important;
  padding: clamp(26px, 4vw, 38px) !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  border-radius: 30px !important;
  background: rgba(255,255,255,.96) !important;
  color: var(--aranjuez-ink) !important;
  text-align: center !important;
  box-shadow: 0 30px 90px rgba(0,0,0,.32) !important;
  backdrop-filter: blur(14px);
}

body.aranjuez-panel-login .entry-content::before,
body.aranjuez-panel-login .site-main > article::before,
body.aranjuez-panel-login .ast-article-single::before {
  content: "";
  display: block;
  width: min(320px, 80%);
  height: 92px;
  margin: 0 auto 18px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 22px;
  background-color: rgba(18,43,74,.94);
  background-image: var(--aranjuez-access-logo);
  background-repeat: no-repeat;
  background-position: center;
  background-size: min(260px, 82%) auto;
  box-shadow: 0 16px 42px rgba(0,0,0,.22);
}

body.aranjuez-panel-login .entry-content h1,
body.aranjuez-panel-login .entry-content h2,
body.aranjuez-panel-login .entry-content h3,
body.aranjuez-panel-login .site-main h1,
body.aranjuez-panel-login .site-main h2,
body.aranjuez-panel-login .site-main h3 {
  color: var(--aranjuez-navy-dark) !important;
  font-weight: 900 !important;
  letter-spacing: -.04em !important;
  text-align: center !important;
}

body.aranjuez-panel-login .entry-content h1,
body.aranjuez-panel-login .site-main h1 {
  margin: 0 0 10px !important;
  font-size: clamp(32px, 4vw, 46px) !important;
  line-height: 1 !important;
}

body.aranjuez-panel-login .entry-content p,
body.aranjuez-panel-login .site-main p,
body.aranjuez-panel-login .entry-content label,
body.aranjuez-panel-login .site-main label {
  color: #4d5b72 !important;
  text-align: center !important;
}

body.aranjuez-panel-login .entry-content form,
body.aranjuez-panel-login .site-main form,
body.aranjuez-panel-login form[action*="panel"],
body.aranjuez-panel-login form[action*="login"] {
  width: 100% !important;
  margin: 20px auto 0 !important;
  text-align: left !important;
}

body.aranjuez-panel-login .entry-content form p,
body.aranjuez-panel-login .site-main form p {
  margin: 0 0 15px !important;
}

body.aranjuez-panel-login .entry-content form label,
body.aranjuez-panel-login .site-main form label {
  display: block !important;
  margin-bottom: 7px !important;
  color: var(--aranjuez-navy-dark) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  text-align: left !important;
}

body.aranjuez-panel-login input[type="text"],
body.aranjuez-panel-login input[type="email"],
body.aranjuez-panel-login input[type="password"] {
  width: 100% !important;
  min-height: 50px !important;
  border: 1px solid rgba(23,34,56,.16) !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: var(--aranjuez-ink) !important;
  font-size: 16px !important;
  padding: 12px 14px !important;
  outline: none !important;
  box-shadow: none !important;
}

body.aranjuez-panel-login input[type="text"]:focus,
body.aranjuez-panel-login input[type="email"]:focus,
body.aranjuez-panel-login input[type="password"]:focus {
  border-color: var(--aranjuez-gold) !important;
  box-shadow: 0 0 0 4px rgba(208,166,76,.17) !important;
}

body.aranjuez-panel-login input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  accent-color: var(--aranjuez-gold) !important;
}

body.aranjuez-panel-login button,
body.aranjuez-panel-login input[type="submit"],
body.aranjuez-panel-login .button,
body.aranjuez-panel-login .wp-element-button {
  min-height: 50px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  border: 1px solid var(--aranjuez-gold) !important;
  border-radius: 999px !important;
  background: var(--aranjuez-gold) !important;
  color: #fff !important;
  padding: 13px 23px !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  box-shadow: 0 12px 28px rgba(185,143,53,.26) !important;
}

body.aranjuez-panel-login button:hover,
body.aranjuez-panel-login input[type="submit"]:hover,
body.aranjuez-panel-login .button:hover,
body.aranjuez-panel-login .wp-element-button:hover {
  border-color: var(--aranjuez-gold-dark) !important;
  background: var(--aranjuez-gold-dark) !important;
}

body.aranjuez-panel-login .entry-content a,
body.aranjuez-panel-login .site-main a {
  color: var(--aranjuez-navy) !important;
  font-weight: 800 !important;
  text-decoration-color: var(--aranjuez-gold) !important;
  text-underline-offset: 4px !important;
}

body.aranjuez-panel-login .site-footer,
body.aranjuez-panel-login footer {
  text-align: center !important;
}

@media (max-width: 921px) {
  body.aranjuez-panel-login .site-header .ast-container,
  body.aranjuez-panel-login .main-header-bar .ast-container,
  body.aranjuez-panel-login .ast-builder-grid-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }
}

@media (max-width: 560px) {
  body.aranjuez-panel-login .site-content > .ast-container,
  body.aranjuez-panel-login #content > .ast-container {
    min-height: calc(100vh - 96px);
    padding: 26px 14px !important;
  }

  body.aranjuez-panel-login .entry-content,
  body.aranjuez-panel-login .site-main > article,
  body.aranjuez-panel-login .ast-article-single {
    border-radius: 24px !important;
    padding: 24px 20px !important;
  }

  body.aranjuez-panel-login .entry-content::before,
  body.aranjuez-panel-login .site-main > article::before,
  body.aranjuez-panel-login .ast-article-single::before {
    height: 76px;
  }
}
