:root {
  --carbon: #070709;
  --graphite: #121218;
  --panel: rgba(22, 22, 30, 0.82);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f8f7fb;
  --muted: rgba(248, 247, 251, 0.64);
  --soft: rgba(248, 247, 251, 0.44);
  --amber: #ff8a2a;
  --coral: #ff3d54;
  --fuchsia: #e13dff;
  --blue: #31a8ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 61, 84, .17), transparent 28rem),
    radial-gradient(circle at 86% 4%, rgba(49, 168, 255, .15), transparent 30rem),
    linear-gradient(180deg, var(--carbon), #101015 48%, var(--carbon));
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
  padding-bottom: 0;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
input, textarea, select, button { font: inherit; }

.site-header {
  align-items: center;
  background: rgba(7, 7, 9, .82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin: 0 auto;
  padding: 13px clamp(16px, 4vw, 52px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header::after {
  background: linear-gradient(90deg, transparent, rgba(255, 138, 42, .42), rgba(225, 61, 255, .35), transparent);
  bottom: -1px;
  content: "";
  height: 1px;
  left: 18%;
  position: absolute;
  right: 18%;
}
.brand { align-items: center; display: flex; gap: 12px; }
.brand img, .site-footer img, .install-card img { border-radius: 8px; height: 44px; object-fit: contain; width: 44px; }
.brand strong, .brand small { display: block; line-height: 1.1; }
.brand small { color: var(--soft); font-size: 12px; margin-top: 4px; }
.top-nav { align-items: center; display: flex; flex-wrap: wrap; gap: 4px; justify-content: end; }
.top-nav a {
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  padding: 10px 12px;
}
.top-nav a:hover, .nav-cta { background: rgba(255,255,255,.08); color: white; }
.mobile-dock {
  display: none;
}
.nav-cta, .button {
  background: linear-gradient(120deg, var(--amber), var(--coral), var(--fuchsia));
  border: 0;
  border-radius: 8px;
  color: white !important;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
}
.button.ghost { background: rgba(255,255,255,.1); }
.button { transition: transform .18s ease, filter .18s ease, box-shadow .18s ease; }
.button:hover { box-shadow: 0 18px 42px rgba(255, 61, 84, .22); filter: brightness(1.06); transform: translateY(-2px); }

.hero {
  min-height: 82vh;
  overflow: hidden;
  position: relative;
}
.hero-bg {
  background:
    linear-gradient(90deg, rgba(7,7,9,.96), rgba(7,7,9,.55), rgba(7,7,9,.88)),
    url("https://images.unsplash.com/photo-1492684223066-81342ee5ff30?auto=format&fit=crop&w=2200&q=82") center/cover;
  inset: 0;
  position: absolute;
}
.hero-inner {
  margin: 0 auto;
  max-width: 960px;
  padding: clamp(90px, 13vw, 150px) clamp(18px, 5vw, 70px);
  position: relative;
  z-index: 2;
}
.art-hero { min-height: 92vh; }
.hero-logo {
  animation: floatLogo 5s ease-in-out infinite;
  filter: drop-shadow(0 24px 60px rgba(255, 61, 84, .34));
  height: clamp(92px, 12vw, 154px);
  margin-bottom: 24px;
  object-fit: contain;
  width: clamp(92px, 12vw, 154px);
}
.motion-orbit { inset: 0; pointer-events: none; position: absolute; z-index: 1; }
.motion-orbit span {
  animation: drift 12s ease-in-out infinite;
  background: linear-gradient(120deg, rgba(255, 138, 42, .28), rgba(225, 61, 255, .18), rgba(49, 168, 255, .22));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  height: 180px;
  position: absolute;
  width: 180px;
}
.motion-orbit span:nth-child(1) { left: 8%; top: 22%; }
.motion-orbit span:nth-child(2) { animation-delay: -4s; right: 12%; top: 16%; transform: scale(.72); }
.motion-orbit span:nth-child(3) { animation-delay: -8s; bottom: 14%; right: 28%; transform: scale(.48); }
.eyebrow {
  background: linear-gradient(120deg, var(--amber), var(--coral), var(--fuchsia), var(--blue));
  background-clip: text;
  color: transparent;
  font-size: 13px;
  font-weight: 900;
  margin: 0 0 14px;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(42px, 7vw, 94px); letter-spacing: 0; line-height: .96; margin-bottom: 22px; }
h2 { font-size: clamp(28px, 4vw, 56px); letter-spacing: 0; line-height: 1; }
h3 { font-size: 22px; }
.hero p, .lead { color: rgba(255,255,255,.72); font-size: 19px; line-height: 1.65; max-width: 760px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-start; margin: 28px 0 8px; }

.search-box {
  align-items: center;
  background: rgba(255,255,255,.1);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
  margin-top: 28px;
  max-width: 760px;
  padding: 10px;
}
.search-box.compact { margin: 20px 0 34px; max-width: none; }
.search-box input {
  background: transparent;
  border: 0;
  color: white;
  min-height: 46px;
  outline: 0;
  padding: 0 12px;
}
.search-box button { min-height: 46px; }

.section { margin-inline: auto; max-width: 1240px; padding: 70px clamp(18px, 4vw, 52px); }
.section > .section-heading,
.section > h1,
.section > .lead {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.page-top { padding-top: 52px; }
.section-heading { margin-bottom: 30px; max-width: 860px; }
.compact-heading { max-width: 680px; }
.emotional-strip {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: -54px;
  position: relative;
  z-index: 4;
}
.emotional-strip article {
  animation: riseIn .7s ease both;
  background: rgba(22, 22, 30, .86);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0,0,0,.32);
  padding: 22px;
}
.emotional-strip article:nth-child(2) { animation-delay: .08s; }
.emotional-strip article:nth-child(3) { animation-delay: .16s; }
.emotional-strip strong { display: block; font-size: 21px; margin-bottom: 10px; }
.emotional-strip p { color: var(--muted); line-height: 1.55; margin-bottom: 0; }
.benefit-grid, .album-grid, .panel-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.benefit-grid article, .panel-card, .empty-state, .visual-panel, .auth-card, .install-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
  padding: 24px;
}
.benefit-grid strong { display: block; font-size: 22px; margin-bottom: 10px; }
.benefit-grid p, .muted, .empty-state p, .visual-panel span { color: var(--muted); line-height: 1.6; }
.empty-state { text-align: center; }

.album-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.album-card {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease;
}
.album-card:hover { border-color: rgba(255,255,255,.28); transform: translateY(-3px); }
.album-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.album-card div { padding: 16px; }
.album-card span { color: var(--soft); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.album-card h3 { margin: 8px 0; }
.album-card p { color: var(--muted); margin-bottom: 0; }
.art-grid .album-card:nth-child(1) { grid-column: span 2; }
.art-card { animation: riseIn .65s ease both; }
.art-card img { transition: transform .7s ease, filter .7s ease; }
.art-card:hover img { filter: saturate(1.12) contrast(1.04); transform: scale(1.055); }
.poetic-empty img { height: 96px; margin: 0 auto 16px; object-fit: contain; width: 96px; }
.final-cta {
  align-items: center;
  background:
    linear-gradient(120deg, rgba(255, 138, 42, .13), rgba(225, 61, 255, .13), rgba(49, 168, 255, .12)),
    rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 72px;
}
.final-cta h2 { margin-bottom: 0; }

.split { align-items: center; display: grid; gap: 34px; grid-template-columns: 1fr .7fr; }
.visual-panel { min-height: 260px; display: grid; place-items: center; text-align: center; }
.visual-panel img { height: 96px; width: 96px; }
.visual-panel strong { font-size: 30px; }

.auth-page, .install-body { min-height: 80vh; display: grid; place-items: center; padding: 36px 18px; }
.auth-card, .install-card { max-width: 620px; width: 100%; }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
label { color: rgba(255,255,255,.78); display: grid; font-size: 14px; font-weight: 700; gap: 8px; }
input, textarea, select {
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: white;
  min-height: 44px;
  outline: 0;
  padding: 10px 12px;
}
textarea { min-height: 110px; resize: vertical; }
option { background: var(--graphite); }
.wide { grid-column: 1 / -1; }
.simple-panel .section-heading {
  max-width: 980px;
}
.upload-card {
  border-color: rgba(255, 138, 42, .28);
  margin-bottom: 22px;
}
.drop-zone {
  background: rgba(255, 255, 255, .05);
  border: 1px dashed rgba(255, 255, 255, .24);
  border-radius: 8px;
  padding: 18px;
}
.drop-zone input {
  background: transparent;
  border: 0;
  padding-left: 0;
}
.drop-zone span {
  color: var(--soft);
  font-size: 13px;
  font-weight: 400;
}
.catalog-list {
  display: grid;
  gap: 10px;
}
.catalog-row {
  align-items: center;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr auto;
  padding: 14px;
}
.catalog-row strong,
.catalog-row span {
  display: block;
}
.catalog-row span {
  color: var(--soft);
  font-size: 13px;
  margin-top: 5px;
}

.flash {
  border-radius: 8px;
  left: 50%;
  padding: 12px 16px;
  position: fixed;
  top: 82px;
  transform: translateX(-50%);
  z-index: 50;
}
.flash.ok, .success { background: rgba(16,185,129,.16); color: #86efac; }
.flash.warn { background: rgba(245,158,11,.16); color: #fcd34d; }
.flash.error, .error { background: rgba(255,61,84,.16); color: #ff8fa0; }

.album-hero {
  display: grid;
  grid-template-columns: .9fr 1fr;
  min-height: 560px;
}
.album-hero > img { height: 100%; object-fit: cover; width: 100%; }
.album-hero > div { align-self: center; padding: clamp(28px, 5vw, 70px); }
.gallery {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.gallery.small { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.photo-card {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.photo-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.photo-card div { display: grid; gap: 8px; padding: 12px; }
.photo-card span { color: var(--amber); font-weight: 800; }
.mini-button {
  background: rgba(255,255,255,.1);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: white;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  min-height: 34px;
  padding: 8px 11px;
}
.mini-button.danger { color: #ff8fa0; }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { border-bottom: 1px solid var(--line); padding: 12px; text-align: left; }
th { color: var(--soft); font-size: 12px; text-transform: uppercase; }
.cart-layout { display: grid; gap: 22px; grid-template-columns: 1fr 360px; }
.cart-item, .admin-row {
  align-items: center;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: 86px 1fr auto auto;
  margin-bottom: 10px;
  padding: 10px;
}
.cart-item img { aspect-ratio: 1; border-radius: 8px; object-fit: cover; }
.cart-item span, .admin-row small { color: var(--soft); display: block; margin-top: 4px; }
.admin-row { grid-template-columns: 1fr auto; }
.admin-row form { display: flex; gap: 8px; }

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  gap: 14px;
  justify-content: center;
  padding: 28px;
}

.page-top .search-box.compact {
  margin-left: auto;
  margin-right: auto;
  max-width: 820px;
}

.panel-card {
  margin-left: auto;
  margin-right: auto;
  max-width: 980px;
  width: 100%;
}

.panel-grid .panel-card {
  max-width: none;
}

.simple-panel .upload-card {
  max-width: 1040px;
}

.simple-panel > .panel-card:not(.upload-card) {
  max-width: 880px;
}

.auth-card p {
  text-align: center;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

@keyframes drift {
  0%, 100% { opacity: .42; transform: translate3d(0, 0, 0) scale(.8); }
  50% { opacity: .72; transform: translate3d(22px, -18px, 0) scale(1); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 920px) {
  body { padding-bottom: 76px; }
  .site-header {
    align-items: center;
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px;
    text-align: center;
  }
  .brand {
    justify-content: center;
  }
  .brand img {
    height: 54px;
    width: 54px;
  }
  .top-nav {
    justify-content: center;
  }
  .top-nav a {
    font-size: 13px;
    padding: 8px 10px;
  }
  .mobile-dock {
    align-items: center;
    background: rgba(7, 7, 9, .9);
    backdrop-filter: blur(18px);
    border: 1px solid var(--line);
    border-radius: 16px;
    bottom: 12px;
    box-shadow: 0 18px 60px rgba(0,0,0,.38);
    display: grid;
    gap: 4px;
    left: 12px;
    padding: 7px;
    position: fixed;
    right: 12px;
    z-index: 80;
  }
  .mobile-dock.is-guest { grid-template-columns: repeat(3, 1fr); }
  .mobile-dock.is-logged { grid-template-columns: repeat(4, 1fr); }
  .mobile-dock a {
    border-radius: 12px;
    color: rgba(255,255,255,.76);
    font-size: 12px;
    font-weight: 800;
    padding: 10px 8px;
    text-align: center;
  }
  .mobile-dock a:first-child {
    background: linear-gradient(120deg, rgba(255,138,42,.28), rgba(225,61,255,.22));
    color: white;
  }
  .art-hero {
    min-height: auto;
  }
  .hero-bg {
    background:
      linear-gradient(180deg, rgba(7,7,9,.82), rgba(7,7,9,.96)),
      url("https://images.unsplash.com/photo-1492684223066-81342ee5ff30?auto=format&fit=crop&w=1400&q=80") center/cover;
  }
  .hero-inner {
    display: grid;
    justify-items: center;
    padding: 58px 18px 44px;
    text-align: center;
  }
  .hero-logo {
    height: 104px;
    width: 104px;
  }
  .hero p {
    font-size: 16px;
    line-height: 1.55;
  }
  .hero-actions {
    justify-content: center;
    width: 100%;
  }
  .hero-actions .button {
    flex: 1 1 150px;
  }
  .search-box {
    grid-template-columns: 1fr;
    max-width: 520px;
    width: 100%;
  }
  .search-box input {
    text-align: center;
  }
  .benefit-grid, .album-grid, .panel-grid, .split, .album-hero, .cart-layout { grid-template-columns: 1fr; }
  .emotional-strip {
    grid-template-columns: 1fr;
    margin-top: 0;
    padding-top: 30px;
  }
  .emotional-strip article {
    margin-inline: auto;
    max-width: 560px;
    text-align: center;
  }
  .art-grid .album-card:nth-child(1) { grid-column: auto; }
  .final-cta { align-items: flex-start; flex-direction: column; }
  .gallery, .gallery.small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .section {
    padding: 44px 16px;
  }
  .page-top {
    padding-top: 34px;
  }
  .search-box, .form-grid, .gallery, .gallery.small, .cart-item, .admin-row, .catalog-row { grid-template-columns: 1fr; }
  h1 { font-size: 38px; line-height: 1; }
  h2 { font-size: 30px; }
  .album-card,
  .panel-card,
  .auth-card,
  .empty-state,
  .visual-panel {
    margin-inline: auto;
    max-width: 520px;
    width: 100%;
  }
  .photo-card div,
  .album-card div {
    text-align: center;
  }
  .cart-item {
    text-align: center;
  }
  .cart-item img {
    margin: 0 auto;
    width: 120px;
  }
  .final-cta {
    text-align: center;
  }
  .final-cta .button {
    width: 100%;
  }
}

/* Renovación visual y panel de administración del fotógrafo */
:root {
  --cream: #fff8f2;
  --warm-line: rgba(255, 196, 156, .2);
  --warm-panel: rgba(25, 22, 31, .88);
}
body { background: radial-gradient(circle at 12% 5%, rgba(255, 111, 76, .2), transparent 28rem), radial-gradient(circle at 88% 12%, rgba(120, 92, 255, .18), transparent 34rem), linear-gradient(180deg, #09080c, #121019 52%, #08070a); }
.site-header { box-shadow: 0 10px 40px rgba(0,0,0,.28); }
.button, .nav-cta { border-radius: 14px; box-shadow: 0 12px 30px rgba(255,61,84,.16); }
.button.ghost { border: 1px solid rgba(255,255,255,.18); box-shadow: none; }
.hero-bg { background: linear-gradient(90deg, rgba(7,7,9,.98) 0%, rgba(7,7,9,.7) 48%, rgba(7,7,9,.54) 100%), url("https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=2200&q=86") center/cover; }
.hero-inner { max-width: 1120px; }
.hero h1 { max-width: 900px; text-wrap: balance; }
.hero p { color: rgba(255,255,255,.82); }
.search-box { background: rgba(15,13,20,.72); border-radius: 18px; box-shadow: 0 24px 80px rgba(0,0,0,.25); }
.search-box button { border: 0; border-radius: 12px; font-weight: 900; padding-inline: 22px; }
.emotional-strip article { border-radius: 22px; padding: 28px; position: relative; overflow: hidden; }
.emotional-strip article::before { background: radial-gradient(circle, rgba(255,138,42,.18), transparent 68%); content:""; height:160px; position:absolute; right:-50px; top:-70px; width:160px; }
.feature-icon { color: var(--amber); display:block; font-size:12px; font-weight:900; letter-spacing:.18em; margin-bottom:18px; }
.story-section { padding-bottom: 22px; }
.album-card { border-radius: 20px; box-shadow: 0 18px 55px rgba(0,0,0,.22); }
.album-image-wrap { padding: 0 !important; position: relative; overflow: hidden; }
.album-image-wrap .view-story { background: rgba(7,7,9,.76); border:1px solid rgba(255,255,255,.2); border-radius:999px; bottom:16px; color:#fff; opacity:0; padding:9px 14px; position:absolute; right:16px; transform:translateY(8px); transition:.25s ease; }
.album-card:hover .view-story { opacity:1; transform:translateY(0); }
.warm-cta { border-radius: 26px; padding: clamp(28px, 5vw, 58px); }
.warm-cta p:not(.eyebrow) { color: var(--muted); line-height: 1.6; margin: 12px 0 0; max-width: 720px; }

.creator-dashboard { max-width: 1320px; }
.dashboard-heading { max-width: 980px; }
.creator-card, .library-card, .editor-card, .sales-card { border-radius: 24px; background: linear-gradient(145deg, rgba(28,25,35,.94), rgba(17,15,23,.92)); box-shadow: 0 26px 80px rgba(0,0,0,.3); }
.creator-card { border-color: rgba(255,138,42,.32); max-width: 1120px !important; }
.library-card, .editor-card, .sales-card { max-width: 1120px !important; }
.card-heading { align-items:flex-start; display:flex; gap:24px; justify-content:space-between; margin-bottom:24px; }
.card-heading h2 { font-size: clamp(26px, 3vw, 40px); margin: 8px 0 0; }
.card-heading > p { color:var(--muted); line-height:1.6; max-width:520px; }
.compact-card-heading { align-items:end; }
.step-pill { background:rgba(255,138,42,.12); border:1px solid rgba(255,138,42,.24); border-radius:999px; color:#ffb06e; display:inline-flex; font-size:11px; font-weight:900; letter-spacing:.12em; padding:7px 10px; text-transform:uppercase; }
.creator-dashboard input, .creator-dashboard textarea, .creator-dashboard select { background:rgba(255,255,255,.055); border-radius:12px; transition:border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.creator-dashboard input:focus, .creator-dashboard textarea:focus, .creator-dashboard select:focus { background:rgba(255,255,255,.08); border-color:rgba(255,138,42,.58); box-shadow:0 0 0 4px rgba(255,138,42,.08); }
.creator-dashboard .drop-zone { border-radius:16px; }
.catalog-row { border-radius:16px; padding:18px; transition:.2s ease; }
.catalog-row:hover, .catalog-row.is-active { background:rgba(255,255,255,.075); border-color:rgba(255,138,42,.34); }
.catalog-actions { display:flex; flex-wrap:wrap; gap:8px; }
.mini-button { border-radius:10px; text-decoration:none; }
.mini-button.primary { background:linear-gradient(120deg, rgba(255,138,42,.95), rgba(255,61,84,.95)); border:0; }
.soft-empty { background:rgba(255,255,255,.04); border:1px dashed rgba(255,255,255,.16); border-radius:16px; color:var(--muted); padding:22px; text-align:center; }
.editor-card { margin-top: 24px; }
.editor-divider { background:var(--line); height:1px; margin:32px 0; }
.add-photo-box { align-items:end; display:grid; gap:14px; grid-template-columns:1fr auto; margin-bottom:28px; }
.photo-manager { display:grid; gap:16px; grid-template-columns:repeat(2, minmax(0,1fr)); }
.photo-editor { background:rgba(255,255,255,.045); border:1px solid var(--line); border-radius:18px; overflow:hidden; transition:.2s ease; }
.photo-editor:hover { border-color:rgba(255,255,255,.26); transform:translateY(-2px); }
.photo-editor.is-hidden { opacity:.72; }
.photo-preview-wrap { min-height:210px; padding:0 !important; position:relative; }
.photo-preview-wrap img { height:100%; inset:0; object-fit:cover; position:absolute; width:100%; }
.cover-badge, .hidden-badge { backdrop-filter:blur(10px); background:rgba(7,7,9,.72); border:1px solid rgba(255,255,255,.18); border-radius:999px; color:#fff; font-size:11px; font-weight:900; left:12px; padding:7px 10px; position:absolute; top:12px; }
.hidden-badge { left:auto; right:12px; }
.photo-edit-form { display:grid; gap:12px; grid-template-columns:1fr 110px; padding:16px; }
.photo-edit-form label:first-of-type { grid-column:1 / -1; }
.photo-edit-form label:nth-of-type(3) { grid-column:1 / -1; }
.photo-edit-form .mini-button { grid-column:1 / -1; }
.photo-secondary-actions { display:flex !important; gap:8px !important; justify-content:space-between; padding:0 16px 16px !important; }
.photo-secondary-actions form { margin:0; }
.danger-zone { align-items:center; background:rgba(255,61,84,.06); border:1px solid rgba(255,61,84,.2); border-radius:18px; display:flex; gap:20px; justify-content:space-between; margin-top:34px; padding:20px; }
.danger-zone p { color:var(--muted); margin:6px 0 0; max-width:720px; }
.sale-line { align-items:center; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; margin:0; padding:14px 0; }
.sale-line span { color:var(--muted); }

@media (max-width: 920px) {
  .hero-bg { background: linear-gradient(180deg, rgba(7,7,9,.76), rgba(7,7,9,.98)), url("https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=1400&q=82") center/cover; }
  .photo-manager { grid-template-columns:1fr; }
}
@media (max-width: 700px) {
  .card-heading, .danger-zone { align-items:stretch; flex-direction:column; }
  .add-photo-box { grid-template-columns:1fr; }
  .catalog-actions { width:100%; }
  .catalog-actions .mini-button { flex:1; }
  .photo-edit-form { grid-template-columns:1fr; }
  .photo-edit-form label, .photo-edit-form label:first-of-type, .photo-edit-form label:nth-of-type(3), .photo-edit-form .mini-button { grid-column:auto; }
  .photo-secondary-actions { flex-direction:column; }
  .photo-secondary-actions form, .photo-secondary-actions button { width:100%; }
  .sale-line { align-items:flex-start; flex-direction:column; gap:5px; }
}

/* Versión simplificada, visual y con navegación separada para fotógrafos */
.title-accent {
  background: linear-gradient(100deg, #ffb15f, #ff5d6c 48%, #b777ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.refined-hero { min-height: 88vh; }
.refined-hero .hero-inner { max-width: 1040px; }
.refined-hero h1 { font-size: clamp(46px, 7vw, 88px); max-width: 920px; }
.refined-hero .hero-logo { animation: floatLogo 5s ease-in-out infinite, softGlow 3.4s ease-in-out infinite; }
.hero-search { animation: riseIn .75s .16s both; max-width: 820px; }
.search-action, .main-action {
  background: linear-gradient(115deg, #ff9a3d, #ff435e 54%, #9c5cff);
  box-shadow: 0 16px 42px rgba(255, 67, 94, .28);
  color: #fff;
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}
.search-action:hover, .main-action:hover {
  box-shadow: 0 22px 55px rgba(255, 67, 94, .38);
  filter: brightness(1.08);
  transform: translateY(-3px) scale(1.015);
}
.search-action span, .main-action span { display: inline-block; margin-left: 7px; transition: transform .2s ease; }
.search-action:hover span, .main-action:hover span { transform: translateX(4px); }
.secondary-actions { align-items: center; margin-top: 18px; }
.text-link { color: rgba(255,255,255,.82); font-weight: 800; padding: 12px 8px; }
.text-link:hover { color: #fff; }
.clean-steps article { min-height: 170px; transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease; }
.clean-steps article:hover { border-color: rgba(255,138,42,.34); box-shadow: 0 28px 70px rgba(0,0,0,.38); transform: translateY(-7px); }
.featured-section { padding-top: 54px; }
.simple-cta { margin-top: 10px; }

.creator-shortcuts {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 220px));
  justify-content: center;
  margin: 0 auto 42px;
}
.shortcut {
  align-items: center;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  gap: 4px 10px;
  grid-template-columns: 34px 1fr auto;
  min-height: 70px;
  padding: 13px 16px;
  transition: transform .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.shortcut > span { color: #ff9d50; font-size: 25px; grid-row: 1 / 3; }
.shortcut strong { font-size: 15px; }
.shortcut small { background: rgba(255,255,255,.1); border-radius: 999px; color: #fff; padding: 4px 8px; }
.shortcut:hover { background: rgba(255,255,255,.075); border-color: rgba(255,138,42,.35); transform: translateY(-3px); }
.shortcut.is-active {
  background: linear-gradient(125deg, rgba(255,138,42,.19), rgba(255,61,84,.13), rgba(156,92,255,.13));
  border-color: rgba(255,138,42,.42);
  box-shadow: 0 16px 45px rgba(0,0,0,.24);
}
.upload-page, .albums-page { max-width: 1220px; }
.upload-page .dashboard-heading, .albums-page .dashboard-heading { margin-bottom: 34px; }
.upload-page .dashboard-heading h1, .albums-page .dashboard-heading h1 { max-width: 920px; }
.simplified-card { max-width: 1020px !important; overflow: hidden; padding: clamp(22px, 4vw, 40px); }
.upload-form { gap: 18px; }
.form-section-title {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 14px;
  margin-top: 12px;
  padding: 8px 0 16px;
}
.form-section-title:first-of-type { margin-top: 0; }
.form-section-title > span {
  align-items: center;
  background: linear-gradient(125deg, #ff9a3d, #ff435e);
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(255,67,94,.25);
  display: inline-flex;
  flex: 0 0 36px;
  font-weight: 900;
  height: 36px;
  justify-content: center;
}
.form-section-title strong, .form-section-title small { display: block; }
.form-section-title strong { font-size: 19px; }
.form-section-title small { color: var(--muted); margin-top: 3px; }
.visual-drop {
  align-items: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 190px;
  text-align: center;
  transition: background .22s ease, border-color .22s ease, transform .22s ease;
}
.visual-drop:hover { background: rgba(255,138,42,.075); border-color: rgba(255,138,42,.52); transform: translateY(-2px); }
.visual-drop b { font-size: 18px; margin-top: 8px; }
.visual-drop input { max-width: 520px; width: 100%; }
.quick-upload { margin-top: 12px; }
.albums-page .library-card { margin-top: 0; }
.albums-page .catalog-row { animation: riseIn .5s ease both; }
.albums-page .catalog-row:nth-child(2) { animation-delay: .04s; }
.albums-page .catalog-row:nth-child(3) { animation-delay: .08s; }
.albums-page .catalog-row:nth-child(4) { animation-delay: .12s; }

@keyframes softGlow {
  0%, 100% { filter: drop-shadow(0 18px 42px rgba(255,61,84,.24)); }
  50% { filter: drop-shadow(0 24px 62px rgba(156,92,255,.42)); }
}

@media (max-width: 700px) {
  .creator-shortcuts { grid-template-columns: 1fr 1fr; margin-bottom: 30px; }
  .shortcut { grid-template-columns: 28px 1fr auto; padding: 11px 12px; }
  .shortcut > span { font-size: 21px; }
  .shortcut strong { font-size: 13px; }
  .refined-hero h1 { font-size: 42px; }
  .secondary-actions { flex-direction: column; }
  .visual-drop { min-height: 160px; }
}

/* Ajuste final: navegación única, jerarquía clara y animaciones sutiles */
:root {
  --header-height: 78px;
  --content-width: 1280px;
}

html { scroll-padding-top: calc(var(--header-height) + 24px); }
body { padding-bottom: 0 !important; }
.mobile-dock { display: none !important; }

.site-header {
  background: rgba(8, 7, 11, .88);
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1480px;
  min-height: var(--header-height);
  padding: 10px clamp(18px, 4vw, 56px);
  width: 100%;
}
.brand { flex: 0 0 auto; }
.brand img { transition: transform .3s ease, filter .3s ease; }
.brand:hover img { filter: drop-shadow(0 10px 24px rgba(255,92,91,.3)); transform: rotate(-5deg) scale(1.05); }
.top-nav {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  justify-content: flex-end;
}
.top-nav a {
  border: 1px solid transparent;
  border-radius: 12px;
  color: rgba(255,255,255,.68);
  font-size: 14px;
  font-weight: 750;
  padding: 10px 12px;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
  white-space: nowrap;
}
.top-nav a:hover,
.top-nav a.is-active {
  background: rgba(255,255,255,.075);
  border-color: rgba(255,255,255,.08);
  color: #fff;
  transform: translateY(-1px);
}
.top-nav .nav-upload,
.top-nav .nav-cta {
  background: linear-gradient(115deg, #ff9a3d, #ff435e 58%, #9c5cff);
  border-color: transparent;
  box-shadow: 0 10px 28px rgba(255,67,94,.2);
  color: #fff;
  margin-left: 4px;
}
.top-nav .nav-upload:hover,
.top-nav .nav-upload.is-active,
.top-nav .nav-cta:hover,
.top-nav .nav-cta.is-active {
  background: linear-gradient(115deg, #ffad55, #ff516a 58%, #ab70ff);
  border-color: transparent;
  box-shadow: 0 14px 34px rgba(255,67,94,.3);
}
.top-nav .nav-exit { color: rgba(255,255,255,.48); }

.page-intro { margin: 0 auto 38px; max-width: 980px; }
.centered-intro { text-align: center; }
.compact-intro { max-width: 820px; }
.split-intro {
  align-items: end;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  max-width: 1180px;
}
.split-intro > div { max-width: 820px; }
.page-intro h1,
.page-top > h1,
.section-heading h1 {
  font-size: clamp(38px, 5.2vw, 68px);
  letter-spacing: -.035em;
  line-height: .98;
  margin-bottom: 18px;
  text-wrap: balance;
}
.page-intro .lead,
.page-top > .lead {
  font-size: clamp(16px, 1.8vw, 19px);
  margin-bottom: 0;
  max-width: 760px;
}
.centered-intro .lead { margin-inline: auto; }
.intro-action { flex: 0 0 auto; }

.home-hero {
  min-height: min(800px, calc(100vh - var(--header-height)));
  overflow: hidden;
  position: relative;
}
.home-hero .hero-bg {
  background:
    radial-gradient(circle at 72% 28%, rgba(123, 86, 255, .17), transparent 26rem),
    radial-gradient(circle at 24% 20%, rgba(255, 84, 92, .19), transparent 28rem),
    linear-gradient(135deg, #08070b 0%, #11101a 52%, #08090e 100%);
}
.hero-shell {
  align-items: center;
  display: grid;
  gap: clamp(40px, 7vw, 96px);
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .75fr);
  margin: 0 auto;
  max-width: 1460px;
  min-height: min(800px, calc(100vh - var(--header-height)));
  padding: clamp(64px, 8vw, 110px) clamp(18px, 5vw, 72px);
  position: relative;
  z-index: 3;
}
.hero-copy { max-width: 820px; }
.home-hero h1 {
  font-size: clamp(52px, 6.7vw, 96px);
  letter-spacing: -.052em;
  line-height: .9;
  margin-bottom: 24px;
  text-wrap: balance;
}
.home-hero .hero-copy > p:not(.eyebrow) {
  color: rgba(255,255,255,.76);
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.6;
  max-width: 690px;
}
.home-hero .hero-search { margin-top: 30px; }
.hero-collage {
  height: 540px;
  position: relative;
  perspective: 1100px;
}
.memory-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px;
  box-shadow: 0 34px 90px rgba(0,0,0,.42);
  margin: 0;
  overflow: hidden;
  position: absolute;
  transform-style: preserve-3d;
}
.memory-card img { height: 100%; object-fit: cover; width: 100%; }
.memory-card figcaption {
  backdrop-filter: blur(12px);
  background: rgba(9,8,12,.62);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  bottom: 16px;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  left: 16px;
  padding: 9px 13px;
  position: absolute;
}
.memory-one {
  animation: floatMemoryOne 7s ease-in-out infinite;
  height: 390px;
  right: 32px;
  top: 64px;
  transform: rotate(3deg);
  width: 310px;
  z-index: 3;
}
.memory-two {
  animation: floatMemoryTwo 8s ease-in-out infinite;
  height: 230px;
  left: 0;
  top: 10px;
  transform: rotate(-7deg);
  width: 190px;
  z-index: 1;
}
.memory-three {
  animation: floatMemoryThree 7.5s ease-in-out infinite;
  bottom: 22px;
  height: 220px;
  left: 26px;
  transform: rotate(6deg);
  width: 220px;
  z-index: 4;
}
.process-strip {
  align-items: stretch;
  background: rgba(17,15,23,.95);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto;
  max-width: none;
  padding: 0 clamp(18px, 5vw, 72px);
}
.process-strip > div {
  align-items: center;
  display: flex;
  gap: 13px;
  justify-content: center;
  min-height: 82px;
  padding: 18px;
}
.process-strip > div + div { border-left: 1px solid var(--line); }
.process-strip span { color: #ff9b4d; font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.process-strip strong { font-size: 15px; }

.search-box {
  border-radius: 18px;
  box-shadow: 0 22px 70px rgba(0,0,0,.28);
}
.search-action { border-radius: 12px; }
.button, .mini-button { align-items: center; }
.button span, .search-action span { display: inline-block; margin-left: 5px; transition: transform .2s ease; }
.button:hover span, .search-action:hover span { transform: translateX(4px); }

.featured-section { padding-top: 70px; }
.album-grid { gap: 22px; }
.album-card {
  background: linear-gradient(160deg, rgba(255,255,255,.072), rgba(255,255,255,.035));
  border-radius: 22px;
  box-shadow: 0 20px 58px rgba(0,0,0,.22);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.album-card:hover {
  border-color: rgba(255,160,91,.35);
  box-shadow: 0 30px 78px rgba(0,0,0,.36);
  transform: translateY(-7px);
}
.album-image-wrap { padding: 0 !important; }
.album-card-copy { padding: 19px !important; }
.album-card-copy h3 { margin-bottom: 9px; }
.album-card-copy p { color: var(--muted); margin-bottom: 0; }
.warm-cta { overflow: hidden; position: relative; }
.warm-cta::after {
  background: radial-gradient(circle, rgba(255,153,61,.22), transparent 67%);
  content: "";
  height: 300px;
  pointer-events: none;
  position: absolute;
  right: -80px;
  top: -120px;
  width: 300px;
}
.warm-cta > * { position: relative; z-index: 2; }

.explore-page { max-width: var(--content-width); }
.explore-page .page-intro { margin-bottom: 34px; }
.explore-page .explore-search { margin: 26px auto 0; max-width: 850px; }
.results-summary {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 18px;
  text-align: center;
}
.search-empty { margin-top: 24px; }

.studio-page { max-width: 1260px; }
.creator-card,
.editor-card,
.library-empty {
  background: linear-gradient(145deg, rgba(29,25,37,.96), rgba(15,14,20,.95));
  border-radius: 26px;
  box-shadow: 0 30px 90px rgba(0,0,0,.32);
}
.creator-card { max-width: 1040px !important; }
.form-section-title { margin-top: 18px; }
.visual-drop { min-height: 180px; }
.visual-drop input { cursor: pointer; }

.owner-album-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1180px;
}
.owner-album-card {
  animation: riseIn .55s ease both;
  background: linear-gradient(155deg, rgba(255,255,255,.07), rgba(255,255,255,.035));
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,.24);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.owner-album-card:nth-child(2) { animation-delay: .05s; }
.owner-album-card:nth-child(3) { animation-delay: .1s; }
.owner-album-card:nth-child(4) { animation-delay: .15s; }
.owner-album-card:hover,
.owner-album-card.is-selected {
  border-color: rgba(255,145,79,.42);
  box-shadow: 0 28px 78px rgba(0,0,0,.34);
  transform: translateY(-6px);
}
.owner-album-cover { display: block; overflow: hidden; position: relative; }
.owner-album-cover img {
  aspect-ratio: 4 / 3;
  background: rgba(255,255,255,.04);
  object-fit: cover;
  transition: transform .6s ease, filter .6s ease;
  width: 100%;
}
.owner-album-card:hover .owner-album-cover img { filter: saturate(1.08) contrast(1.04); transform: scale(1.045); }
.status-pill {
  backdrop-filter: blur(12px);
  background: rgba(9,8,12,.72);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  left: 13px;
  padding: 7px 10px;
  position: absolute;
  top: 13px;
}
.status-pill.is-published { color: #9df1c4; }
.status-pill.is-draft { color: #ffd58a; }
.status-pill.is-hidden { color: #ff9eaa; }
.owner-album-body { padding: 19px; }
.owner-album-meta { color: #ffae67; font-size: 11px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.owner-album-body h2 { font-size: 24px; line-height: 1.08; margin: 9px 0 10px; }
.owner-album-body p { color: var(--muted); margin-bottom: 18px; }
.owner-album-actions { display: flex; gap: 9px; }
.owner-album-actions .mini-button { flex: 1; }
.library-empty { margin: 0 auto; max-width: 780px; padding: 58px 28px; }
.empty-visual { color: #ff9d50; font-size: 46px; margin-bottom: 12px; }

.editor-card { margin-top: 48px; max-width: 1180px !important; padding: clamp(22px, 4vw, 40px); }
.editor-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 22px;
}
.editor-header h2 { margin-bottom: 0; }
.editor-subheading {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 22px;
}
.editor-subheading h3 { margin-bottom: 4px; }
.editor-subheading p { color: var(--muted); margin-bottom: 0; }
.compact-add-photo { margin: 0; max-width: 620px; }
.compact-add-photo .drop-zone { min-width: 330px; padding: 12px; }

@keyframes floatMemoryOne {
  0%, 100% { transform: translateY(0) rotate(3deg); }
  50% { transform: translateY(-12px) rotate(1.5deg); }
}
@keyframes floatMemoryTwo {
  0%, 100% { transform: translateY(0) rotate(-7deg); }
  50% { transform: translateY(10px) rotate(-4deg); }
}
@keyframes floatMemoryThree {
  0%, 100% { transform: translateY(0) rotate(6deg); }
  50% { transform: translateY(-9px) rotate(8deg); }
}

@media (max-width: 1080px) {
  .header-inner { align-items: flex-start; flex-direction: column; gap: 6px; padding-block: 11px; }
  .top-nav {
    justify-content: flex-start;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    width: 100%;
  }
  .top-nav::-webkit-scrollbar { display: none; }
  .hero-shell { grid-template-columns: 1fr .65fr; }
  .hero-collage { height: 460px; }
  .memory-one { height: 340px; right: 0; width: 270px; }
  .memory-two { height: 190px; width: 160px; }
  .memory-three { height: 180px; width: 180px; }
  .owner-album-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 780px) {
  :root { --header-height: 116px; }
  .site-header { position: sticky; }
  .header-inner { padding-inline: 14px; }
  .brand img { height: 42px; width: 42px; }
  .brand strong { font-size: 16px; }
  .top-nav a { font-size: 12px; padding: 9px 10px; }
  .top-nav .nav-upload { margin-left: 0; }
  .hero-shell {
    gap: 30px;
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 62px;
    padding-top: 58px;
    text-align: center;
  }
  .hero-copy { margin: 0 auto; }
  .home-hero h1 { font-size: clamp(46px, 13vw, 66px); }
  .home-hero .hero-copy > p:not(.eyebrow) { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-collage { height: 320px; margin: 0 auto; max-width: 420px; width: 100%; }
  .memory-one { height: 260px; right: 42px; top: 20px; width: 210px; }
  .memory-two { height: 150px; left: 8px; top: 0; width: 125px; }
  .memory-three { bottom: 0; height: 140px; left: 24px; width: 150px; }
  .process-strip { grid-template-columns: 1fr; padding: 0 18px; }
  .process-strip > div { justify-content: flex-start; min-height: 60px; }
  .process-strip > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .split-intro { align-items: stretch; flex-direction: column; text-align: center; }
  .split-intro .lead { margin-inline: auto; }
  .intro-action { align-self: center; }
  .owner-album-grid { grid-template-columns: 1fr; max-width: 560px; }
  .editor-subheading { align-items: stretch; flex-direction: column; }
  .compact-add-photo { grid-template-columns: 1fr; max-width: none; width: 100%; }
  .compact-add-photo .drop-zone { min-width: 0; }
}

@media (max-width: 620px) {
  .page-intro h1,
  .page-top > h1,
  .section-heading h1 { font-size: 40px; }
  .home-hero h1 { font-size: 48px; }
  .search-box { grid-template-columns: 1fr; }
  .search-box input { text-align: center; }
  .owner-album-actions { flex-direction: column; }
  .editor-header { align-items: flex-start; flex-direction: column; }
  .editor-header .mini-button { width: 100%; }
  .hero-collage { transform: scale(.92); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Normaliza la cabecera frente a reglas antiguas en pantallas intermedias */
.site-header {
  align-items: initial;
  display: block;
  flex-direction: initial;
  gap: 0;
  text-align: initial;
}

/* Compras independientes y ajuste visual del editor */
.flash {
  align-items: flex-start;
  animation: toastIn .28s ease both;
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 18px 55px rgba(0,0,0,.38);
  display: flex;
  font-size: 14px;
  gap: 12px;
  left: auto;
  line-height: 1.45;
  max-width: min(420px, calc(100vw - 32px));
  padding: 13px 14px;
  right: 18px;
  top: 92px;
  transform: none;
  transition: opacity .24s ease, transform .24s ease;
  width: max-content;
}
.flash span { flex: 1; }
.flash button {
  background: transparent;
  border: 0;
  color: currentColor;
  cursor: pointer;
  font-size: 21px;
  line-height: 1;
  opacity: .72;
  padding: 0;
}
.flash button:hover { opacity: 1; }
.flash.ok { background: rgba(12, 65, 48, .92); color: #c9ffe2; }
.flash.warn { background: rgba(72, 48, 11, .94); color: #ffe3a3; }
.flash.error { background: rgba(79, 20, 32, .94); color: #ffc2cc; }
.flash.is-hiding { opacity: 0; transform: translateY(-8px); }

.editor-header-actions {
  align-items: center;
  display: flex;
  gap: 9px;
}
.editor-header-actions form { margin: 0; }
.subtle-danger {
  background: transparent;
  border-color: rgba(255, 99, 117, .34);
  color: #ff9eaa;
}
.subtle-danger:hover {
  background: rgba(255, 61, 84, .09);
  border-color: rgba(255, 99, 117, .58);
}

.photo-secondary-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.photo-secondary-actions form,
.photo-secondary-actions button { width: 100%; }
.photo-editor { box-shadow: 0 16px 42px rgba(0,0,0,.18); }
.photo-preview-wrap { min-height: 185px; }
.photo-edit-form { padding: 14px; }
.photo-edit-form label { font-size: 12px; }
.photo-edit-form input,
.photo-edit-form select { min-height: 42px; }

.compact-page-intro {
  margin: 0 auto 36px;
  max-width: 850px;
  text-align: center;
}
.compact-page-intro h1 { margin-inline: auto; }
.compact-page-intro .lead { margin-inline: auto; }

.account-cart-layout { align-items: start; }
.cart-items-list { min-width: 0; }
.checkout-card { position: sticky; top: 112px; }
.checkout-card > h2 { font-size: clamp(34px, 4vw, 52px); margin-bottom: 22px; }
.buyer-account-card {
  background: rgba(255,255,255,.055);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
  padding: 16px;
}
.buyer-account-card span,
.buyer-account-card small { color: var(--muted); }
.buyer-account-card strong { font-size: 18px; }
.checkout-card form { display: grid; gap: 15px; }
.account-required { display: grid; gap: 12px; }
.account-required h3,
.account-required p { margin-bottom: 0; }
.account-required p { color: var(--muted); line-height: 1.55; }
.cart-remove { color: #ff9eaa; font-size: 13px; font-weight: 800; }

.purchases-page { max-width: 1180px; }
.purchase-card {
  border-radius: 24px;
  margin: 0 auto 24px;
  max-width: 1080px !important;
  padding: clamp(20px, 4vw, 34px);
}
.purchase-card.is-new-purchase {
  border-color: rgba(255, 145, 79, .42);
  box-shadow: 0 28px 80px rgba(0,0,0,.34), 0 0 0 4px rgba(255,138,42,.06);
}
.purchase-card-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 20px;
}
.purchase-card-header h2 { margin: 5px 0; }
.purchase-card-header p { color: var(--muted); margin-bottom: 0; }
.purchase-label { color: #ffae67; font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.owned-badge {
  background: rgba(16,185,129,.1);
  border: 1px solid rgba(110,231,183,.22);
  border-radius: 999px;
  color: #a7f3d0;
  font-size: 12px;
  font-weight: 900;
  padding: 9px 12px;
  white-space: nowrap;
}
.purchase-gallery { grid-template-columns: repeat(3, minmax(0,1fr)); }
.purchased-photo-card { border-radius: 18px; }
.purchased-photo-card img { aspect-ratio: 4 / 3; }
.purchases-empty { margin: 0 auto; max-width: 720px; }

.migration-card { max-width: 760px; text-align: center; }
.migration-card .lead { margin-inline: auto; }
.migration-results {
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line);
  border-radius: 18px;
  margin: 24px 0;
  padding: 18px;
  text-align: left;
}
.migration-results p { color: var(--muted); margin: 0; padding: 7px 0; }
.migration-note { margin: 20px 0 0; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 780px) {
  .header-inner { align-items: center; }
  .top-nav,
  .top-nav.is-member,
  .top-nav.is-admin,
  .top-nav.is-guest {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
    padding: 4px 0 2px;
    width: 100%;
  }
  .top-nav a {
    align-items: center;
    display: flex;
    justify-content: center;
    min-width: 0;
    padding: 9px 5px;
    text-align: center;
    white-space: nowrap;
    width: 100%;
  }
  .top-nav .nav-upload { margin-left: 0; }
  .flash {
    bottom: 14px;
    left: 14px;
    max-width: none;
    right: 14px;
    top: auto;
    width: auto;
  }
  .checkout-card { position: static; }
  .purchase-gallery { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .editor-header-actions { width: 100%; }
  .editor-header-actions > * { flex: 1; }
  .editor-header-actions .mini-button { width: 100%; }
}

@media (max-width: 620px) {
  .photo-preview-wrap { min-height: 150px; }
  .photo-secondary-actions { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .photo-secondary-actions .mini-button { min-height: 42px; padding-inline: 8px; }
  .purchase-card-header { align-items: flex-start; flex-direction: column; }
  .purchase-gallery { grid-template-columns: 1fr; }
  .owned-badge { white-space: normal; }
}

/* Compras: previsualización privada y descarga del original */
.purchase-photo-link {
  background: rgba(0,0,0,.22);
  display: block;
  overflow: hidden;
  position: relative;
}
.purchase-photo-link img {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  transition: filter .3s ease, transform .45s ease;
  width: 100%;
}
.purchase-photo-overlay {
  align-items: center;
  backdrop-filter: blur(9px);
  background: rgba(8,7,11,.66);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  bottom: 14px;
  color: #fff !important;
  display: inline-flex !important;
  font-size: 13px !important;
  font-weight: 900;
  left: 50%;
  margin: 0 !important;
  opacity: 0;
  padding: 9px 14px;
  position: absolute;
  transform: translate(-50%, 10px);
  transition: opacity .24s ease, transform .24s ease;
  white-space: nowrap;
}
.purchase-photo-link:hover img {
  filter: brightness(.82) saturate(1.05);
  transform: scale(1.035);
}
.purchase-photo-link:hover .purchase-photo-overlay,
.purchase-photo-link:focus-visible .purchase-photo-overlay {
  opacity: 1;
  transform: translate(-50%, 0);
}
.purchased-photo-info { gap: 14px !important; }
.purchased-photo-info > strong {
  font-size: 17px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.purchase-photo-actions {
  display: grid !important;
  gap: 9px !important;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  padding: 0 !important;
}
.purchase-photo-actions .mini-button {
  align-items: center;
  min-height: 42px;
}
.purchase-view-button {
  background: rgba(255,255,255,.075);
  border-color: rgba(255,255,255,.14);
}
.purchase-view-button:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.24);
}

@media (hover: none) {
  .purchase-photo-overlay {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (max-width: 420px) {
  .purchase-photo-actions { grid-template-columns: 1fr; }
}
