:root {
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-text: #2e2218;
  --color-muted: #5c5148;
  --color-primary: #52a033;
  --color-primary-text: #3f7f28;
  --color-on-primary: #ffffff;

  --brown: var(--color-text);
  --cream: var(--color-bg);
  --cream-dark: #f6f1ea;
  --sand: #d4a574;
  --green: var(--color-primary);
  --green-dark: var(--color-primary-text);
  --text-mid: #6b5f54;
  --text-muted: var(--color-muted);
  --border: #c4a882;
  --border-subtle: rgba(46, 34, 24, 0.1);

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
}

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

:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--cream);
  color: var(--brown);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--green-dark);
}

.wrap {
  width: min(520px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

header.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.logo {
  font-weight: 700;
  font-size: 22px;
  color: var(--brown);
  text-decoration: none;
}

.logo span {
  color: var(--green);
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--space-2);
}

h1 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(26px, 5vw, 32px);
  line-height: 1.15;
  margin-bottom: 10px;
}

.lead {
  color: var(--text-mid);
  font-size: 16px;
  margin-bottom: 24px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

input,
select {
  width: 100%;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 16px;
  font-family: inherit;
}

.phone-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-block {
  width: 100%;
}

header.top .btn {
  padding: 7px 14px;
  font-size: 13px;
  margin-top: 0;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
}

.btn-primary:hover {
  background: var(--color-primary-text);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: wait;
}

.btn-ghost {
  background: transparent;
  color: var(--color-primary-text);
  border: 1px solid var(--color-primary-text);
  margin-top: 10px;
}

.btn-ghost:hover {
  background: rgba(74, 118, 50, 0.08);
}

.card .btn-ghost {
  margin-top: 10px;
}

.msg {
  font-size: 14px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
}

.msg.error {
  background: #fdecea;
  color: #8b2e24;
}

.msg.ok {
  background: rgba(106, 158, 72, 0.12);
  color: var(--green-dark);
}

.hidden {
  display: none !important;
}

.paso-codigo {
  margin-top: 8px;
}

.badge-plan {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(106, 158, 72, 0.15);
  color: var(--green-dark);
  margin-bottom: 16px;
}

.badge-plan.pro {
  background: var(--brown);
  color: var(--cream);
}

section.block {
  margin-top: 28px;
}

section.block h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 12px;
}

.lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lista li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
}

.lista li strong {
  display: block;
  margin-bottom: 4px;
}

.lista li span {
  color: var(--text-mid);
  font-size: 14px;
}

.vacio {
  color: var(--text-mid);
  font-size: 15px;
  line-height: 1.65;
}

.panel-bienvenida {
  margin-top: 4px;
}

.lead-vacio {
  font-size: 15px;
  color: var(--brown);
  line-height: 1.55;
  margin-bottom: 10px;
}

.cta-grupo {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.aviso-pro {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(46, 34, 24, 0.06);
  font-size: 14px;
  line-height: 1.55;
}

.aviso-pro strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.aviso-pro .btn {
  margin-top: 12px;
}

.bloque-descarga {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(106, 158, 72, 0.25);
  background: rgba(106, 158, 72, 0.08);
}

.aviso-pro-soft {
  background: rgba(46, 34, 24, 0.04);
}

.aviso-pro-soft p {
  margin: 0 0 10px;
}

.dash-tab-hint {
  font-size: 12px;
  color: var(--text-mid);
  margin: -6px 0 14px;
  line-height: 1.45;
  min-height: 1.2em;
}

.dash-tab-hint.hidden {
  display: none;
}

.field-hint {
  display: block;
  font-size: 11px;
  color: var(--text-mid);
  margin: -2px 0 6px;
}

.contacto-block {
  margin-top: 8px;
}

.contacto-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ayuda-page {
  max-width: 720px;
}

.ayuda-wa-hint {
  margin: 0 0 18px;
}

.ayuda-guia {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ayuda-item {
  border: 1px solid #e5ddd2;
  border-radius: 12px;
  margin-bottom: 0;
  background: #fff;
  padding: 0 16px;
  box-shadow: 0 1px 2px rgba(46, 34, 24, 0.04);
}

.ayuda-item[open] {
  border-color: #d5e8cc;
  box-shadow: 0 2px 8px rgba(46, 34, 24, 0.06);
}

.ayuda-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 0;
  padding-left: 22px;
  list-style: none;
  color: #2e2218;
  position: relative;
}

.ayuda-item summary::before {
  content: "›";
  position: absolute;
  left: 0;
  color: #3f7f28;
  font-size: 18px;
  line-height: 1.2;
  transition: transform 0.15s ease;
}

.ayuda-item[open] summary::before {
  transform: rotate(90deg);
}

.ayuda-item summary::-webkit-details-marker {
  display: none;
}

.ayuda-item-body {
  padding: 0 0 14px;
}

.ayuda-item-body p {
  font-size: 14px;
  color: #5c5148;
  line-height: 1.6;
  margin: 0 0 10px;
}

.ayuda-item-body p:last-child {
  margin-bottom: 0;
}

.ayuda-list {
  margin: 0 0 12px;
  padding-left: 20px;
  font-size: 14px;
  color: #5c5148;
  line-height: 1.55;
}

.ayuda-list li {
  margin-bottom: 6px;
}

.ayuda-list li:last-child {
  margin-bottom: 0;
}

.ayuda-ejemplo {
  font-size: 13px !important;
  color: #3f7f28 !important;
  background: #f4f9f1;
  border-left: 3px solid #7cb85e;
  padding: 10px 12px !important;
  border-radius: 0 8px 8px 0;
  margin-bottom: 12px !important;
}

.faq-ayuda .faq-item {
  border: 1px solid #e5ddd2;
  border-radius: 12px;
  margin-bottom: 8px;
  background: #fff;
  padding: 0 16px;
}

.lotes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px 0 10px;
}

.lote-row {
  padding: 12px 14px;
  border: 1px solid rgba(46, 34, 24, 0.1);
  border-radius: 10px;
  background: rgba(253, 251, 247, 0.8);
}

.lote-row label {
  margin-top: 8px;
}

.lote-row label:first-child {
  margin-top: 0;
}

.btn-add-lote {
  margin: 4px 0 12px;
}

.card-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  background: #fff;
  margin-bottom: 12px;
}

.lista-recordatorios .recordatorio-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.recordatorio-msg {
  margin: 0;
  font-size: 15px;
  color: var(--brown);
  line-height: 1.45;
}

.recordatorio-cuando {
  margin: 0;
  font-size: 13px;
  color: var(--text-mid);
}

.lista-equipo .colab-rol {
  display: block;
  font-size: 13px;
  color: var(--green-dark);
  margin: 2px 0 4px;
}

.inicio-hint,
.inicio-pro-hint {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-mid);
}

.btn-block {
  width: 100%;
  margin-top: 8px;
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-primary-text);
  border: 2px solid var(--color-primary-text);
}

.btn-secondary:hover {
  background: rgba(74, 118, 50, 0.08);
}

.informe-rango-nota {
  font-size: 14px;
  color: var(--text-mid);
  margin: 16px 0 12px;
  line-height: 1.5;
}

.informe-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.informe-actions .btn,
.informe-actions a.btn {
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.mas-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 4px;
}

@media (min-width: 768px) {
  .mas-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px 36px;
    align-items: start;
  }
}

.mas-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mas-nav-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mas-nav-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin: 0 0 4px;
  padding: 0 10px;
}

.mas-nav-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.mas-nav-btn:hover {
  background: rgba(106, 158, 72, 0.08);
}

.mas-nav-btn.is-active {
  background: rgba(106, 158, 72, 0.14);
}

.mas-nav-btn-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--brown);
}

.mas-nav-btn-desc {
  display: block;
  font-size: 13px;
  color: var(--text-mid);
  margin-top: 2px;
}

.mas-nav-hint {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.5;
  padding: 0 10px;
  margin: 0;
}

.mas-main {
  min-width: 0;
}

.mas-placeholder {
  color: var(--text-mid);
  font-size: 15px;
  line-height: 1.55;
  padding: 8px 0;
}

.mas-back {
  background: none;
  border: none;
  padding: 0 0 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--green-dark);
  cursor: pointer;
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .mas-back {
    display: none;
  }

  .mas-placeholder {
    display: none;
  }
}

.mas-sub-content section.block h2 {
  margin-top: 8px;
}

.ayuda-pro-upsell {
  margin-top: 16px;
}

.plan-estado-linea {
  font-size: 16px;
}

.dash-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brown);
  color: var(--cream);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  z-index: 100;
  max-width: min(90vw, 360px);
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.salir {
  margin-top: 32px;
  text-align: center;
  font-size: 14px;
}

.salir button {
  background: none;
  border: none;
  color: var(--text-mid);
  cursor: pointer;
  font-size: 14px;
  text-decoration: underline;
  font-family: inherit;
}

.plan-opcion {
  margin-top: 24px;
  padding: 20px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(253, 251, 247, 0.6);
}

.plan-opcion.plan-recomendada {
  border-color: rgba(106, 158, 72, 0.45);
  background: rgba(106, 158, 72, 0.08);
}

.plan-opcion h2 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 8px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--brown);
}

.plan-opcion p {
  font-size: 15px;
  color: var(--text-mid);
  margin-bottom: 12px;
}

.transfer-box {
  background: #fff;
  border: 1px dashed rgba(106, 158, 72, 0.4);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 12px 0 16px;
  font-size: 14px;
  line-height: 1.55;
}

.transfer-box code {
  font-size: 13px;
  background: rgba(46, 34, 24, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  word-break: break-all;
}

.fx-nota {
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 8px;
  line-height: 1.5;
}

/* ——— Plan / Surco Pro ——— */
.wrap.wrap-plan {
  width: min(1040px, calc(100% - 32px));
}

.plan-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
}

