* { box-sizing: border-box; }
body {
  margin: 0;
  width: 100vw;
  height: 100svh;
  overflow: hidden;
  padding: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #e6e9ee;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #15171b;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid #4465b8; outline-offset: 4px; }
.card-frame {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.card {
  container-type: inline-size;
  height: 100%;
  max-height: min(840px, calc(100svh - 24px));
  max-width: min(420px, calc(100vw - 24px));
  width: auto;
  aspect-ratio: 420 / 840;
  position: relative;
  isolation: isolate;
  background: white;
  border-radius: clamp(22px, 5.5cqw, 38px);
  overflow: hidden;
  box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.2), 0 4px 14px rgba(0, 0, 0, 0.05);
}
.blue {
  position: absolute;
  inset: 0;
  background: #dbe4ff;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 0 56%);
  z-index: -1;
}
header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(48px, 8%, 68px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(16px, 5.5cqw, 26px);
  z-index: 4;
}
.icon {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 8px;
}
.icon svg, .sport svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.share { color: #8793a9; }
.edition {
  position: absolute;
  left: clamp(20px, 7%, 32px);
  top: clamp(50px, 9.5%, 78px);
  font-size: clamp(8px, 2.4cqw, 10px);
  letter-spacing: 2px;
  color: #667493;
  display: flex;
  gap: 12px;
  z-index: 3;
}
.edition span { color: #536382; }
.play {
  position: absolute;
  left: clamp(24px, 9%, 44px);
  top: clamp(260px, 49%, 410px);
  width: clamp(52px, 15cqw, 70px);
  height: clamp(52px, 15cqw, 70px);
  border: 5px solid #f6f7f9;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.12);
  display: grid;
  place-items: center;
  z-index: 4;
  transition: transform .25s cubic-bezier(.2, .9, .3, 1.4);
}
.play:hover { transform: scale(1.07); }
.play svg { width: clamp(22px, 6cqw, 28px); height: clamp(22px, 6cqw, 28px); fill: #0a0b0d; }
.name {
  position: absolute;
  left: clamp(20px, 7%, 32px);
  top: clamp(340px, 63%, 520px);
  z-index: 3;
  max-width: 82%;
}
.name p {
  margin: 0;
  font-size: clamp(18px, 5.5cqw, 26px);
  font-weight: 500;
}
.name h1 {
  margin: 0;
  line-height: 0.95;
  font-size: clamp(32px, 11.5cqw, 52px);
  font-weight: 900;
  letter-spacing: -2px;
}
.name .caption {
  font-size: clamp(10px, 2.8cqw, 12px);
  color: #69717c;
  margin-top: 5px;
  letter-spacing: .1px;
  max-width: 220px;
  line-height: 1.35;
}
.sports {
  position: absolute;
  bottom: clamp(12px, 3.5%, 26px);
  left: clamp(14px, 5%, 26px);
  right: clamp(14px, 5%, 26px);
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.8vw, 10px);
  z-index: 4;
}
.sport {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: clamp(38px, 11cqw, 48px);
  height: clamp(38px, 11cqw, 48px);
  border: 2px solid #e2e6e7;
  color: #a6b1b5;
  background: white;
  border-radius: 50%;
  padding: 6px;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), border-color .35s, box-shadow .35s;
}
.sport:hover { color: #1c2027; transform: translateY(-2px); }
.sport.selected { color: #121417; border-color: #fff; }
.sport-label { font-size: clamp(12px, 3.8cqw, 16px); font-weight: 700; margin-right: auto; }
dialog {
  border: 0;
  border-radius: 28px;
  padding: 32px 22px;
  width: min(400px, calc(100% - 28px));
  max-height: calc(100svh - 40px);
  overflow-y: auto;
  color: #171b24;
  box-shadow: 0 25px 90px rgba(0, 0, 0, 0.25);
}
dialog::backdrop { background: rgba(22, 59, 57, 0.35); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.close { position: absolute; right: 14px; top: 12px; border: 0; background: #eff2f8; border-radius: 50%; width: 34px; height: 34px; font-size: 24px; color: #4c576c; }
#toast { position: fixed; bottom: 20px; left: 50%; transform: translate(-50%, 20px); background: #20293b; color: white; padding: 10px 18px; border-radius: 16px; font-size: 13px; opacity: 0; transition: .2s; pointer-events: none; width: max-content; max-width: 90vw; z-index: 10; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Cuatro jugadores, conservando la tarjeta original. */
.card { --player-color: #d8efea; }
.blue { background: var(--player-color); transition: background-color .6s cubic-bezier(.16, 1, .3, 1); }
.athlete { width: 94%; right: -1%; object-position: center; }
.edition, .edition span { color: #536c69; }
.sports { gap: 8px; }
.player-slot { display: flex; align-items: center; gap: 0; min-width: 0; }
.player-slot.is-active { flex: 1; gap: clamp(6px, 2cqw, 10px); }
.player-choice { position: relative; overflow: visible; }
.player-choice .face { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: var(--avatar-color, var(--player-color)); opacity: .72; filter: saturate(.85) contrast(.95); transform: scale(.93); transition: opacity .35s cubic-bezier(.16, 1, .3, 1), transform .35s cubic-bezier(.16, 1, .3, 1), filter .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s cubic-bezier(.16, 1, .3, 1); }
.face img { position: absolute; max-width: none; height: auto; transition: transform .35s cubic-bezier(.16, 1, .3, 1), filter .35s ease; }
.player-choice:hover .face { opacity: .9; transform: scale(.98); }
.player-choice[aria-pressed="true"] { border-color: #ffffff; box-shadow: 0 0 0 2.5px #fff, 0 0 0 5px var(--avatar-color, var(--player-color)), 0 8px 24px rgba(0, 0, 0, 0.2); transform: translateY(-3px) scale(1.04); }
.player-choice[aria-pressed="true"] .face { opacity: 1; filter: saturate(1.22) contrast(1.1) brightness(1.04); transform: scale(1.06); }
.player-choice[aria-pressed="true"] .face img { filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.22)); }
.player-choice[aria-pressed="true"]:after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--avatar-color, var(--player-color)); opacity: .75; animation: avatar-pulse 3s ease-in-out infinite; pointer-events: none; }
@keyframes avatar-pulse { 0%, 100% { transform: scale(1); opacity: .75; } 50% { transform: scale(1.12); opacity: .2; } }
.player-slot .sport-label { display: none; min-width: 0; overflow-wrap: anywhere; }
.player-slot.is-active .sport-label { display: block; margin: 0; font-size: clamp(13px, 4cqw, 17px); }
.player-choice:disabled { opacity: .45; cursor: default; }
.player-choice:disabled:hover { transform: none; color: #a6b1b5; }
.menu-link:disabled { color: #9aa2aa; cursor: default; }
@media (prefers-reduced-motion: reduce) { .blue, .face, .player-choice:after { animation: none; transition: none; } }

/* Galería con soporte táctil, bordes difuminados y transiciones suaves con desaceleración */
.photo-stage { position:absolute; top:13.5%; right:-1%; width:94%; height:68%; z-index:2; overflow:hidden; touch-action:none; cursor:grab; user-select:none; -webkit-mask-image:linear-gradient(to bottom, transparent 0%, black 7%, black 91%, transparent 100%); mask-image:linear-gradient(to bottom, transparent 0%, black 7%, black 91%, transparent 100%); }
.slide-layer { position:absolute; inset:0; z-index:2; transform-origin:50% 60%; backface-visibility:hidden; }
.outgoing { position:absolute; inset:0; z-index:1; pointer-events:none; transform-origin:50% 60%; backface-visibility:hidden; }
.photo-stage .athlete { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; pointer-events:none; }
.photo-stage [hidden], .photo-stage img[hidden], .slide-pending[hidden] { display:none!important; }
.slide-pending { position:absolute; inset:0; margin:0; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:16px; padding:35px; text-align:center; font-size:12px; letter-spacing:.4px; color:#536c69; pointer-events:none; }
.pending-badge { display:inline-block; font-size:clamp(10px, 2.8cqw, 12px); font-weight:600; letter-spacing:1px; text-transform:uppercase; color:#3e5852; background:#ffffff90; padding:6px 14px; border-radius:999px; backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); box-shadow:0 3px 12px rgba(0,0,0,0.06); }
.dots { position:absolute; top:calc(55.75% - 230px); left:3%; z-index:5; display:flex; flex-direction:column; gap:2px; }
.dot { width:36px; height:22px; border:0; background:transparent; display:grid; place-items:center; cursor:pointer; padding:0; }
.dot:after { content:''; width:7px; height:7px; background:#a1b8b3; border-radius:50%; transition:transform .35s cubic-bezier(.16, 1, .3, 1), background .35s ease, width .35s cubic-bezier(.16, 1, .3, 1), height .35s cubic-bezier(.16, 1, .3, 1); }
.dot:hover:after { transform:scale(1.3); background:#648178; }
.dot[aria-current="true"]:after { width:9px; height:20px; border-radius:999px; background:#243c36; box-shadow:0 0 0 3px rgba(255,255,255,0.7); }
.gallery-status { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }

/* Movimiento por capas: transformaciones ligeras para una experiencia móvil. */
.card { --px:0; --py:0; perspective:1100px; }
.blue { transition:background-color .8s ease; }
.ambient-light { position:absolute; inset:-12%; pointer-events:none; z-index:0; background:radial-gradient(ellipse at 28% 25%,#ffffff60,transparent 52%),radial-gradient(ellipse at 80% 60%,#ffffff30,transparent 50%); transform:translate3d(calc(var(--px)*-12px),calc(var(--py)*-16px),0); transition:transform .6s cubic-bezier(.16,1,.3,1); }
.photo-stage { perspective:1000px; transform:translate3d(calc(var(--px)*7px),calc(var(--py)*9px),0) rotateY(calc(var(--px)*1.5deg)); transition:transform .65s cubic-bezier(.16,1,.3,1); }
.dragging .photo-stage { cursor:grabbing; transition:transform .08s linear; }
.photo-stage .athlete { user-select:none; -webkit-user-drag:none; }
.name { transform:translate3d(calc(var(--px)*-3px),calc(var(--py)*-4px),0); transition:transform .6s cubic-bezier(.16,1,.3,1); }
.edition { transform:translate3d(calc(var(--px)*-2px),calc(var(--py)*-2px),0); transition:transform .6s ease; }
.edition span { display:inline-block; font-variant-numeric:tabular-nums; }
header { animation:soft-arrive .75s both; }
.edition { animation:soft-arrive .8s .07s both; }
.name { animation:soft-arrive .9s .18s both; }
.sports { animation:soft-arrive .85s .26s both; }
.dot { animation:soft-arrive .55s both; animation-delay:calc(.15s + var(--i,0)*.025s); }
.icon,.play,.bio-trigger,.player-choice { transition:transform .35s cubic-bezier(.2,.9,.3,1.4),box-shadow .3s,background-color .35s; }
.icon:active,.play:active,.bio-trigger:active,.player-choice:active { transform:scale(.9); }
.play { box-shadow:0 7px 22px #263c3a20,inset 0 1px 0 white; }
.play:before { content:''; position:absolute; inset:-7px; border:1px solid #ffffff65; border-radius:50%; pointer-events:none; animation:play-halo 4.5s ease-in-out infinite; }
.sports { gap:8px; }
.player-slot { flex:0 0 auto; transition:flex .5s ease,gap .5s ease; }
.player-slot.is-active { flex:1 1 auto; }
.player-slot.is-active .sport-label { animation:label-reveal .4s both; }
.player-choice .face,.menu-avatar .face { background:var(--avatar-color,var(--player-color)); }
.initials { position:absolute; inset:0; display:grid; place-items:center; border-radius:50%; background:var(--avatar-color,#e6eeeb); font-size:13px; font-weight:700; letter-spacing:-.3px; color:#485d60; transition:opacity .3s,transform .4s; }
.player-choice[aria-pressed="true"] .initials { opacity:0; transform:scale(.5); }
.bio-trigger { position:absolute; right:6.5%; top:81%; z-index:5; display:flex; align-items:center; gap:5px; min-height:44px; border:1px solid #e1e9e580; border-radius:22px; padding:8px 11px; background:#ffffffaa; color:#637b74; font-size:10px; box-shadow:0 3px 14px #344a4206; animation:soft-arrive .85s .3s both; }
.bio-trigger svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linejoin:round; stroke-linecap:round; }
.bio-trigger:hover { background:#eef5f0; transform:translateY(-2px); }
.demo-monogram { font-size:clamp(100px,35cqw,160px); line-height:1; font-weight:800; letter-spacing:-12px; color:#ffffffbb; text-shadow:0 15px 40px #52676115; }
.pending-number { font-size:clamp(70px,25cqw,115px); line-height:1; font-weight:700; letter-spacing:-6px; color:#ffffffaa; }
/* Vidrio con base legible y desenfoque como mejora progresiva. */
dialog { --player-color:#d8efea; color:#233c36; width:min(420px,calc(100% - 28px)); margin:auto; padding:48px 26px 25px; border:1px solid #ffffffc9; border-radius:32px; background:linear-gradient(145deg,#fffffff2,#e8f0edf2); box-shadow:0 35px 100px #132d3940,inset 0 1px 1px #fff,inset 0 -1px 0 #ffffff70; overscroll-behavior:contain; scrollbar-width:thin; transform-origin:center 65%; }
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) { dialog { background:linear-gradient(145deg,#ffffffe0,#ffffff9c); backdrop-filter:blur(28px) saturate(155%); -webkit-backdrop-filter:blur(28px) saturate(155%); } }
dialog::backdrop { background:#163b393d; backdrop-filter:blur(5px); -webkit-backdrop-filter:blur(5px); }
.close { top:13px; right:13px; background:#ffffff75; color:#587269; border:1px solid #ffffffa0; box-shadow:0 3px 10px #24372b08; transition:transform .25s,background .25s; }
.close:hover { transform:rotate(90deg); background:#fff; }
.glass-kicker { display:block; font-size:9px; font-weight:700; letter-spacing:2px; color:#627d73; }
dialog h2 { color:#233c36; font-size:30px; line-height:1.08; letter-spacing:-1.2px; margin:15px 0 14px; }
dialog h2 em { font-family:Georgia,serif; font-weight:400; }
dialog .glass-intro { color:#60776f; font-size:12px; margin:0 0 23px; line-height:1.5; }
.glass-roster { display:grid; gap:10px; }
.glass-player { display:flex; align-items:center; gap:13px; width:100%; text-align:left; padding:13px; border:1px solid #ffffffbb; border-radius:19px; color:#304b41; background:#ffffff50; box-shadow:0 3px 12px #15392a05,inset 0 1px 0 #fff9; transition:background .3s,transform .3s,border .3s; }
.glass-player.chosen { background:linear-gradient(110deg,#ffffffaa,var(--avatar-color)); border-color:#fff; }
.glass-player:hover { background:#ffffffc0; transform:translateY(-2px); }
.glass-player:active { transform:scale(.97); }
.menu-avatar { position:relative; display:block; width:49px; height:49px; flex-shrink:0; border-radius:50%; background:var(--avatar-color); box-shadow:inset 0 0 0 1px #fff8,0 3px 10px #1225190d; overflow:hidden; }
.menu-avatar .face { position:absolute; inset:0; border-radius:50%; overflow:hidden; }
.menu-player-name { flex:1; font-size:15px; letter-spacing:-.3px; }
.menu-player-name b { font-weight:700; }
.menu-player-name small { display:block; margin-top:5px; font-size:10px; color:#64766e; letter-spacing:.1px; }
.menu-arrow { font-size:17px; color:#728a80; }
dialog .glass-footnote { font-size:10px; line-height:1.6; color:#667e74; margin:17px 2px 0; }
.bio-heading { display:flex; align-items:center; gap:17px; margin:22px 0 12px; }
.menu-avatar.large { width:68px; height:68px; border:2px solid #ffffffb3; }
.large .initials { font-size:21px; }
dialog .bio-first { margin:0; color:#60776f; font-size:20px; line-height:1.1; }
.bio-heading h2 { font-size:37px; margin:4px 0 0; font-weight:800; }
dialog .sample-label { display:inline-block; border:1px solid #ffffffa0; border-radius:20px; padding:5px 9px; margin:0 0 13px; color:#657c73; font-size:9px; background:#ffffff48; }
.bio-quote { margin:12px 0 18px; border-left:2px solid #94b6a5; padding:4px 0 4px 15px; font-family:Georgia,serif; font-size:23px; line-height:1.3; letter-spacing:-.4px; color:#355a49; }
dialog .bio-copy { font-size:13px; line-height:1.9; color:#506960; margin:0 0 23px; }
.bio-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:7px; }
.bio-stat { background:#ffffff55; border:1px solid #ffffffa8; padding:13px 8px; border-radius:13px; min-width:0; }
.bio-stat span { display:block; font-size:7px; letter-spacing:.7px; color:#6d837a; }
.bio-stat strong { display:block; margin-top:8px; font-size:11px; font-weight:600; overflow-wrap:anywhere; }
.bio-footer { display:flex; align-items:center; gap:9px; margin-top:22px; padding-top:16px; border-top:1px solid #ffffff8a; font-size:8px; letter-spacing:1.4px; color:#72897e; }
.bio-footer>span:first-child { font-size:22px; }
.video-placeholder { padding:28px 8px; text-align:center; background:#ffffff50; border:1px solid #fff8; border-radius:20px; margin-top:22px; }
.video-placeholder>span { font-size:46px; color:#6f8c7d; }
.video-placeholder p { font-size:13px; color:#647c72; }
.modal-open .play:before,.motion-paused * { animation-play-state:paused!important; }
@keyframes soft-arrive { from { opacity:0; translate:0 12px; } to { opacity:1; translate:0 0; } }
@keyframes label-reveal { from { opacity:0; transform:translateX(-7px); } to { opacity:1; transform:translateX(0); } }
@keyframes play-halo { 0%,100% { opacity:.5; transform:scale(1); } 50% { opacity:0; transform:scale(1.14); } }
@media(max-width:360px) { .bio-trigger { top:80.5%; padding:7px 9px; font-size:9px; } dialog { padding:48px 20px 23px; } dialog h2 { font-size:27px; } .glass-player { padding:11px; } .menu-avatar { width:44px; height:44px; } .bio-stat strong { font-size:10px; } }
@media(max-height:700px) { .bio-trigger { top:80%; } }
@media(prefers-reduced-motion:reduce) { *,*:before,*:after { animation:none!important; transition:none!important; scroll-behavior:auto!important; } .photo-stage,.name,.edition,.ambient-light { transform:none!important; } }
.bio-stats { grid-template-columns:1.5fr 1fr 1fr; }
@media(max-width:360px) { .bio-stat { padding:12px 6px; } .bio-stat strong { font-size:10px; } }
.sports { gap:clamp(4px,1.3cqw,8px); }
.player-slot.is-active .sport-label { white-space:nowrap; flex-shrink:0; }
.slide-pending { padding-bottom:75px; }
html:has(dialog[open]) { overflow:hidden; }
/* Composición 1:2: el marco completo se ajusta al espacio disponible. */
body {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  touch-action: auto;
}
.card-frame { position: relative; width: 100%; height: 100%; min-width: 0; min-height: 0; }
.card {
  position: absolute;
  width: 420px;
  height: 840px;
  max-height: none;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(var(--card-scale, 0));
  border-radius: 42px;
}
header { padding-inline: 23px; }
.edition { font-size: 10px; }
.bio-trigger { top: 81%; padding: 8px 11px; font-size: 10px; }
.sports { bottom: 26px; }
.player-slot.is-active { gap: 8px; }
dialog { touch-action: pan-y pinch-zoom; }

/* Botón "En acción" */
.action-trigger {
  position: absolute;
  left: clamp(20px, 7%, 32px);
  top: clamp(76px, 12.8%, 106px);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  border: 1px solid #ffffffc0;
  border-radius: 18px;
  padding: 6px 12px;
  background: #ffffffb0;
  color: #48615b;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .4px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  animation: soft-arrive .85s .15s both;
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.4), background-color .35s, box-shadow .35s, color .35s;
}
.action-trigger svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.action-trigger:hover {
  background: #ffffff;
  color: #243c36;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.09);
}
.action-trigger:active {
  transform: scale(.93);
}
.card .action-trigger {
  top: 106px;
}

/* Pop-up del Álbum "En acción" */
.action-dialog {
  border: 0;
  border-radius: 32px;
  padding: 26px 20px 22px;
  width: min(420px, calc(100% - 24px));
  margin: auto;
  color: #233c36;
  background: linear-gradient(150deg, #fffffff8, var(--player-color, #edf4f1f6));
  box-shadow: 0 35px 100px rgba(19, 45, 57, 0.38), inset 0 1px 1px #fff;
  overscroll-behavior: contain;
  transform-origin: center center;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .action-dialog {
    background: linear-gradient(150deg, #fffffff0, var(--player-color, #d8efea));
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
  }
}
.action-dialog::backdrop {
  background: rgba(18, 41, 38, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.action-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  padding-right: 36px;
}
.action-header .glass-kicker {
  color: #557268;
}
.action-header h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.6px;
  margin: 3px 0 0;
  color: #1f3731;
}
.action-badge-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #3b5a51;
  background: #ffffffa0;
  border: 1px solid #ffffffcc;
  padding: 4px 10px;
  border-radius: 999px;
}

/* Slider de fotos dentro del pop-up (fondo transparente integrado con la tarjeta) */
.action-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.8;
  border-radius: 22px;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
  user-select: none;
}
.action-slider.dragging {
  cursor: grabbing;
}
.action-slides-container {
  position: absolute;
  inset: 0;
}
.action-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.action-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 22px;
  pointer-events: none;
  filter: drop-shadow(0 14px 30px rgba(18, 48, 42, 0.16));
}
.action-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #ffffffaa;
  background: #ffffffe6;
  color: #1f3731;
  display: grid;
  place-items: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 6;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transition: transform .25s cubic-bezier(.2, .9, .3, 1.4), background-color .2s;
}
.action-nav-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
}
.action-nav-btn:active {
  transform: translateY(-50%) scale(.9);
}
.action-nav-btn.prev { left: 10px; }
.action-nav-btn.next { right: 10px; }
.action-nav-btn:disabled {
  opacity: .3;
  pointer-events: none;
}

/* Indicadores de diapositiva */
.action-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
}
.action-dots-bar {
  display: flex;
  gap: 6px;
  align-items: center;
  max-width: 65%;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 2px;
}
.action-dots-bar::-webkit-scrollbar {
  display: none;
}
.action-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: #8faea577;
  padding: 0;
  cursor: pointer;
  transition: all .35s cubic-bezier(.16, 1, .3, 1);
}
.action-dot.active {
  width: 22px;
  border-radius: 999px;
  background: #243c36;
}
.action-hint {
  font-size: 10px;
  color: #6d867d;
  letter-spacing: .2px;
}

/* Estado vacío cuando no hay fotos en la carpeta */
.action-empty {
  padding: 45px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.action-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ffffff80;
  border: 1px solid #ffffffcc;
  display: grid;
  place-items: center;
  color: #557268;
  font-size: 26px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}
.action-empty h3 {
  margin: 4px 0 0;
  font-size: 19px;
  font-weight: 700;
  color: #243c36;
}
.action-empty p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #5b746c;
  max-width: 260px;
}
.action-folder-tag {
  display: inline-block;
  margin-top: 6px;
  font-size: 10px;
  font-family: monospace;
  background: #ffffffaa;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px dashed #7a9a90;
  color: #3b554e;
}

/* Base independiente: conserva la diagonal y permite bajar/subir entre perfiles. */
.blue { clip-path: none; }
.profile-base {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: #fff;
  clip-path: polygon(0 56%, 100% 70%, 100% 100%, 0 100%);
  transform: translate3d(0, 0, 0);
}
.profile-name-exit { pointer-events: none; animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .profile-base { transform: none !important; }
}

/* Las capas animadas no deben crear desplazamiento interno al enfocar controles. */
.card { overflow: clip; }

.header-links { display: flex; align-items: center; gap: 3px; }
.brand-link { display: grid; place-items: center; text-decoration: none; }
.brand-link img { width: 28px; height: 28px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: opacity .2s, transform .2s; }
.brand-link:hover img, .brand-link:focus-visible img { opacity: 1; transform: translateY(-2px); }
.studio-badge { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 22px; padding: 23px 16px 18px; border-radius: 23px; background: linear-gradient(145deg,#747a80,#555c62); border: 1px solid #ffffff70; box-shadow: inset 0 1px 0 #ffffff35, 0 8px 20px #25303618; color: #f3f4f5; text-align: center; text-decoration: none; }
.studio-badge img { width: 185px; height: 65px; object-fit: contain; filter: grayscale(1); }
.studio-badge span { font-size: 10px; line-height: 1.8; }
.studio-badge strong { font-size: 10px; font-weight: 500; }
.studio-badge:hover { background: #505960; }
.share-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.share-grid a,.share-grid button,.share-system { padding: 13px 10px; border: 1px solid #ffffffcc; border-radius: 14px; background: #ffffff80; color: #304b41; text-decoration: none; text-align: center; font-size: 13px; }
.share-system { width: 100%; margin-bottom: 12px; background: #304b41; color: white; }
.share-local { font-size: 12px; line-height: 1.6; color: #64766e; }
#share-feedback { font-size: 12px; }
.share-url { width: 100%; padding: 10px; user-select: text; }

/* Tamaño óptico de los logos alineado con Compartir. */
.header-links .brand-link { padding: 4px; }
.header-links .brand-link img { width: 32px; height: 32px; }
.header-links .brand-link[aria-label="WhatsApp"] img { width: 34px; height: 34px; }
.header-links .brand-link[aria-label="Hotel Samapini"] img { width: 44px; height: 40px; max-width: none; opacity: .85; }
