/* Portal del Cliente: autenticado / Inicio. Las demás rutas conservan sus estilos. */
/* El arte de acceso queda oculto únicamente mientras está visible el Inicio autenticado. */
body[data-portal-authenticated="true"]:not([data-order-link="true"]):has(#account:not([hidden]) #account-home:not([hidden])) .customer-shell > .portal-entry {
  display: none !important;
}
body[data-portal-authenticated="true"]:not([data-order-link="true"]):has(#account:not([hidden]) #account-home:not([hidden])) .customer-shell > #notice:empty {
  min-height: 0;
  margin: 0;
}
body[data-portal-authenticated="true"]:not([data-order-link="true"]):has(#account:not([hidden]) #account-home:not([hidden])) .customer-shell > .portal-header {
  display: flex;
  min-height: clamp(3.25rem, 6vh, 3.75rem);
  margin: 0;
}
body[data-portal-authenticated="true"]:not([data-order-link="true"]):has(#account:not([hidden]) #account-home:not([hidden])) #account {
  padding-block: clamp(.65rem, 2vh, 1.2rem) clamp(1.15rem, 3vh, 1.7rem);
}
body[data-portal-authenticated="true"]:not([data-order-link="true"]):has(#account:not([hidden]) #account-home:not([hidden])) #account > .account-heading {
  margin-block: 0 .65rem;
}
body[data-portal-authenticated="true"]:not([data-order-link="true"]):has(#account:not([hidden]) #account-home:not([hidden])) #welcome {
  font-size: clamp(1.35rem, 3vw, 2.375rem);
}
body[data-portal-authenticated="true"]:not([data-order-link="true"]):has(#account:not([hidden]) #account-home:not([hidden])) #account-nav {
  gap: .15rem .35rem;
  margin-block-start: .25rem;
}
body[data-portal-authenticated="true"]:not([data-order-link="true"]):has(#account:not([hidden]) #account-home:not([hidden])) #account-nav a {
  outline-offset: 1px;
}
body[data-portal-authenticated="true"]:not([data-order-link="true"]) #account-home {
  --home-display: "NueU Syne Portal", Syne, Inter, sans-serif;
  --home-panel-border: #cfdacf;
  --home-deck-radius: clamp(1rem, 3vw, 1.55rem);
  min-width: 0;
}
#account-home .account-hero {
  align-items: center;
  min-height: auto;
  border: 1px solid #446353;
  border-radius: var(--home-deck-radius);
  background: radial-gradient(ellipse at 100% 0%, #235940, transparent 64%),
    linear-gradient(117deg, #0b231a, #133629 57%, #173f2f);
  box-shadow: 0 11px 30px #10291d24;
}
#account-home .account-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: repeating-radial-gradient(ellipse at 112% -185%, transparent 0 31px, #d9ffd61d 32px, transparent 33px 50px);
  mask-image: linear-gradient(90deg, transparent 30%, #000);
}
#account-home .hero-body {
  position: relative;
  display: flex;
  max-width: none;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .9rem 1.5rem;
  padding: clamp(.9rem, 1.65vw, 1.45rem);
}
#account-home .home-eyebrow {
  display: block;
  margin: 0 0 .35rem;
  color: #d3f5aa;
  font: 750 .7rem/1.35 Inter, system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .12em;
}
#account-home .hero-body h2 {
  max-width: none;
  font: 690 clamp(1.65rem, 3.05vw, 2.85rem)/1.04 var(--home-display);
  letter-spacing: -.045em;
  text-wrap: balance;
}
#account-home .hero-body p:not(.home-eyebrow) {
  max-width: 52ch;
  margin: .35rem 0 0;
  color: #e7f2e7;
  font-size: clamp(.88rem, 1.1vw, 1rem);
  line-height: 1.45;
}
#account-home .primary-link {
  flex: 0 0 auto;
  min-height: 46px;
  padding-inline: .9rem;
  border-color: #dbf8ab;
  background: #d3f5aa;
  color: #11271a;
  box-shadow: 0 5px 16px #091b1380;
}
#account-home .primary-link:is(:hover,:focus-visible) {
  border-color: #f0ffce;
  background: #e9ffc8;
}
#account-home .portal-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.45rem, 1.08vw, .9rem);
  margin-block: clamp(.6rem, 1.4vw, 1rem) 0;
}
#account-home .portal-shortcuts > a {
  --tile-surface:#162f25;
  --tile-bloom:#265b43;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  grid-template-rows: minmax(3rem,1fr) auto;
  align-items: end;
  gap: .2rem .4rem;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(100px, 10.35vw, 144px);
  padding: clamp(.6rem, 1.35vw, 1.12rem);
  border: 1px solid #557263;
  border-radius: clamp(.85rem, 2vw, 1.3rem);
  background: radial-gradient(ellipse at 100% 10%, var(--tile-bloom), transparent 75%), var(--tile-surface);
  color: #f5faf5;
  box-shadow: 0 5px 14px #13281c25;
  text-decoration: none;
}
#account-home .portal-shortcuts > a[data-account-view="history"] {
  --tile-surface:#182d36;
  --tile-bloom:#305569;
}
#account-home .portal-shortcuts > a[data-account-view="university"] {
  --tile-surface:#24311e;
  --tile-bloom:#405534;
}
#account-home .portal-shortcuts > a[data-account-view="crm"] {
  --tile-surface:#302c24;
  --tile-bloom:#565246;
}
#account-home .portal-shortcuts > a:is(:hover,:focus-visible) {
  outline: 2px solid #316749;
  outline-offset: 3px;
  border-color: #bddca8;
  box-shadow: 0 12px 22px #142d2144;
}
#account-home .portal-shortcuts .portal-icon {
  position: absolute;
  z-index: -2;
  inset: 0 0 auto auto;
  width: min(64%,11.5rem);
  height: 100%;
  display: block;
  overflow: hidden;
  border-radius: 0;
  background: none;
  isolation: isolate;
  pointer-events: none;
}
#account-home .portal-shortcuts .portal-icon::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(0deg,var(--tile-surface) 0, transparent 58%), linear-gradient(90deg,var(--tile-surface) 0, transparent 58%);
}
#account-home .portal-icon img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 47%;
}
#account-home .portal-icon:is(.portal-icon--order-photo,.portal-icon--channel) {
  mask-image: linear-gradient(90deg, transparent, #000 40%);
}
#account-home .portal-icon--order-photo img { object-position: 43% 45%; }
#account-home .portal-icon--channel img { object-position: 52% 53%; }
#account-home .portal-shortcuts a[data-account-view="history"] .portal-icon {
  inset: .55rem 1.07rem auto auto;
  width: clamp(2.5rem, 5.25vw, 4.8rem);
  height: clamp(2.5rem, 5.25vw, 4.8rem);
  opacity: .79;
}
#account-home .portal-shortcuts a[data-account-view="history"] .portal-icon::after {
  background: none;
}
#account-home .portal-shortcuts a[data-account-view="history"] .portal-icon img { object-fit: contain; }
#account-home .portal-shortcuts .portal-icon--nueu {
  inset: .35rem .7rem auto auto;
  width: min(68%,8rem);
  height: clamp(3.3rem, 7vw, 5.35rem);
  display: grid;
  align-items: center;
  isolation: auto;
  mix-blend-mode: screen;
}
#account-home .portal-shortcuts .portal-icon--nueu::after { background: none; }
#account-home .portal-shortcuts .portal-icon--nueu img {
  width: 74%;
  height: auto;
  object-fit: contain;
  justify-self: end;
}
#account-home .portal-shortcuts .portal-icon--nueu svg {
  position: absolute;
  inset: auto auto .05rem .18rem;
  width: min(42%,2.65rem);
  height: auto;
  color: #daf3c0;
  opacity: .22;
}
#account-home .portal-shortcuts .portal-home-tile-copy {
  position: relative;
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  padding-block-start: .4rem;
  text-shadow: 0 1px 8px #0b1c16cc;
}
#account-home .portal-shortcuts strong {
  display: block;
  color: inherit;
  font: 700 clamp(.98rem, 1.46vw, 1.38rem)/1.13 var(--home-display);
  overflow-wrap: break-word;
}
#account-home .portal-shortcuts small {
  margin: .26rem 0 0;
  color: #e1ebe3;
  font-size: clamp(.725rem, .97vw, .83rem);
  line-height: 1.3;
}
#account-home .portal-arrow {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  display: grid;
  place-items: center;
  min-width: 1.8rem;
  min-height: 1.8rem;
  border: 1px solid #d4efd080;
  border-radius: 50%;
  background: #0c231ac9;
  color: #edffd8;
  font-size: .85rem;
  line-height: 1;
}
#account-home .home-panels {
  align-items: start;
  grid-template-columns: minmax(0,1.6fr) minmax(0,1fr);
  gap: clamp(.55rem, 1.2vw, .95rem);
  margin-block-start: clamp(.65rem, 1.3vw, 1rem);
}
body:not([data-order-link="true"]) #account #account-home .home-panel {
  border-color: var(--home-panel-border);
  border-radius: clamp(.85rem, 2vw, 1.3rem);
  padding: clamp(.85rem, 1.5vw, 1.15rem);
}
#account-home .home-panel h2 {
  font: 700 clamp(1.025rem, 1.6vw, 1.35rem)/1.18 var(--home-display);
}
#account-home .home-panel .section-heading { margin-bottom: .25rem; }
#account-home .home-panel .hint { margin-block: .35rem .75rem; }
#account-home .home-panel .hint:empty { display: none; }
#account-home .home-panel .secondary-link { min-height: 44px; }
#account-home #home-history .history-row { padding-block: .55rem; }
#account-home #home-history .history-row:last-child { border-bottom: 0; }

@media (max-width: 850px) {
  #account-home .portal-shortcuts {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  #account-home .portal-shortcuts > a { min-height: 104px; }
}
@media (max-width: 600px) {
  #account-home .home-panels { grid-template-columns: minmax(0,1fr); }
  #account-home .hero-body { gap: .6rem; align-items: start; }
  #account-home .portal-shortcuts > a {
    padding: .57rem;
    gap: .2rem .25rem;
  }
  #account-home .portal-shortcuts strong { font-size: .955rem; }
  #account-home .portal-shortcuts small { font-size: .75rem; }
  #account-home .portal-arrow { min-width: 1.33rem; min-height: 1.33rem; }
  #account-home .portal-shortcuts .portal-icon { width: min(65%,6.8rem); }
  #account-home .portal-shortcuts .portal-icon--nueu { inset-inline-end: .42rem; }
  body[data-portal-authenticated="true"]:not([data-order-link="true"]):has(#account:not([hidden]) #account-home:not([hidden])) #account-nav a {
    font-size: .8rem;
    padding-inline: .38rem;
    white-space: normal;
  }
}
@media (forced-colors: active) {
  #account-home a:focus-visible { outline: 2px solid Highlight; }
  #account-home .portal-arrow { border-color: ButtonText; }
}
