/* ═══════════════════════════════════════════════════════════════════════
   QP STUDIO · páginas interiores
   Mismo sistema que la home, con una cabecera común y bloques sencillos.
   ═══════════════════════════════════════════════════════════════════════ */

.phead {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line-soft);
  background: radial-gradient(120% 90% at 50% 0%, var(--blue-wash), var(--paper) 62%);
}
.phead__in { max-width: 44rem; }
.phead h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5.4vw, 4rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.044em;
  text-wrap: balance;
}
.phead p {
  margin-top: clamp(1rem, 2vw, 1.5rem);
  max-width: 46ch;
  font-size: var(--fs-lead);
  line-height: 1.62;
  color: var(--ink-2);
  text-wrap: pretty;
}
.crumb {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1.1rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.crumb a { color: var(--ink-3); text-decoration: none; }
.crumb a:hover { color: var(--blue); }

.pbody { padding-block: clamp(3rem, 6vw, 5rem); }
.pbody h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.036em;
  line-height: 1.05;
  margin-bottom: 1rem;
}
.pbody h3 {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  margin-bottom: 0.5rem;
}
.pbody p { max-width: 68ch; color: var(--ink-2); line-height: 1.68; text-wrap: pretty; }
.pbody p + p { margin-top: 0.9rem; }
.pbody > * + * { margin-top: clamp(1.6rem, 3vw, 2.4rem); }

.prose ul { margin-top: 0.8rem; }
.prose li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.55rem;
  color: var(--ink-2);
  line-height: 1.62;
  max-width: 68ch;
}
.prose li::before {
  content: ""; position: absolute;
  left: 0; top: 0.62em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--blue);
}

/* ── Tarjetas de servicio ──────────────────────────────────────────── */

.svc {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.6rem, 4vw, 3.5rem);
  /* la foto crece hasta la altura del texto: antes quedaba medio bloque
     en blanco debajo */
  align-items: stretch;
  padding-block: clamp(2.2rem, 4vw, 3.4rem);
  border-top: 1px solid var(--line-soft);
  scroll-margin-top: 6rem;
}
.svc__txt { display: flex; flex-direction: column; }
.svc h2 { margin-bottom: 0.7rem; }
.svc__extra {
  margin-top: 0.8rem;
  font-size: var(--fs-sm);
  color: var(--ink-3);
  line-height: 1.6;
}
.svc__h3 {
  margin-top: 1.5rem; margin-bottom: 0;
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--ink-3);
}
.svc__plazo {
  margin-top: auto;
  padding-top: 1.4rem;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.svc__plazo b {
  display: inline-block; margin-right: 0.5rem;
  font-family: var(--display); font-weight: 700;
  font-size: 0.7rem; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--blue);
}
.svc__lead { margin-bottom: 1.2rem; }

@media (max-width: 820px) { .svc { grid-template-columns: 1fr; } }

/* ── Línea de tiempo del proceso ───────────────────────────────────── */

.steps { position: relative; margin-top: clamp(2rem, 4vw, 3rem); }
.steps::before {
  content: ""; position: absolute;
  left: 15px; top: 10px; bottom: 10px;
  width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--blue), var(--blue-sky));
}
.step {
  position: relative;
  padding-left: clamp(3rem, 6vw, 4.2rem);
  padding-bottom: clamp(1.8rem, 3.2vw, 2.6rem);
}
.step::before {
  content: ""; position: absolute;
  left: 8px; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px oklch(56% 0.215 258 / .2);
}
.step__meta {
  display: block; margin-bottom: 0.35rem;
  font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3);
}
.step h3 { margin-bottom: 0.4rem; }
.step figure {
  margin-top: 1.1rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  overflow: hidden;
  max-width: 40rem;
}
.step figure img { width: 100%; height: auto; display: block; filter: grayscale(1) contrast(1.05); }

/* ── Panel de administración ───────────────────────────────────────── */

.admin { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.acard {
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--paper-2);
}
.acard__ico {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--blue);
  margin-bottom: 1rem;
}
.acard__ico svg { width: 19px; height: 19px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.acard h3 { margin-bottom: 0.4rem; }
.acard p { font-size: var(--fs-sm); }
.acard__state {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.25rem 0.7rem;
  border-radius: 99px;
  background: var(--blue-wash);
  border: 1px solid var(--blue-soft, var(--line));
  font-size: var(--fs-xs); font-weight: 600;
  color: var(--blue-deep);
}

.notice {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.2rem, 2.2vw, 1.6rem);
  border: 1px dashed var(--line);
  border-radius: var(--r);
  background: var(--paper-2);
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.notice b { color: var(--ink); }

/* ── Bloque de cierre común ────────────────────────────────────────── */

.pcta {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: var(--night);
  color: oklch(74% 0.015 250);
  text-align: center;
}
.pcta h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1.02;
  color: var(--t-00);
  margin-bottom: 0.9rem;
}
.pcta p { max-width: 44ch; margin: 0 auto 1.6rem; font-size: var(--fs-sm); }

