/* Holalan — cuenta y app web (usa los tokens de styles.css) */
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.hint, .opt { font-weight: 600; color: var(--muted); font-size: .82rem; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: none; border: 1.5px solid var(--line); }
.btn-danger { background: #d92d20; box-shadow: none; }
.link-btn { border: 0; background: none; padding: 0; font: 800 .92rem var(--body); color: var(--blue-deep); cursor: pointer; }
.danger-link { color: #d92d20; margin-top: .4rem; justify-self: center; }
.icon-btn { border: 0; background: var(--blue-soft); width: 34px; height: 34px; border-radius: 10px; cursor: pointer; font-size: 1rem; color: var(--ink); flex: none; }
textarea { font: 600 1rem var(--body); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: .75rem .85rem; width: 100%; resize: vertical; }
textarea:focus { outline: none; border-color: var(--blue-deep); }
.check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: .6rem; font-weight: 600 !important; }
.check input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--blue-deep); }

/* Páginas de cuenta */
.auth-wrap { max-width: 1040px; margin: 0 auto; padding: clamp(1.5rem, 5vw, 4rem) 1rem 4rem; display: grid; grid-template-columns: minmax(0, 480px) 1fr; gap: 3rem; align-items: start; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(1.4rem, 4vw, 2.4rem); box-shadow: var(--shadow); }
.auth-card h1 { font-size: 2rem; margin-top: 1.2rem; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: .3rem; background: var(--blue-soft); border-radius: 999px; }
.auth-tabs[hidden] { display: none; }
.auth-tabs a { text-align: center; padding: .65rem; border-radius: 999px; font-weight: 800; color: var(--muted); text-decoration: none; }
.auth-tabs a[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 4px 12px -6px rgba(0,0,0,.25); }
.auth-view[hidden] { display: none; }
.btn-google { width: 100%; display: flex; align-items: center; justify-content: center; gap: .7rem; padding: .9rem; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 800 1rem var(--body); cursor: pointer; margin-top: 1rem; }
.btn-google:hover { border-color: var(--blue-deep); }
.btn-google svg { width: 20px; height: 20px; }
.or { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .85rem; font-weight: 700; margin: 1.2rem 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-form { display: grid; gap: .9rem; }
.auth-form label { display: grid; gap: .3rem; font-weight: 700; font-size: .9rem; }
.pw { position: relative; display: block; }
.pw input { padding-right: 3rem; }
.pw-toggle { position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); border: 0; background: none; cursor: pointer; font-size: 1.1rem; padding: .3rem; }
.pw-meter { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: -.4rem; }
.pw-meter span { display: block; height: 100%; width: 0; background: #d92d20; transition: width .25s, background .25s; }
.pw-meter span[data-level="mid"] { background: #f5a524; }
.pw-meter span[data-level="high"] { background: #12a06a; }
.link-small { font-size: .88rem; font-weight: 700; justify-self: end; margin-top: -.4rem; }
.switch { text-align: center; margin: 1.2rem 0 0; color: var(--muted); font-weight: 600; }
.auth-side { position: sticky; top: 7rem; }
.side-card { background: radial-gradient(120% 120% at 100% 0%, var(--blue-deep), var(--night) 65%); color: #fff; border-radius: 28px; padding: 2.4rem; }
.side-emoji { font-size: 3.4rem; margin: 0; }
.side-title { font-family: var(--display); font-size: 1.8rem; font-weight: 700; margin: .6rem 0 1rem; }
.side-card .ticks li::before { background: rgba(255,255,255,.25); color: #fff; }

/* App */
.app-page .topbar { gap: .6rem; }
.app-nav { display: flex; align-items: center; gap: .4rem; }
.app-nav a { padding: .5rem .8rem; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: .92rem; }
.app-nav a.on { background: var(--blue-soft); color: var(--blue-deep); }
.loader { display: none; text-align: center; padding: 6rem 1rem; font-weight: 800; color: var(--muted); }
.is-loading .loader { display: block; }
.is-loading .app-main { display: none; }
.paw-spin { display: inline-block; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.app-main { max-width: 1100px; margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 2rem) 5rem; }
.app-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.app-head h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin: 0; }
.app-head .kicker { margin-bottom: .3rem; }
[data-add-listing][hidden] { display: none; }
.banner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; background: var(--blue-soft); border-radius: 16px; padding: .9rem 1.1rem; margin-bottom: 1.5rem; font-weight: 600; }
.banner[hidden] { display: none; }

.empty { text-align: center; background: var(--surface); border: 2px dashed var(--line); border-radius: 28px; padding: 3rem 1.5rem; }
.empty[hidden] { display: none; }
.empty-emoji { font-size: 3.5rem; margin: 0; }
.empty .muted { max-width: 30rem; margin-inline: auto; }


.soon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; margin-top: 2.5rem; }
.soon { display: flex; gap: .8rem; align-items: center; padding: 1rem; border-radius: 18px; border: 1px dashed var(--line); color: var(--muted); }
.soon span { font-size: 1.6rem; }
.soon b { display: block; color: var(--ink); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 1.5rem; margin-bottom: 1.1rem; display: grid; gap: 1rem; justify-items: start; }
.panel h2 { font-size: 1.3rem; margin: 0; }
.panel p { margin: 0; }
.panel .fields { width: 100%; }
.panel .full { grid-column: 1 / -1; }
.panel.danger { border-color: #f5c2bd; }
.modal .fields .full { grid-column: 1 / -1; }
.modal .form { margin-top: 1rem; }
.modal-body h2 { margin-top: 0; }

@media (max-width: 860px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
}
@media (max-width: 560px) {
  .app-nav span { display: none; }
  .app-nav a { font-size: 1.15rem; padding: .45rem .6rem; }
  .listing-grid { grid-template-columns: 1fr; }
  .app-head .btn { width: 100%; }
}

/* Propio de Holalan */
.auth-wrap, .app-main { padding-top: 7rem; }
.auth-page .topnav a.keep { display: inline; }
.side-word { font-family: var(--display); font-weight: 800; font-size: 3rem; letter-spacing: -.04em; margin: 0; line-height: 1; }
.side-word .brand-ho { font-size: .7em; }
.app-nav a { color: #dfe6f5; }
.app-nav a.on { background: rgba(61, 139, 255, .22); color: #fff; }
.app-nav .btn-ghost { color: #fff; border-color: rgba(255,255,255,.25); }
.spin { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--blue-soft); border-top-color: var(--blue-deep); animation: spin .8s linear infinite; vertical-align: middle; }
.status-card { display: flex; gap: 1rem; align-items: flex-start; background: var(--night); color: #fff; border-radius: 22px; padding: 1.3rem 1.4rem; margin-bottom: 1.1rem; }
.status-card p { color: #b9c4de; margin: .3rem 0 0; }
.status-dot { width: 12px; height: 12px; border-radius: 50%; background: #3ddc97; flex: none; margin-top: .35rem; box-shadow: 0 0 0 0 #3ddc97; animation: ping 1.8s infinite; }
.cross { margin-top: 1rem; }
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; }
.lst { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.lst-img { height: 120px; position: relative; }
.lst-san-isidro .lst-img { background: linear-gradient(200deg, #3c9d6b, #1b3f2f 80%); }
.lst-miraflores .lst-img { background: linear-gradient(200deg, #ff9f6b 0%, #ff7e6b 30%, #1f6fff 31%, #0a1f55 100%); }
.lst-badge { position: absolute; top: .8rem; left: .8rem; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: .3rem .6rem; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--night); }
.lst-badge.st-verified, .lst-badge.st-published { background: #3ddc97; color: #06301a; }
.lst-body { padding: 1rem 1.2rem 1.2rem; display: grid; gap: .35rem; }
.lst-row { display: flex; justify-content: space-between; align-items: center; }
.lst-body h2 { font-size: 1.25rem; margin: 0; }
.lst-body p { margin: 0; }
.lst-facts { font-weight: 700; }
.lst-price { font-family: var(--display); font-weight: 700; font-size: 1.3rem; }
.lst-price small { font-family: var(--body); font-size: .8rem; color: var(--muted); font-weight: 600; }
textarea::placeholder, input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.app-nav a, .app-nav .btn { white-space: nowrap; }
@media (max-width: 900px) { .app-nav a span { display: none; } .app-nav a { font-size: 1.15rem; padding: .45rem .6rem; } }
