:root {
  --green: #58c15a;
  --green-strong: #2ca54a;
  --green-dark: #123927;
  --mint: #e8fff0;
  --lime: #d2ff77;
  --blue-dark: #0f1723;
  --blue-soft: #1d2a3d;
  --text: #101623;
  --muted: #687284;
  --line: #dde4f1;
  --bg: #f5f8fc;
  --bg-alt: #eef4fb;
  --white: #ffffff;
  --danger: #c03221;
  --warning: #a26400;
  --success: #0f8e45;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --shadow-lg: 0 28px 80px rgba(16, 22, 35, .12);
  --shadow-md: 0 14px 40px rgba(16, 22, 35, .08);
  --shadow-sm: 0 10px 22px rgba(16, 22, 35, .06);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, rgba(88,193,90,.16), transparent 35%),
    radial-gradient(circle at 100% 0%, rgba(210,255,119,.18), transparent 26%),
    linear-gradient(180deg, #f7fbff 0%, #f2f7fb 100%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
strong { color: #0d1320; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(10, 18, 30, .82);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
}
.topbar__inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand img {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand__text strong {
  color: #fff;
  font-size: 15px;
  letter-spacing: .02em;
}
.brand__text span {
  color: rgba(255,255,255,.62);
  font-size: 12px;
}
.nav-toggle {
  display: none;
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 18px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255,255,255,.86);
  font-weight: 700;
  font-size: 14px;
  transition: .2s ease;
}
.nav a:hover,
.nav a.is-active {
  background: rgba(88,193,90,.16);
  color: #fff;
}
.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin-left: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.08);
}
.user-pill__avatar {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--lime));
  color: #0c1a0e;
  font-size: 12px;
  font-weight: 900;
}
.user-pill__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.user-pill__meta strong { color: #fff; font-size: 13px; }
.user-pill__meta span { color: rgba(255,255,255,.64); font-size: 11px; }

.page {
  max-width: 1220px;
  margin: 0 auto;
  padding: 34px 20px 84px;
}
.section { margin-top: 30px; }
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 24px;
  align-items: stretch;
}
.hero__panel,
.showcase {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow-lg);
}
.hero__panel {
  padding: 42px;
  min-height: 460px;
  color: #fff;
  background:
    radial-gradient(circle at 8% 14%, rgba(210,255,119,.22), transparent 18%),
    radial-gradient(circle at 92% 86%, rgba(88,193,90,.24), transparent 24%),
    linear-gradient(135deg, #0d1523 0%, #16253b 38%, #0b4d2d 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero__panel::after {
  content: "";
  position: absolute;
  inset: auto -70px -70px auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255,255,255,.2), transparent 65%);
  pointer-events: none;
}
.showcase {
  padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,251,255,.96));
  border: 1px solid rgba(221,228,241,.92);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-strong);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
}
.hero__panel .eyebrow { color: var(--lime); }
h1 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: .95;
  margin: 14px 0 18px;
  letter-spacing: -.055em;
}
h2 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.02;
  letter-spacing: -.04em;
  margin: 0 0 12px;
}
h3 {
  font-size: 21px;
  margin: 0 0 10px;
  letter-spacing: -.02em;
}
p {
  color: var(--muted);
  line-height: 1.72;
  margin: 0;
}
.hero__panel p {
  color: rgba(255,255,255,.82);
  font-size: 18px;
  max-width: 710px;
}
.help {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.subtitle {
  color: var(--muted);
  font-size: 16px;
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(251,253,255,.96));
  border: 1px solid rgba(221,228,241,.94);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-md);
}
.card--soft {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}
.card--dark {
  background: linear-gradient(135deg, #101b2c, #16253b);
  border-color: rgba(255,255,255,.08);
  color: #fff;
}
.card--dark p,
.card--dark .help { color: rgba(255,255,255,.7); }
.card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}
.card__header p { margin-top: 3px; }
.card-link {
  display: block;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(16,22,35,.11);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--green-strong));
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(44,165,74,.22);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(44,165,74,.28);
  filter: saturate(1.04);
}
.button--secondary {
  background: linear-gradient(180deg, #ffffff, #eff4fb);
  color: var(--text);
  border: 1px solid rgba(221,228,241,.96);
  box-shadow: var(--shadow-sm);
}
.button--danger {
  background: linear-gradient(135deg, #d54834, #b42318);
  box-shadow: 0 14px 28px rgba(180,35,24,.18);
}
.button--small {
  padding: 10px 14px;
  font-size: 13px;
}

.stat-grid,
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.stat,
.metric {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 24px;
  background: linear-gradient(180deg, #ffffff, #f6faff);
  border: 1px solid rgba(221,228,241,.96);
  box-shadow: var(--shadow-sm);
}
.stat::before,
.metric::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--lime));
}
.stat strong,
.metric strong {
  display: block;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -.06em;
  color: #0f1723;
}
.stat span,
.metric span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}
.metric small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #ecf9ee;
  color: var(--success);
  font-weight: 800;
  font-size: 12px;
}
.badge--muted { background: #eef2f8; color: #5e697d; }
.badge--danger { background: #ffe9e5; color: var(--danger); }
.badge--highlight { background: rgba(210,255,119,.24); color: #23431a; }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.96));
  border: 1px solid rgba(221,228,241,.92);
  box-shadow: var(--shadow-md);
}
.feature-card__icon {
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(88,193,90,.18), rgba(210,255,119,.55));
  font-size: 24px;
}
.feature-card p { margin-top: 6px; }

.showcase-grid { display: grid; gap: 14px; }
.mini-panel {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f6f9ff);
  border: 1px solid rgba(221,228,241,.92);
}
.mini-panel__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(221,228,241,.9);
}
.mini-panel__row:last-child { border-bottom: 0; }
.check-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #223047;
  font-weight: 700;
}
.check-item::before {
  content: "✓";
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--green), var(--lime));
  color: #0d1a10;
  font-size: 14px;
  font-weight: 900;
}