/* ── Formulario en página propia ───────────────────────────────────── */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact .form { max-width: none; margin: 0; }
.contact .field label { color: var(--ink-3); }
.contact .field input, .contact .field textarea {
  border-color: var(--line);
  background: oklch(100% 0 0);
  color: var(--ink);
}
.contact .field input::placeholder, .contact .field textarea::placeholder { color: var(--t-40); }
.contact .form__alt { color: var(--ink-2); }
.contact .form__alt a { color: var(--blue); border-bottom-color: oklch(56% 0.215 258 / .4); }
.contact .form__status:not(:empty) { background: var(--blue-wash); color: var(--ink); }

.contact__aside dl { margin-top: 1.4rem; }
.contact__aside dt {
  font-family: var(--display); font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 1.1rem;
}
.contact__aside dd { font-size: var(--fs-sm); color: var(--ink); margin-top: 0.2rem; }
.contact__aside dd a { color: var(--blue); text-decoration: none; }

@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════════════════
   ADMINISTRACIÓN
   ═══════════════════════════════════════════════════════════════════════ */

/* el acceso, centrado en la pantalla */
.apage:has(#login:not([hidden])) { display: grid; place-items: center; min-height: calc(100svh - 4.4rem); padding: 0; }
.login { max-width: 24rem; margin-inline: auto; }
.login .field input { background: oklch(100% 0 0); border-color: var(--line); color: var(--ink); }
.login .field label { color: var(--ink-3); }
.login__error { margin-top: 0.8rem; font-size: var(--fs-sm); color: oklch(50% 0.19 28); text-align: center; }
.login__hint {
  margin-top: 1.4rem; padding: 0.9rem 1rem;
  border: 1px dashed var(--line); border-radius: var(--r);
  font-size: var(--fs-xs); color: var(--ink-3); text-align: center;
}

.abar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: clamp(1.4rem, 2.6vw, 2rem);
}
.abar__who { font-size: var(--fs-sm); color: var(--ink-3); }
.linkish {
  border: 0; background: none; padding: 0; cursor: pointer;
  font-size: var(--fs-sm); color: var(--blue); text-decoration: underline;
}

.tabs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: clamp(1.5rem, 3vw, 2.2rem); }
.tabs__btn {
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--line); border-radius: 99px;
  background: transparent; cursor: pointer;
  font-family: var(--display); font-size: var(--fs-sm); font-weight: 600;
  letter-spacing: -0.018em; color: var(--ink-2);
  transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.tabs__btn[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ── Editar textos ─────────────────────────────────────────────────── */

.ebox {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: oklch(100% 0 0);
  overflow: hidden;
  margin-bottom: 1rem;
}
.ebox__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; padding: 1rem 1.2rem;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line-soft);
}
.ebox__head h3 { font-size: 1rem; margin: 0; }
.ebox__id { font-size: var(--fs-xs); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ebox__body {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.9rem; padding: 1.2rem;
}
.efield { display: block; }
.efield__et {
  display: block; margin-bottom: 0.35rem;
  font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3);
}
.efield input, .efield textarea {
  width: 100%; padding: 0.65rem 0.85rem;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--paper);
  font-size: var(--fs-sm); color: var(--ink); resize: vertical;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), background var(--t) var(--ease);
}
.efield input:focus, .efield textarea:focus {
  outline: none; background: oklch(100% 0 0);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px oklch(56% 0.215 258 / .15);
}
.ebox__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.8rem; padding: 0.9rem 1.2rem;
  border-top: 1px solid var(--line-soft);
  background: var(--paper);
}
.ebox__acciones { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ebox__estado {
  font-size: var(--fs-xs); color: var(--blue-deep);
  opacity: 0; transition: opacity var(--t) var(--ease);
}
.ebox__estado.is-on { opacity: 1; }

/* ── Añadir secciones ──────────────────────────────────────────────── */

.bloques { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0.9rem; }
.bcard {
  padding: 1.3rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: oklch(100% 0 0);
  transition: border-color var(--t) var(--ease), transform var(--t-slow) var(--ease);
}
@media (hover: hover) { .bcard:hover { border-color: var(--blue); transform: translateY(-3px); } }
.bcard__ico {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--blue-wash);
  margin-bottom: 0.9rem;
}
.bcard__ico svg { width: 18px; height: 18px; fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bcard h3 { font-size: 0.98rem; margin-bottom: 0.3rem; }
.bcard p { font-size: var(--fs-xs); color: var(--ink-2); margin-bottom: 1rem; }

.cola { margin-top: clamp(1.6rem, 3vw, 2.2rem); }
.cola h3 { margin-bottom: 0.7rem; }
.cola ul { border-top: 1px solid var(--line-soft); }
.cola li {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.8rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: var(--fs-sm);
}
.cola .vacio { color: var(--ink-3); justify-content: flex-start; }

/* ── Mensajes ──────────────────────────────────────────────────────── */

.inbox {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: oklch(100% 0 0);
  overflow: hidden;
}
.inbox__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem 1.2rem;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line-soft);
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
}
.inbox__empty { padding: clamp(2.5rem, 6vw, 4rem) 1.5rem; text-align: center; }
.inbox__empty svg {
  width: 44px; height: 44px; margin: 0 auto 1rem;
  fill: none; stroke: var(--t-30); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.inbox__empty h3 { margin-bottom: 0.4rem; }
.inbox__empty p { max-width: 40ch; margin-inline: auto; font-size: var(--fs-sm); color: var(--ink-3); }

/* ── Piezas visuales de las páginas ────────────────────────────────── */

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.1rem; }
.chips li {
  padding: 0.34rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--paper);
  font-size: var(--fs-xs);
  color: var(--ink-2);
}
.chips--lg li { font-size: var(--fs-sm); padding: 0.45rem 1rem; }

