/* ====================================================================
   COOPESTEC R.L. - Sistema Web de Facturación y Comprobantes
   Hoja de Estilos Profesionales: styles.css
   ==================================================================== */

:root {
  --primary-green: #15803d;
  --primary-hover: #166534;
  --primary-light: #dcfce7;
  --primary-subtle: #f0fdf4;
  --accent-gold: #eab308;
  --accent-blue: #0284c7;
  
  --dark-slate: #0f172a;
  --dark-text: #1e293b;
  --muted-text: #64748b;
  --light-border: #e2e8f0;
  --bg-main: #f8fafc;
  --surface-card: #ffffff;
  
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --success: #10b981;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
}

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-main);
  color: var(--dark-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ==================== LOGIN SCREEN ==================== */
.view-section {
  display: none;
  min-height: 100vh;
}

.view-section.active-view {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  background: radial-gradient(circle at 10% 20%, #ecfdf5 0%, #f8fafc 90%);
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(226, 232, 240, 0.8);
  text-align: center;
}

.logo-wrapper {
  margin-bottom: 1rem;
}

.brand-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 50%;
  background: #ffffff;
  padding: 4px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--primary-light);
}

.login-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-green);
  letter-spacing: -0.5px;
}

.login-header .subtitle {
  color: var(--muted-text);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.login-form {
  margin-top: 2rem;
  text-align: left;
}

.input-group {
  margin-bottom: 1.25rem;
}

.input-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 0.4rem;
}

.input-group label i {
  color: var(--primary-green);
}

.input-group input,
.input-field input,
.input-field select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--light-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s ease;
  background-color: #ffffff;
  color: var(--dark-text);
}

.input-group input:focus,
.input-field input:focus,
.input-field select:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.15);
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  padding-right: 2.75rem;
}

.password-wrapper .icon-btn {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--muted-text);
  cursor: pointer;
  padding: 0.25rem;
  font-size: 1.1rem;
}

.alert-message {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background-color: var(--danger-light);
  color: var(--danger);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hidden {
  display: none !important;
}

.btn-primary,
.btn-success,
.btn-outline,
.btn-danger-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary-green);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-success {
  background-color: #059669;
  color: #ffffff;
}

.btn-success:hover:not(:disabled) {
  background-color: #047857;
  transform: translateY(-1px);
}

.btn-success:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-outline {
  background: #ffffff;
  color: var(--dark-text);
  border: 1.5px solid var(--light-border);
}

.btn-outline:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.btn-danger-outline {
  background: transparent;
  color: var(--danger);
  border: 1.5px solid #fca5a5;
}

.btn-danger-outline:hover {
  background: var(--danger-light);
}

.btn-block {
  width: 100%;
}

.login-footer {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--muted-text);
  border-top: 1px solid var(--light-border);
  padding-top: 1rem;
}

/* ==================== APP LAYOUT & SIDEBAR ==================== */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 270px;
  background: #0f291e;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  padding: 2px;
}

.brand-text h3 {
  font-size: 1.15rem;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.5px;
}

.badge-role {
  font-size: 0.7rem;
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.sidebar-nav {
  padding: 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  color: #cbd5e1;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.nav-btn.active {
  background: var(--primary-green);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.35);
}

.nav-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0.75rem 0;
}

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.15);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.user-chip i {
  font-size: 1.6rem;
  color: #4ade80;
}

.chip-info strong {
  display: block;
  font-size: 0.85rem;
  line-height: 1.2;
}

.chip-info small {
  color: #94a3b8;
  font-size: 0.75rem;
}

.logout-btn {
  background: transparent;
  border: none;
  color: #f87171;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

/* ==================== MAIN CONTENT & TOPBAR ==================== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 100vh;
}

.topbar {
  background: var(--surface-card);
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--light-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-title h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark-slate);
}

.consecutive-tag {
  background: #fef3c7;
  color: #92400e;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid #fde68a;
}

.live-clock {
  font-family: 'Space Grotesk', monospace;
  font-weight: 700;
  color: var(--muted-text);
  background: #f1f5f9;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.content-body {
  padding: 2rem;
}

.module-tab {
  display: none;
}

.module-tab.active-tab {
  display: block;
}

/* ==================== GRIDS & FORMULARIOS ==================== */
.module-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}

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

.module-form-card,
.order-summary-card,
.historial-container {
  background: var(--surface-card);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid var(--light-border);
  box-shadow: var(--shadow-sm);
}

