/* ================================================================
   SUCIAPOSSE GALERÍA — editorial brutalism / 2026
   Capa común para portada, archivo, autores, cuenta y administración.
   ================================================================ */

:root{
  --bg: #f2f0eb;
  --bg-elevated: #f2f0eb;
  --bg-surface: #ebe8e1;
  --bg-muted: #e6e3dc;
  --fg: #101010;
  --fg-muted: rgba(16,16,16,.62);
  --border: rgba(16,16,16,.18);
  --border-strong: rgba(16,16,16,.3);
  --brand: #d40000;
  --shadow: none;
  --shadow-strong: none;
  --container: 1280px;
  --radius-sm: 2px;
  --radius-md: 3px;
  --radius-lg: 4px;
  --radius-xl: 6px;
  --dur-fast: 140ms;
  --dur-normal: 260ms;
  --dur-slow: 650ms;
  --ease-editorial: cubic-bezier(.22,1,.36,1);
}

[data-theme="dark"]{
  --bg: #101010;
  --bg-elevated: #101010;
  --bg-surface: #181818;
  --bg-muted: #202020;
  --fg: #f1efe9;
  --fg-muted: rgba(241,239,233,.62);
  --border: rgba(241,239,233,.16);
  --border-strong: rgba(241,239,233,.28);
  --invert-bg: #f1efe9;
  --invert-fg: #101010;
  --shadow: none;
  --shadow-strong: none;
}

html{
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body.gallery-shell{
  min-width: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--fg);
  font-size: clamp(.98rem,.94rem + .16vw,1.07rem);
  line-height: 1.52;
  text-rendering: optimizeLegibility;
}

body.gallery-shell main,
body.gallery-shell section,
body.gallery-shell article,
body.gallery-shell form,
body.gallery-shell .container{
  min-width: 0;
}

body.gallery-shell .container,
body.gallery-shell .header-inner,
body.gallery-shell .preheader-inner{
  width: min(var(--container),calc(100vw - clamp(24px,5vw,72px)));
}

::selection{
  background: var(--fg);
  color: var(--bg);
}