.plan-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

@media (min-width: 900px) {
  .plan-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 36px 40px;
    align-items: start;
  }

  .plan-col-pay {
    position: sticky;
    top: 24px;
  }
}

.plan-col-info .plan-precio-hero {
  text-align: left;
}

.plan-col-pay .plan-opcion {
  margin-top: 0;
}

.plan-lead-corto {
  margin-bottom: 16px;
}

.plan-beneficios {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-beneficios li {
  font-size: 15px;
  color: var(--brown);
  padding-left: 22px;
  position: relative;
}

.plan-beneficios li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green-dark);
  font-weight: 700;
}

.plan-precio-hero {
  text-align: center;
  padding: 20px 16px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(106, 158, 72, 0.14) 0%,
    rgba(106, 158, 72, 0.04) 100%
  );
  border: 1px solid rgba(106, 158, 72, 0.25);
}

.plan-monto {
  display: block;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(32px, 8vw, 40px);
  line-height: 1.1;
  color: var(--brown);
}

.plan-periodo {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  color: var(--text-mid);
}

.plan-badge {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--brown);
  color: var(--cream);
}

.plan-mensual-ref {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-mid);
}

.plan-detalle-precio {
  font-size: 12px;
  color: var(--text-mid);
  text-align: center;
  margin: -8px 0 16px;
  line-height: 1.45;
}

.plan-etiqueta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 4px;
}

.pasos-transfer {
  margin: 0 0 16px;
  padding-left: 20px;
  font-size: 15px;
  color: var(--brown);
  line-height: 1.55;
}

.pasos-transfer li {
  margin-bottom: 8px;
}

.pasos-transfer li:last-child {
  margin-bottom: 0;
}

.transfer-box-titulo {
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 14px;
}

.transfer-monto {
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--brown);
}

.transfer-titular {
  font-size: 14px;
  color: var(--text-mid);
  margin: 8px 0 4px;
}

.dato-copiar {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 2px 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(46, 34, 24, 0.08);
}

.dato-copiar:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.dato-label {
  grid-column: 1;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dato-valor {
  grid-column: 1;
  font-size: 15px;
  font-weight: 600;
  color: var(--brown);
  word-break: break-all;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.btn-copiar {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid rgba(106, 158, 72, 0.45);
  border-radius: 8px;
  background: #fff;
  color: var(--green-dark);
  cursor: pointer;
}

.btn-copiar:hover {
  background: rgba(106, 158, 72, 0.1);
}

.plan-acciones {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 4px;
}

.plan-separador {
  margin: 28px 0 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-mid);
  text-align: center;
}

.plan-opcion-tarjeta {
  margin-top: 10px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.plan-opcion-tarjeta summary {
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: var(--brown);
}

.plan-opcion-tarjeta summary::-webkit-details-marker {
  display: none;
}

.plan-opcion-tarjeta summary::after {
  content: "+";
  float: right;
  font-weight: 400;
  color: var(--green-dark);
}

.plan-opcion-tarjeta[open] summary::after {
  content: "−";
}

.plan-opcion-tarjeta .plan-opcion-detalle {
  padding: 0 16px 8px;
  margin: 0;
  font-size: 14px;
}

.plan-opcion-tarjeta .btn {
  margin: 0 16px 16px;
  width: calc(100% - 32px);
}

.plan-ayuda-tarjeta,
.plan-contacto {
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.5;
}

.plan-col-pay .plan-ayuda-tarjeta,
.plan-col-pay .plan-contacto {
  text-align: left;
}

.plan-ayuda-tarjeta a,
.plan-contacto a {
  color: var(--green-dark);
  font-weight: 600;
}

.plan-volver {
  margin-top: 28px;
  text-align: center;
  font-size: 14px;
}

.plan-volver a {
  color: var(--text-mid);
  text-decoration: none;
}

.plan-volver a:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

.plan-estado-ok .lead {
  margin-bottom: 20px;
}

#aviso-pago {
  margin-bottom: 16px;
}

.plan-preview-banner {
  font-size: 13px;
  margin-bottom: 16px;
}

/* Tu campo — layout */
.tu-campo-body {
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.tu-campo-body {
  --tc-dash-bg: #fdfbf7;
  --tc-nav-bg: #f0eae1;
  --tc-nav-border: #d5c9b8;
  --tc-nav-text: #5c5148;
  --tc-nav-muted: #8a7d6f;
}

.tu-campo-body #app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: var(--tc-dash-bg);
}

.tu-campo-body #top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 100;
}

.tu-campo-body .tc-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tu-campo-body .tc-logo {
  font-weight: 700;
  font-size: 26px;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.tu-campo-body .tc-logo span {
  color: var(--color-primary);
}

.tu-campo-body .tc-help-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid #e5ddd2;
  background: #ffffff;
  color: #2e2218;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(46, 34, 24, 0.05);
  cursor: pointer;
  padding: 0;
}

.tu-campo-body .tc-help-btn:hover,
.tu-campo-body .tc-help-btn:focus-visible {
  background: #faf8f5;
  border-color: #cfc4b6;
}

.tu-campo-body #main-layout {
  display: flex;
  margin-top: 60px;
  height: calc(100vh - 60px);
  flex: 1;
  min-height: 0;
}

.tu-campo-body #sidebar {
  width: 228px;
  min-width: 228px;
  background: var(--tc-nav-bg);
  border-right: 1px solid var(--tc-nav-border);
  display: none;
  flex-direction: column;
  padding: 20px 12px 16px;
  position: fixed;
  top: 60px;
  bottom: 0;
  left: 0;
  overflow-y: auto;
  z-index: 90;
}

.tu-campo-body {
  font-size: 16px;
  line-height: 1.5;
  font-family: "DM Sans", system-ui, sans-serif;
}

.tu-campo-body h1,
.tu-campo-body h2,
.tu-campo-body h3,
.tu-campo-body .tc-greeting,
.tu-campo-body .dash-page-title,
.tu-campo-body .dash-section-title,
.tu-campo-body .activity-head h2,
.tu-campo-body .campo-card-name,
.tu-campo-body .mas-sub-title,
.tu-campo-body #content .block h2:not(.dash-eyebrow),
.tu-campo-body .stat-n,
.tu-campo-body .campo-expand summary,
.tu-campo-body .share-modal h3 {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tu-campo-body .tc-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin-bottom: 12px;
  padding-right: 2px;
}

.tu-campo-body #sidebar .tc-nav-item {
  padding: 9px 12px;
  font-size: 14px;
}

.tu-campo-body .tc-menu-btn {
  display: none;
  border: none;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: var(--color-text);
  cursor: pointer;
  padding: 4px 8px;
  margin-right: 4px;
}

.tu-campo-body .tc-nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
}

.tu-campo-body .tc-nav-drawer.hidden {
  display: none;
}

.tu-campo-body .tc-nav-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(46, 34, 24, 0.28);
}

.tu-campo-body .tc-nav-drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(300px, 88vw);
  background: var(--tc-nav-bg);
  border-right: 1px solid var(--tc-nav-border);
  box-shadow: 4px 0 24px rgba(46, 34, 24, 0.08);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.tu-campo-body .tc-nav-drawer-panel .tc-nav-item {
  width: 100%;
}

.tu-campo-body .tc-bottom-nav-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  width: 100%;
}

.tu-campo-body .feature-mount {
  max-width: 1040px;
}

.tu-campo-body #content {
  margin-left: 0;
  flex: 1;
  padding: var(--space-3) var(--space-2) calc(88px + env(safe-area-inset-bottom, 0));
  overflow-y: auto;
  max-width: none;
  min-width: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--tc-dash-bg);
}

.tu-campo-body .tc-cargando {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  max-width: none;
  padding: 24px;
  text-align: center;
  background: var(--tc-dash-bg, #fdfbf7);
}

.tu-campo-body .tc-cargando.hidden {
  display: none;
}

.tu-campo-body .tc-content-top {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 14px;
}

.tu-campo-body .tc-content-top .tc-inicio-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.tu-campo-body .tc-inicio-header {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  margin-bottom: 0;
}

.tu-campo-body .tc-inicio-header.hidden {
  display: none;
}

.tu-campo-body .tc-content-top:has(.tc-inicio-header.hidden) .tc-action-bar {
  margin-top: 0;
}

.tu-campo-body .tc-greeting {
  font-size: 26px;
  color: #2e2218;
  margin: 0;
  line-height: 1.2;
}

.tu-campo-body .tc-plan-badge {
  display: inline-block;
  border: none;
  background: #e8f0e3;
  color: var(--color-primary-text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 100px;
  cursor: pointer;
}

.tu-campo-body .tc-plan-badge.is-free {
  background: #f5ede3;
  color: #2e2218;
}

.tu-campo-body .tc-plan-renewal {
  margin: 6px 0 0;
  font-size: 13px;
  color: #6a6a6a;
  line-height: 1.4;
}

.tu-campo-body .tc-plan-renewal.hidden {
  display: none;
}

.tu-campo-body .inicio-informe-cta {
  background: #fff;
  border: 1px solid #e8d5bf;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 28px;
  max-width: 520px;
}

.tu-campo-body .inicio-informe-cta p {
  margin: 0 0 12px;
  font-size: 15px;
  color: #2e2218;
  line-height: 1.45;
}

.tu-campo-body #sidebar .tc-nav-item,
.tu-campo-body .tc-nav-drawer-panel .tc-nav-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--tc-nav-text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.tu-campo-body #sidebar .tc-nav-item .tc-nav-icon,
.tu-campo-body .tc-nav-drawer-panel .tc-nav-item .tc-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--tc-nav-muted);
  transition: color 0.15s ease;
}

