:root {
  --brand: #1565C0;
  --brand-dark: #0d47a1;
  --brand-light: #e3f0fc;
  --ink: #1f2937;
  --muted: #616161;
  --line: #e5e9f0;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(21, 101, 192, .10);
  --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .07);
}
.nav { min-height: 84px; padding: 14px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo img { height: 200px; width: auto; }
.logo .logo-mobile { display: none; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: 15px; transition: color .25s; }
.nav-links a:hover, .nav-links a.active { color: var(--brand); }
.nav-actions { display: flex; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 15px;
  cursor: pointer; border: 2px solid transparent; transition: .25s; white-space: nowrap;
}
.btn-outline { border-color: var(--brand); color: var(--brand); background: #fff; }
.btn-outline:hover { background: var(--brand-light); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-lg { padding: 16px 30px; font-size: 16px; }

.menu-toggle { display: none; background: none; border: 0; font-size: 28px; cursor: pointer; color: var(--brand); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
  padding: 90px 0 70px;
  text-align: center;
}
.hero h1 { font-size: 52px; line-height: 1.12; font-weight: 800; margin-bottom: 18px; }
.hero h1 span { color: var(--brand); }
.hero p.sub { font-size: 20px; color: var(--muted); max-width: 680px; margin: 0 auto 34px; }

/* ---------- Search card ---------- */
.search-card {
  background: #fff; border-radius: 16px; box-shadow: var(--shadow);
  padding: 18px; max-width: 940px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1.1fr 1.3fr auto; gap: 12px;
  align-items: end;
}
.field { text-align: left; }
.field label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 6px 4px; }
.field select, .field input {
  width: 100%; padding: 14px 14px; border: 1.5px solid var(--line);
  border-radius: 10px; font-size: 15px; color: var(--ink); background: #fff; outline: none;
}
.field select:focus, .field input:focus { border-color: var(--brand); }
.search-card .btn { height: 50px; }

/* ---------- Trust strip ---------- */
.trust { padding: 34px 0; border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.trust-grid strong { display: block; font-size: 30px; color: var(--brand); font-weight: 800; }
.trust-grid span { color: var(--muted); font-size: 14px; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* ---------- Categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 235px; border-radius: var(--radius); cursor: pointer;
  background-image: var(--cat-img); background-size: cover; background-position: center;
  border: 1px solid var(--line); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 22px; text-align: center;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.cat-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: rgba(12, 20, 33, .38);
  transition: opacity .25s ease;
}
.cat-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background-color: #FFB319;
  opacity: 0; transition: opacity .2s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand); }
.cat-card:hover::after { opacity: .8; }
.cat-card .cat-icon {
  position: relative; z-index: 2;
  width: 62px; height: 62px;
  opacity: 0; transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
}
.cat-card .cat-icon img { width: 100%; height: 100%; object-fit: contain; }
.cat-card:hover .cat-icon { opacity: 1; transform: translateY(0); }
.cat-body { position: relative; z-index: 2; }
.cat-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; color: #fff; transition: color .2s ease; }
.cat-card p { font-size: 13px; color: rgba(255, 255, 255, .9); transition: color .2s ease; }
.cat-card:hover h3, .cat-card:hover p { color: #000; }

.cat-gasfiteria        { --cat-img: url("../img/Logos/Gasfiteria/imagen.jpg"); }
.cat-electricidad      { --cat-img: url("../img/Logos/Electricidad/imagen.jpg"); }
.cat-pintura           { --cat-img: url("../img/Logos/Pintura/imagen.jpg"); }
.cat-computo           { --cat-img: url("../img/Logos/Computo/imagen.jpg"); }
.cat-cerrajeria        { --cat-img: url("../img/Logos/Cerrajeria/Imagen.jpg"); }
.cat-electrodomesticos { --cat-img: url("../img/Logos/Electrodomesticos/images.jpg"); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { background: #fff; border-radius: var(--radius); padding: 34px 26px; box-shadow: var(--shadow); position: relative; }
.step .num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; margin-bottom: 18px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Professionals ---------- */
.pro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pro-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; gap: 16px; align-items: center; transition: .25s;
}
.pro-card:hover { box-shadow: var(--shadow); border-color: var(--brand); }
.avatar {
  width: 62px; height: 62px; border-radius: 50%; flex: 0 0 62px;
  background: var(--brand-light); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px;
}
.pro-info h3 { font-size: 17px; margin-bottom: 2px; }
.pro-info .trade { color: var(--brand); font-size: 14px; font-weight: 600; }
.pro-info .place { color: var(--muted); font-size: 13px; margin-top: 2px; }
.pro-actions { margin-left: auto; }
.pro-actions .wa {
  display: inline-flex; align-items: center; gap: 6px;
  background: #25D366; color: #fff; font-weight: 700; font-size: 13px;
  padding: 9px 14px; border-radius: 8px;
}

/* ---------- Map ---------- */
.map-toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-bottom: 18px;
}
.map-toolbar select, .map-toolbar input {
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 15px; background: #fff; outline: none; min-width: 200px;
}
.map-toolbar select:focus, .map-toolbar input:focus { border-color: var(--brand); }
.map-toolbar .btn { height: 46px; }
.resultados { margin-left: auto; color: var(--muted); font-size: 14px; font-weight: 600; }
.map-wrap { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
#map { width: 100%; height: 480px; }
.map-wrap iframe { width: 100%; height: 440px; border: 0; display: block; }
.pro-marker {
  width: 34px; height: 34px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); background: var(--brand); border: 3px solid #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,.3); display: flex; align-items: center; justify-content: center;
}
.pro-marker span { transform: rotate(45deg); color: #fff; font-weight: 800; font-size: 12px; }
.me-marker {
  width: 18px; height: 18px; border-radius: 50%; background: #2563eb;
  border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(37,99,235,.25);
}
.leaflet-popup-content { margin: 14px 16px; }
.leaflet-popup-content h4 { font-size: 16px; margin-bottom: 2px; }
.leaflet-popup-content .pop-trade { color: var(--brand); font-weight: 600; font-size: 13px; }
.leaflet-popup-content .pop-place { color: var(--muted); font-size: 12px; margin: 6px 0 10px; }
.leaflet-popup-content .pop-wa {
  display: inline-block; background: #25D366; color: #fff; font-weight: 700;
  font-size: 13px; padding: 8px 14px; border-radius: 8px;
}

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff; border-radius: 18px; padding: 56px 40px; text-align: center;
}
.cta h2 { font-size: 34px; font-weight: 800; margin-bottom: 14px; }
.cta p { font-size: 18px; opacity: .92; margin-bottom: 28px; }
.cta .btn { background: #fff; color: var(--brand); }
.cta .btn:hover { background: #f0f4fb; }

/* ---------- Footer ---------- */
.footer { background: #0f1b2d; color: #c7d2e0; padding: 56px 0 26px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer .logo img { height: 76px; margin-bottom: 18px; filter: none; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer a { display: block; color: #c7d2e0; font-size: 14px; padding: 5px 0; transition: .2s; }
.footer a:hover { color: #fff; }
.footer p { font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 20px; text-align: center; font-size: 13px; color: #8fa1b8; }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: calc(100vh - 84px); display: flex; align-items: center; justify-content: center; background: var(--bg-soft); padding: 50px 20px; }
.auth-card { background: #fff; border-radius: 16px; box-shadow: var(--shadow); width: 100%; max-width: 440px; padding: 40px; }
.auth-card h1 { font-size: 28px; margin-bottom: 6px; }
.auth-card p.lead { color: var(--muted); margin-bottom: 26px; font-size: 15px; }
.auth-form .field { margin-bottom: 16px; }
.auth-form .field input { padding: 13px 14px; }
.auth-form .btn { width: 100%; margin-top: 6px; }
.auth-alt { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.auth-alt a { color: var(--brand); font-weight: 600; }
.form-msg { display: none; margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; font-size: 14px; line-height: 1.45; }
.form-msg.show { display: block; }
.form-msg.ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-msg.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.form-msg.info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ---------- Simple content pages ---------- */
.page-hero { background: var(--bg-soft); padding: 60px 0; text-align: center; }
.page-hero h1 { font-size: 40px; font-weight: 800; margin-bottom: 10px; }
.page-hero p { color: var(--muted); font-size: 18px; }
.content { max-width: 820px; margin: 0 auto; }
.content h2 { font-size: 26px; margin: 34px 0 12px; }
.content p { color: #374151; margin-bottom: 14px; }
.content ul.bullets { margin: 10px 0 20px 8px; }
.content ul.bullets li { position: relative; padding-left: 26px; margin-bottom: 10px; color: #374151; }
.content ul.bullets li::before { content: "\2713"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .search-card { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-actions .btn-outline { display: none; }
  .menu-toggle { display: block; }
  .logo .logo-desktop { display: none; }
  .logo .logo-mobile { display: block; height: 52px; }
  .hero h1 { font-size: 36px; }
  .hero p.sub { font-size: 17px; }
  .search-card { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .cat-card { min-height: 180px; padding: 18px; }
  .cat-card .cat-icon { width: 50px; height: 50px; }
  .steps { grid-template-columns: 1fr; }
  .pro-grid { grid-template-columns: 1fr; }
  .cta { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}

/* Mobile dropdown menu */
.mobile-menu {
  display: none; position: absolute; top: 84px; left: 0; right: 0;
  background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 12px 20px 20px;
}
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 12px 4px; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { width: 100%; margin-top: 12px; }

/* ---------- Panel del profesional ---------- */
.hidden { display: none !important; }
.panel-wrap { background: var(--bg-soft); padding: 34px 0 70px; min-height: calc(100vh - 84px); }
.panel-grid { display: grid; grid-template-columns: 300px 1fr; gap: 26px; align-items: start; }

.panel-side { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 26px 22px; position: sticky; top: 104px; }
.panel-avatar { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 14px; overflow: hidden; background: var(--brand-light); display: flex; align-items: center; justify-content: center; }
.panel-avatar img { width: 100%; height: 100%; object-fit: cover; }
.panel-avatar span { font-size: 34px; font-weight: 800; color: var(--brand); }
.panel-name { text-align: center; font-size: 19px; font-weight: 700; }
.panel-mail { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 12px; word-break: break-all; }
.panel-photo-btn { display: block; margin: 0 auto 14px; }
.panel-side .field { margin-bottom: 12px; }

.estado-badge { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.estado-Pendiente { background: #f1f5f9; color: #475569; }
.estado-revision { background: #fef9c3; color: #854d0e; }
.estado-correccion { background: #fee2e2; color: #991b1b; }
.estado-Activo { background: #dcfce7; color: #166534; }
.estado-Inactivo { background: #f3f4f6; color: #6b7280; }

.panel-side-menu { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.panel-side-menu a { display: block; padding: 9px 8px; border-radius: 8px; font-size: 14px; font-weight: 600; color: #374151; }
.panel-side-menu a:hover { background: var(--brand-light); color: var(--brand); }

.panel-main { display: flex; flex-direction: column; gap: 22px; }
.card { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 26px; }
.card h2 { font-size: 20px; margin-bottom: 6px; }
.card .card-sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.card-head h2 { margin-bottom: 2px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-2 .full { grid-column: 1 / -1; }
.field input[readonly], .field input:disabled, .field select:disabled { background: #f8fafc; color: #64748b; }
.field .hint { font-size: 12px; color: var(--muted); margin: 4px 0 0 4px; }

.faltantes { margin: 4px 0 18px; }
.faltantes li { position: relative; padding: 8px 0 8px 30px; font-size: 14px; color: #92400e; }
.faltantes li::before { content: "\26A0"; position: absolute; left: 4px; }
.faltantes.vacio li { color: #166534; }
.faltantes.vacio li::before { content: "\2713"; }

.serv-group { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.serv-group h4 { font-size: 15px; margin-bottom: 10px; color: var(--brand); }
.serv-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.serv-item { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.serv-item input { width: 17px; height: 17px; }
.serv-item.bloqueado { color: var(--muted); }
.serv-item .tag { font-size: 11px; background: var(--brand-light); color: var(--brand); padding: 2px 7px; border-radius: 999px; font-weight: 700; }

.doc-row { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.doc-row h4 { font-size: 15px; margin-bottom: 4px; }
.doc-row .doc-help { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.doc-estado { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; display: inline-block; margin-bottom: 10px; }
.doc-estado.Pendiente { background: #fef9c3; color: #854d0e; }
.doc-estado.Validado { background: #dcfce7; color: #166534; }
.doc-estado.correccion { background: #fee2e2; color: #991b1b; }
.doc-obs { font-size: 13px; color: #991b1b; margin: 0 0 10px; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.doc-actions input[type="file"] { font-size: 13px; }
.doc-actions input[type="text"] { padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 9px; font-size: 14px; outline: none; }
.doc-actions input[type="text"]:focus { border-color: var(--brand); }

.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 9px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.acciones-final { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

#mapPerfil { width: 100%; height: 320px; border-radius: 12px; margin-top: 6px; border: 1px solid var(--line); }

@media (max-width: 980px) {
  .panel-grid { grid-template-columns: 1fr; }
  .panel-side { position: static; }
}
@media (max-width: 760px) {
  .grid-2 { grid-template-columns: 1fr; }
  .serv-items { grid-template-columns: 1fr; }
}

/* ---------- Panel de administración ---------- */
.admin-body { background: var(--bg-soft); }
.admin-wrap { display: flex; min-height: 100vh; }
.admin-side { width: 250px; flex: 0 0 250px; background: #0f1b2d; color: #c7d2e0; display: flex; flex-direction: column; padding: 20px 16px; }
.admin-brand { text-align: center; margin-bottom: 22px; }
.admin-brand img { height: 44px; margin: 0 auto 8px; }
.admin-brand span { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #8fa1b8; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.admin-nav a { padding: 11px 14px; border-radius: 9px; color: #c7d2e0; font-weight: 600; font-size: 14px; }
.admin-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.admin-nav a.active { background: var(--brand); color: #fff; }
.admin-side-foot { margin-top: 16px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 14px; }
.admin-user { font-size: 12px; color: #8fa1b8; margin-bottom: 10px; word-break: break-all; }
.admin-main { flex: 1; padding: 30px 34px 60px; max-width: 1400px; }
.admin-sec h1 { font-size: 26px; margin-bottom: 6px; }
.admin-sec .sub { color: var(--muted); font-size: 15px; margin-bottom: 22px; }

.admin-card { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 22px; margin-bottom: 20px; }
.admin-card h2 { font-size: 18px; margin-bottom: 14px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.stat-card { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 20px; }
.stat-card .num { font-size: 30px; font-weight: 800; color: var(--brand); }
.stat-card .lbl { color: var(--muted); font-size: 13px; margin-top: 4px; }

.admin-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.admin-filters input, .admin-filters select {
  padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 9px; font-size: 14px; outline: none; background: #fff;
}
.admin-filters input:focus, .admin-filters select:focus { border-color: var(--brand); }

.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--line); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.admin-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tr:hover td { background: #f8fafc; }
.admin-table .acciones { display: flex; gap: 8px; flex-wrap: wrap; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge.gris { background: #f1f5f9; color: #475569; }
.badge.amar { background: #fef9c3; color: #854d0e; }
.badge.rojo { background: #fee2e2; color: #991b1b; }
.badge.verde { background: #dcfce7; color: #166534; }

.pager { display: flex; gap: 10px; align-items: center; margin-top: 16px; font-size: 14px; color: var(--muted); }

.detalle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.detalle-grid .full { grid-column: 1 / -1; }
.dato { margin-bottom: 8px; font-size: 14px; }
.dato strong { color: var(--muted); font-weight: 600; display: inline-block; min-width: 120px; }
.doc-admin { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.doc-admin h4 { font-size: 14px; margin-bottom: 6px; }
.doc-admin .acciones { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.doc-admin .acciones input[type="text"] { padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 8px; font-size: 13px; outline: none; }
.obs-line { font-size: 13px; color: #991b1b; margin-top: 6px; }

.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; align-items: end; }
.admin-form-grid .field { margin: 0; }
.pill-tag { font-size: 11px; background: var(--brand-light); color: var(--brand); padding: 2px 8px; border-radius: 999px; font-weight: 700; }

@media (max-width: 980px) {
  .admin-wrap { flex-direction: column; }
  .admin-side { width: 100%; flex: none; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .detalle-grid { grid-template-columns: 1fr; }
  .admin-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .admin-main { padding: 20px 16px 50px; }
  .stat-grid { grid-template-columns: 1fr; }
  .admin-table { display: block; overflow-x: auto; white-space: nowrap; }
}
