/* ============================================================
   Splash + selección de servicio
   ============================================================ */
/* En el splash, el fondo de la raíz también negro (cubre el área segura del iPhone) */
.splash-body, html:has(body.splash-body) { background: var(--black); }

.splash {
  background: var(--black);
  color: var(--white);
  justify-content: center;
  align-items: center;
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
}
.splash__pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at center, rgba(255,255,255,.04) 0 18px, transparent 19px);
  background-size: 46px 46px;
  opacity: .6;
}
.splash__logo { position: relative; z-index: 2; text-align: center; }
.splash__logo img { width: 150px; margin: 0 auto; }

/* Rompecabezas que arma el logo */
.assemble { position: relative; width: 160px; aspect-ratio: 610 / 947; margin: 0 auto; }
.assemble__final { position: absolute; inset: 0; width: 100% !important; height: 100%; object-fit: contain; opacity: 1; transition: opacity .45s ease; }
.assemble .piece {
  position: absolute; background-repeat: no-repeat; will-change: transform, opacity;
  animation: pieceIn .72s cubic-bezier(.18,.85,.25,1) both;
  animation-delay: var(--d);
}
@keyframes pieceIn {
  0%   { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.25) rotate(var(--rot)); filter: blur(2px); }
  55%  { opacity: 1; }
  100% { opacity: 1; transform: translate(0,0) scale(1) rotate(0); filter: blur(0); }
}
.splash__logo-fallback { text-align: center; }
.splash__o { font-size: 5rem; font-weight: 300; display: block; line-height: 1; }
.splash__brand { font-size: 2.4rem; font-style: italic; font-weight: 600; }
.splash__sub { display: block; letter-spacing: .55em; font-size: .8rem; margin-top: .2rem; padding-left: .55em; }
.splash__footer {
  position: absolute; bottom: calc(2rem + var(--safe-bottom)); z-index: 2;
  font-size: .82rem; letter-spacing: .03em; color: rgba(255,255,255,.7);
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px);} to { opacity:1; transform:none; } }

.splash__hint {
  position: absolute; bottom: calc(4.5rem + var(--safe-bottom)); z-index: 2;
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
  opacity: 0; animation: hintIn .6s ease 2.3s forwards, hintPulse 2.4s ease 2.9s infinite;
}
@keyframes hintIn { to { opacity: 1; } }
@keyframes hintPulse { 0%,100% { opacity: .4; } 50% { opacity: .85; } }

/* ---------- Selección de servicio — boutique monocromática ---------- */
.choose-body, html:has(body.choose-body) { background: #0a0a0a; }

.choose-screen {
  --fdisplay: 'Roboto', system-ui, sans-serif;
  --fui: 'Roboto', system-ui, sans-serif;
  position: relative; overflow: hidden; background: #0a0a0a; color: #fff;
}
.choose-screen .topbar { background: transparent; border-bottom: none; position: relative; z-index: 3; }
.choose-screen .topbar__logo { height: 28px; }
.choose-screen .topbar__user { border-color: rgba(255,255,255,.22); color: rgba(255,255,255,.78); }

.choose-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 50% -10%, #1c1c1c 0%, #0a0a0a 60%); }
.choose-bg::before { content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at center, rgba(255,255,255,.035) 0 15px, transparent 16px);
  background-size: 40px 40px; opacity: .7; }