.tu-campo-body #sidebar .tc-nav-item .tc-nav-icon svg,
.tu-campo-body .tc-nav-drawer-panel .tc-nav-item .tc-nav-icon svg {
  width: 18px;
  height: 18px;
}

.tu-campo-body #sidebar .tc-nav-item:not(.active):hover,
.tu-campo-body #sidebar .tc-nav-item:not(.active):focus-visible,
.tu-campo-body .tc-nav-drawer-panel .tc-nav-item:not(.active):hover,
.tu-campo-body .tc-nav-drawer-panel .tc-nav-item:not(.active):focus-visible {
  background: rgba(255, 255, 255, 0.55);
  color: #2e2218;
}

.tu-campo-body #sidebar .tc-nav-item:not(.active):hover .tc-nav-icon,
.tu-campo-body #sidebar .tc-nav-item:not(.active):focus-visible .tc-nav-icon,
.tu-campo-body .tc-nav-drawer-panel .tc-nav-item:not(.active):hover .tc-nav-icon,
.tu-campo-body
  .tc-nav-drawer-panel
  .tc-nav-item:not(.active):focus-visible
  .tc-nav-icon {
  color: #6b5d4f;
}

.tu-campo-body #sidebar .tc-nav-item.active,
.tu-campo-body .tc-nav-drawer-panel .tc-nav-item.active {
  background: #ffffff;
  color: #2e2218;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(46, 34, 24, 0.06);
  border-left: 3px solid var(--color-primary);
  padding-left: 9px;
}

.tu-campo-body #sidebar .tc-nav-item.active .tc-nav-icon,
.tu-campo-body .tc-nav-drawer-panel .tc-nav-item.active .tc-nav-icon {
  color: var(--color-primary-text);
}

.tu-campo-body #sidebar .tc-sidebar-salir,
.tu-campo-body .tc-nav-drawer-panel .tc-sidebar-salir {
  display: flex;
  align-items: center;
  margin-top: auto;
  padding: 14px 12px 4px;
  background: none;
  border: none;
  border-top: 1px solid var(--tc-nav-border);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--tc-nav-muted);
  cursor: pointer;
  text-decoration: none;
  text-align: left;
}

.tu-campo-body #sidebar .tc-sidebar-salir:hover,
.tu-campo-body #sidebar .tc-sidebar-salir:focus-visible,
.tu-campo-body .tc-nav-drawer-panel .tc-sidebar-salir:hover,
.tu-campo-body .tc-nav-drawer-panel .tc-sidebar-salir:focus-visible {
  color: #2e2218;
}

.tu-campo-body .tc-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0));
  background: #fdfbf7;
  border-top: 1px solid var(--border);
}

.tu-campo-body .tc-bottom-nav.hidden {
  display: none;
}

.tu-campo-body .tc-bottom-nav .tc-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 56px;
  padding: 6px 4px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #2e2218;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.tu-campo-body .tc-bottom-nav .tc-nav-item .tc-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tu-campo-body .tc-bottom-nav .tc-nav-item:not(.active):hover,
.tu-campo-body .tc-bottom-nav .tc-nav-item:not(.active):focus-visible {
  background: #f5ede3;
}

.tu-campo-body .tc-bottom-nav .tc-nav-item.active {
  background: var(--color-primary);
  color: var(--color-on-primary);
}

.tu-campo-body #content .card-form,
.tu-campo-body #content .informe-print > .block,
.tu-campo-body #content .dash-section,
.tu-campo-body #content .block.card-form {
  max-width: 520px;
}

.tu-campo-body #content .informe-page,
.tu-campo-body #content .informe-page .informe-form,
.tu-campo-body #content .informe-page .informe-report,
.tu-campo-body #content .informe-page .informe-resultado {
  max-width: 1040px;
}

.tu-campo-body #content .mas-sub-wrap {
  max-width: 1040px;
}

.tu-campo-body #content .mas-sub-wrap .block {
  max-width: none;
}

.tu-campo-body #content input:not([type="checkbox"]),
.tu-campo-body #content select,
.tu-campo-body #content textarea {
  max-width: 480px;
  font-size: 15px;
  padding: 10px 14px;
  border: 1px solid #e8d5bf;
  border-radius: 8px;
  background: #fff;
}

/* Botones del contenido: ver bloque «tu-campo-botones» al final del archivo */

.tu-campo-body #content .informe-form .btn-informe {
  width: 100%;
  max-width: 100%;
}

.tu-campo-body #content .dash-form-save {
  width: auto;
  min-width: 140px;
  max-width: none;
  display: inline-flex;
}

.tu-campo-body #content .card-form,
.tu-campo-body #content .block.card-form {
  background: var(--color-surface);
  border: 1px solid #e8d5bf;
  border-radius: 12px;
  padding: var(--space-2);
}

.dash-eyebrow {
  display: block;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--color-primary-text);
  margin: 0 0 var(--space-1);
}

.tu-campo-body .dash-text-secondary,
.tu-campo-body .campo-card-lotes,
.tu-campo-body .registro-card-meta,
.tu-campo-body .registro-card-obs,
.tu-campo-body .labor-row-meta,
.tu-campo-body #content .vacio,
.tu-campo-body #content .field-hint,
.tu-campo-body #content .lead-vacio,
.tu-campo-body .campos-progress-label {
  font-size: 14px;
  color: var(--color-muted);
}

.tu-campo-body .mas-card-desc {
  font-size: 14px;
  color: var(--color-muted);
}

.tu-campo-body .tc-panel.hidden {
  display: none;
}

.dash-section {
  margin-bottom: 28px;
}

.dash-section-title {
  font-size: 20px;
  color: #2e2218;
  margin-bottom: 12px;
}

.dash-page-title {
  font-size: 26px;
  color: #2e2218;
  margin-bottom: 24px;
}

.tu-campo-body #content .dash-page-title,
.tu-campo-body #content .chip-filters {
  max-width: 520px;
}

.activity-block {
  background: var(--cream-dark);
  border-radius: 16px;
  padding: 20px 16px;
  margin-bottom: 28px;
  max-width: none;
  width: 100%;
}

.activity-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}

.activity-head h2 {
  font-size: 20px;
  color: #2e2218;
  margin: 0;
}

.period-tabs {
  display: flex;
  gap: 16px;
}

.period-tab {
  border: none;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 0;
  min-height: 44px;
}

.period-tab.active {
  color: var(--brown);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.campos-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.campos-scroll::-webkit-scrollbar {
  display: none;
}

.campo-card {
  flex: 0 0 min(340px, 85vw);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}

.campo-card-name {
  font-size: 18px;
  color: var(--brown);
  margin-bottom: 6px;
}

.campo-card-lotes {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.45;
}

.labores-list {
  list-style: none;
}

.labor-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.labor-row:last-child {
  border-bottom: none;
}

.labor-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.labor-row-body {
  flex: 1;
  min-width: 0;
}

.labor-row-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--brown);
}

.labor-row-meta {
  font-size: 14px;
  color: var(--text-muted);
}

.btn-ver-todos {
  display: inline-block;
  margin-top: 8px;
  background: none;
  border: none;
  color: var(--green);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 0;
  min-height: 44px;
}

.orden-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 8px;
  font-size: 15px;
}

.orden-card strong {
  display: block;
  margin-bottom: 4px;
}

.orden-card span {
  font-size: 14px;
  color: var(--text-muted);
}

.chip-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.chip-scroll::-webkit-scrollbar {
  display: none;
}

.chip-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.chip-filters::-webkit-scrollbar {
  display: none;
}

.historial-filters {
  margin-bottom: 16px;
  max-width: 100%;
}

.filter-chip {
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  background: var(--color-surface);
  color: var(--color-text);
}

.filter-chip:not(.active):hover {
  background: var(--cream-dark);
  border-color: #a89270;
}

.filter-chip.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-on-primary);
}

.registro-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 10px;
}

.registro-card-tipo {
  font-size: 16px;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 4px;
}

.registro-card-meta {
  font-size: 14px;
  color: var(--text-muted);
}

.registro-card-obs {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.45;
}

.empty-state {
  text-align: center;
  padding: 32px 16px;
}

.tu-campo-body #content .empty-state {
  text-align: left;
  padding: 24px 0 32px;
  max-width: 420px;
  margin: 0;
}

.empty-state svg {
  margin-bottom: 16px;
  display: block;
}

.empty-state .empty-state-illus {
  display: block;
  margin-bottom: 20px;
  pointer-events: none;
  user-select: none;
}

.empty-state-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 8px;
  line-height: 1.3;
}

.empty-state-desc {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.5;
  margin: 0 0 20px;
  max-width: 360px;
}

.tu-campo-body #content .empty-state-desc {
  margin-bottom: 20px;
}

.empty-state-cta {
  display: inline-flex;
  margin-top: 0;
  border-radius: 12px;
}

.tu-campo-body #content .empty-state svg {
  margin-left: 0;
  margin-right: auto;
}

.empty-state p {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.5;
  max-width: 320px;
  margin: 0 auto;
}

.tu-campo-body #content .empty-state p {
  max-width: none;
  margin: 0;
}

.empty-state a {
  color: var(--green);
  font-weight: 600;
}

.mas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.mas-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-1);
  background: var(--color-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--space-2);
  min-height: 140px;
  cursor: pointer;
  font-family: inherit;
  color: var(--brown);
  transition: background 0.15s;
}

.mas-card:hover,
.mas-card:active {
  background: var(--cream-dark);
}

.mas-card-icon {
  font-size: 28px;
  line-height: 1;
  color: var(--green);
}

.mas-card-icon svg {
  stroke: var(--green);
}

.mas-card-title {
  font-size: 15px;
  font-weight: 700;
}

