/* Sonder · plan Básico / Pro, Mi movilidad, compartir y recomendar (web/plan.js).
   Solo layout y tarjetas propias. Inputs, checkbox, interruptores (.switch) y botones (.btn) vienen de styles.css. */

/* ── Entrada escalonada ── */
@keyframes planIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes planBar { from { width: 0; } to { width: var(--w, 0%); } }
.plan-in { animation: planIn .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }

/* ── Tarjeta de estado ── */
.plan-status { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md, 18px); padding: 16px 18px; display: grid; gap: 8px; justify-items: start; }
.plan-status.is-pro { background: var(--ink); color: var(--white); border-color: var(--ink); }
.plan-status.is-pro .mono { color: var(--lime); }
.plan-status-t { font-family: var(--f-display); font-size: 30px; line-height: 1; margin: 2px 0 0; text-transform: uppercase; }
.plan-status-s { margin: 0; font-size: 14px; opacity: .85; }

/* ── Barra de progreso ── */
.plan-bar { width: 100%; height: 10px; border-radius: var(--r-pill, 999px); background: rgba(127, 127, 140, .22); overflow: hidden; }
.plan-bar > span { display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; background: var(--lime); animation: planBar 1.1s .25s cubic-bezier(.2, .7, .2, 1) both; }
.plan-bar.thin { height: 6px; margin: 10px 0 4px; }
.plan-bar.thin > span { background: var(--blue); }

/* ── Mensaje de juego limpio ── */
.plan-fair { margin: 14px 0 0; padding: 12px 14px; border-radius: var(--r-sm, 10px); background: var(--paper); border-left: 4px solid var(--blue); display: grid; gap: 4px; font-size: 14px; }
.plan-fair span { color: var(--ink-3); }

