/* =========================================================
   Israel Buitrón Photos — portafolio de fotografía deportiva.
   Estructura: logo centrado → eventos a todo el ancho → tira de fotos.
   Paleta: marino profundo, terracota, salvia, arena y papel cálido.
   Tipografía: Unbounded (logo y titulares) + Plus Jakarta Sans (texto).
   ========================================================= */
:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --surface-2: #efebe2;
  --ink: #16182a;
  --navy: #262a4a;
  --muted: #6b6d7d;
  --dim: #a4a3ad;
  --line: #e6e1d6;
  --line-2: #d6d0c1;
  --accent: #d9694a;
  --accent-dark: #c0553a;
  --accent-soft: #fbe9e2;
  --sage: #7fae96;
  --sand: #f2c98a;
  --sand-soft: #fbf1df;
  --ok: #3d7a60;
  --ok-soft: #e6f1eb;
  --warn: #8a6100;
  --warn-soft: #fbf1df;
  --danger: #c4372f;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(22, 24, 42, .05), 0 8px 24px rgba(22, 24, 42, .06);
  --shadow-lg: 0 30px 70px -30px rgba(22, 24, 42, .45);
  --display: "Unbounded", "Plus Jakarta Sans", system-ui, sans-serif;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tabbar: 64px;
  --top: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15.5px/1.6 var(--font);
  padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0 0 .4em; text-wrap: balance; color: var(--ink); }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -.03em; line-height: 1.08; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
h2 { font-size: clamp(22px, 3.6vw, 32px); }
h3 { font-size: 17px; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; }
p { margin: 0 0 .8em; }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.center { text-align: center; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--sand); }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.wrap.wide { max-width: 1440px; }
.wrap.narrow { max-width: 720px; }
.page { padding-top: 32px; padding-bottom: 64px; }
.center-block { text-align: center; padding-top: 80px; }
.page-title { font-size: clamp(26px, 5vw, 40px); margin: 0 0 10px; }
.eyebrow, .kicker { display: block; margin: 0 0 12px; color: var(--accent); font-size: 11.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.back { display: inline-block; color: var(--muted); padding: 18px 0 14px; font-size: 14px; font-weight: 500; }
.back:hover { color: var(--ink); }
.empty { color: var(--muted); padding: 24px 0; }

/* ---------- Movimiento ---------- */
@keyframes in { from { opacity: 0; transform: translateY(8px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes shimmer { to { background-position: -300% 0; } }
@keyframes scanv { from { top: 6%; } to { top: 94%; } }
#app > * { animation: fade .5s ease both; }
::view-transition-old(root) { animation: fade .15s ease reverse both; }
::view-transition-new(root) { animation: fade .3s ease both; }
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
[data-split] .w > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 70ms + .1s); }
[data-split].in .w > span { transform: none; }
.arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Encabezado: menú fino arriba y logo centrado debajo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(247, 245, 240, .9);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.topbar.scrolled { border-color: var(--line); }
.topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 44px; padding: 0 max(20px, calc((100% - 1400px) / 2)); border-bottom: 1px solid var(--line); }
.brandrow { display: flex; justify-content: center; padding: 22px 20px 20px; transition: padding .4s var(--ease); }
.topbar.scrolled .brandrow { padding: 10px 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); white-space: nowrap; }
.logo-mark { width: 38px; height: 38px; color: var(--navy); transition: transform .6s var(--ease), width .4s var(--ease), height .4s var(--ease); }
.logo-dot { fill: var(--accent); }
.brand:hover .logo-mark { transform: rotate(-30deg); }
.wordmark { font-family: var(--display); font-weight: 200; font-size: 21px; letter-spacing: .32em; transition: font-size .4s var(--ease); }
.wordmark b { font-weight: 700; letter-spacing: .16em; }
.topbar.scrolled .logo-mark { width: 28px; height: 28px; }
.topbar.scrolled .wordmark { font-size: 16px; }
.topnav { display: none; gap: 30px; }
.topnav a { position: relative; color: var(--muted); font-size: 11.5px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; transition: color .2s; }
.topnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.topnav a:hover, .topnav a.active { color: var(--ink); }
.topnav a:hover::after, .topnav a.active::after { transform: scaleX(1); }
.top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-left: auto; }
.admin-link { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.admin-link:hover { border-color: var(--navy); }
.cart-pill { position: relative; display: none; place-items: center; width: 34px; height: 34px; border-radius: 50%; transition: background .2s; }
.cart-pill:hover { background: var(--surface-2); }
.cart-pill svg, .tabbar svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; }
.cart-pill .badge { position: absolute; top: 0; right: -2px; }
.badge.bump { animation: in .3s var(--ease); }
/* Celular: sin menú arriba (está la barra de abajo); solo el logo */
@media (max-width: 899px) {
  .topline { height: auto; border: 0; padding: 0; }
  .topline .top-actions { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); }
  .brandrow { padding: 16px 20px 14px; }
  .topbar.scrolled .brandrow { padding: 10px 20px; }
  .logo-mark { width: 30px; height: 30px; }
  .wordmark { font-size: 15px; letter-spacing: .26em; }
}
@media (max-width: 420px) { .wordmark { font-size: 13px; letter-spacing: .2em; } .logo-mark { width: 26px; height: 26px; } }