.mas-card-desc {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.4;
}

.mas-sub-wrap {
  margin-top: 0;
}

.tu-campo-body .mas-sub-screen {
  margin-top: 24px;
}

.tu-campo-body .mas-back {
  display: block;
  width: auto;
  margin: 0 0 8px;
  padding: 0;
  background: none;
  border: none;
  color: #6a9e48;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  min-height: 0;
}

.tu-campo-body .mas-sub-title {
  font-size: 26px;
  color: #2e2218;
  margin: 0 0 24px;
  padding: 0;
}

.tu-campo-body #content .block h2:not(.dash-eyebrow) {
  font-size: 26px;
  color: #2e2218;
  margin-bottom: 24px;
}

.informe-page-intro {
  margin: -12px 0 20px;
  max-width: 640px;
}

.informe-form {
  background: #fff;
  border: 1px solid #e5ddd2;
  border-radius: 14px;
  padding: 22px 20px;
  margin-bottom: 28px;
  box-shadow: 0 2px 8px rgba(46, 34, 24, 0.06);
}

.informe-resultado {
  margin-top: 8px;
}

.informe-report {
  background: #fff;
  border: 1px solid #e5ddd2;
  border-radius: 16px;
  padding: 24px 22px 28px;
  box-shadow: 0 2px 12px rgba(46, 34, 24, 0.07);
}

.informe-report-header {
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid #f0ebe4;
}

.informe-report-eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3f7f28;
}

.informe-report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.informe-meta-chip {
  font-size: 15px;
  color: #2e2218;
  line-height: 1.45;
}

.informe-meta-k {
  font-weight: 600;
  color: #6b5d4f;
}

.informe-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

@media (min-width: 640px) {
  .informe-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .informe-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.informe-kpi {
  background: linear-gradient(180deg, #faf8f5 0%, #fff 100%);
  border: 1px solid #ebe4da;
  border-radius: 14px;
  padding: 16px 14px;
  text-align: left;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.informe-kpi-value {
  display: block;
  font-size: 26px;
  font-weight: 700;
  color: #2e2218;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.informe-kpi-label {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #6b5d4f;
  line-height: 1.3;
}

.informe-kpi-sub {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #8a7b6c;
  line-height: 1.3;
}

.informe-sections {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.informe-section-title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  color: #2e2218;
  letter-spacing: -0.01em;
}

.informe-empty {
  margin: 0;
  font-size: 14px;
  color: #8a7b6c;
  line-height: 1.5;
  padding: 12px 0;
}

.informe-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.informe-bar-row {
  display: grid;
  grid-template-columns: minmax(100px, 140px) 1fr 36px;
  gap: 12px;
  align-items: center;
}

.informe-bar-label {
  font-size: 14px;
  font-weight: 500;
  color: #2e2218;
}

.informe-bar-track {
  height: 10px;
  background: #f0ebe4;
  border-radius: 100px;
  overflow: hidden;
}

.informe-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #7cb85e 0%, #52a033 100%);
  border-radius: 100px;
  min-width: 4px;
}

.informe-bar-val {
  font-size: 14px;
  font-weight: 700;
  color: #3f7f28;
  text-align: right;
}

.informe-table-wrap {
  overflow-x: auto;
  border: 1px solid #ebe4da;
  border-radius: 12px;
  background: #fff;
}

.informe-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.informe-table thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6b5d4f;
  padding: 12px 14px;
  background: #faf8f5;
  border-bottom: 1px solid #ebe4da;
  white-space: nowrap;
}

.informe-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #f5f0ea;
  vertical-align: top;
  color: #2e2218;
}

.informe-table tbody tr:last-child td {
  border-bottom: none;
}

.informe-table--actividad tbody td:last-child {
  max-width: 280px;
  color: #5c5148;
}

.informe-report-footer {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #f0ebe4;
}

.informe-export-label {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b5d4f;
}

.informe-alcance {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0ebe4;
}

.informe-alcance-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 520px) {
  .informe-alcance-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.informe-alcance-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #2e2218;
}

.informe-select {
  width: 100%;
  max-width: 100%;
  font-size: 15px;
  padding: 10px 14px;
  border: 1px solid #e5ddd2;
  border-radius: 10px;
  background: #ffffff;
  font-family: inherit;
  color: #2e2218;
  margin-bottom: 0;
}

.informe-periodo-title {
  margin-top: 4px;
}

.informe-sin-campos {
  margin-bottom: 0;
}

.informe-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.informe-dates label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.informe-dates input[type="date"] {
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: 10px;
  font-size: 16px;
  margin-bottom: 0;
}

.btn-informe {
  width: 100%;
  min-height: 48px;
}

.btn-informe[aria-busy="true"] {
  opacity: 0.85;
  cursor: wait;
}

.card-form {
  background: var(--color-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--space-2);
  margin-bottom: var(--space-2);
}

.card-form label {
  margin-top: 8px;
  font-size: 14px;
}

.card-form input,
.card-form select {
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: 10px;
}

.campos-progress {
  margin-bottom: 16px;
}

.campos-progress-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.campos-progress-bar {
  height: 8px;
  background: var(--cream-dark);
  border-radius: 100px;
  overflow: hidden;
}

.campos-progress-bar i {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: 100px;
}

.campo-expand {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 10px;
  overflow: hidden;
}

.campo-expand summary {
  font-size: 18px;
  padding: 16px;
  cursor: pointer;
  list-style: none;
}

.campo-expand summary::-webkit-details-marker {
  display: none;
}

.campo-expand-body {
  padding: 0 16px 16px;
  border-top: 1px solid var(--border-subtle);
}

.lote-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.lote-chip {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 100px;
  background: var(--cream-dark);
  color: var(--brown);
}

.btn-add-campo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--green);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  padding: 12px 0;
  min-height: 44px;
}

.chart-barras {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 140px;
  margin-top: 4px;
}

.chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  min-width: 0;
}

.chart-bar {
  width: 100%;
  max-width: 36px;
  background: var(--green);
  border-radius: 8px 8px 0 0;
  min-height: 4px;
}

.chart-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
}

.lista-uso {
  list-style: none;
}

.lista-uso li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 15px;
}

.uso-barra {
  display: inline-block;
  width: 80px;
  height: 6px;
  background: #e8d5bf;
  border-radius: 3px;
  vertical-align: middle;
  margin: 0 6px;
  overflow: hidden;
}

.uso-barra i {
  display: block;
  height: 100%;
  min-width: 0;
  background: #6a9e48;
  border-radius: 3px;
}

.btn-link {
  background: none;
  border: none;
  color: var(--green);
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  font-family: inherit;
  min-height: 44px;
}

.tel-colab {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
}

.msg.ok {
  color: var(--green);
}

.msg.error {
  color: #b33;
}

.panel-error {
  background: #fff5f5;
  border: 1px solid #e8c4c4;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 15px;
  color: #8b3333;
}

.btn-volver-lote {
  margin-bottom: 12px;
}

/* Legacy stat cards (otros paneles) */
.informe-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
}

@media (min-width: 520px) {
  .informe-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
}

.stat-n {
  display: block;
  font-size: 28px;
  color: var(--brown);
  line-height: 1.1;
}

.stat-l {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.lista-lotes li {
  padding: 14px 16px;
}

.lista-lotes .btn-lote-link {
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--brown);
  cursor: pointer;
  text-align: left;
  line-height: 1.45;
}

.informe-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.cta-grupo {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.dash-toast {
  position: fixed;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brown);
  color: #fff;
  padding: 12px 20px;
  border-radius: 100px;
  font-size: 14px;
  z-index: 200;
}

.inicio-pro-hint {
  border-radius: 16px;
  padding: 16px;
  background: var(--cream-dark);
  border: 1px solid var(--border);
}

@media (max-width: 767px) {
  .tu-campo-body .tc-menu-btn {
    display: block;
  }

  .tu-campo-body #top-bar {
    padding-left: 12px;
  }

  .tu-campo-body #sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 16px;
    top: auto;
    bottom: calc(64px + env(safe-area-inset-bottom, 0));
    width: auto;
    min-width: 0;
    min-height: 0;
    height: auto;
    background: transparent;
    padding: 0;
    overflow: visible;
  }

  .tu-campo-body #sidebar .tc-nav-item {
    display: none;
  }

  .tu-campo-body #sidebar .tc-sidebar-salir {
    display: flex;
    margin-top: 0;
    padding: 10px 14px;
    color: var(--tc-nav-text);
    font-size: 14px;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid var(--tc-nav-border);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(46, 34, 24, 0.08);
  }
}

@media (min-width: 768px) {
  .tu-campo-body .tc-logo {
    font-size: 30px;
  }

  .tu-campo-body .tc-bottom-nav {
    display: none !important;
  }

  .tu-campo-body #sidebar {
    display: flex;
  }

  .tu-campo-body #content {
    margin-left: 228px;
    padding: 40px 48px;
    max-width: none;
  }

  .informe-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .informe-actions .btn,
  .informe-actions a.btn {
    width: auto;
    flex: 1 1 200px;
  }

  .mas-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 720px;
  }
}

@media print {
  .top,
  .tu-campo-body #top-bar,
  .tu-campo-body .tc-bottom-nav,
  .tu-campo-body #sidebar,
  .tu-campo-body .tc-sidebar-salir,
  #btn-cargar-informe,
  .informe-form,
  .btn-ghost,
  .mas-back {
    display: none !important;
  }
  .informe-print,
  .informe-report {
    border: none;
    padding: 0;
    box-shadow: none;
  }

  .informe-report-footer,
  .informe-actions-row {
    display: none !important;
  }
  body {
    background: #fff;
  }
}

.inicio-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