.site-header{
  background: color-mix(in srgb,var(--bg) 90%,transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.logo{
  width: clamp(170px,22vw,278px);
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
}

.logo img{
  width: auto;
  max-width: 100%;
  max-height: 48px;
  transition: transform .55s var(--ease-editorial),opacity .2s ease;
}

.logo:hover img,
.logo:focus-visible img{
  transform: translateX(4px);
}

.site-nav{
  gap: 2px;
}

.site-nav a{
  position: relative;
  min-height: 40px;
  padding: 10px 11px;
  border-radius: 0;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .03em;
}

.site-nav a::after{
  content: "";
  position: absolute;
  right: 11px;
  bottom: 6px;
  left: 11px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease-editorial);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active{
  background: transparent;
  box-shadow: none;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after{
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle{
  flex: 0 0 44px;
  border-color: var(--fg);
  border-radius: 50%;
  background: transparent;
}

main{
  padding-top: calc(var(--preheader-h) + var(--header-h));
}

.hero,
.section{
  padding: clamp(54px,8vw,112px) 0 clamp(76px,10vw,144px);
}

.kicker,
.eyebrow{
  margin-bottom: clamp(16px,2.5vw,28px);
  font: 700 .68rem/1.25 var(--mono);
  letter-spacing: .11em;
  text-transform: uppercase;
  opacity: .62;
}

.page-title{
  max-width: 12ch;
  margin: 0 0 clamp(22px,3vw,38px);
  font-family: var(--font);
  font-size: clamp(3.8rem,10vw,9.1rem);
  font-weight: 480;
  line-height: .82;
  letter-spacing: -.075em;
  text-transform: lowercase;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.lead{
  max-width: 58ch;
  margin-bottom: clamp(24px,4vw,48px);
  font-size: clamp(1.05rem,1rem + .42vw,1.42rem);
  line-height: 1.4;
  opacity: .84;
}

.gallery-top{
  align-items: end;
  margin-bottom: clamp(34px,6vw,74px);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--fg);
}

.gallery-top .page-title{
  margin-bottom: 0;
}

.btn{
  min-height: 46px;
  max-width: 100%;
  padding: 11px 18px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  box-shadow: none;
  font-size: .76rem;
  letter-spacing: .035em;
  white-space: normal;
  transition: transform .3s var(--ease-editorial),background-color .25s ease,color .25s ease,border-color .25s ease;
}

.btn-sm{
  min-height: 44px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: .72rem;
}

.btn:hover,
.btn:focus-visible{
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
  box-shadow: none;
  transform: translateY(-2px);
}

.btn-primary{
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}

.btn-primary:hover,
.btn-primary:focus-visible{
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn-danger:hover,
.btn-danger:focus-visible{
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}

.text-link{
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* Portada pública */
.gallery-home{
  min-height: calc(100dvh - var(--preheader-h) - var(--header-h));
  display: grid;
  align-items: center;
}

.gallery-home-grid{
  grid-template-columns: minmax(0,.82fr) minmax(360px,1.18fr);
  gap: 1px;
  align-items: stretch;
  border: 1px solid var(--fg);
  background: var(--fg);
}

.gallery-home-grid > div{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(520px,60vw,780px);
  padding: clamp(24px,5vw,64px);
  background: var(--bg);
}

.gallery-home-grid .page-title{
  margin-bottom: auto;
}

.gallery-home-menu{
  max-width: none;
  margin-top: clamp(44px,8vw,100px);
  border-top: 1px solid var(--fg);
  border-bottom: 1px solid var(--fg);
}

.home-action{
  min-height: 58px;
  padding: 0;
  border-color: var(--border);
  font-size: clamp(.86rem,.78rem + .3vw,1.1rem);
  transition: background-color .3s ease,color .3s ease,transform .35s var(--ease-editorial);
}

.home-action::after{
  content: "↗";
}

.home-action:hover,
.home-action:focus-visible,
.home-action.is-primary{
  padding-left: 0;
  background: transparent;
  color: var(--fg);
  transform: translateX(7px);
}

.home-action.is-primary{
  color: var(--brand);
}

.public-cover,
.random-feature{
  width: 100%;
  max-width: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #111;
}

.public-cover{
  display: block;
  justify-self: stretch;
  overflow: hidden;
}

.public-cover img{
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: clamp(520px,60vw,780px);
  object-fit: cover;
  filter: grayscale(.55) contrast(1.05);
  transition: transform .85s var(--ease-editorial),filter .45s ease;
}

.public-cover:hover img,
.public-cover:focus-visible img{
  transform: scale(1.04);
  filter: grayscale(0);
}

.public-cover span{
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 999px;
  background: rgba(0,0,0,.68);
  text-align: center;
  backdrop-filter: blur(10px);
}

/* Archivo, autores e imágenes */
.grid,
.lot-grid,
.gallery-grid,
.photo-grid{
  gap: 1px;
  border: 1px solid var(--fg);
  background: var(--fg);
}

.card,
.lot-card,
.gallery-image,
.photo-item,
.panel,
.access-notice,
.flash,
.subscribe-card,
.pricing-card,
.shop-banner,
.account-stats,
.account-nav,
.account-section,
.service-card,
.address-card,
.admin-identity,
.admin-workspace,
.admin-system-section,
.admin-user-row,
.admin-detail-card{
  border-radius: 0 !important;
  box-shadow: none !important;
}

.card,
.lot-card,
.gallery-image,
.photo-item{
  border: 0;
  background: var(--bg);
}

.lot-card{
  transition: none;
}

.lot-card img,
.lot-card .cover,
.author-cover{
  object-fit: cover;
  filter: grayscale(.5) contrast(1.04);
  transition: transform .75s var(--ease-editorial),filter .45s ease;
}

.lot-card:hover,
.lot-card:focus-visible{
  box-shadow: none;
  transform: none;
}

.lot-card:hover img,
.lot-card:focus-visible img,
.author-card:hover .author-cover,
.author-card:focus-within .author-cover{
  transform: scale(1.035);
  filter: grayscale(0);
}

.lot-card-body,
.card-body{
  padding: clamp(16px,2.5vw,28px);
}

.lot-card-body h2,
.card-title{
  font-family: var(--font);
  font-size: clamp(1.2rem,2vw,2rem);
  font-weight: 520;
  letter-spacing: -.035em;
}

.photo-item{
  line-height: 0;
}

.photo-grid .photo-item img{
  width: 100%;
  min-height: 100%;
  object-fit: cover;
}

.photo-column{
  gap: clamp(32px,7vw,96px);
}

.photo-column .photo-item{
  border: 1px solid var(--fg);
}

.photo-credit{
  right: 10px;
  bottom: 10px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
}

.random-feature{
  display: block;
  margin-bottom: 24px;
  border: 1px solid var(--fg);
}

.random-feature img{
  width: 100%;
  max-height: 78vh;
}

.view-switch{
  border-color: var(--fg);
  border-radius: 999px;
  box-shadow: none;
  background: transparent;
}

.view-switch a{
  border-radius: 999px;
}

.panel,
.access-notice,
.flash{
  padding: clamp(16px,2.5vw,26px) 0;
  border: 0;
  border-top: 1px solid var(--fg);
  border-bottom: 1px solid var(--fg);
  background: transparent;
}

.subscribe-card{
  max-width: 820px;
  margin: clamp(28px,5vw,60px) 0;
  padding: clamp(24px,4vw,48px);
  border: 1px solid var(--fg);
  background: transparent;
}

.subscribe-card h2{
  font-family: var(--font);
  font-size: clamp(2rem,4.5vw,4.8rem);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.055em;
}

.shop-banner{
  grid-template-columns: minmax(180px,.6fr) minmax(0,1fr) auto;
  justify-items: stretch;
  align-items: center;
  width: 100%;
  max-width: none;
  margin-top: clamp(58px,9vw,118px);
  padding: 0;
  border: 1px solid var(--fg);
  background: var(--bg);
  text-align: left;
}

.shop-banner img{
  width: 100%;
  height: 250px;
  max-height: none;
  object-fit: contain;
  border-right: 1px solid var(--fg);
}

.shop-banner span{
  padding: 22px;
}

.shop-banner em{
  margin-right: 22px;
  border-radius: 999px;
}

/* Formularios, acceso y cuenta */
.form{
  width: min(100%,760px);
  max-width: none;
}

.form.panel{
  padding: clamp(24px,5vw,58px);
  border: 1px solid var(--fg);
}

.form-row{
  min-width: 0;
  margin-bottom: 20px;
}

label,
.form-row label{
  margin-bottom: 8px;
  font: 700 .7rem/1.3 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
select,
textarea{
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid var(--fg);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--fg);
  font-size: max(1rem,16px);
  transition: padding .3s var(--ease-editorial),background-color .2s ease,border-color .2s ease;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):hover,
select:hover,
textarea:hover{
  background: color-mix(in srgb,var(--fg) 5%,transparent);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus-visible,
select:focus-visible,
textarea:focus-visible{
  padding-inline: 10px;
  border-bottom-color: var(--brand);
  border-radius: 0;
  outline: 1px solid var(--brand);
  outline-offset: 2px;
  box-shadow: none;
  background: var(--bg-elevated);
}

input[type="file"]::file-selector-button{
  margin-right: 12px;
  padding: 8px 12px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font: 700 .72rem/1 var(--mono);
  cursor: pointer;
}

textarea{
  min-height: 140px;
}

.login-modal-dialog{
  width: min(520px,100%);
  border: 1px solid var(--fg);
  border-radius: 0;
  box-shadow: 10px 10px 0 var(--fg);
  padding: clamp(24px,5vw,48px);
  transform: translateY(20px);
  transition: transform .5s var(--ease-editorial);
}

.login-modal-close{
  top: 10px;
  right: 10px;
  width: 46px;
  height: 46px;
  border-color: var(--fg);
  border-radius: 50%;
}

.login-modal-title{
  max-width: 9ch;
  margin-bottom: 30px;
  font-family: var(--font);
  font-size: clamp(2.3rem,7vw,4.8rem);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.055em;
}

.account-page,
.admin-home,
.admin-system,
.admin-users-page,
.admin-user-detail{
  padding-top: clamp(44px,7vw,86px);
}

.account-stats,
.admin-metrics{
  border-color: var(--fg);
}

.account-stats article,
.admin-metrics a{
  background: var(--bg);
}

.account-nav{
  top: calc(var(--preheader-h) + var(--header-h) + 20px);
  padding: 0;
  border-color: var(--fg);
  background: transparent;
}

.account-nav a{
  padding: 12px;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}

.account-section,
.service-card,
.address-card,
.admin-workspace,
.admin-system-section,
.admin-user-row,
.admin-detail-card{
  border-color: var(--fg);
  background: transparent;
}

.admin-workspaces,
.admin-detail-grid,
.account-content,
.service-grid,
.address-grid{
  gap: 1px;
}

.admin-workspace,
.admin-detail-card,
.account-section,
.service-card,
.address-card{
  padding: clamp(18px,3vw,32px);
}

.admin-role-chips span,
.admin-role-chips button,
.admin-state,
.status-pill,
.pricing-badge{
  border-radius: 3px;
}

.table-wrap{
  max-width: 100%;
  overflow-x: auto;
}

.table{
  table-layout: fixed;
}

.table th,
.table td{
  overflow-wrap: anywhere;
}

/* Planes */
.pricing-section .lead{
  margin-bottom: clamp(52px,8vw,96px);
}

.pricing-grid{
  gap: 1px;
  border: 1px solid var(--fg);
  background: var(--fg);
}

.pricing-card{
  border: 0;
  background: var(--bg);
}

.pricing-card.is-highlight{
  transform: none;
  background: var(--fg);
  color: var(--bg);
}

.pricing-label{
  font-family: var(--font);
  font-weight: 500;
  letter-spacing: -.04em;
}

.pricing-badge{
  top: 14px;
}

/* Footer editorial */
.footer{
  padding: clamp(72px,10vw,136px) 0 34px;
  text-align: left;
}

.footer-inner{
  align-items: stretch;
  gap: clamp(30px,5vw,64px);
  text-align: left;
}

.footer-tagline{
  max-width: 12ch;
  font-family: var(--font);
  font-size: clamp(2.9rem,8vw,7.8rem);
  font-weight: 480;
  line-height: .86;
  letter-spacing: -.075em;
}

.footer-tagline::before,
.footer-tagline::after{
  display: none;
}

.footer-nav{
  justify-content: flex-start;
  gap: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.32);
}

.footer-nav a{
  min-height: 42px;
  padding: 10px 16px 10px 0;
  border-radius: 0;
  font: 700 .74rem/1.2 var(--mono);
}

.footer-nav a:hover,
.footer-nav a:focus-visible{
  background: transparent;
  opacity: .64;
  transform: translateX(4px);
}

.footer-copy{
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.18);
}

/* Banner de última publicación, en flujo y sin bloqueo. */
.marketing-banner[hidden]{ display:none; }

.marketing-banner{
  max-height: 0;
  overflow: clip;
  background: var(--fg);
  color: var(--bg);
  opacity: 0;
  transform: translateY(-12px);
  transition: max-height .8s var(--ease-editorial),opacity .45s ease,transform .7s var(--ease-editorial);
}

.marketing-banner.is-open{
  max-height: 980px;
  opacity: 1;
  transform: none;
}

.marketing-banner.is-closing{
  max-height: 0;
  opacity: 0;
  transform: translateY(-12px);
}

.marketing-banner-inner{
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px,1.1fr) minmax(260px,.9fr);
  gap: 1px;
  padding-top: clamp(24px,4vw,48px);
  padding-bottom: clamp(24px,4vw,48px);
}

.marketing-banner-visual{
  position: relative;
  display: block;
  height: clamp(420px,42vw,620px);
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.42);
}

.marketing-banner-visual img{
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  filter: grayscale(.35);
  transition: transform .8s var(--ease-editorial),filter .4s ease;
}

.marketing-banner-visual:hover img,
.marketing-banner-visual:focus-visible img{
  transform: scale(1.04);
  filter: grayscale(0);
}

.marketing-banner-index{
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(0,0,0,.65);
  color: #fff;
  font: 700 .68rem/1 var(--mono);
}

.marketing-banner-copy{
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(54px,6vw,82px) clamp(22px,4vw,52px) clamp(22px,4vw,52px);
  border-top: 1px solid rgba(255,255,255,.42);
  border-right: 1px solid rgba(255,255,255,.42);
  border-bottom: 1px solid rgba(255,255,255,.42);
}

.marketing-banner-eyebrow{
  margin-bottom: 18px;
  font: 700 .68rem/1.2 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .65;
}

.marketing-banner-title{
  margin: 0;
  font-size: clamp(2.5rem,5.5vw,5.9rem);
  font-weight: 480;
  line-height: .87;
  letter-spacing: -.065em;
}

.marketing-banner-text{
  margin-top: 20px;
  opacity: .68;
}

.marketing-banner-chip{
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: fit-content;
  min-height: 40px;
  margin-top: 22px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 999px;
  font: 700 .7rem/1 var(--mono);
}

.marketing-banner-chip::after{ content:"↗"; }

.marketing-banner-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.marketing-banner .btn{
  border-color: var(--bg);
  color: var(--bg);
}

.marketing-banner .btn:not(.btn-primary){
  background: transparent;
}

.marketing-banner .btn-primary{
  background: var(--bg);
  color: var(--fg);
}

.marketing-banner .btn:hover,
.marketing-banner .btn:focus-visible{
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.marketing-banner-close{
  position: absolute;
  top: 14px;
  right: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  font: 400 1.6rem/1 var(--font);
  cursor: pointer;
  transition: transform .35s var(--ease-editorial),background-color .2s ease,color .2s ease;
}

.marketing-banner-close:hover,
.marketing-banner-close:focus-visible{
  background: var(--bg);
  color: var(--fg);
  transform: rotate(90deg);
}

.marketing-banner-status{
  min-height: 1.2em;
  margin-top: 10px;
  font: 700 .67rem/1.3 var(--mono);
  opacity: .7;
}

/* Entrada progresiva */
.sp-reveal{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s var(--ease-editorial),transform .75s var(--ease-editorial);
  transition-delay: var(--sp-delay,0ms);
}

.sp-reveal.is-visible{
  opacity: 1;
  transform: none;
}

@media (max-width: 960px){
  .gallery-home-grid{
    grid-template-columns: 1fr;
  }

  .gallery-home-grid > div,
  .public-cover img{
    min-height: min(112vw,680px);
  }

  .public-cover{
    justify-self: stretch;
  }

  .lot-grid,
  .grid,
  .gallery-grid,
  .photo-grid{
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .marketing-banner-inner{
    grid-template-columns: 1fr;
  }

  .marketing-banner-copy{
    border-top: 0;
    border-left: 1px solid rgba(255,255,255,.42);
  }

  .account-layout{
    grid-template-columns: 1fr;
  }

  .account-nav{
    position: static;
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    overflow: visible;
  }

  .account-nav a{
    min-width: 0;
    white-space: normal;
  }

  .admin-detail-nav{
    flex-wrap: wrap;
    overflow: visible;
  }

  .admin-detail-nav a{
    min-width: 0;
    white-space: normal;
  }
}

@media (min-width: 961px){
  .gallery-home-grid > div,
  .public-cover,
  .public-cover img{
    height: clamp(380px,38vw,520px);
    min-height: 0;
  }
}

@media (max-width: 620px){
  html{ scrollbar-gutter:auto; }

  body.gallery-shell .container,
  body.gallery-shell .header-inner,
  body.gallery-shell .preheader-inner{
    width: calc(100vw - 22px);
  }

  .site-header{
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .logo{
    width: min(62vw,220px);
  }

  .logo img{
    max-height: 42px;
  }

  .site-nav{
    padding: 8px 11px 14px;
    background: var(--bg);
    box-shadow: none;
  }

  .site-nav a{
    min-height: 48px;
    padding: 13px 4px;
    border-bottom: 1px solid var(--border);
  }

  .site-nav a::after{ display:none; }

  .hero,
  .section{
    padding-top: 52px;
  }

  .page-title{
    font-size: clamp(3rem,17vw,5.4rem);
  }

  .gallery-home-grid > div,
  .public-cover img{
    min-height: min(135vw,620px);
  }

  .gallery-home-grid > div{
    padding: 22px 16px;
  }

  .gallery-top{
    align-items: stretch;
  }

  .lot-grid,
  .grid,
  .gallery-grid,
  .photo-grid{
    grid-template-columns: 1fr;
  }

  .shop-banner{
    grid-template-columns: 1fr;
  }

  .shop-banner img{
    height: min(100vw,430px);
    border-right: 0;
    border-bottom: 1px solid var(--fg);
  }

  .shop-banner em{
    display: flex;
    justify-content: center;
    margin: 0 16px 16px;
    white-space: normal;
  }

  .inline-form,
  .account-form-grid,
  .service-grid,
  .address-grid,
  .account-content,
  .admin-grid,
  .admin-detail-grid,
  .admin-workspaces{
    grid-template-columns: 1fr !important;
  }

  .account-layout{
    grid-template-columns: 1fr;
  }

  .account-nav{
    position: static;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .account-nav a{
    white-space: normal;
  }

  .account-stats,
  .admin-metrics{
    grid-template-columns: 1fr;
  }

  .account-stats article,
  .admin-metrics a{
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .table,
  .table tbody,
  .table tr,
  .table td{
    display: block;
    width: 100%;
  }

  .table thead{
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .table tr{
    padding: 12px 0;
    border-bottom: 1px solid var(--fg);
  }

  .table td{
    padding: 7px 0;
    border: 0;
  }

  .login-modal{
    align-items: flex-end;
    padding: 10px;
  }

  .login-modal-dialog{
    max-height: calc(100dvh - 20px);
    box-shadow: 5px 5px 0 var(--fg);
  }

  .footer-tagline{
    font-size: clamp(2.7rem,15vw,5rem);
  }

  .footer-nav{
    display: grid;
    grid-template-columns: 1fr;
  }

  .footer-nav a{
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.16);
  }

  .marketing-banner-inner{
    width: calc(100vw - 22px);
  }

  .marketing-banner.is-open{
    max-height: 1800px;
  }

  .marketing-banner-visual{
    height: min(118vw,520px);
    min-height: 0;
  }

  .marketing-banner-copy{
    padding: 28px 16px;
  }

  .marketing-banner-title{
    font-size: clamp(2.6rem,14vw,4.7rem);
  }

  .marketing-banner-actions{
    display: grid;
  }

  .marketing-banner-actions .btn{
    width: 100%;
  }
}

@media (max-width: 360px){
  .ph-button{
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .logo{
    width: min(56vw,184px);
  }

  .btn{
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .sp-reveal{ opacity:1; transform:none; }
  .marketing-banner,
  .marketing-banner-close,
  .marketing-banner-visual img{
    transition:none !important;
  }
}

/* ================================================================
   Ajuste de densidad y tipografÃ­a. La portada mÃ³vil se mantiene tal
   como estaba; esta capa actÃºa solo desde tablet/escritorio.
   ================================================================ */
.account-icon-set{
  position: static !important;
  display: inline-grid;
  place-items: center;
  width: 19px !important;
  height: 19px !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
}

.user-brutal,
.theme-toggle-art{
  display: none;
}

@keyframes gallery-title-wave{
  0%{
    opacity: 0;
    transform: translateY(var(--title-y)) rotate(var(--title-tilt));
  }
  62%{
    opacity: 1;
    transform: translateY(.025em) rotate(0deg);
  }
  100%{
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}

@media (min-width: 621px){
  .logo{
    width: clamp(290px,32vw,460px);
    flex: 0 0 auto;
    overflow: visible;
  }

  .logo img{
    max-height: 78px;
  }

  .site-nav a{
    min-height: 42px;
    padding: 10px 12px;
    font-size: clamp(.84rem,.8rem + .1vw,.92rem);
    letter-spacing: .015em;
  }

  .account-link--icon-only{
    display: inline-grid;
    place-items: center;
    width: 42px;
    min-width: 42px;
    padding: 0;
    border: 1px solid currentColor;
  }

  .account-link--icon-only::after{
    display: none;
  }

  .account-link .user-pixel{
    display: none;
  }

  .account-link .account-icon-set{
    width: 23px !important;
    height: 23px !important;
  }

  .account-link .user-brutal{
    display: block;
    width: 23px;
    height: 23px;
  }

  .user-brutal-outline{
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: square;
    stroke-linejoin: miter;
    vector-effect: non-scaling-stroke;
  }

  .theme-toggle{
    display: grid;
    place-items: center;
    width: 38px;
    height: 28px;
    min-height: 28px;
    padding: 3px 7px;
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 0;
    opacity: 1;
    transition: color .18s ease,background-color .18s ease;
  }

  .theme-toggle:hover,
  .theme-toggle:focus-visible{
    background: #fff;
    color: #000;
    outline: 0;
  }

  .theme-toggle-legacy{
    display: none;
  }

  .theme-toggle-art{
    display: block;
    width: 20px;
    height: 20px;
  }

  .theme-toggle-art svg{
    width: 20px;
    height: 20px;
    fill: currentColor;
    shape-rendering: crispEdges;
  }

  .theme-art-sun,
  [data-theme="dark"] .theme-art-moon{
    display: none;
  }

  [data-theme="dark"] .theme-art-sun{
    display: block;
  }

  .hero,
  .section{
    padding: clamp(30px,4vw,54px) 0 clamp(38px,5vw,66px);
  }

  .page-title{
    max-width: 15ch;
    margin-bottom: clamp(14px,2vw,24px);
    font-family: var(--mono);
    font-size: clamp(3rem,6.4vw,6.6rem);
    font-weight: 900;
    line-height: .88;
    letter-spacing: -.075em;
    text-wrap: wrap;
  }

  .page-title.is-title-long{
    max-width: 22ch;
    font-size: clamp(2.35rem,4.7vw,4.8rem);
    line-height: .93;
    letter-spacing: -.065em;
  }

  body.gallery-shell .page-title.is-wave-title{
    display: block;
  }

  body.gallery-shell .page-title > .title-char{
    display: inline-block;
    animation: gallery-title-wave 620ms cubic-bezier(.22,1,.36,1) both;
    animation-delay: var(--title-delay,0ms);
    will-change: transform,opacity;
  }

  body.gallery-shell .page-title > .title-char--space{
    width: .55ch;
    overflow: hidden;
  }

  .gallery-top{
    margin-bottom: clamp(22px,3.5vw,42px);
  }

  .gallery-home{
    min-height: 0;
    align-items: start;
  }

  .gallery-home-grid > div{
    min-height: clamp(340px,38vw,520px);
    padding: clamp(22px,3.5vw,46px);
  }

  .gallery-home-menu{
    margin-top: clamp(24px,4vw,48px);
  }

  .public-cover img{
    min-height: clamp(340px,38vw,520px);
  }

  .photo-column{
    gap: clamp(24px,4.5vw,58px);
  }

  .account-page,
  .admin-home,
  .admin-system,
  .admin-users-page,
  .admin-user-detail{
    padding-top: clamp(28px,4vw,54px);
  }

  .footer{
    padding: clamp(32px,4vw,52px) 0 24px;
  }

  .footer-inner{
    gap: clamp(18px,2.5vw,30px);
  }

  .footer-tagline{
    max-width: none;
    font-family: var(--mono);
    font-size: clamp(1.05rem,1.5vw,1.35rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: .055em;
  }

  .marketing-banner.is-open{
    max-height: 760px;
  }

  .marketing-banner-inner{
    padding-top: clamp(18px,2.5vw,30px);
    padding-bottom: clamp(18px,2.5vw,30px);
  }

  .marketing-banner-visual{
    height: clamp(300px,31vw,460px);
  }

  .marketing-banner-copy{
    padding: clamp(42px,4vw,62px) clamp(18px,3vw,38px) clamp(18px,3vw,38px);
  }

  .marketing-banner-title{
    font-family: var(--mono);
    font-size: clamp(2.1rem,4.2vw,4.2rem);
    font-weight: 900;
    line-height: .92;
    letter-spacing: -.06em;
  }

  .marketing-banner-text{
    margin-top: 14px;
  }

  .marketing-banner-actions{
    margin-top: 18px;
  }
}

@media (min-width: 621px) and (max-width: 960px){
  .gallery-home-grid > div{
    min-height: 300px;
  }

  .public-cover img{
    height: min(56vw,420px);
    min-height: 0;
  }
}

/* Ãšnico ajuste solicitado para la cabecera mÃ³vil: misma escala de marca. */
@media (max-width: 620px){
  .logo{
    width: clamp(210px,56vw,300px);
  }

  .logo img{
    width: auto;
    max-height: 78px;
  }
}

@media (min-width: 621px) and (prefers-reduced-motion: reduce){
  body.gallery-shell .page-title > .title-char{
    display: inline-block;
    opacity: 1;
    transform: none;
    animation: none;
    will-change: auto;
  }
}