/* Capa de "titileo": cada cierto tiempo una bolita se ilumina en blanco */
.choose-twinkle { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.tw-dot { position: absolute; width: 30px; height: 30px; border-radius: 50%; background: #fff; opacity: 0; will-change: opacity, transform; }
.tw-dot.tw-on { animation: twinkle 1.8s ease forwards; }
@keyframes twinkle {
  0% { opacity: 0; transform: scale(.5); }
  22% { opacity: .5; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}

.choose { position: relative; z-index: 2; flex: 1; min-height: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: .25rem 1rem calc(4rem + var(--safe-bottom)); }

.choose__intro { text-align: center; padding: .5rem 0 4rem; animation: introIn .9s cubic-bezier(.2,.8,.2,1) both; }
.choose__eyebrow { display: block; font-family: var(--fui); font-weight: 500; font-size: .6rem;
  letter-spacing: .42em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: .7rem; }
.choose__title { font-family: var(--fdisplay); font-weight: 300; font-size: 2.2rem; line-height: 1.05; letter-spacing: -.01em; color: #fff; }
.choose__sub-title { display: block; font-family: var(--fui); font-weight: 300; font-size: .8rem;
  color: rgba(255,255,255,.45); margin-top: .5rem; }

/* Móvil: las dos cajas PEGADAS lado a lado; llenan el espacio (tope alto anti-eternas) */
.choose__grid { flex: 0 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  height: min(56vh, 420px);
  border-radius: 20px; overflow: hidden; box-shadow: 0 16px 44px rgba(0,0,0,.55); }

.choose__card { position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; padding: 1.25rem 1.1rem; text-decoration: none;
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
  animation: cardIn .8s ease both; }
.choose__card:nth-of-type(1) { animation-delay: .12s; }
.choose__card:nth-of-type(2) { animation-delay: .24s; }
.choose__card:active { transform: scale(.99); }

.choose__card--presencial { color: #fff; background: linear-gradient(155deg, #161616 0%, #080808 100%); }
.choose__card--domicilio  { color: #111; background: linear-gradient(155deg, #f7f7f5 0%, #e7e7e3 100%); }

.choose__index { position: absolute; top: .7rem; right: 1.1rem; z-index: 2;
  font-family: var(--fdisplay); font-style: italic; font-size: 1.55rem; }
.choose__card--presencial .choose__index { color: rgba(255,255,255,.82); }
.choose__card--domicilio  .choose__index { color: rgba(0,0,0,.55); }

.choose__ring { position: absolute; width: 230px; height: 230px; border-radius: 50%;
  border: 1px solid currentColor; right: -80px; bottom: -88px; z-index: 1; opacity: .12; }

/* Ícono grande, centrado en el espacio libre del medio */
.choose__icon { position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%);
  width: 50%; max-width: 92px; height: auto; aspect-ratio: 1; z-index: 2; }
.choose__card--presencial .choose__icon { color: #fff; }
.choose__card--domicilio  .choose__icon { color: #111; }

.choose__body { position: relative; z-index: 2; margin-top: auto; }
.choose__kicker { display: block; font-family: var(--fui); font-weight: 500; font-size: .58rem;
  letter-spacing: .26em; text-transform: uppercase; margin-bottom: .35rem; }
.choose__card--presencial .choose__kicker { color: rgba(255,255,255,.5); }
.choose__card--domicilio  .choose__kicker { color: rgba(0,0,0,.45); }
.choose__label { display: block; font-family: var(--fdisplay); font-weight: 700; font-size: 1.5rem; line-height: 1.08; letter-spacing: -.01em; }
.choose__desc { display: block; font-family: var(--fui); font-weight: 300; font-size: .78rem; margin-top: .35rem; opacity: .6; }

.choose__cta { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .5rem;
  margin-top: .85rem; font-family: var(--fui); font-weight: 500; font-size: .66rem;
  letter-spacing: .2em; text-transform: uppercase; }
.choose__cta svg { width: 15px; height: 15px; transition: transform .3s ease; }
.choose__card:active .choose__cta svg { transform: translateX(4px); }

.choose__shine { position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(110deg, transparent 34%, rgba(255,255,255,.14) 50%, transparent 66%);
  transform: translateX(-130%); }
.choose__card--domicilio .choose__shine { background: linear-gradient(110deg, transparent 34%, rgba(255,255,255,.55) 50%, transparent 66%); }

@keyframes introIn { from { opacity: 0; transform: translateY(-14px);} to { opacity: 1; transform: none; } }
@keyframes cardIn { from { opacity: 0; } to { opacity: 1; } }

@media (hover: hover) {
  .choose__card:hover .choose__shine { transition: transform 1s ease; transform: translateX(130%); }
  .choose__card:hover .choose__cta svg { transform: translateX(4px); }
}

/* ============================================================
   DESKTOP — splash a pantalla completa y selección con más aire
   ============================================================ */
@media (min-width: 768px) {
  /* Splash: fondo negro a todo el ancho (sin franja tipo teléfono) */
  .splash-body { background: var(--black); }
  .splash-body .app.splash { max-width: none; }
  .splash__logo img { width: 200px; }
  .assemble { width: 220px; }
  .splash__o { font-size: 6.5rem; }
  .splash__brand { font-size: 3.2rem; }
  .splash__sub { font-size: 1rem; }

  /* Selección — cajas separadas, más finas y pequeñas, centradas */
  .choose-body .app { max-width: none; }
  .choose { justify-content: center; padding: 1rem 5vw calc(2rem + var(--safe-bottom)); }
  .choose__intro { padding: 1.4rem 0 1.9rem; }
  .choose__title { font-size: 3rem; }
  .choose__sub-title { font-size: .95rem; }
  .choose__grid {
    flex: 0 0 auto; grid-template-rows: none; grid-template-columns: 1fr 1fr;
    gap: 1.25rem; max-width: 640px; margin: 0 auto; width: 100%; height: auto;
    border-radius: 0; overflow: visible; box-shadow: none;
  }
  .choose__card { border-radius: 16px; min-height: 320px; padding: 1.8rem;
    transition: transform .3s ease, box-shadow .3s ease; }
  .choose__card--presencial { border: 1px solid rgba(255,255,255,.12); box-shadow: 0 16px 40px rgba(0,0,0,.5); }
  .choose__card--domicilio  { border: 1px solid rgba(0,0,0,.08); box-shadow: 0 16px 40px rgba(0,0,0,.4); }
  .choose__card:hover { transform: translateY(-7px); }
  .choose__card--presencial:hover { box-shadow: 0 26px 56px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.22); }
  .choose__card--domicilio:hover  { box-shadow: 0 26px 56px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.16); }
  .choose__index { font-size: 1.8rem; top: 1rem; right: 1.3rem; }
  .choose__icon { width: 118px; max-width: 118px; top: 38%; }
  .choose__ring { width: 280px; height: 280px; right: -84px; bottom: -100px; }
  .choose__label { font-size: 2.3rem; }
  .choose__desc { font-size: .85rem; }
}