@media (min-width: 900px) {
  .inicio-layout {
    grid-template-columns: minmax(0, 1fr) min(280px, 32vw);
  }
}

.inicio-main {
  min-width: 0;
}

.inicio-aside-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

@media (max-width: 899px) {
  .inicio-aside-col {
    order: -1;
    gap: 12px;
  }

  .inicio-hoy-aside {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }

  .inicio-hoy-section {
    background: #ffffff;
    border: 1px solid #e5ddd2;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(46, 34, 24, 0.06);
    padding: 14px 16px;
    margin: 0;
  }

  .inicio-hoy-title {
    font-size: 18px;
    margin-bottom: 4px;
  }
}

.inicio-hoy-aside {
  background: #ffffff;
  border: 1px solid #e5ddd2;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(46, 34, 24, 0.06);
  padding: 16px;
}

.inicio-hoy-title {
  font-size: 17px;
  font-weight: 700;
  color: #2e2218;
  margin: 0 0 14px;
}

.inicio-hoy-section {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f0ebe4;
}

.inicio-hoy-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.inicio-hoy-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.inicio-hoy-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #2e2218;
  margin: 0;
}

.inicio-hoy-link {
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-dark, #3f7f28);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.inicio-hoy-link:hover {
  text-decoration: underline;
}

.inicio-hoy-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.inicio-hoy-item {
  padding: 10px 0;
  border-bottom: 1px solid #f5f0ea;
}

.inicio-hoy-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.inicio-hoy-item:first-child {
  padding-top: 0;
}

.inicio-hoy-item-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: #2e2218;
  line-height: 1.4;
}

.inicio-hoy-item-meta {
  margin: 0;
  font-size: 12px;
  color: #8a7d6f;
  line-height: 1.35;
}

.inicio-hoy-empty {
  margin: 0;
  font-size: 13px;
  color: #8a7d6f;
  line-height: 1.45;
}

.inicio-hoy-surco-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #2e2218;
}

.inicio-hoy-wa-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3f7f28;
  flex-shrink: 0;
}

.inicio-hoy-wa-cta {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-dark, #3f7f28);
  text-decoration: none;
  margin-bottom: 8px;
}

.inicio-hoy-wa-cta:hover {
  text-decoration: underline;
}

.inicio-hoy-sync {
  margin: 0 0 8px;
  font-size: 12px;
  color: #8a7d6f;
}

.inicio-hoy-pro-row {
  margin: 0 0 8px;
}

.inicio-hoy-pro-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3f7f28;
  background: #e8f0e3;
  border: 1px solid #c5dcc0;
  border-radius: 999px;
  padding: 2px 10px;
}

.inicio-onboarding {
  min-width: 0;
}

.onboarding-panel {
  background: #ffffff;
  border: 1px solid #e5ddd2;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(46, 34, 24, 0.06);
  overflow: hidden;
}

.onboarding-panel-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: #2e2218;
  list-style: none;
  background: #f6f1ea;
  border-bottom: 1px solid #e5ddd2;
}

.onboarding-panel-summary::-webkit-details-marker {
  display: none;
}

.onboarding-panel-summary::after {
  content: "▾";
  font-size: 12px;
  color: #8a7d6f;
  transition: transform 0.15s ease;
}

.onboarding-panel:not([open]) .onboarding-panel-summary::after {
  transform: rotate(-90deg);
}

.onboarding-panel:not([open]) .onboarding-panel-summary {
  border-bottom: none;
}

.onboarding-progress {
  font-size: 13px;
  font-weight: 600;
  color: #6b5d4f;
  background: #fff;
  border: 1px solid #e5ddd2;
  border-radius: 999px;
  padding: 2px 10px;
}

.onboarding-checklist {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.onboarding-check-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #f0ebe4;
}

.onboarding-check-item:last-child {
  border-bottom: none;
}

.onboarding-check-item.is-done {
  opacity: 0.72;
}

.onboarding-check-mark {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #efe8de;
  color: #5c5148;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.onboarding-check-item.is-done .onboarding-check-mark {
  background: #e8f0e3;
  color: #3f7f28;
}

.onboarding-check-item strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #2e2218;
  margin-bottom: 2px;
}

.onboarding-check-item span {
  display: block;
  font-size: 13px;
  color: #8a7d6f;
  line-height: 1.4;
}

.onboarding-check-cta {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary-text);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

a.onboarding-check-cta {
  text-decoration: underline;
}

.pro-streak-header {
  flex: 0 0 auto;
  margin: 0;
  pointer-events: none;
}

.pro-streak-header.hidden {
  display: none;
}

.pro-streak-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 14px;
  background: linear-gradient(135deg, #faf8f5 0%, #e8f0e3 100%);
  border: 1px solid #d5e8cc;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(46, 34, 24, 0.06);
  text-align: left;
  white-space: nowrap;
}

.pro-streak-num {
  font-size: 22px;
  font-weight: 700;
  color: #3f7f28;
  line-height: 1;
  letter-spacing: -0.02em;
}

.pro-streak-label {
  font-size: 12px;
  font-weight: 500;
  color: #5c5148;
  line-height: 1.25;
  max-width: 9rem;
  white-space: normal;
}

@media (max-width: 767px) {
  .tu-campo-body .tc-content-top:has(.pro-streak-header:not(.hidden)) {
    flex-direction: column;
    align-items: stretch;
  }

  .pro-streak-header:not(.hidden) {
    align-self: flex-end;
  }
}

.surco-confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 300;
}

.inicio-empty-registros {
  max-width: 480px;
}

.inicio-empty-registros .btn {
  margin-top: 12px;
}

.registro-lote-tag {
  font-weight: 500;
  color: #8a7d6f;
}

.quick-action-icon--svg {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5c5148;
}

.quick-action-icon--svg svg {
  width: 22px;
  height: 22px;
}

.quick-action-icon--wa {
  color: #25d366;
}

.dash-cta-pdf {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
}

.btn-pdf-inicio {
  /* Hereda estilo unificado tu-campo-botones */
}

.dash-cta-hint {
  font-size: 13px;
  color: #8a7d72;
}

.btn-invitar-dueno {
  margin-top: 8px;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 14px;
}

/* Dashboard v2 */
.ctx-campo-bar {
  margin-bottom: 14px;
  max-width: 520px;
}

.ctx-campo-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #6a9e48;
  margin-bottom: 6px;
}

.ctx-campo-select,
.ctx-campo-nombre {
  font-size: 15px;
  font-weight: 600;
  color: #2e2218;
}

.ctx-campo-select {
  width: 100%;
  max-width: 280px;
  padding: 10px 14px;
  border: 1px solid #e8d5bf;
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
}

.ctx-sync-hint {
  margin: 6px 0 0;
  font-size: 13px;
  color: #8a7d72;
}

.recordatorio-banner {
  display: block;
  width: 100%;
  max-width: 520px;
  margin-bottom: 20px;
  padding: 12px 16px;
  border: 1px solid #e8d5bf;
  border-radius: 12px;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #2e2218;
  text-align: left;
  cursor: pointer;
}

.recordatorio-banner:hover {
  background: #f5ede3;
}

.mini-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
  max-width: 640px;
}

.mini-stat {
  background: var(--color-surface);
  border: 1px solid #e8d5bf;
  border-radius: 12px;
  padding: var(--space-2);
}

.mini-stat-label {
  display: block;
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 4px;
}

