@charset "UTF-8";
:root{
  --bg:#ffffff;
  --text:#0f0f10;
  --muted:#55585f;
  --muted2:#7a7f89;
  --line:#e7e7ea;
  --btn:#111214;
  --btnText:#ffffff;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:var(--bg);
  color:var(--text);
}

.header{
  position:fixed;
  inset:0 0 auto 0;
  height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 14px;
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
}

.header-left{
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 0;
}

.title-block{
  display:flex;
  flex-direction:column;
  line-height:1.1;
  min-width: 0;
}

.title{
  font-weight:700;
  font-size:18px;
  letter-spacing:.2px;
}

.geo{
  font-size:12px;
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width: 60vw;
}

.header-right{
  display:flex;
  align-items:center;
  gap:8px;
}

.icon-btn{
  border:1px solid var(--line);
  background:#fff;
  width:42px;
  height:42px;
  border-radius:14px;
  display:grid;
  place-items:center;
  box-shadow: 0 2px 10px rgba(0,0,0,.03);
  cursor:pointer;
  transition: transform .15s ease, border-color .15s ease;
}

.icon-btn:hover{ transform: translateY(-1px); border-color:#d7d7dd; }
.icon-btn:active{ transform: translateY(0px) scale(.98); }

.icon-btn svg{
  width:20px;
  height:20px;
  fill:#141517;
}

/* Sutil “invita a pulsar” en GPS */
.gps-bounce{
  animation: gpsNudge 1.6s ease-in-out infinite;
}
@keyframes gpsNudge{
  0%, 70%, 100% { transform: translateY(0); }
  80% { transform: translateY(-2px); }
  90% { transform: translateY(0); }
}

/* Main */
.main{
  padding-top: calc(72px + 30px); /* cabecera + separación */
  min-height: 100vh;
  display: flex;
  justify-content: flex-start;
}

.coming{
  font-size:22px;
  color:var(--muted2);
  user-select:none;
}

/* Modal */
.hidden{ display:none; }

.modal{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.35);
  display:grid;
  place-items:center;
  padding:18px;
}

.modal-card{
  width:min(520px, 100%);
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow: var(--shadow);
  overflow:hidden;
}

.modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  border-bottom:1px solid var(--line);
}
.modal-title{ font-weight:700; }
.modal-close{
  width:36px; height:36px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  cursor:pointer;
  font-size:20px;
  line-height:1;
}

.modal-body{
  padding:14px 16px;
  color:var(--muted);
  font-size:14px;
}
.modal-body b{ color:var(--text); }

.modal-actions{
  padding:14px 16px;
  display:flex;
  gap:10px;
  justify-content:flex-end;
  border-top:1px solid var(--line);
}

.btn{
  height:42px;
  padding:0 14px;
  border-radius:14px;
  border:1px solid var(--line);
  cursor:pointer;
  font-weight:600;
}
.btn-ghost{
  background:#fff;
}
.btn-solid{
  background: var(--btn);
  color: var(--btnText);
  border-color: transparent;
}
.btn:active{ transform: scale(.99); }







/* --- Swipe (drag 4:5 premium) --- */
.swipe-container {
  position: relative;
  width: min(380px, 92vw);
  aspect-ratio: 1 / 5;        /* 🔥 PROPORCIÓN CLAVE */
  max-height: 72vh;           /* evita que sea excesiva */
  margin: 0 auto;
}

.swipe-card {
  position: absolute;
  inset: 0;
  border-radius: 32px;        /* más elegante */
  overflow: hidden;
  background: #f3f3f5;
  box-shadow:
    0 20px 40px rgba(0,0,0,.12),
    0 2px 6px rgba(0,0,0,.08);

  /* gestos táctiles */
  touch-action: none;

  /* estado base */
  opacity: 0;
  transform: scale(.98);
  transition:
    opacity .25s ease,
    transform .25s ease;

  pointer-events: none;
  z-index: 1;
  will-change: transform;
}

/* Tarjeta activa */
.swipe-card.active {
  opacity: 1;
  transform: translate3d(0,0,0) rotate(0deg) scale(1);
  pointer-events: auto;
  z-index: 10;
}

/* Siguiente tarjeta (asomando detrás) */
.swipe-card.peek {
  opacity: 1;
  transform: scale(.965) translateY(6px);
  z-index: 5;
  pointer-events: none;
}

/* Imagen */
.swipe-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* favorece retratos */
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* Mensaje "Próximamente" */
.swipe-message {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 18px;
  background: rgba(0,0,0,.78);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .2px;
}

.hidden {
  display: none;
}
