/* App Artistas · estilos. Letra grande y buen contraste: se lee cómodo en el celular y sin anteojos. */
:root {
  --teal: #0f6b6b;
  --teal-dark: #0b4f4f;
  --teal-soft: #e6f1f0;
  --bg: #f6f4ef;
  --card: #ffffff;
  --ink: #1f2933;
  --muted: #55616d;
  --line: #d9d4c8;
  --amber: #b4690e;
  --amber-soft: #fbf0dd;
  --lilac-soft: #ece6f5;
  --red: #a32626;
  --red-soft: #fbe9e7;
  --ok-soft: #e3f2e6;
  --radius: 12px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { font-size: 112.5%; } /* 18 px */
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.55;
}

.wrap { max-width: 62rem; margin: 0 auto; padding: 0 1rem; }
main.wrap { padding-top: 1.2rem; padding-bottom: 2.5rem; min-height: 60vh; }

a { color: var(--teal-dark); text-underline-offset: 2px; }
a:hover { color: var(--teal); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

h1 { font-size: 1.6rem; line-height: 1.25; margin: 0.4rem 0 0.8rem; color: var(--teal-dark); }
h2 { font-size: 1.2rem; margin: 1.4rem 0 0.4rem; color: var(--teal-dark); }
.card h2, .detail h2:first-of-type { margin-top: 0.3rem; }
p { margin: 0.4rem 0 0.8rem; }
.small { font-size: 0.88rem; color: var(--muted); }
.hint { font-size: 0.88rem; color: var(--muted); margin: 0.3rem 0 0; }
.field-error { margin: 0.6rem 0 0; padding: 0.7rem 0.9rem; border-radius: 10px; background: var(--red-soft); border: 1px solid #e7b4ae; color: #6d1b15; font-weight: 600; }
.meta { color: var(--muted); margin: 0 0 0.6rem; }

.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---- Cabecera */
.top { background: var(--teal); color: #fff; }
.top .bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 1rem; padding-top: 0.7rem; padding-bottom: 0.7rem; }
.brand { color: #fff; font-weight: 800; letter-spacing: 0.03em; text-decoration: none; font-size: 1.15rem; }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 1rem; }
.top nav a, .top .linklike { color: #fff; text-decoration: none; padding: 0.35rem 0; font-size: 0.95rem; }
.top nav a:hover, .top .linklike:hover { text-decoration: underline; }
.linklike { background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
form.inline { display: inline; margin: 0; }

.banner.warn { background: var(--amber-soft); color: #6b3d05; padding: 0.5rem 0; text-align: center; font-size: 0.95rem; }

/* ---- Botones */
.btn {
  display: inline-block; min-height: 2.9rem; padding: 0.6rem 1.2rem;
  background: var(--teal); color: #fff; border: 2px solid var(--teal);
  border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--teal-dark); }
.btn-ghost:hover { background: var(--teal-soft); color: var(--teal-dark); }
.btn-danger { background: var(--red); border-color: var(--red); }
.btn-danger:hover { background: #7f1d1d; border-color: #7f1d1d; }
.btn-small { min-height: 2.5rem; padding: 0.4rem 0.9rem; font-size: 0.92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.6rem 0 0.2rem; }
.actions-end { align-self: end; }

/* ---- Avisos */
.notice { border-radius: var(--radius); padding: 0.8rem 1rem; margin: 0.8rem 0; border: 1px solid var(--line); background: #fff; }
.notice p { margin: 0.2rem 0 0.6rem; }
.notice.ok { background: var(--ok-soft); border-color: #b9dcc0; }
.notice.warn { background: var(--amber-soft); border-color: #ebcf9c; }
.notice.err { background: var(--red-soft); border-color: #e7b4ae; color: #6d1b15; }

/* ---- Portada y filtros */
.hero { background: var(--teal); color: #fff; border-radius: var(--radius); padding: 1.2rem 1.2rem 0.6rem; margin-bottom: 1rem; }
.hero h1 { color: #fff; font-size: 1.45rem; }
.hero p { color: #e3f1ef; }

.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.8rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.filters .wide { grid-column: 1 / -1; }
.count { margin: 1rem 0 0.4rem; font-weight: 700; color: var(--teal-dark); }

.field { margin: 0 0 0.9rem; }
.filters .field { margin: 0; }
label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 2px solid #b9b3a4; border-radius: 10px; padding: 0.65rem 0.75rem; min-height: 2.9rem;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: 3px solid #bcdcd9; }
input[type=file] { padding: 0.5rem; }
input[type=radio], input[type=checkbox] { width: 1.4rem; min-height: 1.4rem; height: 1.4rem; flex: none; accent-color: var(--teal); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Tarjetas */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1rem; }
.card, .detail { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.card h2 a { text-decoration: none; }
.card h2 a:hover { text-decoration: underline; }
.review { margin-bottom: 1rem; }
.detail { margin-bottom: 1rem; }
.card-img { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; }
.links { padding-left: 1.2rem; }
.report { margin-top: 1.4rem; }

/* ---- Foto de la ficha */
.card-head { display: flex; gap: 0.9rem; align-items: flex-start; margin-bottom: 0.4rem; }
.card-head > div { min-width: 0; }
.card-head h1, .card-head h2 { margin: 0.1rem 0 0.2rem; overflow-wrap: anywhere; }
.card-head .meta { margin-bottom: 0.2rem; }
.avatar { width: 4.6rem; height: 4.6rem; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid var(--teal-soft); background: var(--teal-soft); }
.avatar-lg { width: 7.5rem; height: 7.5rem; }
.avatar-ph { display: grid; place-items: center; color: var(--teal-dark); font-weight: 800; font-size: 1.9rem; }
.avatar-lg.avatar-ph { font-size: 3rem; }
.spinner { display: inline-block; width: 1em; height: 1em; border: 3px solid #b9dcc0; border-top-color: #2f8f4e; border-radius: 50%; vertical-align: -0.15em; margin-right: 0.4rem; animation: giro 0.9s linear infinite; }
@keyframes giro { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

.badge { display: inline-block; padding: 0.1rem 0.7rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; margin-bottom: 0.3rem; }
.badge.artista { background: var(--teal-soft); color: var(--teal-dark); }
.badge.servicio { background: var(--lilac-soft); color: #45306b; }

.empty { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 1rem; text-align: center; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.8rem; margin: 1.4rem 0; }

/* ---- Cómo se usa */
.how { margin-top: 2rem; }
.steps5 { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 0.8rem; padding: 0; }
.steps5 li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.8rem; display: flex; flex-direction: column; gap: 0.1rem; }
.steps5 li::before { content: counter(s); width: 2rem; height: 2rem; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: 0.3rem; }
.steps5 span { font-size: 0.85rem; color: var(--muted); }

/* ---- Formularios */
.form { max-width: 34rem; }
.check { display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 400; margin: 0 0 0.9rem; }
.choice { display: flex; gap: 0.8rem; align-items: flex-start; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 0.9rem; margin-bottom: 0.8rem; font-weight: 400; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }

/* ---- Asistente */
.wizard { max-width: 36rem; }
.progress-wrap { margin-bottom: 1rem; }
.prog-label { margin: 0 0 0.3rem; font-weight: 700; color: var(--teal-dark); }
progress { width: 100%; height: 0.7rem; accent-color: var(--teal); }
.wizard.js .step:not(.is-current) { display: none; }
.wizard .step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.wizard .step > h2:first-child, .wizard .step > div > h2:first-child { margin-top: 0; }
.wiz-nav { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: space-between; }
.wizard:not(.js) .btn-prev, .wizard:not(.js) .btn-next, .wizard:not(.js) .progress-wrap { display: none; }

/* ---- Mi perfil */
.statusbox { border-radius: var(--radius); padding: 0.8rem 1rem; margin: 0.8rem 0; background: var(--card); border: 1px solid var(--line); border-left: 8px solid var(--line); }
.statusbox p { margin: 0.2rem 0; }
.statusbox.st-aprobado { border-left-color: #2f8f4e; }
.statusbox.st-pendiente { border-left-color: var(--amber); }
.statusbox.st-rechazado, .statusbox.st-pausado { border-left-color: var(--red); }
.danger { margin-top: 2rem; border: 1px solid #e7b4ae; border-radius: var(--radius); padding: 0.8rem 1rem; background: #fff; }
.danger summary { cursor: pointer; font-weight: 700; color: var(--red); }

/* ---- Moderación */
.tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.6rem 0 1rem; }
.tabs a { padding: 0.5rem 1rem; border-radius: 999px; border: 2px solid var(--teal); text-decoration: none; font-weight: 700; color: var(--teal-dark); }
.tabs a.on { background: var(--teal); color: #fff; }
.review-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; margin-top: 0.8rem; border-top: 1px solid var(--line); padding-top: 0.8rem; }
.reject { flex: 1 1 18rem; max-width: none; }
.reject .field { margin-bottom: 0.5rem; }
.filter-links { margin: 0.4rem 0 1rem; }

/* ---- Pie */
.foot { background: #ece8dd; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; padding: 1rem 0; }
.foot p { margin: 0.2rem 0; }
.foot .credits { color: var(--ink); margin-bottom: 0.4rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }

@media (max-width: 30rem) {
  .btn { width: 100%; }
  .actions .btn, .wiz-nav .btn { width: auto; flex: 1 1 auto; }
  .top .bar { flex-direction: column; align-items: flex-start; }
}

@media print {
  .top, .foot, .filters, .actions { display: none; }
  body { background: #fff; }
}