.mini-stat--link {
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mini-stat--link:hover,
.mini-stat--link:focus-visible {
  border-color: var(--tc-accent, #52a033);
  box-shadow: 0 0 0 2px rgba(82, 160, 51, 0.15);
}

.lista-ordenes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lista-ordenes .orden-item {
  padding: 16px 18px;
  border: 1px solid var(--tc-border-soft, #e5ddd2);
  border-radius: 12px;
  background: #fff;
}

.orden-titulo {
  margin: 0 0 4px;
  font-weight: 600;
  font-size: 15px;
}

.orden-meta,
.orden-estado {
  margin: 0;
  font-size: 14px;
  color: var(--tc-text-muted, #6b5d4f);
}

.orden-estado {
  margin-top: 6px;
  font-size: 13px;
  color: var(--tc-accent, #52a033);
}

.ordenes-wa-cta {
  margin-top: 20px;
}

.perfil-datos-extra-title {
  margin-top: 20px;
  margin-bottom: 4px;
}

.perfil-datos-extra-hint {
  margin: 0 0 12px;
}

.config-hub {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 520px;
}

.config-hub-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border: 1px solid #e5ddd2;
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(46, 34, 24, 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.config-hub-card:hover,
.config-hub-card:focus-visible {
  background: #faf8f5;
  border-color: #cfc4b6;
  box-shadow: 0 1px 3px rgba(46, 34, 24, 0.08);
}

.config-hub-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.config-hub-card strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--tc-text, #2e2218);
}

.config-hub-desc {
  font-size: 14px;
  color: var(--tc-text-muted, #6b5d4f);
  line-height: 1.4;
}

.config-hub-pro {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(82, 160, 51, 0.12);
  color: var(--tc-accent, #52a033);
}

.config-back {
  margin-bottom: 8px;
}

.config-sub-title {
  margin-top: 0;
  margin-bottom: 16px;
}

.mi-campo-panel {
  max-width: 720px;
}

.mi-campo-intro {
  margin-bottom: 16px;
}

.mi-campo-tree {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.mi-campo-add-campo,
.mi-campo-add-lote,
.campo-node,
.lote-node {
  border: 1px solid #e5ddd2;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
}

.mi-campo-add-campo,
.mi-campo-add-lote {
  margin-bottom: 12px;
}

.mi-campo-add-summary,
.campo-node-summary,
.lote-node-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: #2e2218;
}

.mi-campo-add-campo > summary::-webkit-details-marker,
.mi-campo-add-lote > summary::-webkit-details-marker,
.campo-node > summary::-webkit-details-marker,
.lote-node > summary::-webkit-details-marker {
  color: #6b5d4f;
}

.campo-node-body,
.mi-campo-add-body,
.mi-campo-add-lote-body,
.lote-node-body {
  padding: 0 16px 16px;
  border-top: 1px solid #f0ebe4;
}

.lote-node {
  margin: 10px 0 0;
  background: #faf8f5;
}

.campo-node-meta,
.lote-node-meta {
  font-size: 13px;
  font-weight: 500;
  color: #6b5d4f;
}

.mi-campo-lotes-title {
  margin-top: 20px;
}

.lote-node-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.lote-eliminar-check {
  margin-top: 12px;
}

.mi-campo-ficha {
  margin-top: 24px;
}

.tu-campo-body #content textarea.inp-campo-notas,
.tu-campo-body #content textarea.inp-lote-notas {
  max-width: 100%;
  width: 100%;
  min-height: 64px;
  resize: vertical;
  font-family: inherit;
  margin-bottom: 12px;
}

.mini-stat-value {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #2e2218;
  line-height: 1.2;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
  max-width: 640px;
}

.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 100px;
  padding: 16px 12px;
  border: 1px solid #e5ddd2;
  border-radius: 12px;
  background: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(46, 34, 24, 0.05);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.quick-action:hover {
  background: #faf8f5;
  border-color: #cfc4b6;
}

.quick-action-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.labores-list-compact .labor-row-compact {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #e8d5bf;
}

.btn-link-historial {
  display: inline-block;
  margin-top: 8px;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary-text);
  cursor: pointer;
}

.period-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.period-chip {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--color-surface);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
}

.period-chip:not(.active):hover {
  background: var(--cream-dark);
  border-color: #d4c4b0;
}

.period-chip.active {
  background: #ffffff;
  border-color: #b8d4ac;
  color: #3f7f28;
  box-shadow: 0 0 0 1px rgba(82, 160, 51, 0.12);
}

.informe-dates.hidden {
  display: none;
}

.informe-actions-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 0;
  max-width: none;
}

.informe-actions-row .btn,
.informe-actions-row a.btn {
  width: 100%;
  min-height: 48px;
  margin-top: 0;
  border-radius: 12px;
  font-size: 15px;
  padding: 12px 18px;
  box-sizing: border-box;
  justify-content: center;
}

.informe-actions-row .btn-primary,
.informe-actions-row .btn-secondary {
  border-width: 1px;
}

@media (min-width: 640px) {
  .informe-actions-row {
    flex-direction: row;
    flex-wrap: wrap;
    max-width: none;
  }

  .informe-actions-row .btn,
  .informe-actions-row a.btn {
    flex: 1 1 180px;
    width: auto;
  }
}

.registros-intro {
  margin: -8px 0 20px;
  max-width: 640px;
}

.registros-toolbar {
  background: #ffffff;
  border: 1px solid #e5ddd2;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 20px;
  max-width: 900px;
  box-shadow: 0 1px 2px rgba(46, 34, 24, 0.05);
}

.registros-filters-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

@media (min-width: 640px) {
  .registros-filters-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.registros-filter-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #2e2218;
}

.registros-select {
  width: 100%;
  font-size: 14px;
  padding: 9px 12px;
  border: 1px solid #e5ddd2;
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  margin-bottom: 0;
}

.registros-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.registros-search {
  flex: 1 1 200px;
  min-width: 0;
  font-size: 15px;
  padding: 10px 14px;
  border: 1px solid #e5ddd2;
  border-radius: 10px;
  background: #fff;
  margin-bottom: 0;
}

.registros-add-btn {
  flex-shrink: 0;
  width: 48px;
  min-width: 48px;
  padding: 10px 12px;
  font-size: 20px;
  line-height: 1;
  font-weight: 600;
}

.registros-pick-lote {
  text-align: center;
  padding: 32px 16px;
  max-width: 420px;
  margin: 8px auto 0;
}

.registros-row-new {
  background: #f8faf6;
}

.registros-row-new:hover {
  background: #f0f5ec;
}

.registros-row-new .reg-td-actions .btn-add-labor {
  font-weight: 600;
}

.recordatorios-intro {
  margin: 0 0 16px;
  max-width: 640px;
}

.recordatorios-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  max-width: 900px;
}

.recordatorios-toolbar .registros-count {
  margin: 0;
}

.recordatorios-row-new {
  background: #f8faf6;
}

.recordatorios-row-new:hover {
  background: #f0f5ec;
}

.rec-td-fecha {
  width: 140px;
}

.rec-td-hora {
  width: 110px;
}

.rec-td-msg {
  min-width: 200px;
}

.rec-td-actions {
  width: 160px;
  white-space: nowrap;
}

.recordatorios-wa-hint {
  margin: 12px 0 0;
  max-width: 640px;
}

.ordenes-intro {
  margin: 0 0 16px;
  max-width: 720px;
}

.ordenes-form-card {
  background: #fff;
  border: 1px solid #e5ddd2;
  border-radius: 14px;
  padding: 20px 18px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(46, 34, 24, 0.06);
}

.ordenes-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  margin-top: 12px;
}

.ordenes-form-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #5c5148;
}

.ordenes-form-field--wide {
  grid-column: 1 / -1;
}

.ordenes-form-field--colab .inp-ord-colab {
  width: 100%;
}

.ordenes-form-field .registros-inp,
.ordenes-form-field select.registros-inp {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.ordenes-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f0ebe4;
}

.ordenes-lista-vacia {
  margin: 0 0 12px;
}

@media (max-width: 560px) {
  .ordenes-form-grid {
    grid-template-columns: 1fr;
  }
}

.tu-campo-body #panel-ordenes .feature-mount,
.tu-campo-body #panel-ordenes .ordenes-table-wrap {
  max-width: 1040px;
}

.ordenes-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 4px 2px;
  max-width: 100%;
}

.ordenes-table-wrap {
  padding: 0;
  overflow-x: visible;
}

.ordenes-toolbar .registros-count {
  margin: 0;
}

.ordenes-row-new {
  background: #f8faf6;
}

.ordenes-row-new:hover {
  background: #f0f5ec;
}

.ordenes-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.ordenes-table thead th,
.ordenes-table tbody td {
  padding: 10px 8px;
}

.ordenes-table thead th:first-child,
.ordenes-table tbody td:first-child {
  padding-left: 12px;
}

.ordenes-table thead th:last-child,
.ordenes-table tbody td:last-child {
  padding-right: 12px;
}

.ordenes-table thead th {
  font-size: 11px;
  white-space: normal;
  line-height: 1.25;
}

.ordenes-table .registros-inp,
.ordenes-table select.registros-inp {
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
  font-size: 13px;
  padding: 7px 8px;
}

.ord-td-cuando {
  width: 18%;
  min-width: 168px;
}

.ord-cuando-fields {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.ord-cuando-fields .inp-ord-fecha {
  flex: 1 1 58%;
  min-width: 0;
  width: auto;
}

.ord-cuando-fields .inp-ord-hora {
  flex: 1 1 42%;
  min-width: 0;
  width: auto;
}

.ordenes-wa-hint {
  margin: 12px 0 0;
  max-width: 720px;
}

.ord-td-colab {
  width: 17%;
}

.ord-td-lote {
  width: 11%;
}

.ord-td-accion {
  width: 21%;
}

.ord-td-motivo {
  width: 17%;
}

.ord-td-actions {
  width: 12%;
  min-width: 88px;
  vertical-align: middle;
}

.ord-actions-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.ordenes-table .btn-save-orden.btn-sm {
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.2;
}

.ordenes-table .btn-del-orden {
  font-size: 12px;
  white-space: nowrap;
}

.orden-enviada-tag {
  display: inline;
  font-size: 10px;
  font-weight: 600;
  color: #3f7f28;
  margin-left: 6px;
  line-height: 1.2;
}

.ord-td-actions .reg-msg {
  display: block;
  white-space: normal;
  margin-top: 4px;
  font-size: 11px;
}

.registros-count {
  font-size: 14px;
  color: #6b5d4f;
  margin-bottom: 10px;
}

.registros-table-wrap {
  overflow-x: auto;
  border: 1px solid #e5ddd2;
  border-radius: 12px;
  background: #fff;
  max-width: 100%;
  box-shadow: 0 1px 2px rgba(46, 34, 24, 0.05);
}

.registros-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14px;
}

.registros-table thead th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b5d4f;
  padding: 14px 18px;
  background: #faf8f5;
  border-bottom: 1px solid #e5ddd2;
  white-space: nowrap;
}

.registros-table thead th:first-child,
.registros-table tbody td:first-child {
  padding-left: 20px;
}

.registros-table thead th:last-child,
.registros-table tbody td:last-child {
  padding-right: 20px;
}

.registros-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid #f0ebe4;
  vertical-align: top;
}

.registros-table tbody tr:last-child td {
  border-bottom: none;
}

.registros-table tbody tr:not(.registros-row-new):hover {
  background: #fcfaf7;
}

.registros-inp {
  width: 100%;
  min-width: 0;
  font-size: 14px;
  padding: 8px 10px;
  border: 1px solid #e5ddd2;
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  margin-bottom: 0;
}

.reg-td-fecha {
  width: 130px;
}

.reg-td-tipo {
  width: 150px;
}

.reg-td-lote {
  width: 120px;
}

.reg-td-actions {
  width: 150px;
  white-space: nowrap;
}

.reg-td-actions .btn-sm {
  padding: 8px 12px;
  font-size: 13px;
  min-height: auto;
}

.reg-msg {
  display: block;
  font-size: 12px;
  margin-top: 4px;
}