/* ── Comparativa ── */
.plan-grid { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 640px) { .plan-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.plan-col { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md, 18px); padding: 16px; }
.plan-col.is-pro { border: 2px solid var(--blue); box-shadow: 0 18px 40px -26px color-mix(in srgb, var(--blue) 55%, transparent); }
.plan-col header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 10px; }
.plan-col h2 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: 32px; line-height: 1; margin: 0; }
.plan-price { margin: 0; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.plan-col.is-pro .plan-price { color: var(--blue); }
.plan-plus { margin: 0 0 8px; font-size: 13px; color: var(--ink-3); }
/* Contraste Básico / Pro: Básico sobre papel y sobrio; Pro con cabecera azul llena. */
.plan-col:not(.is-pro) { background: var(--paper); }
.plan-col.is-pro header { background: var(--blue); color: var(--white); margin: -16px -16px 12px; padding: 14px 16px 12px; border-bottom: 0; border-radius: calc(var(--r-md, 18px) - 2px) calc(var(--r-md, 18px) - 2px) 0 0; }
.plan-col.is-pro header .plan-price, .plan-col.is-pro header .plan-scope { color: var(--white); opacity: .92; }
.plan-scope { flex-basis: 100%; margin: 0; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.plan-fair.is-pie { margin-top: 12px; }
.plan-beta-tester { margin: 8px 0 0; font-size: 13px; font-weight: 600; }
.plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.plan-list li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; font-size: 14px; line-height: 1.35; align-items: start; }
.plan-list li::before { content: '✓'; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--ink); color: var(--lime); margin-top: 1px; }
.plan-col.is-pro .plan-list li::before { background: var(--blue); color: var(--white); }
.plan-col.is-pro .plan-list li.is-pronto::before { background: transparent; color: var(--ink-3); border: 1px dashed var(--line-strong); content: '·'; }
.plan-list li > span + .plan-tag { grid-column: 2; }
.plan-tag { justify-self: start; font-style: normal; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: var(--r-pill, 999px); border: 1px solid var(--line-strong); color: var(--ink-3); }
.plan-tag.ya { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.plan-tag.parcial { background: var(--sky); border-color: var(--sky); color: var(--blue-ink); }

.plan-note { margin: 16px 0 0; font-size: 14px; padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: var(--r-sm, 10px); }
.plan-help { margin-top: 6px; display: grid; gap: 8px; justify-items: start; }
.plan-help p { margin: 0; }

/* ── Mi movilidad ── */
.mov-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md, 18px); padding: 14px 16px; margin-top: 12px; }
.mov-card h2, .mov-card h3 { font-size: 17px; letter-spacing: -.02em; margin: 0 0 10px; display: flex; gap: 8px; align-items: baseline; }
.mov-plazos, .mov-check, .mov-tareas { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mov-plazos li { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: var(--r-sm, 10px); background: var(--paper); font-size: 14px; }
.mov-plazos li b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mov-plazos li span { flex: none; font-family: var(--f-mono); font-size: 13px; color: var(--ink-3); }
.mov-plazos li.hot { background: rgba(255, 106, 61, .12); }
.mov-plazos li.hot span { color: var(--coral); font-weight: 700; }
.mov-plazos li.closed { opacity: .55; }
.mov-tipos { display: flex; flex-wrap: wrap; gap: 6px; }
.mov-check label, .mov-tareas label { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.35; cursor: pointer; }
.mov-check input:checked + span, .mov-tareas li.done label span { text-decoration: line-through; color: var(--ink-3); }
.mov-form { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 12px; }
@media (min-width: 520px) { .mov-form { grid-template-columns: 1fr auto auto; align-items: center; } }
.mov-tareas li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; padding: 8px 10px; border-radius: var(--r-sm, 10px); background: var(--paper); }
.mov-tareas li small { grid-column: 1; padding-left: 28px; font-family: var(--f-mono); font-size: 13px; color: var(--ink-3); }
.mov-tareas li.hot small { color: var(--coral); font-weight: 700; }
.mov-tareas .mov-x { grid-column: 2; grid-row: 1 / span 2; border: 0; background: none; color: var(--ink-3); cursor: pointer; width: 32px; height: 32px; border-radius: 50%; }
.mov-tareas .mov-x:hover { color: var(--ink); background: rgba(127, 127, 140, .14); }
.mov-alerta { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.mov-alerta > span { display: grid; gap: 2px; font-size: 14px; }
.mov-alerta small { color: var(--ink-3); font-size: 13px; }

/* Vista bloqueada */
.mov-locked { position: relative; margin-top: 8px; min-height: 340px; }
.mov-preview { filter: blur(5px) saturate(.7); opacity: .7; pointer-events: none; user-select: none; }
.mov-box { width: 16px; height: 16px; flex: none; border: 1.5px solid var(--line-strong); border-radius: 4px; }
.mov-preview .mov-check li { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.mov-lock-card { position: absolute; inset: 50% 0 auto; transform: translateY(-50%); margin: 0 auto; max-width: 340px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md, 18px); padding: 20px; box-shadow: 0 24px 50px -24px rgba(14, 14, 20, .45); display: grid; gap: 8px; justify-items: start; }
.mov-lock-card p { margin: 0; font-size: 14px; }
.mov-lock-ico { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--lime); }

/* ── Insignia de cabecera ── */
.plan-badge { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: var(--r-pill, 999px); font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; border: 1px solid var(--line-strong); color: var(--ink); background: var(--white); transition: transform .2s; }
.plan-badge.is-pro { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.plan-badge:hover { transform: translateY(-1px); }

/* ── Recomienda Sonder ── */
.rec-card { position: relative; overflow: hidden; margin-top: 16px; padding: 18px; border-radius: var(--r-md, 18px); background: var(--blue); color: var(--white); display: grid; gap: 8px; justify-items: start; }
.rec-card h2 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: 30px; line-height: 1; margin: 0; max-width: 85%; }
.rec-card p { margin: 0; font-size: 14px; max-width: 85%; }
.rec-honest { opacity: .8; font-size: 13px !important; }
.rec-glyph { position: absolute; right: -6px; top: -18px; font-size: 110px; line-height: 1; color: var(--lime); opacity: .9; animation: recSpin 18s linear infinite; }
@keyframes recSpin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .plan-in, .plan-bar > span, .rec-glyph { animation: none; }
  .plan-badge { transition: none; }
}