.svc__shot {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--paper-2);
}
.svc__shot { min-height: 100%; }
.svc__shot img {
  width: 100%; height: 100%;
  min-height: 340px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: filter var(--t-slow) var(--ease), scale 900ms var(--ease);
}
@media (hover: hover) { .svc:hover .svc__shot img { filter: grayscale(0.15) contrast(1.02); scale: 1.03; } }

.gpanel { position: relative; overflow: hidden; isolation: isolate; }
.gpanel__in { position: relative; z-index: 1; }
.gsplit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.gsplit .editor__win { background: oklch(100% 0 0); border-color: var(--line); box-shadow: 0 30px 70px -40px oklch(19% 0.022 250 / .45); }
@media (max-width: 820px) { .gsplit { grid-template-columns: 1fr; } .gsplit .editor { display: none; } }

h2.gsep { margin-top: clamp(2.8rem, 5vw, 4.2rem); }

.gcards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.8rem;
  margin-top: 1.2rem;
}
.gcard {
  padding: 1.2rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: oklch(100% 0 0 / .7);
  transition: border-color var(--t) var(--ease);
}
@media (hover: hover) { .gcard:hover { border-color: var(--blue); } }
.gcard b {
  display: block;
  font-family: var(--display); font-weight: 700;
  font-size: 0.98rem; letter-spacing: -0.026em;
  color: var(--ink); margin-bottom: 0.3rem;
}
.gcard span { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.55; }
.gcard--blue { background: var(--blue-wash); border-color: var(--blue); }

.pasos { counter-reset: p; margin-top: 1.2rem; }
.pasos li {
  counter-increment: p;
  position: relative;
  padding: 0.9rem 0 0.9rem 2.6rem;
  border-bottom: 1px solid var(--line-soft);
}
.pasos li::before {
  content: counter(p, decimal-leading-zero);
  position: absolute; left: 0; top: 1rem;
  font-family: var(--display); font-weight: 700;
  font-size: 0.76rem; color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.pasos b {
  display: block;
  font-family: var(--display); font-weight: 700;
  font-size: 0.98rem; letter-spacing: -0.026em; color: var(--ink);
}
.pasos span { font-size: var(--fs-sm); color: var(--ink-2); }


/* ═══ Ventana de acceso al panel ══════════════════════════════════════ */

.gate {
  border: 0; padding: 0;
  background: transparent;
  max-width: min(26rem, 92vw);
  color: var(--ink);
}
.gate::backdrop { background: oklch(19% 0.022 250 / .55); backdrop-filter: blur(4px); }
.gate__box {
  padding: clamp(1.8rem, 4vw, 2.6rem);
  border-radius: var(--r-xl);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  box-shadow: 0 40px 90px -40px oklch(19% 0.022 250 / .5);
  text-align: center;
}
.gate__logo { width: 56px; height: 56px; margin: 0 auto 1rem; object-fit: contain; }
.gate__t {
  font-family: var(--display);
  font-size: 1.3rem; font-weight: 800; letter-spacing: -0.036em;
  margin-bottom: 1.5rem;
}
.gate .field { text-align: left; }
.gate .field input {
  background: oklch(100% 0 0);
  border-color: var(--line);
  color: var(--ink);
}
.gate .btn { margin-top: 0.5rem; }
.gate__error { margin-top: 0.8rem; font-size: var(--fs-sm); color: oklch(50% 0.19 28); min-height: 1.2em; }
.gate__close {
  margin-top: 0.3rem;
  border: 0; background: none; cursor: pointer;
  font-size: var(--fs-sm); color: var(--ink-3);
  text-decoration: underline;
}

/* la administración va sin cabecera: entra directa al grano */
.apage { padding-block: clamp(2.5rem, 5vw, 4rem); }
.apage__top {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.8rem; margin-bottom: clamp(1.8rem, 3.4vw, 2.6rem);
  text-align: center;
}
.apage__top img { width: 52px; height: 52px; object-fit: contain; }
.apage__top h1 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800; letter-spacing: -0.038em;
}
