/* ═══════════════════════════════════════════════════════════════════════════
   Pasanaku de Viajes — hoja de estilos (dark-first, tema océano/viaje)
   Turquesa sobre azul-noche + ámbar atardecer para las metas/dinero.
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
  --bg: #06110f;
  --bg-2: #0b1a1c;
  --bg-3: #122528;
  --bg-4: #1a3236;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --txt: #e8f2f0;
  --muted: #8ea6a2;
  --tur: #2dd4bf;
  --tur-2: #5eead4;
  --sun: #ffb86b;
  --sun-2: #ffd29a;
  --danger: #ff7a7a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .7);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --display: 'Space Grotesk', 'Inter', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--txt);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(1100px 600px at 85% -10%, rgba(45, 212, 191, .12), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(255, 184, 107, .07), transparent 55%);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; }
.container { width: min(1140px, 92vw); margin: 0 auto; }
.muted { color: var(--muted); }
.tur { color: var(--tur); }
.sun { color: var(--sun); }
.mono { font-variant-numeric: tabular-nums; }
.center { text-align: center; }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; backdrop-filter: blur(12px);
  background: linear-gradient(to bottom, rgba(6, 17, 15, .9), rgba(6, 17, 15, .55));
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--tur); box-shadow: 0 0 18px var(--tur); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ── Botones ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 600; font-size: 14px;
  padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line-2);
  background: transparent; color: var(--txt); cursor: pointer; transition: .15s ease; white-space: nowrap;
}
.btn:hover { border-color: var(--txt); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--tur); color: #052420; border-color: var(--tur); box-shadow: 0 8px 30px -8px rgba(45, 212, 191, .6); }
.btn-primary:hover { background: var(--tur-2); border-color: var(--tur-2); }
.btn-ghost { background: var(--bg-3); }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-danger { color: var(--danger); border-color: rgba(255, 122, 122, .3); }
.btn-danger:hover { border-color: var(--danger); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ── Landing ─────────────────────────────────────────────────────────────── */
.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600;
  color: var(--tur); text-transform: uppercase; letter-spacing: .14em;
  padding: 6px 12px; border: 1px solid rgba(45, 212, 191, .25); border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(38px, 6vw, 62px); }
.hero h1 em { color: var(--tur); font-style: normal; }
.hero p.lead { font-size: 18px; color: var(--muted); margin: 20px 0 28px; max-width: 30em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* mockup: tarjeta de viaje con progreso */
.mock { background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); transform: rotate(-.5deg); }
.mock-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.mock-title { font-family: var(--display); font-weight: 600; font-size: 18px; }
.mock-dest { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.mock-meta { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.mock-meta .big { font-family: var(--display); font-size: 26px; }
.mock-meta .goal { font-size: 13px; color: var(--sun); }
.mock-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.mock-row:first-of-type { border-top: none; }
.mock-row .who { width: 62px; color: var(--muted); }
.mock-row .bar { flex: 1; }
.mock-row .pc { width: 38px; text-align: right; color: var(--tur); font-variant-numeric: tabular-nums; }

/* progreso */
.bar { height: 10px; background: var(--bg-4); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--tur), var(--tur-2)); border-radius: 999px; transition: width .5s ease; }
.bar-lg { height: 18px; }
.bar-xl { height: 26px; }