.reg-msg.ok {
  color: #3f7f28;
}

.reg-msg.error {
  color: #b33;
}

.registros-empty {
  text-align: center;
  padding: 32px 16px;
  max-width: 400px;
  margin: 0 auto;
}

.historial-search-wrap {
  margin-bottom: 16px;
  max-width: 520px;
}

.historial-search {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e8d5bf;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  background: #fff;
}

.chip-filters-lotes {
  margin-bottom: 0;
}

.chip-filters-tipos {
  margin-bottom: 0;
}

.hist-grupo {
  margin-bottom: 24px;
  max-width: 640px;
}

.hist-grupo-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #6a9e48;
  margin: 0 0 10px;
}

.hist-grupo-lista {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hist-grupo-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  background: #fff;
  border: 1px solid #e8d5bf;
  border-left-width: 4px;
  border-radius: 8px;
}

.hist-grupo-main {
  font-size: 15px;
  font-weight: 600;
  color: #2e2218;
}

.hist-grupo-fecha {
  font-size: 13px;
  color: #8a7d72;
  white-space: nowrap;
}

.lista-uso-v2 {
  list-style: none;
  padding: 0;
  margin: 0;
}

.uso-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.uso-row-label {
  font-size: 14px;
  font-weight: 600;
  color: #2e2218;
}

.uso-row-nums {
  font-size: 13px;
  color: #8a7d72;
}

.plan-estado-sub {
  font-size: 15px;
  color: #2e2218;
  margin: 4px 0 0;
}

.plan-hero-card {
  border: 1px solid #e5ddd2;
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 20px;
  max-width: 420px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(46, 34, 24, 0.06);
}

.plan-hero-card--pro {
  background: linear-gradient(145deg, #faf8f5 0%, #e8f0e3 100%);
  border-color: #d5e8cc;
}

.plan-hero-titulo {
  font-size: 20px;
  font-weight: 700;
  color: #2e2218;
  margin: 0 0 8px;
  line-height: 1.25;
}

.plan-hero-dias {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 500;
  color: #5c5148;
  line-height: 1.3;
}

.plan-hero-dias-n {
  font-size: 36px;
  font-weight: 700;
  color: #3f7f28;
  letter-spacing: -0.02em;
  margin-right: 4px;
}

.plan-hero-meta {
  margin: 0;
  font-size: 14px;
  color: #8a7d6f;
}

.plan-hero-renovacion {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(46, 34, 24, 0.08);
}

.plan-hero-renovacion-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b5d4f;
}

.plan-hero-renovacion-fecha {
  font-size: 15px;
  font-weight: 600;
  color: #2e2218;
}

.plan-hero-renovacion-fecha--muted {
  font-weight: 500;
  color: #8a7d6f;
}

.plan-hero-card--free .plan-hero-meta {
  margin-bottom: 14px;
}

.plan-hero-cta {
  margin-top: 4px;
}

.plan-uso-block {
  max-width: 480px;
}

.plan-uso-label {
  font-size: 13px;
  font-weight: 600;
  color: #6b5d4f;
  margin: 0 0 10px;
  letter-spacing: 0.02em;
}

.plan-dar-baja {
  font-size: 13px;
  color: #8a7d72;
  padding: 0;
}

.equipo-panel {
  max-width: 640px;
}

.equipo-panel > .vacio {
  margin: 0 0 14px;
}

.lista-equipo-v2 {
  margin: 12px 0 4px;
}

.lista-equipo-v2 .equipo-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px 16px;
  padding: 16px 18px;
  border-bottom: none;
}

.equipo-item-body {
  flex: 1 1 180px;
  min-width: 0;
}

.equipo-item-body strong {
  margin-bottom: 6px;
}

.lista-equipo-v2 .equipo-item .tel-colab {
  margin-top: 2px;
}

.btn-equipo-add {
  width: 100%;
  max-width: 100%;
  margin-top: 16px;
}

.equipo-add-form {
  margin-bottom: 16px;
  padding: 18px 20px;
}

.lista-equipo-v2 .equipo-item .equipo-edit-form {
  flex: 1 1 100%;
  width: 100%;
  margin: 4px 0 0;
  padding: 16px 18px;
  border-top: 1px dashed #e8dfd4;
  border-radius: 10px;
  background: #faf8f5;
  box-sizing: border-box;
}

.lotes-acordeon .lotes-campo-details {
  margin-bottom: 12px;
  border: 1px solid #e8d5bf;
  border-radius: 12px;
  background: #fff;
  padding: 0 12px 12px;
}

.lotes-campo-summary {
  font-weight: 700;
  padding: 12px 4px;
  cursor: pointer;
  list-style: none;
}

.faq-ayuda .faq-item {
  margin-bottom: 10px;
  border: 1px solid #e8d5bf;
  border-radius: 12px;
  background: #fff;
  padding: 0 14px;
}

.faq-ayuda .faq-item summary {
  padding: 14px 0;
  font-weight: 600;
  cursor: pointer;
}

.faq-ayuda .faq-item p {
  padding: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
  color: #2e2218;
}

@media (max-width: 767px) {
  .mini-stats-row,
  .quick-actions {
    grid-template-columns: 1fr;
  }
}

/* Badge recordatorios en nav */
.tc-nav-item {
  position: relative;
}

.tc-nav-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #c45c26;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.tc-nav-badge.hidden {
  display: none;
}

.mas-card-badge {
  display: inline-block;
  margin-left: 6px;
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #c45c26;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  vertical-align: middle;
}

/* Modal compartir campo */
.share-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(30, 22, 14, 0.45);
}

.share-modal-overlay.hidden {
  display: none;
}

.share-modal {
  width: 100%;
  max-width: 420px;
  border-radius: 16px 16px 0 0;
  background: #fff;
  padding: 20px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
}

.share-modal h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.share-modal .share-link-row {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.share-modal .share-link-row input {
  flex: 1;
  font-size: 13px;
}

.equipo-edit-form {
  margin-top: 10px;
  padding: 16px 18px;
  border-top: 1px dashed #e0d4c4;
}

.lote-add-form {
  margin: 12px 0 0;
  padding: 12px;
  border: 1px dashed #d4c4a8;
  border-radius: 10px;
  background: #faf6ef;
}

/* Página campo compartido (público) */
.share-campo-body {
  margin: 0;
  min-height: 100vh;
  background: #f5efe4;
  color: #2e2218;
  font-family: "DM Sans", system-ui, sans-serif;
}

.share-campo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #fff;
  border-bottom: 1px solid #e8d5bf;
}

.share-logo {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 22px;
  color: #2e2218;
  text-decoration: none;
}

.share-logo span {
  color: #5a7a3a;
}

.share-tag {
  margin: 0;
  font-size: 12px;
  color: #6b5a48;
}

.share-campo-main {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.share-card {
  background: #fff;
  border: 1px solid #e8d5bf;
  border-radius: 14px;
  padding: 20px;
}

.share-campo-nombre {
  margin: 0 0 8px;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 28px;
}

.share-ubicacion,
.share-expira,
.share-vacio,
.share-footer {
  font-size: 14px;
  color: #5a4a38;
}

.share-section-title {
  margin: 20px 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8a7358;
}

.share-lotes-list,
.share-labores-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.share-lotes-list li,
.share-labores-list li {
  padding: 10px 0;
  border-bottom: 1px solid #f0e6d6;
}

.share-lote-meta,
.share-labor-meta {
  display: block;
  font-size: 13px;
  color: #6b5a48;
}

.share-labor-tit {
  display: block;
  font-weight: 600;
}

.share-error h1 {
  font-family: "DM Serif Display", Georgia, serif;
}

.stat-sub {
  display: block;
  font-size: 12px;
  color: #6b5a48;
  margin-top: 4px;
}

.pref-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 16px;
  font-size: 14px;
  font-weight: 500;
  width: auto;
  max-width: 100%;
  cursor: pointer;
}

.pref-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 0;
  margin-bottom: 0;
  flex-shrink: 0;
  accent-color: var(--color-primary, #52a033);
}

.equipo-item-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  align-items: center;
  padding: 2px 0 0;
}

.lotes-panel {
  max-width: 1040px;
}

.lotes-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  align-items: start;
}

.lotes-list-col {
  min-width: 0;
}

.lotes-campo-heading {
  margin: var(--space-2) 0 var(--space-1);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
}

.lotes-campo-heading:first-of-type {
  margin-top: 0;
}

.lotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  list-style: none;
  margin: 0 0 var(--space-2);
  padding: 0;
}

.lote-card {
  margin: 0;
}

.lote-card .btn-lote-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--color-surface);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.lote-card .btn-lote-link:hover {
  background: var(--cream-dark);
  border-color: #a89270;
}

.lote-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
}

.lote-card-meta {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.lotes-form-col {
  margin: 0;
}

.lotes-form-col label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  margin: 12px 0 6px;
}

.lotes-form-col label:first-of-type {
  margin-top: 0;
}

.lotes-form-col input,
.lotes-form-col select {
  width: 100%;
  max-width: none;
  margin-bottom: 0;
}

.lotes-form-col .btn-guardar-nuevo-lote {
  width: 100%;
  margin-top: var(--space-2);
}

#ficha-lote {
  grid-column: 1 / -1;
  margin-top: var(--space-2);
}

@media (min-width: 768px) {
  .lotes-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  }

  .lotes-form-col {
    position: sticky;
    top: 16px;
  }
}