.module-form-card h3 {
  font-size: 1.15rem;
  color: var(--dark-slate);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.module-form-card h3 i {
  color: var(--primary-green);
}

.section-description {
  color: var(--muted-text);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

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

.input-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.input-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark-text);
}

.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

/* Tallas de camisetas */
.size-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.85rem;
}

.size-box {
  background: var(--bg-main);
  border: 1.5px solid var(--light-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  text-align: center;
  transition: all 0.2s ease;
}

.size-box:hover {
  border-color: #cbd5e1;
}

.size-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark-slate);
  margin-bottom: 0.5rem;
}

.qty-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.step-btn {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid var(--light-border);
  background: #ffffff;
  color: var(--dark-text);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.step-btn:hover {
  background: var(--primary-green);
  color: #ffffff;
  border-color: var(--primary-green);
}

.size-input {
  width: 44px;
  text-align: center;
  padding: 0.25rem;
  border: 1px solid var(--light-border);
  border-radius: 4px;
  font-weight: 700;
}

/* ==================== CASILLEROS (1-100) ==================== */
.lockers-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  background: #f1f5f9;
  border-radius: var(--radius-sm);
}

.locker-selected-indicator {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.locker-number-pill {
  background: var(--primary-green);
  color: #ffffff;
  padding: 0.25rem 0.8rem;
  border-radius: 20px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}

.locker-legend {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--muted-text);
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 4px;
}

.dot.available { background-color: #22c55e; }
.dot.selected { background-color: var(--accent-gold); }
.dot.occupied { background-color: #ef4444; }

.lockers-grid-container {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

@media (max-width: 600px) {
  .lockers-grid-container {
    grid-template-columns: repeat(5, 1fr);
  }
}

.locker-cell {
  aspect-ratio: 1;
  border-radius: 6px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  user-select: none;
}

.locker-cell:hover:not(.occupied) {
  border-color: var(--primary-green);
  background: var(--primary-light);
  color: var(--primary-green);
}

.locker-cell.selected {
  background: var(--accent-gold);
  border-color: #ca8a04;
  color: #713f12;
  box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.4);
}

.locker-cell.occupied {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
  cursor: not-allowed;
  opacity: 0.7;
}

/* ==================== RESUMEN DE COMPRA CARD ==================== */
.order-summary-card h3 {
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--light-border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted-text);
}

.summary-line strong {
  color: var(--dark-text);
}

.status-badge {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-badge.available {
  background: #dcfce7;
  color: #166534;
}

.summary-items {
  border-top: 1px dashed var(--light-border);
  border-bottom: 1px dashed var(--light-border);
  padding: 0.75rem 0;
  margin: 1rem 0;
  max-height: 180px;
  overflow-y: auto;
}

.summary-item-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.empty-state {
  text-align: center;
  color: var(--muted-text);
  font-size: 0.85rem;
  padding: 1rem 0;
}

.summary-total-box {
  background: var(--primary-subtle);
  border: 1px solid #bbf7d0;
  padding: 1rem;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0;
}

.summary-total-box span {
  font-weight: 600;
  color: var(--primary-green);
  font-size: 0.95rem;
}

.summary-total-box strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.45rem;
  color: var(--primary-green);
}

/* ==================== TABLA DE HISTORIAL ==================== */
.historial-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.historial-toolbar p {
  color: var(--muted-text);
  font-size: 0.85rem;
}

.table-responsive {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.data-table th {
  background: #f8fafc;
  padding: 0.85rem 1rem;
  font-weight: 700;
  color: var(--dark-slate);
  border-bottom: 2px solid var(--light-border);
}

.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--light-border);
}

.data-table tr:hover {
  background-color: #f8fafc;
}

.btn-mini {
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  border-radius: 4px;
  border: 1px solid var(--light-border);
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-mini:hover {
  background: var(--primary-green);
  color: #ffffff;
  border-color: var(--primary-green);
}

/* ==================== MODAL DE FACTURA & FORMATO IMPRESIÓN ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1.5rem;
  backdrop-filter: blur(4px);
}

.modal-window {
  background: #ffffff;
  width: 100%;
  max-width: 680px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--light-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.15rem;
  color: var(--dark-slate);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.close-btn {
  background: transparent;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--muted-text);
  cursor: pointer;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  background: #f1f5f9;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--light-border);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  background: #ffffff;
}

/* HOJA DE LA FACTURA IMPRIMIBLE */
.invoice-sheet {
  background: #ffffff;
  padding: 2.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--light-border);
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
}

.invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.invoice-logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
}

.invoice-company h2 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--primary-green);
  font-size: 1.35rem;
  margin-bottom: 0.2rem;
}

.invoice-company p {
  font-size: 0.8rem;
  color: var(--muted-text);
  line-height: 1.35;
}

.invoice-consecutive-box {
  background: #f8fafc;
  border: 1.5px solid var(--light-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  text-align: right;
  min-width: 170px;
}

.consecutive-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted-text);
}

.consecutive-code {
  font-family: 'Space Grotesk', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-green);
  margin: 0.25rem 0;
}

.consecutive-date {
  font-size: 0.75rem;
  color: var(--muted-text);
}

.invoice-divider {
  height: 2px;
  background: linear-gradient(to right, var(--primary-green), #ca8a04);
  margin: 1.25rem 0;
}

.invoice-client-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  background: #f8fafc;
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

.info-block {
  display: flex;
  flex-direction: column;
}

.info-block .label {
  font-size: 0.75rem;
  color: var(--muted-text);
  font-weight: 600;
  text-transform: uppercase;
}

.info-block .val {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark-slate);
}

.invoice-items-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.invoice-items-table th {
  background: #f1f5f9;
  padding: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dark-slate);
  border-bottom: 1px solid var(--light-border);
}

.invoice-items-table td {
  padding: 0.75rem;
  font-size: 0.85rem;
  border-bottom: 1px solid #f1f5f9;
}

.text-center { text-align: center; }
.text-right { text-align: right; }

.total-cell {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  color: var(--primary-green);
}

.invoice-footer-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--light-border);
}

.legal-terms {
  font-size: 0.72rem;
  color: var(--muted-text);
  max-width: 60%;
  line-height: 1.4;
}

.signature-box {
  text-align: center;
  min-width: 170px;
}

.sign-line {
  border-top: 1px solid var(--dark-slate);
  margin-bottom: 0.4rem;
}

.signature-box span {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
}

.signature-box small {
  font-size: 0.7rem;
  color: var(--muted-text);
}

/* ==================== REGLAS DE IMPRESIÓN DIRECTA ==================== */
@media print {
  body * {
    visibility: hidden;
  }
  #printableInvoice, #printableInvoice * {
    visibility: visible;
  }
  #printableInvoice {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border: none;
    box-shadow: none;
    padding: 0;
  }
}

.helper-text {
  font-size: 0.75rem;
  color: var(--muted-text);
  margin-top: 0.25rem;
  display: block;
}
.consecutive-caja {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-top: 2px;
}

.helper-text {
  font-size: 0.75rem;
  color: var(--muted-text);
  margin-top: 0.25rem;
  display: block;
}
.consecutive-caja {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-top: 2px;
}
.payment-highlight {
  color: var(--primary-green) !important;
  font-weight: 800 !important;
}
/* Cuadritos de estado en la factura */
.invoice-status-boxes {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #f8fafc;
  border: 1.5px solid var(--light-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin: 1.25rem 0;
}
.status-checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}
.checkbox-square {
  font-size: 1.35rem;
  line-height: 1;
  color: var(--primary-green);
  font-weight: 800;
}

/* Estilos adicionales V4: Autocompletado de estudiante, combos y tarjetas de precios */
.cedula-autofill-wrapper {
  position: relative;
}
.autofill-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  padding: 2px 8px;
  border-radius: 12px;
  margin-top: 4px;
}
.autofill-badge.not-found {
  color: #92400e;
  background: #fef3c7;
}
.fisica-category-block {
  background: #f8fafc;
  border: 1.5px solid var(--light-border);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin-bottom: 1.25rem;
}
.fisica-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--light-border);
}
.fisica-category-header h4 {
  font-size: 1rem;
  color: var(--dark-slate);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.price-pill {
  background: var(--primary-green);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}
.price-pill.gold {
  background: #d97706;
}
.asociado-toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}
.asociado-toggle-card.no-asociado {
  background: #fffbeb;
  border-color: #fde68a;
}
.asociado-check-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}
.asociado-check-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary-green);
  cursor: pointer;
}

/* Indicador de conexión en tiempo real con Firebase */
.cloud-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}
.cloud-status-pill.offline {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}
.cloud-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.25);
}
.cloud-status-pill.offline .cloud-dot {
  background: #d97706;
  box-shadow: none;
}