/* ---------- Barra inferior (celular) ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--dim); font-size: 11px; font-weight: 600; }
.tabbar a.active { color: var(--accent); }
.tabbar .badge { position: absolute; top: 8px; left: calc(50% + 6px); }
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .topnav { display: flex; }
  .cart-pill { display: grid; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 14.5px; cursor: pointer; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s, transform .15s, box-shadow .25s;
}
.btn:active { transform: scale(.98); }
.btn-primary, .btn-dark { background: var(--navy); color: #fff; }
.btn-primary:hover, .btn-dark:hover { background: var(--ink); box-shadow: 0 12px 26px -14px rgba(22, 24, 42, .8); }
.btn-coral, .btn-accent { background: var(--accent); color: #fff; }
.btn-coral:hover, .btn-accent:hover { background: var(--accent-dark); box-shadow: 0 12px 26px -14px rgba(217, 105, 74, .9); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(196, 55, 47, .3); }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 15px; }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
label.btn.disabled { opacity: .4; }
.link { background: none; border: 0; color: var(--accent); font-weight: 600; cursor: pointer; padding: 0; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 16px; cursor: pointer; }

/* ---------- Formularios ---------- */
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
label > input:not([type=checkbox]):not([type=radio]):not([type=file]), label > textarea, select {
  display: block; width: 100%; margin-top: 6px; min-height: 48px; padding: 0 14px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-2);
  color: var(--ink); font-size: 16px; font-weight: 500; outline: none; transition: border-color .2s, box-shadow .2s;
}
label > textarea { padding: 12px 14px; line-height: 1.5; resize: vertical; }
select { appearance: none; padding-right: 40px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6d7d' stroke-width='1.8'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; }
label > input:focus, label > textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.row2, .row3 { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 760px) { .row3 { grid-template-columns: 1fr 1fr 1fr; } }

/* =========================================================
   INICIO
   ========================================================= */
.home-intro { text-align: center; padding: 48px 20px 36px; }
@media (min-width: 900px) { .home-intro { padding: 72px 20px 52px; } }
.home-intro h1 { font-size: clamp(30px, 6vw, 58px); font-weight: 500; letter-spacing: -.04em; margin: 0 auto 14px; }
.intro-sub { max-width: 460px; margin: 0 auto; color: var(--muted); font-size: 15.5px; }
.search {
  display: block; width: min(420px, 100%); margin: 26px auto 0; min-height: 48px; padding: 0 18px 0 46px; border-radius: 999px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a4a3ad' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m20 20-4.2-4.2'/%3E%3C/svg%3E") no-repeat 18px 50% / 17px;
  border: 1px solid var(--line); outline: none; font-size: 15px; box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s;
}
.search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* Eventos a todo el ancho */
.ev-wall { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 0 4px; }
@media (min-width: 700px) { .ev-wall.n2, .ev-wall.n3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .ev-wall.n3 { grid-template-columns: repeat(3, 1fr); } }
.ev-tile { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 6px; background: var(--navy); color: #fff; isolation: isolate; }
.ev-wall.n1 .ev-tile { aspect-ratio: 4 / 5; }
@media (min-width: 700px) { .ev-wall.n1 .ev-tile { aspect-ratio: 21 / 9; } .ev-wall.n2 .ev-tile { aspect-ratio: 4 / 3; } }
.ev-media { position: absolute; inset: 0; z-index: -1; }
.ev-media canvas { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); transition: transform 1.6s var(--ease), filter .8s; }
.ev-tile:hover .ev-media canvas { transform: scale(1.1); }
.ev-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 12, 26, 0) 35%, rgba(10, 12, 26, .78)); transition: background .6s; }
.ev-tile:hover .ev-media::after { background: linear-gradient(180deg, rgba(10, 12, 26, .1) 20%, rgba(10, 12, 26, .85)); }
.ev-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 24px 24px; }
@media (min-width: 900px) { .ev-info { padding: 34px 34px 30px; } }
.ev-kicker { display: block; margin-bottom: 10px; font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.ev-info h2 { color: #fff; font-size: clamp(22px, 3vw, 34px); font-weight: 500; margin: 0 0 14px; max-width: 18ch; }
.ev-wall.n1 .ev-info h2 { font-size: clamp(26px, 4.4vw, 52px); }
.ev-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .25); font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .85); }
.ev-cta i { font-style: normal; color: #fff; transform: translateX(-6px); opacity: .85; transition: transform .4s var(--ease), opacity .4s, color .3s; }
.ev-tile:hover .ev-cta i { transform: none; opacity: 1; color: var(--sand); }
.soon { position: absolute; inset: 0; background: linear-gradient(135deg, var(--navy), #3d3566 55%, var(--accent)); }
.ev-tile.broken .ev-media::before { content: ""; position: absolute; inset: 0; background: var(--navy); }

/* Tira de fotos promocional */
.promo { padding: 64px 0 24px; }
.promo-head { text-align: center; }
.strip { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.strip-track { display: flex; gap: 6px; width: max-content; animation: marquee 80s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.strip a { display: block; width: 220px; aspect-ratio: 3 / 2; border-radius: 6px; overflow: hidden; flex: none; background: var(--surface-2); }
.strip canvas { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--ease); }
.strip a:hover canvas { transform: scale(1.06); }
@media (min-width: 900px) { .strip a { width: 300px; } }

/* ---------- Elegir evento ---------- */
.pick-list { display: grid; gap: 10px; margin: 24px 0 0; }
.pick { display: flex; align-items: center; gap: 16px; padding: 10px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); transition: transform .2s; }
.pick:hover { transform: translateX(4px); }
.pick-thumb { width: 72px; height: 72px; border-radius: var(--radius); overflow: hidden; flex: none; background: var(--surface-2); }
.pick-thumb canvas { width: 100%; height: 100%; object-fit: cover; }
.pick > div:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pick strong { font-weight: 700; }
.pick span { color: var(--muted); font-size: 13.5px; }
.chev { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); flex: none; }

/* ---------- Página de evento ---------- */
.ev-hero { position: relative; display: flex; align-items: flex-end; min-height: 62vh; margin: 0 4px; border-radius: 6px; overflow: hidden; background: var(--navy); color: #fff; isolation: isolate; }
@media (min-width: 900px) { .ev-hero { min-height: 72vh; } }
.ev-hero.no-cover { min-height: 46vh; background: linear-gradient(135deg, var(--navy), #3d3566 55%, var(--accent)); }
.ev-hero-media { position: absolute; inset: 0; z-index: -1; }
.ev-hero-media canvas { width: 100%; height: 100%; object-fit: cover; display: block; animation: bannerIn 2s var(--ease) both; }
@keyframes bannerIn { from { transform: scale(1.15); filter: saturate(.5) brightness(.8); } }
@supports (animation-timeline: view()) {
  .ev-hero-media canvas { animation: bannerIn 2s var(--ease) both, px linear both; animation-timeline: auto, view(); animation-range: normal, exit 0% exit 100%; }
  @keyframes px { to { transform: translateY(16%) scale(1.08); } }
}
.ev-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 12, 26, .35) 0%, rgba(10, 12, 26, 0) 30%, rgba(10, 12, 26, .82) 100%); }
.ev-back { position: absolute; top: 18px; left: 18px; z-index: 2; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; font-size: 13px; font-weight: 600; transition: background .2s; }
.ev-back:hover { background: rgba(255, 255, 255, .28); }
.ev-hero-in { width: 100%; max-width: 1440px; margin: 0 auto; padding: 28px 22px 30px; }
@media (min-width: 900px) { .ev-hero-in { padding: 40px 44px 44px; } }
.ev-hero .ev-kicker { color: rgba(255, 255, 255, .8); }
.ev-hero h1 { color: #fff; font-size: clamp(28px, 5.6vw, 64px); font-weight: 500; letter-spacing: -.04em; max-width: 16ch; margin: 0 0 20px; }
.ev-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.ev-facts li { padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: rgba(255, 255, 255, .82); }
.ev-facts li:last-child { background: var(--sand); color: var(--ink); }
.ev-facts b { color: inherit; font-weight: 700; }
.ev-facts li:not(:last-child) b { color: #fff; }
.sponsor-bar { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 20px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.sponsor-bar img { height: 32px; max-width: 120px; object-fit: contain; }
.sponsor-bar b { color: var(--ink); letter-spacing: .04em; text-transform: none; font-size: 15px; }

/* Buscador: dos opciones grandes y claras */
.finder { max-width: 760px; margin: 40px auto 30px; text-align: center; scroll-margin-top: calc(var(--top) + 12px); }
.finder-title { font-size: clamp(20px, 3.4vw, 28px); margin-bottom: 22px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 14px; border-radius: var(--radius-lg); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; box-shadow: var(--shadow); transition: border-color .3s, transform .3s var(--ease), box-shadow .3s, background .3s; }
.seg button:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.seg button svg { width: 34px; height: 34px; fill: none; stroke: var(--navy); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; transition: stroke .3s; }
.seg button b { font-family: var(--display); font-weight: 500; font-size: 15px; letter-spacing: -.01em; }
.seg button small { color: var(--muted); font-size: 12.5px; }
.seg button.on { border-color: var(--accent); background: linear-gradient(180deg, #fff, var(--accent-soft)); }
.seg button.on svg { stroke: var(--accent); }
.finder-pane { margin-top: 14px; padding: 22px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); text-align: left; animation: in .45s var(--ease); }
.finder-pane > p { color: var(--muted); margin-bottom: 14px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; font-weight: 400; color: var(--muted); margin-bottom: 16px; cursor: pointer; }
.consent input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; margin: 1px 0 0; }
.consent a { color: var(--accent); font-weight: 600; }
.finder-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bib-form { display: flex; gap: 8px; }
.bib-form input { flex: 1; min-width: 0; min-height: 54px; padding: 0 20px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line-2); font-family: var(--display); font-size: 22px; font-weight: 500; letter-spacing: .08em; font-variant-numeric: tabular-nums; outline: none; }
.bib-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.bib-form .btn { min-height: 54px; padding: 0 28px; }

.presale { max-width: 760px; margin: 40px auto 0; padding: 26px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--sand-soft), var(--accent-soft)); scroll-margin-top: calc(var(--top) + 12px); }
.presale h2 { margin-bottom: 6px; }
.presale-form { margin-top: 16px; }
.presale + .finder { margin-top: 28px; }

.result-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 14px; scroll-margin-top: calc(var(--top) + 12px); }
.result-bar > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.result-bar strong { font-weight: 700; }
.result-bar.found { padding: 14px 18px; border-radius: var(--radius); background: var(--ok-soft); }
.result-bar.found strong { color: var(--ok); }
.pack-btn { background: var(--accent); }
.pack-btn:hover { background: var(--accent-dark); }
.pack-btn s { opacity: .7; margin-left: 4px; }
.ok { color: var(--ok); font-weight: 600; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 0 0 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 36px; padding: 0 15px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; transition: all .25s var(--ease); }
.chip:hover { color: var(--ink); border-color: var(--line-2); }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip small { margin-left: 5px; opacity: .6; font-size: 12px; }

/* Cuadrícula de fotos: todas del mismo tamaño y alineadas */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 6px; } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.tile { position: relative; margin: 0; aspect-ratio: 3 / 2; border-radius: 4px; overflow: hidden; background: var(--surface-2); cursor: zoom-in; animation: rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); transition: box-shadow .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.tile:hover { box-shadow: var(--shadow-lg); }
.tile canvas { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.tile:hover canvas { transform: scale(1.04); }
.tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 7px; font-size: 11.5px; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .45)); pointer-events: none; opacity: 0; transition: opacity .2s; }
.tile:hover figcaption { opacity: 1; }
.tile .add { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .94); color: var(--navy); font-size: 19px; font-weight: 600; line-height: 1; cursor: pointer; box-shadow: var(--shadow); transition: background .2s, color .2s, transform .2s; }
.tile .add:hover { transform: scale(1.08); }
.tile.in-cart { outline: 3px solid var(--accent); outline-offset: -3px; }
.tile.in-cart .add { background: var(--accent); color: #fff; font-size: 15px; }
.tile.match::before { content: attr(data-score); position: absolute; top: 8px; left: 8px; z-index: 1; padding: 3px 9px; border-radius: 999px; background: var(--sage); color: #fff; font-size: 11px; font-weight: 700; }
.tile .owned { position: absolute; top: 8px; right: 8px; padding: 3px 9px; border-radius: 999px; background: var(--sage); color: #fff; font-size: 11px; font-weight: 700; }
.tile.broken::after, .ev-card.broken .ev-cover::before { content: "Foto no disponible"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.vid-badge { position: absolute; left: 8px; bottom: 8px; z-index: 2; padding: 3px 9px; border-radius: 999px; background: rgba(35, 38, 63, .75); color: #fff; font-size: 11px; font-weight: 600; pointer-events: none; }
canvas:not([data-ready="1"]) { background: linear-gradient(100deg, #efeae0 30%, #f8f5ee 50%, #efeae0 70%) 0 0 / 300% 100%; animation: shimmer 1.6s infinite linear; }
.more-wrap { display: flex; justify-content: center; margin: 24px 0 40px; }
.empty-event { text-align: center; padding: 48px 20px; margin: 26px 0 48px; }
.demo-note { color: var(--muted); font-size: 13px; margin: 24px 0 56px; padding: 14px 16px; border-radius: var(--radius); background: var(--sand-soft); }
.demo-note a { color: var(--accent); font-weight: 600; }

.buy-dock { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabbar) + 10px + env(safe-area-inset-bottom)); z-index: 35; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 999px; background: var(--navy); color: #fff; box-shadow: var(--shadow-lg); animation: in .3s var(--ease); }
.buy-dock span { font-size: 14px; color: rgba(255, 255, 255, .75); }
.buy-dock b { color: #fff; font-weight: 700; }
.buy-dock .btn { background: var(--accent); color: #fff; }
@media (min-width: 900px) { .buy-dock { left: auto; right: 24px; bottom: 24px; width: 360px; } }

/* ---------- Análisis de selfie ---------- */
.scan-overlay { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; background: rgba(251, 249, 244, .92); backdrop-filter: blur(10px); animation: fade .2s; }
.scan-card { width: min(320px, 100%); display: grid; justify-items: center; gap: 14px; text-align: center; }
.scan-card .progress { width: 100%; }
.scan-face { position: relative; width: 160px; height: 160px; border-radius: 50%; overflow: hidden; background: var(--surface-2); box-shadow: 0 0 0 6px var(--accent-soft); }
.scan-face img { width: 100%; height: 100%; object-fit: cover; }
.scan-line { position: absolute; left: 0; right: 0; height: 2px; background: var(--sand); box-shadow: 0 0 14px var(--sand); animation: scanv 1.3s ease-in-out infinite alternate; }
.scan-card.done .scan-line { display: none; }
.scan-card.done .scan-face { box-shadow: 0 0 0 6px var(--ok-soft); }
.scan-text { margin: 0; font-weight: 600; }
.scan-note { margin: 0; color: var(--muted); font-size: 12.5px; }
.progress .bar { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--sand)); transition: width .3s; }

/* ---------- Protección ---------- */
.protected, .protected * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-user-drag: none; }
body.shielded .protected canvas, body.shielded .owned-item img { filter: blur(24px); }
@media print {
  body * { display: none !important; }
  body::after { content: "Impresión deshabilitada. Las fotos de Israel Buitrón Photos están protegidas."; display: block; padding: 40px; font: 600 18px sans-serif; color: #000; }
}

/* ---------- Visor ---------- */
.viewer { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: #16182b; animation: fade .2s; }
.viewer-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); color: #fff; }
.viewer-count { font-size: 13px; color: rgba(255, 255, 255, .6); }
.viewer-stage { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; padding: 0 8px; }
.viewer { height: 100dvh; }
.viewer-stage canvas { position: absolute; inset: 0; margin: auto; width: auto; height: auto; max-width: calc(100% - 16px); max-height: 100%; border-radius: 6px; animation: fade .3s; }
.viewer-stage canvas.loading { opacity: .3; }
.nav-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; font-size: 26px; cursor: pointer; z-index: 2; display: none; }
.nav-arrow.prev { left: 16px; }
.nav-arrow.next { right: 16px; }
@media (hover: hover) { .nav-arrow { display: block; } }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px auto; margin-bottom: max(12px, env(safe-area-inset-bottom)); width: min(640px, calc(100% - 20px)); padding: 8px 8px 8px 18px; border-radius: 999px; background: #fff; }
.viewer-bar .btn-primary { background: var(--accent); }
.viewer-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.viewer-info strong { font-weight: 700; font-size: 14px; }
.viewer-info span { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Tarjetas y paneles ---------- */
.panel, .card { border-radius: var(--radius-lg); padding: 22px; background: var(--surface); box-shadow: var(--shadow); border: 1px solid transparent; }
.card { margin-bottom: 16px; }
.card h2, .checkout h2 { font-size: 22px; }

/* ---------- Carrito ---------- */
.cart-layout { display: grid; gap: 20px; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: 1.3fr .9fr; align-items: start; } .checkout { position: sticky; top: 80px; } }
.cart-group { margin-bottom: 12px; }
.cart-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin-bottom: 14px; }
.cart-head strong { font-weight: 700; }
.cart-head span { color: var(--muted); font-size: 14px; }
.cart-head b { color: var(--ink); font-weight: 700; }
.tag-pack { font-style: normal; font-size: 11px; font-weight: 700; color: var(--ok); background: var(--ok-soft); padding: 2px 8px; border-radius: 999px; margin-left: 4px; }
.cart-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.cart-thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.cart-thumb canvas { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .94); color: var(--ink); font-size: 11px; cursor: pointer; }
.cart-thumb button:hover { background: var(--accent); color: #fff; }
.hint { margin: 12px 0 0; font-size: 13px; color: var(--accent); font-weight: 600; }
.pay-options { display: grid; gap: 8px; margin-bottom: 18px; }
.pay { display: flex; gap: 12px; align-items: center; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; margin: 0; color: var(--ink); transition: border-color .2s, background .2s; }
.pay:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pay input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.pay span { display: flex; flex-direction: column; }
.pay b { font-weight: 600; }
.pay small { color: var(--muted); font-weight: 400; }
.promo-row { display: flex; gap: 8px; align-items: flex-end; }
.promo-row label { flex: 1; }
.promo-row .btn { margin-bottom: 14px; min-height: 48px; }
.totals { border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.totals div { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; }
.totals .grand { align-items: baseline; color: var(--ink); font-size: 15px; font-weight: 600; margin-top: 4px; }
.totals .grand span:last-child { font-size: 32px; font-weight: 800; letter-spacing: -.03em; color: var(--navy); }
.checkout .btn-primary[type=submit] { background: var(--accent); }
.checkout .btn-primary[type=submit]:hover { background: var(--accent-dark); }
.secure { color: var(--muted); font-size: 12px; margin: 12px 0 0; text-align: center; }
.secure a { color: var(--accent); font-weight: 600; }

/* ---------- Compras ---------- */
.success { display: flex; align-items: flex-start; gap: 14px; padding: 18px; border-radius: var(--radius-lg); background: var(--ok-soft); margin-bottom: 18px; }
.success .check { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--sage); color: #fff; font-size: 15px; }
.success strong { display: block; color: var(--ok); font-weight: 700; }
.success span { color: var(--muted); font-size: 14px; }
.order { margin-bottom: 14px; }
.order.fresh { box-shadow: 0 0 0 2px var(--sage), var(--shadow); }
.order-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.order-head div { display: flex; flex-direction: column; }
.order-head strong { font-weight: 700; }
.order-head span { color: var(--muted); font-size: 13px; }
.owned-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.owned-item { position: relative; display: flex; flex-direction: column; gap: 8px; }
.owned-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.owned-item.broken img { opacity: .3; }
.owned-item img.locked { opacity: .85; }
.owned-item .vid-badge { bottom: auto; top: 8px; }
.status { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; vertical-align: middle; }
.st-ok { background: var(--ok-soft); color: var(--ok); }
.st-wait { background: var(--warn-soft); color: var(--warn); }
.st-off { background: var(--surface-2); color: var(--muted); }
.pay-box { margin: 4px 0 16px; padding: 18px; border-radius: var(--radius); background: var(--sand-soft); }
.pay-box ol { margin: 8px 0 14px; padding-left: 20px; color: var(--muted); }
.pay-box li { margin-bottom: 4px; }
.pay-box li b { color: var(--ink); }
.pay-data { margin-bottom: 10px; padding: 12px 14px; border-radius: var(--radius); background: #fff; }
.pay-data small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.pay-data p { margin: 4px 0 0; white-space: pre-line; font-weight: 600; user-select: all; }
.pay-data.qr img { display: block; width: 220px; max-width: 100%; margin: 10px 0; border-radius: 8px; background: #fff; }
.pay-data.qr .btn { margin-top: 8px; }
.pay-data.qr span { display: block; }
.pay-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-actions .btn-primary { background: #25a35a; }
.pay-actions .btn-primary:hover { background: #1e8a4b; }
.recover { margin: 20px 0 0; }
.recover summary { cursor: pointer; font-weight: 600; }
.recover-form { margin-top: 16px; }
.order-link { margin: 12px 0 0; }

/* ---------- Ayuda y textos ---------- */
.faq { display: grid; gap: 8px; margin-top: 20px; }
.faq details { padding: 0 18px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 16px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); padding-bottom: 6px; }
.prose p, .prose li { color: #45475c; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent); font-weight: 600; }

/* ---------- Panel del fotógrafo ---------- */
.admin-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 22px 0; }
@media (min-width: 760px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpis div { padding: 16px 18px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.kpis div:nth-child(1) { background: var(--accent-soft); }
.kpis div:nth-child(2) { background: var(--sand-soft); }
.kpis div:nth-child(3) { background: #eceefa; }
.kpis div:nth-child(4) { background: var(--ok-soft); }
.kpis span { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.kpis b { font-size: 28px; font-weight: 800; letter-spacing: -.03em; color: var(--navy); font-variant-numeric: tabular-nums; }
.storage { margin: 0 0 22px; }
.storage-head { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; margin-bottom: 8px; color: var(--muted); }
.storage-head b { color: var(--ink); font-weight: 600; }
.storage .bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.storage .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--sage), var(--accent)); }
.storage small { display: block; margin-top: 8px; color: var(--muted); font-size: 12.5px; }
.admin-cols { display: grid; gap: 16px; }
@media (min-width: 900px) { .admin-cols { grid-template-columns: 1fr 1fr; align-items: start; } }
.auth-card { max-width: 440px; }
.drop { position: relative; display: grid; place-items: center; min-height: 110px; border: 1.5px dashed var(--line-2); border-radius: var(--radius); cursor: pointer; text-align: center; padding: 14px; color: var(--muted); transition: border-color .2s, background .2s, color .2s; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.table th, .table td { text-align: left; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.table th { color: var(--muted); font-weight: 600; }
.table td:not(:first-child), .table th:not(:first-child) { text-align: right; white-space: nowrap; }
.admin-ev-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.admin-ev-head > div:first-child { display: flex; flex-direction: column; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tag-item { position: relative; display: flex; flex-direction: column; gap: 6px; }
.tag-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.tag-item input { min-height: 38px; padding: 0 10px; border-radius: 8px; background: #fff; border: 1px solid var(--line-2); font-size: 14px; outline: none; }
.tag-item input:focus { border-color: var(--accent); }
.ev-admin-list { display: grid; gap: 6px; }
.ev-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; text-align: left; cursor: pointer; }
.ev-row span:first-child { display: flex; flex-direction: column; min-width: 0; }
.ev-row small { color: var(--muted); }
.ev-row.on { border-color: var(--accent); background: var(--accent-soft); }
.manager { margin-top: 4px; }
.upload { display: grid; gap: 12px; margin: 16px 0; }
.ev-edit { margin: 8px 0; padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); }
.ev-edit summary { cursor: pointer; font-weight: 600; }
.ev-edit form { margin-top: 12px; }
.order-list { display: grid; gap: 12px; }
.order-row { margin: 0; }
.order-row-head { display: flex; justify-content: space-between; gap: 10px; }
.order-row-head > div { display: flex; flex-direction: column; }
.order-total { font-size: 22px; font-weight: 800; letter-spacing: -.03em; color: var(--navy); }
.qr-field, .sponsor-logo-field { margin-bottom: 14px; }
.qr-label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.qr-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.qr-box { display: grid; place-items: center; width: 140px; height: 140px; border-radius: var(--radius); background: var(--surface-2); overflow: hidden; }
.qr-box img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.qr-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; flex: 1; min-width: 180px; }
.sponsor-row { display: flex; align-items: center; gap: 10px; }
.sponsor-row img { height: 44px; max-width: 120px; object-fit: contain; border-radius: 6px; border: 1px solid var(--line); background: #fff; }

/* ---------- Pie ---------- */
.footer { margin-top: 64px; padding: 48px 20px 30px; background: var(--ink); color: #fff; text-align: center; }
.footer .brand { color: #fff; }
.footer .logo-mark { color: #fff; }
.footer-inner { flex-direction: column; max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; }
.footer nav a { color: rgba(255, 255, 255, .72); font-size: 13.5px; }
.footer nav a:hover { color: var(--sand); }
.fine { max-width: 1120px; margin: 26px auto 0; color: rgba(255, 255, 255, .45); font-size: 12px; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar) + 20px + env(safe-area-inset-bottom)); z-index: 100;
  transform: translate(-50%, 10px); opacity: 0; pointer-events: none;
  max-width: calc(100% - 32px); padding: 11px 18px; border-radius: 999px;
  background: var(--navy); color: #fff; font-size: 14px; font-weight: 500; text-align: center;
  box-shadow: var(--shadow-lg); transition: opacity .2s, transform .25s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 900px) { .toast { bottom: 28px; } }

.demo-banner { padding: 8px 16px; background: var(--sand-soft); color: #8a5a17; font-size: 12.5px; font-weight: 500; text-align: center; }

.wa-float { position: fixed; right: 16px; bottom: calc(var(--tabbar) + 16px + env(safe-area-inset-bottom)); z-index: 38; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #25d366; box-shadow: var(--shadow-lg); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 27px; height: 27px; }
@media (min-width: 900px) { .wa-float { bottom: 24px; } }
body:has(.buy-dock) .wa-float { bottom: calc(var(--tabbar) + 80px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { body:has(.buy-dock) .wa-float { bottom: 92px; } }

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

.tag-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-actions .btn { flex: 1; }
.cover-row img { height: 70px; max-width: 140px; object-fit: cover; }

/* ---------- Preventa, compartir y contratar ---------- */
.ev-badge { position: absolute; top: 16px; left: 16px; z-index: 2; padding: 6px 12px; border-radius: 999px; background: var(--sand); color: var(--ink); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ev-share { position: absolute; top: 18px; right: 18px; z-index: 2; padding: 8px 16px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s, transform .2s; }
.ev-share:hover { background: #fff; transform: translateY(-1px); }

.hire-band { margin: 72px 4px 0; padding: 64px 22px; border-radius: 6px; background: var(--ink); color: #fff; text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.hire-band::before { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -160px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(217, 105, 74, .5), transparent 65%); }
.hire-band::after { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; left: -160px; bottom: -240px; border-radius: 50%; background: radial-gradient(circle, rgba(242, 201, 138, .3), transparent 65%); }
.hire-band h2 { color: #fff; font-size: clamp(24px, 4vw, 40px); margin-bottom: 10px; }
.hire-band p { color: rgba(255, 255, 255, .7); max-width: 460px; margin: 0 auto 26px; }
.hire-band .kicker { color: var(--sand); }

.hire-hero { text-align: center; padding: 56px 20px 36px; }
@media (min-width: 900px) { .hire-hero { padding: 84px 20px 52px; } }
.hire-hero h1 { font-size: clamp(28px, 5.4vw, 54px); max-width: 16ch; margin: 0 auto 16px; }
.services { display: grid; gap: 12px; margin-bottom: 28px; }
@media (min-width: 640px) { .services { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .services { grid-template-columns: repeat(4, 1fr); } }
.service { padding: 24px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.service svg { width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.service h3 { margin-bottom: 6px; }
.service p { color: var(--muted); font-size: 14px; margin: 0; }
.hire-form { max-width: 760px; margin: 0 auto 40px; padding: 28px; }

.share-box { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin: 14px 0 6px; padding: 16px; border-radius: var(--radius-lg); background: var(--sand-soft); }
.share-qr { width: 120px; height: 120px; flex: none; border-radius: 10px; overflow: hidden; background: #fff; display: grid; place-items: center; }
.share-qr canvas { width: 100%; height: 100%; display: block; }
.share-main { flex: 1; min-width: 240px; display: grid; gap: 8px; }
.share-link { display: flex; gap: 8px; }
.share-link input { flex: 1; min-width: 0; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; font-size: 14px; font-weight: 600; color: var(--navy); }
.presale-new { margin: 2px 0 14px; padding: 12px 14px; border-radius: var(--radius); background: var(--sand-soft); }
.presale-new .consent { margin-bottom: 0; }
.presale-new label[for] { margin: 12px 0 0; }
.wm-options { display: grid; gap: 8px; margin-bottom: 10px; }

/* ---------- Tipografía delgada: elegancia con contraste ---------- */
:root { --top: 64px; }
@media (min-width: 900px) { :root { --top: 124px; } }
h1, h2 { font-weight: 300; }
h1 b, h2 b { font-weight: 600; }
.home-intro h1, .hire-hero h1 { font-weight: 200; letter-spacing: -.035em; }
.home-intro h1 b, .hire-hero h1 b { font-weight: 600; }
.page-title { font-weight: 300; }
.intro-sub, .lead { font-weight: 300; font-size: 16.5px; }
.kicker, .eyebrow, .ev-kicker { font-weight: 500; letter-spacing: .28em; }
.ev-info h2 { font-weight: 300; }
.ev-hero h1 { font-weight: 300; }
.finder-title { font-weight: 200; }
.finder-title b { font-weight: 600; }
.seg button b { font-weight: 300; font-size: 16px; }
.seg button.on b { font-weight: 500; }
.hire-band h2 { font-weight: 200; }
.hire-band h2 b { font-weight: 600; }
.service h3 { font-family: var(--display); font-weight: 300; font-size: 16px; }
.ev-cta { font-weight: 400; letter-spacing: .04em; }
.footer nav a { font-weight: 300; letter-spacing: .14em; text-transform: uppercase; font-size: 11.5px; }
.fine { font-weight: 300; }
.wordmark { font-weight: 200; }

.up-checks { display: grid; gap: 4px; align-self: end; }
.up-checks .consent { margin-bottom: 6px; }

/* Ajustes: los 3 estilos de marca de agua con vista previa */
.wm-options { grid-template-columns: 1fr; }
@media (min-width: 640px) { .wm-options { grid-template-columns: repeat(3, 1fr); } }
.wm-opt { flex-direction: column; align-items: stretch; gap: 10px; padding: 10px; }
.wm-prev { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--surface-2); color: var(--muted); font-size: 12px; }
.wm-prev canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.wm-txt { display: flex; gap: 10px; align-items: flex-start; }
.wm-txt input { margin-top: 3px; }

/* ---------- Logo animado al entrar: el anillo se dibuja, el centro aparece, el punto destella ---------- */
.wordmark i { font-style: normal; }
.logo-mark .ring { stroke-dasharray: 107; stroke-dashoffset: 107; transform: rotate(-90deg); transform-origin: 20px 20px; animation: ring-draw 1.1s cubic-bezier(.65, 0, .35, 1) .15s forwards; }
.logo-mark .core { transform-origin: 20px 20px; transform: scale(0); animation: core-in .6s cubic-bezier(.34, 1.56, .64, 1) .95s forwards; }
.logo-mark .logo-dot { transform-origin: 31.5px 8.5px; transform: scale(0); animation: dot-in .45s cubic-bezier(.34, 1.56, .64, 1) 1.35s forwards, flash 7s ease-in-out 4s infinite; }
@keyframes ring-draw { to { stroke-dashoffset: 0; } }
@keyframes core-in { to { transform: scale(1); } }
@keyframes dot-in { to { transform: scale(1); } }
@keyframes flash { 0%, 92%, 100% { transform: scale(1); filter: none; } 95% { transform: scale(1.7); filter: drop-shadow(0 0 4px #f2c98a); } }
.topbar .wordmark b, .topbar .wordmark i { display: inline-block; opacity: 0; animation: word-in 1s var(--ease) forwards; }
.topbar .wordmark b { transform: translateY(60%); animation-delay: .55s; }
.topbar .wordmark i { letter-spacing: .7em; animation-name: track-in; animation-delay: .85s; }
@keyframes word-in { to { opacity: 1; transform: none; } }
@keyframes track-in { to { opacity: 1; letter-spacing: .32em; } }
@media (max-width: 899px) { @keyframes track-in { to { opacity: 1; letter-spacing: .26em; } } }
@media (max-width: 420px) { .topbar .wordmark i { animation-name: track-in-sm; } @keyframes track-in-sm { to { opacity: 1; letter-spacing: .2em; } } }
.footer .logo-mark .ring, .footer .logo-mark .core, .footer .logo-mark .logo-dot { animation: none; stroke-dashoffset: 0; transform: none; }
.footer .logo-mark .ring { transform: rotate(-90deg); }
@media (prefers-reduced-motion: reduce) {
  .logo-mark .ring { stroke-dashoffset: 0; } .logo-mark .core, .logo-mark .logo-dot { transform: none; }
  .topbar .wordmark b, .topbar .wordmark i { opacity: 1; transform: none; }
}

/* ---------- Revisión "listo para vender" e informe de subida ---------- */
.health { margin: 14px 0 6px; padding: 16px 18px; border-radius: var(--radius-lg); background: var(--surface-2); }
.health.good { background: var(--ok-soft); }
.health.warn { background: var(--sand-soft); }
.health.bad { background: #fdecea; }
.health-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.health.good .health-head strong { color: var(--ok); }
.health.bad .health-head strong { color: var(--danger); }
.health ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.health li { display: flex; gap: 10px; align-items: flex-start; }
.health li .dot { flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--dim); }
.health li.ok .dot { background: var(--sage); }
.health li.warn .dot { background: #d9a14f; }
.health li.bad .dot { background: var(--danger); }
.health li.info { color: var(--muted); }
.health-ph { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.health-ph figure { margin: 0; width: 74px; }
.health-ph img { width: 74px; height: 52px; object-fit: cover; border-radius: 6px; display: block; }
.health-ph figcaption { font-size: 10.5px; color: var(--muted); text-align: center; }
.up-report { margin-top: 8px; padding: 14px 16px; border-radius: var(--radius); display: grid; gap: 6px; font-size: 13.5px; }
.up-report.good { background: var(--ok-soft); color: var(--ok); }
.up-report.bad { background: #fdecea; }
.up-report.bad strong { color: var(--danger); }
.up-report ul { margin: 2px 0 6px; padding-left: 18px; max-height: 180px; overflow: auto; color: var(--muted); }
.up-report .btn { justify-self: start; }