@media (min-width: 1024px) {
  .lotes-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* --- Tu campo: botones unificados (fondo blanco) --- */
.tu-campo-body .tc-contact-btn,
.tu-campo-body #content .btn,
.tu-campo-body #content a.btn,
.tu-campo-body #content .btn-informe,
.tu-campo-body #content .btn-pdf-inicio,
.tu-campo-body #content .btn-invitar-dueno {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  border-radius: 12px;
  border: 1px solid #e5ddd2;
  background: #ffffff;
  color: #2e2218;
  box-shadow: 0 1px 2px rgba(46, 34, 24, 0.05);
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    color 0.15s ease;
  width: auto;
  max-width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  margin-top: 0;
}

.tu-campo-body .tc-contact-btn {
  font-size: 14px;
  padding: 10px 16px;
  min-height: 40px;
}

.tu-campo-body .tc-contact-btn:hover,
.tu-campo-body .tc-contact-btn:focus-visible,
.tu-campo-body #content .btn:hover,
.tu-campo-body #content a.btn:hover,
.tu-campo-body #content .btn-informe:hover,
.tu-campo-body #content .btn-pdf-inicio:hover,
.tu-campo-body #content .btn-invitar-dueno:hover {
  background: #faf8f5;
  border-color: #cfc4b6;
  color: #2e2218;
}

.tu-campo-body #content .btn-primary,
.tu-campo-body #content a.btn-primary,
.tu-campo-body #content .btn-secondary,
.tu-campo-body #content a.btn-secondary,
.tu-campo-body #content .btn-ghost,
.tu-campo-body #content .btn-informe,
.tu-campo-body #content .btn-pdf-inicio,
.tu-campo-body #content .btn-invitar-dueno,
.tu-campo-body #content .btn-equipo-add,
.tu-campo-body #content .btn-guardar-nuevo-lote,
.tu-campo-body #content .empty-state-cta {
  background: #ffffff;
  color: #2e2218;
  border: 1px solid #e5ddd2;
}

.tu-campo-body #content .btn-primary:hover,
.tu-campo-body #content a.btn-primary:hover,
.tu-campo-body #content .btn-secondary:hover,
.tu-campo-body #content a.btn-secondary:hover,
.tu-campo-body #content .btn-ghost:hover,
.tu-campo-body #content .btn-informe:hover,
.tu-campo-body #content .btn-equipo-add:hover,
.tu-campo-body #content .btn-guardar-nuevo-lote:hover,
.tu-campo-body #content .empty-state-cta:hover {
  background: #f6faf4;
  border-color: #b8d4ac;
  color: #3f7f28;
}

.tu-campo-body #content .btn-primary:disabled,
.tu-campo-body #content .btn-informe[aria-busy="true"] {
  opacity: 0.65;
  cursor: wait;
}

.tu-campo-body #content .dash-form-save {
  width: auto;
  min-width: 140px;
  max-width: none;
}

.tu-campo-body #content .btn-equipo-add,
.tu-campo-body #content .ordenes-wa-cta .btn,
.tu-campo-body #content .ordenes-wa-cta a.btn,
.tu-campo-body #content .informe-form .btn-informe,
.tu-campo-body #content .informe-actions-row .btn,
.tu-campo-body #content .informe-actions-row a.btn,
.tu-campo-body #content .aviso-pro .btn,
.tu-campo-body #content .aviso-pro a.btn {
  width: 100%;
  max-width: 480px;
}

.tu-campo-body #content .btn-ghost {
  margin-top: 10px;
}

.tu-campo-body #content .btn-link,
.tu-campo-body #content .btn-link-historial,
.tu-campo-body #content .config-back,
.tu-campo-body #content .plan-dar-baja,
.tu-campo-body #content .btn-cancel-recordatorio,
.tu-campo-body #content .btn-edit-colab,
.tu-campo-body #content .btn-del-colab,
.tu-campo-body #content .btn-add-lote,
.tu-campo-body #content .btn-quitar-lote {
  background: none;
  border: none;
  box-shadow: none;
  min-height: auto;
  padding: 0;
  color: #3f7f28;
}

.tu-campo-body #content .btn-link:hover,
.tu-campo-body #content .btn-link-historial:hover,
.tu-campo-body #content .config-back:hover,
.tu-campo-body #content .plan-dar-baja:hover {
  background: none;
  border: none;
  color: #52a033;
  text-decoration: underline;
}

.tu-campo-body #content .lote-card .btn-lote-link {
  width: 100%;
  min-height: auto;
  padding: 14px 16px;
  text-align: left;
  border: 1px solid #e5ddd2;
  border-radius: 12px;
  background: #ffffff;
  color: #2e2218;
  box-shadow: 0 1px 2px rgba(46, 34, 24, 0.05);
}

.tu-campo-body #content .lote-card .btn-lote-link:hover {
  background: #faf8f5;
  border-color: #cfc4b6;
  color: #2e2218;
  text-decoration: none;
}

@media (min-width: 640px) {
  .tu-campo-body #content .informe-actions-row .btn,
  .tu-campo-body #content .informe-actions-row a.btn {
    flex: 1 1 180px;
    width: auto;
    max-width: none;
  }
}

/* --- Lluvia widget (Inicio aside) --- */
.lluvia-widget-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lluvia-widget-label {
  font-size: 12px;
  font-weight: 600;
  color: #5c5148;
  margin: 4px 0 0;
}

.lluvia-widget-inp {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.lluvia-widget-fields .btn {
  margin-top: 6px;
  align-self: flex-start;
}

.lluvia-error {
  margin: 4px 0 0;
  font-size: 13px;
  min-height: 1.2em;
}

.lluvia-error--ok {
  color: #6a9e48;
  font-weight: 600;
}

.lluvia-error--err {
  color: #b54a32;
}

/* onboarding aside redesign */
#inicio-onboarding.inicio-onboarding {
  background: #ffffff;
  border: 1px solid #e5ddd2;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(46, 34, 24, 0.06);
  padding: 14px 16px;
  min-width: 0;
}

.onboarding-aside-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.onboarding-aside-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  color: #3b6d11;
  background: #eaf3de;
  border-radius: 999px;
  padding: 3px 8px;
}

.onboarding-aside-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.onboarding-aside-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 0.5px solid #f0ebe4;
}

.onboarding-aside-row:last-child {
  border-bottom: none;
}

.onboarding-aside-circle {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #c4b8ac;
  color: #8a7d6f;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.onboarding-aside-circle.is-done {
  border: none;
  background: #6a9e48;
  color: #ffffff;
  font-size: 12px;
}

.onboarding-aside-text {
  flex: 1;
  min-width: 0;
}

.onboarding-aside-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text, #2e2218);
  line-height: 1.35;
}

.onboarding-aside-text span {
  display: block;
  font-size: 12px;
  color: var(--color-muted, #5c5148);
  line-height: 1.35;
  margin-top: 1px;
}

.onboarding-aside-row.is-done .onboarding-aside-text strong,
.onboarding-aside-row.is-done .onboarding-aside-text span {
  color: var(--color-muted, #5c5148);
}

.onboarding-aside-cta {
  flex-shrink: 0;
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary-text, #3f7f28);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.onboarding-aside-cta:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 899px) {
  #inicio-onboarding.inicio-onboarding {
    background: #ffffff;
    border: 1px solid #e5ddd2;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(46, 34, 24, 0.06);
    padding: 14px 16px;
  }
}

/* —— Barra de acciones contextual + nav Mi campo / Equipo —— */
.tu-campo-body .tc-nav-divider {
  height: 1px;
  margin: 10px 14px;
  background: var(--tc-nav-border);
  flex-shrink: 0;
}

.tu-campo-body .tc-action-bar {
  width: 100%;
}

.tu-campo-body .tc-action-bar.hidden {
  display: none;
}

.tu-campo-body .tc-action-bar-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.tu-campo-body .tc-ab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #e5ddd2;
  background: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #2e2218;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(46, 34, 24, 0.05);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.tu-campo-body .tc-ab-btn:hover,
.tu-campo-body .tc-ab-btn:focus-visible {
  background: #faf8f5;
  border-color: #cfc4b6;
}

.tu-campo-body .tc-ab-btn--primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

.tu-campo-body .tc-ab-btn--primary:hover,
.tu-campo-body .tc-ab-btn--primary:focus-visible {
  background: #356b22;
  border-color: #356b22;
}

.tu-campo-body .tc-ab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 16px;
  font-weight: 700;
}

.tu-campo-body .tc-ab-icon--svg {
  width: 18px;
  height: 18px;
}

.tu-campo-body .tc-ab-icon--svg svg {
  width: 18px;
  height: 18px;
}

.tu-campo-body .tc-ab-icon--wa {
  color: #25d366;
}

.tu-campo-body .tc-ayuda-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 72px 16px 24px;
}

.tu-campo-body .tc-ayuda-modal.hidden {
  display: none;
}

.tu-campo-body .tc-ayuda-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(46, 34, 24, 0.45);
}

.tu-campo-body .tc-ayuda-dialog {
  position: relative;
  width: min(640px, 100%);
  max-height: calc(100vh - 96px);
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e5ddd2;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(46, 34, 24, 0.18);
  overflow: hidden;
}

.tu-campo-body .tc-ayuda-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #e5ddd2;
  background: #faf8f5;
}

.tu-campo-body .tc-ayuda-dialog-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #2e2218;
}

.tu-campo-body .tc-ayuda-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid #e5ddd2;
  border-radius: 10px;
  background: #ffffff;
  font-size: 22px;
  line-height: 1;
  color: #2e2218;
  cursor: pointer;
}

.tu-campo-body .tc-ayuda-dialog-body {
  overflow-y: auto;
  padding: 16px 18px 20px;
}

.tu-campo-body .tc-ayuda-dialog-body .ayuda-page {
  margin: 0;
}

body.tc-ayuda-open {
  overflow: hidden;
}

@media print {
  .tu-campo-body .tc-action-bar {
    display: none !important;
  }
}