.list-grid { display: grid; gap: 14px; }
.tile {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid rgba(221,228,241,.94);
  box-shadow: var(--shadow-sm);
}
.tile__icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: linear-gradient(135deg, rgba(88,193,90,.16), rgba(210,255,119,.5));
}
.tile__meta strong { display: block; }
.tile__meta span { color: var(--muted); font-size: 13px; }

.kpis {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 22px;
}
.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.quick-action {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(221,228,241,.94);
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: var(--shadow-sm);
}
.quick-action strong { display: block; margin-bottom: 6px; }

.tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}
.alert {
  padding: 15px 18px;
  border-radius: 18px;
  margin-bottom: 16px;
  font-weight: 800;
  border: 1px solid transparent;
}
.alert--success { background: #eaf9ee; color: var(--success); border-color: #cfead8; }
.alert--error { background: #ffede9; color: var(--danger); border-color: #ffd3cb; }
.alert--warning { background: #fff5df; color: var(--warning); border-color: #f9e1b0; }

form { display: flex; flex-direction: column; gap: 16px; }
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #182235;
  font-weight: 800;
  font-size: 14px;
}
input, select, textarea {
  width: 100%;
  border: 1px solid #d7deeb;
  border-radius: 16px;
  padding: 14px 15px;
  font: inherit;
  color: var(--text);
  background: linear-gradient(180deg, #fff, #fbfdff);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(44,165,74,.86);
  box-shadow: 0 0 0 4px rgba(88,193,90,.12);
  background: #fff;
}
textarea { resize: vertical; }

.table-wrap {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(221,228,241,.96);
  background: rgba(255,255,255,.95);
  box-shadow: var(--shadow-sm);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}
th, td {
  text-align: left;
  padding: 15px 16px;
  border-bottom: 1px solid rgba(221,228,241,.86);
  vertical-align: top;
}
th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  background: linear-gradient(180deg, #f9fbff, #f4f8fc);
}
tr:hover td { background: rgba(248,251,255,.8); }
tr:last-child td { border-bottom: 0; }

.empty {
  border: 2px dashed #d7deeb;
  border-radius: 24px;
  padding: 34px;
  text-align: center;
  background: linear-gradient(180deg, #fff, #fbfdff);
}
.empty p { margin: 8px auto 20px; max-width: 560px; }

.detail-grid {
  display: grid;
  gap: 12px;
}
.detail-item {
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  border: 1px solid rgba(221,228,241,.92);
}
.detail-item span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.detail-item strong { font-size: 15px; }

.progress {
  position: relative;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #edf2f8;
  overflow: hidden;
}
.progress > span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--lime));
}

.callout {
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(135deg, #0e1a2c, #153a2a 78%);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.callout p { color: rgba(255,255,255,.76); }
.callout .actions { margin-top: 18px; }
.callout .button--secondary { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: #fff; }

.footer {
  max-width: 1220px;
  margin: 0 auto;
  padding: 30px 20px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer__brand img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #fff;
  padding: 6px;
  border: 1px solid rgba(221,228,241,.94);
}
.footer__links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--muted); font-weight: 700; }
.footer a:hover { color: #314159; }

.auth-shell {
  max-width: 980px;
  margin: 0 auto;
}

@media (max-width: 980px) {
  .hero,
  .kpis,
  .feature-grid,
  .grid--2,
  .grid--3,
  .stats,
  .stat-grid,
  .tabs,
  .quick-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .page { padding-top: 24px; }
  .topbar__inner { padding: 12px 16px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    right: 16px;
    left: 16px;
    top: 78px;
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(10,18,30,.96);
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 24px 60px rgba(0,0,0,.26);
  }
  .nav.is-open { display: flex; }
  .user-pill { margin-left: 0; justify-content: center; }
  .hero__panel, .showcase { padding: 28px; }
  .card__header, .footer, .tile { grid-template-columns: 1fr; flex-direction: column; align-items: flex-start; }
  .tile { display: flex; }
}

/* Validación de formularios */
label.has-error {
  color: var(--danger);
}
input.is-invalid,
select.is-invalid,
textarea.is-invalid,
input:invalid.is-touched,
select:invalid.is-touched,
textarea:invalid.is-touched {
  border-color: var(--danger);
  background: #fff8f7;
  box-shadow: 0 0 0 4px rgba(192, 50, 33, .12);
}
.field-error {
  display: block;
  margin-top: 2px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 800;
}
.form-error-summary ul {
  margin: 8px 0 0 18px;
  padding: 0;
}
.form-error-summary li + li {
  margin-top: 4px;
}
.required-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff1ef;
  color: var(--danger);
  font-size: 13px;
  font-weight: 800;
}
.required-note::before {
  content: "*";
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
}

/* Ajuste v10: los textos con ticks dentro de paneles oscuros deben leerse en blanco. */
.hero__panel .check-item,
.card--dark .check-item,
.callout .check-item {
  color: #fff;
}
.hero__panel .check-item::before,
.card--dark .check-item::before,
.callout .check-item::before {
  color: #0d1a10;
}
.button--ghost {
  background: rgba(255,255,255,.08);
  color: inherit;
  border: 1px solid rgba(221,228,241,.85);
  box-shadow: none;
}

/* v11: CAPTCHA local de login */
.captcha-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(210,255,119,.26), transparent 34%),
    linear-gradient(180deg, #ffffff, #f6faff);
  border: 1px solid rgba(221,228,241,.96);
  box-shadow: var(--shadow-sm);
}
.captcha-question {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 74px;
  padding: 18px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, #101b2c, #153a2a);
  color: #fff;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 950;
  letter-spacing: .03em;
  text-shadow: 0 2px 0 rgba(0,0,0,.18);
  user-select: none;
}
.captcha-card label {
  margin-top: 0;
}
.captcha-card input {
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}

/* v12 visual/admin refinements */
.brand img { width: 68px !important; height: 68px !important; border-radius: 20px; }
.footer__brand img { width: 64px !important; height: 64px !important; border-radius: 18px; }
.brand__text strong { font-size: 17px; }
.brand__text span { font-size: 13px; }
.admin-zone { border: 1px solid rgba(210,255,119,.45); }
.placeholder-activity {
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(16,27,44,.08), rgba(16,27,44,.88)),
    radial-gradient(circle at 20% 10%, rgba(210,255,119,.4), transparent 24%),
    linear-gradient(135deg, #102039, #0b4d2d);
  color: #fff;
}
.placeholder-activity p, .placeholder-activity .help { color: rgba(255,255,255,.78); }
.placeholder-activity h3 { color: #fff; }
.lock-warning {
  background: #fff7df;
  border: 1px solid #f2d08a;
  color: #7a4b00;
  padding: 16px 18px;
  border-radius: 18px;
  margin-bottom: 18px;
}
.lock-warning strong { color: #583500; }
.file-export-card {
  background: linear-gradient(135deg, #0e1a2c, #153a2a);
  color: #fff;
}
.file-export-card p { color: rgba(255,255,255,.75); }
@media (max-width: 860px) {
  .brand img { width: 54px !important; height: 54px !important; }
  .brand__text span { display: none; }
}
.hero__panel .check-item,
.card--dark .check-item,
.callout .check-item { color: #fff; }
.hero__panel .check-item::before,
.card--dark .check-item::before,
.callout .check-item::before { color: #0d1a10; }

/* v13: footer siempre abajo y búsquedas rápidas de administración */
html, body { min-height: 100%; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page {
  width: 100%;
  flex: 1 0 auto;
}
.footer {
  width: 100%;
  flex-shrink: 0;
}
.empty--compact { padding: 24px; }
.admin-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}
.admin-search-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(210,255,119,.24), transparent 34%),
    linear-gradient(180deg, #ffffff, #f6faff);
}
.quick-adjuntos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.quick-adjunto-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(221,228,241,.94);
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.quick-adjunto-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(16,22,35,.1);
}
.quick-adjunto-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--green), var(--lime));
  color: #0b1d10;
  font-weight: 950;
}
.quick-adjunto-card__body { display: grid; gap: 3px; }
.quick-adjunto-card__body small { color: var(--muted); line-height: 1.3; }
@media (max-width: 980px) {
  .quick-adjuntos-grid { grid-template-columns: 1fr; }
  .admin-search-form { grid-template-columns: 1fr; }
}

/* v13.3: Cloudflare Turnstile */
.turnstile-card {
  align-items: start;
}
.turnstile-card .cf-turnstile {
  min-height: 65px;
}
.turnstile-card.has-error {
  border-color: rgba(192, 50, 33, .75);
  box-shadow: 0 0 0 4px rgba(192, 50, 33, .08), var(--shadow-sm);
}
.turnstile-card:focus {
  outline: 3px solid rgba(88,193,90,.28);
  outline-offset: 4px;
}

.no-adjuntos-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(16, 27, 44, .88), rgba(21, 58, 42, .82)),
    radial-gradient(circle at 85% 15%, rgba(210,255,119,.35), transparent 28%),
    url('../img/logo-bc-blanco-verde-100x100-1.png') center 32px / 150px no-repeat,
    linear-gradient(180deg, #102016, #15253a);
  color: #fff;
  border-color: rgba(255,255,255,.12);
}
.no-adjuntos-card p,
.no-adjuntos-card .help { color: rgba(255,255,255,.75); }
.no-adjuntos-card h3 { color: #fff; }
.no-adjuntos-card .eyebrow { color: var(--lime); }

/* v15: estilos centralizados para formularios, iconos y bloques de contacto. */
.mt-10 { margin-top: 10px; }
.mt-16 { margin-top: 16px; }
.mt-22 { margin-top: 22px; }
.mb-0 { margin-bottom: 0; }
.mb-12 { margin-bottom: 12px; }
.w-100 { width: 100%; }
.justify-between { justify-content: space-between; }
.align-end { align-items: flex-end; }
.max-w-540 { max-width: 540px; }
.hr-soft { border: 0; border-top: 1px solid #dde4f1; margin: 24px 0; }
.form-section {
  border: 1px solid rgba(221,228,241,.95);
  border-radius: 24px;
  padding: 20px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}
.form-section__title {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.form-section__title i {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(88,193,90,.18), rgba(210,255,119,.55));
  color: #14371d;
  font-size: 20px;
}
.form-section__title h3 { margin: 0 0 3px; }
.form-section__title p { margin: 0; }
.form-section--contactos { background: linear-gradient(180deg, #ffffff, #f6fbff); }
.contact-card {
  border: 1px dashed #cfd9e9;
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 14px;
  background: rgba(255,255,255,.75);
}
.icon-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.icon-sample { padding: 18px; border-radius: 20px; background: #fff; border: 1px solid var(--line); text-align: center; }
.icon-sample i { font-size: 30px; color: var(--green-strong); margin-bottom: 10px; }
.inline-icon { margin-right: 8px; }
.price-panel { background: linear-gradient(135deg,#0e1a2c,#153a2a); color:#fff; }
.price-panel p, .price-panel .help { color: rgba(255,255,255,.74); }

@media (max-width: 760px) {
  .icon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* v15.1: acceso interno discreto. La portada se centra en usuarios normales. */
.footer__internal {
  opacity: .42;
  font-size: 12px;
  letter-spacing: .02em;
}
.footer__internal:hover {
  opacity: 1;
}

/* v15.2: acordeones, confirmación previa y campos con iconos en la misma línea */
details.accordion {
  overflow: hidden;
}
details.accordion > summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
  margin: -2px 0 18px;
}
details.accordion > summary::-webkit-details-marker { display: none; }
details.accordion > summary::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-left: auto;
  color: var(--muted);
  transition: transform .18s ease;
}
details.accordion[open] > summary::after { transform: rotate(180deg); }
.form-section__title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.form-section__title > i {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(88,193,90,.16), rgba(210,255,119,.42));
  color: var(--green-strong);
  flex: 0 0 auto;
}
.form-section__title span {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}
.form-section__title strong {
  line-height: 1.1;
}
.form-section__title small {
  color: var(--muted);
  font-weight: 600;
  line-height: 1.35;
}
label > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
label > span i {
  color: var(--green-strong);
  width: 18px;
  text-align: center;
}
.confirmation-card {
  border-color: rgba(44,165,74,.38);
  box-shadow: 0 22px 60px rgba(44,165,74,.13);
}
.medical-priority {
  border: 2px solid rgba(192,50,33,.25);
  background: linear-gradient(180deg, #fff, #fff8f7);
}
.medical-priority .eyebrow { color: var(--danger); }
.detail-item small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}
a.detail-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.mb-0 { margin-bottom: 0; }
.mt-16 { margin-top: 16px; }
.mb-12 { margin-bottom: 12px; }
.w-100 { width: 100%; }
.justify-between { justify-content: space-between; }