.section { padding: 64px 0; }
.section h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.section .sub { color: var(--muted); max-width: 40em; margin-bottom: 40px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step .n { font-family: var(--display); font-size: 13px; color: var(--tur); font-weight: 700; margin-bottom: 12px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feat .ic { font-size: 22px; margin-bottom: 12px; }
.feat h3 { font-size: 17px; margin-bottom: 6px; }
.feat p { font-size: 14px; color: var(--muted); }

.price-card { background: linear-gradient(160deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line-2); border-radius: 22px; padding: 40px; max-width: 560px; margin: 0 auto; text-align: center; }
.price-card .big { font-family: var(--display); font-size: 46px; }
.price-card .big small { font-size: 16px; color: var(--muted); font-family: var(--font); }
.price-list { list-style: none; text-align: left; max-width: 340px; margin: 24px auto; display: grid; gap: 10px; }
.price-list li { display: flex; gap: 10px; font-size: 15px; }
.price-list li::before { content: '✓'; color: var(--tur); font-weight: 700; }

.footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ── Modal ───────────────────────────────────────────────────────────────── */
.modal-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .66); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 60; padding: 20px; }
.modal-bg.show { display: flex; }
.modal { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 20px; width: min(460px, 96vw); padding: 28px; box-shadow: var(--shadow); max-height: 92vh; overflow: auto; }
.modal.wide { width: min(680px, 96vw); }
.modal h3 { font-size: 22px; margin-bottom: 4px; }
.modal .msub { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.modal-x { float: right; background: none; border: none; color: var(--muted); font-size: 22px; cursor: pointer; line-height: 1; }

/* ── Formularios ─────────────────────────────────────────────────────────── */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.input, select.input, textarea.input {
  width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  color: var(--txt); padding: 11px 13px; font-family: var(--font); font-size: 15px; transition: .15s;
}
.input:focus { outline: none; border-color: var(--tur); box-shadow: 0 0 0 3px rgba(45, 212, 191, .15); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-err { color: var(--danger); font-size: 13.5px; margin: 6px 0; min-height: 18px; }
.toggle-link { font-size: 14px; color: var(--muted); margin-top: 16px; text-align: center; }
.toggle-link a { color: var(--tur); cursor: pointer; }

/* ── App (panel) ─────────────────────────────────────────────────────────── */
.app-main { padding: 28px 0 80px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { font-size: 30px; }
.back-link { color: var(--muted); font-size: 14px; display: inline-flex; gap: 6px; align-items: center; margin-bottom: 10px; cursor: pointer; }
.back-link:hover { color: var(--txt); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: .15s; }
.card.link { cursor: pointer; }
.card.link:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card h3 { font-size: 19px; margin-bottom: 4px; }
.card .meta { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.card .prog-line { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.card .prog-line .amt { color: var(--txt); font-weight: 600; }
.card .prog-line .goal { color: var(--sun); }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; font-size: 13px; color: var(--muted); }

.stat-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.stat { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; min-width: 140px; flex: 1; }
.stat .k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.stat .v { font-family: var(--display); font-size: 24px; margin-top: 2px; }
.stat .v.sun { color: var(--sun); }
.stat .v.tur { color: var(--tur); }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty .big { font-size: 40px; margin-bottom: 12px; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }

/* countdown / meta grande */
.meta-hero { background: linear-gradient(160deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 24px; margin-bottom: 18px; }
.meta-hero .top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.meta-hero .amt { font-family: var(--display); font-size: 34px; }
.meta-hero .amt small { font-size: 16px; color: var(--muted); font-family: var(--font); }
.meta-hero .pct { font-family: var(--display); font-size: 34px; color: var(--tur); }
.countdown { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: rgba(255, 184, 107, .14); color: var(--sun); }
.countdown.pasado { background: rgba(255, 122, 122, .14); color: var(--danger); }

/* chips */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.chip-ok { background: rgba(45, 212, 191, .15); color: var(--tur); }
.chip-pend { background: rgba(255, 255, 255, .06); color: var(--muted); }
.chip-sun { background: rgba(255, 184, 107, .15); color: var(--sun); }

/* participantes */
.part-list { display: grid; gap: 10px; margin: 12px 0; }
.part-item { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.part-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.part-name { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.part-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--bg-4); display: grid; place-items: center; font-family: var(--display); font-size: 13px; color: var(--tur); }
.part-nums { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.part-nums b { color: var(--txt); }
.part-nums .goal { color: var(--sun); }
.part-actions { display: flex; gap: 6px; }
.icon-btn { background: none; border: 1px solid var(--line-2); border-radius: 8px; width: 30px; height: 30px; cursor: pointer; color: var(--muted); display: grid; place-items: center; font-size: 14px; }
.icon-btn:hover { color: var(--txt); border-color: var(--txt); }
.part-bar-row { display: flex; align-items: center; gap: 10px; }
.part-bar-row .bar { flex: 1; }
.part-bar-row .pc { width: 42px; text-align: right; font-size: 13px; color: var(--tur); font-variant-numeric: tabular-nums; }

/* aportes (log) */
.aporte-list { display: grid; gap: 8px; }
.aporte-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 14px; }
.aporte-item .left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.aporte-item .fecha { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.aporte-item .monto { color: var(--tur); font-weight: 600; font-variant-numeric: tabular-nums; }
.aporte-item .nota { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aporte-item .right { display: flex; align-items: center; gap: 6px; }

.section-title { font-family: var(--display); font-size: 20px; margin: 26px 0 12px; display: flex; align-items: center; justify-content: space-between; }

/* suscripción */
.sub-card { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 26px; max-width: 520px; }
.sub-badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.sub-badge.demo { background: rgba(255, 184, 107, .15); color: var(--sun); }
.sub-badge.pendiente { background: rgba(45, 212, 191, .15); color: var(--tur); }
.sub-badge.activa { background: rgba(45, 212, 191, .2); color: var(--tur); }

/* toasts */
.toast-wrap { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--bg-4); border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 20px; font-size: 14px; box-shadow: var(--shadow); animation: pop .2s ease; }
.toast.err { border-color: rgba(255, 122, 122, .4); color: #ffb3b3; }
.toast.ok { border-color: rgba(45, 212, 191, .4); }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.spin { width: 22px; height: 22px; border: 2.5px solid var(--line-2); border-top-color: var(--tur); border-radius: 50%; animation: rot .7s linear infinite; margin: 40px auto; }
@keyframes rot { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr; }
  .mock { transform: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 24px; }
}

@media print {
  .nav, .toolbar, .no-print, .footer { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .part-item, .aporte-item, .meta-hero { border: 1px solid #ccc; }
  .bar-fill { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ── Landing: hero con foto + galería de destinos ────────────────────────── */
.hero-photo { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); height: 440px; }
.hero-photo > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 17, 15, .92), transparent 50%); pointer-events: none; }
.float-card { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; background: rgba(11, 26, 28, .74); backdrop-filter: blur(12px); border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 16px; }
.float-card .fc-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.float-card .fc-title { font-family: var(--display); font-weight: 600; }
.float-card .fc-pct { color: var(--tur); font-weight: 600; font-variant-numeric: tabular-nums; }
.float-card .fc-sub { font-size: 12.5px; color: var(--muted); margin-top: 8px; }

.dest-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.dest-card { position: relative; border-radius: 16px; overflow: hidden; height: 220px; border: 1px solid var(--line); }
.dest-card.s2 { grid-column: span 2; }
.dest-card.s3 { grid-column: span 3; }
.dest-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .55s ease; }
.dest-card:hover img { transform: scale(1.07); }
.dest-card .cap { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 16px; background: linear-gradient(to top, rgba(0, 0, 0, .72), transparent 55%); }
.dest-card .cap b { font-family: var(--display); font-size: 19px; }
.dest-card .cap span { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .82); margin-top: 2px; }
@media (max-width: 860px) {
  .hero-photo { height: 340px; }
  .dest-grid { grid-template-columns: 1fr 1fr; }
  .dest-card.s2, .dest-card.s3 { grid-column: span 1; }
}
@media (max-width: 560px) {
  .dest-grid { grid-template-columns: 1fr; }
  .dest-card { height: 190px; }
}
