/* ==================== MÓDULO DE INTERÉS / FINANCIACIÓN RÁPIDA (MODO ADMIN) ==================== */
.admin-interest-panel {
  margin-top: 14px;
  padding: 14px 16px;
  background: rgba(11, 15, 25, 0.95);
  border: 1px dashed rgba(212, 175, 55, 0.45);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  animation: toastFadeIn 0.3s ease-out;
}

.interest-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
}

.interest-panel-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--gold-light);
}

.interest-admin-pill {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-primary);
  border: 1px solid rgba(212, 175, 55, 0.35);
  letter-spacing: 0.05em;
}

.interest-panel-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.interest-input-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.interest-input-wrap label {
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.interest-field-box {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.interest-field-box input {
  width: 65px;
  height: 32px;
  background: rgba(19, 27, 46, 0.95);
  border: 1px solid var(--border-glass);
  border-radius: 4px;
  padding: 0 18px 0 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-light);
  outline: none;
  text-align: right;
  transition: var(--transition-fast);
}

.interest-field-box input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25);
}

.interest-field-box span {
  position: absolute;
  right: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-primary);
  pointer-events: none;
}

.interest-chips-group {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.interest-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.interest-chip:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

.interest-chip.active {
  background: var(--gold-gradient);
  color: #0b0f19;
  border-color: var(--gold-primary);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.35);
}

.interest-chip.reset {
  color: var(--text-muted);
}

/* SIMULADOR DE CUOTAS DINÁMICO & BOTÓN + */
.interest-cuotas-builder-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(19, 27, 46, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.cuota-builder-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cuota-builder-fields-grid {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.cuota-builder-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cuota-builder-field label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.cuota-builder-field input {
  height: 32px;
  width: 70px;
  background: #0b0f19;
  border: 1px solid var(--border-glass);
  border-radius: 4px;
  padding: 0 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-light);
  text-align: center;
  outline: none;
}

.cuota-builder-field input:focus {
  border-color: var(--gold-primary);
}

.cuota-builder-recargo-box {
  display: flex;
  align-items: center;
  gap: 3px;
  background: #0b0f19;
  border: 1px solid var(--border-glass);
  border-radius: 4px;
  padding-right: 8px;
  height: 32px;
}

.cuota-builder-recargo-box input {
  border: none;
  background: transparent;
  width: 55px;
  height: 100%;
  padding: 0 4px;
  color: var(--gold-light);
  font-weight: 700;
  text-align: center;
  outline: none;
}

.cuota-builder-recargo-box span {
  color: var(--gold-primary);
  font-size: 0.76rem;
  font-weight: 800;
}

.btn-add-cuota-option {
  height: 32px;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid var(--gold-primary);
  border-radius: 4px;
  color: var(--gold-light);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition-fast);
}

.btn-add-cuota-option:hover {
  background: var(--gold-gradient);
  color: #0b0f19;
}

.cuota-live-preview .live-preview-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.35);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* LISTA DE OPCIONES AGREGADAS */
.added-quote-options-section {
  margin-bottom: 12px;
}

.added-options-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
}

.added-options-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.added-option-chip {
  background: rgba(19, 27, 46, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 4px;
  padding: 4px 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  flex-wrap: wrap;
}

.added-option-chip strong {
  color: #ffffff;
}

.added-option-chip .chip-recargo {
  color: var(--gold-light);
  font-weight: 700;
}

.added-option-chip .chip-price {
  color: var(--gold-light);
  font-weight: 600;
}

.added-option-chip .chip-total {
  color: var(--text-muted);
}

.btn-remove-chip {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.72rem;
  padding: 0 2px;
  transition: color 0.15s;
}

.btn-remove-chip:hover {
  color: #fb7185;
}

/* OBSERVACIONES TEXTAREA */
.interest-obs-section {
  margin-bottom: 12px;
}

.interest-obs-section label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.admin-quote-textarea {
  width: 100%;
  background: #0b0f19;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.78rem;
  padding: 8px 10px;
  resize: vertical;
  outline: none;
  line-height: 1.4;
  transition: border-color 0.2s;
}

.admin-quote-textarea:focus {
  border-color: var(--gold-primary);
}

/* RESUMEN DE TOTALES Y BOTONES */
.interest-result-dossier {
  background: rgba(19, 27, 46, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.interest-summary-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
  margin-bottom: 10px;
}

@media (max-width: 480px) {
  .interest-summary-row {
    grid-template-columns: 1fr;
  }
}

.interest-col {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.interest-col.total {
  text-align: right;
}

.interest-col .lbl {
  font-size: 0.66rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.interest-col .val {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.interest-col .val.interest {
  color: #fbbf24;
}

.interest-col .val.final {
  color: var(--gold-primary);
  font-size: 1.1rem;
  font-weight: 800;
}

.interest-actions-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-print-boleto-action {
  background: var(--gold-gradient);
  border: 1px solid var(--gold-light);
  border-radius: 4px;
  color: #0b0f19;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
  transition: var(--transition-fast);
}

.btn-print-boleto-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

.btn-copy-quote {
  background: rgba(24, 34, 56, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-main);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 6px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition-fast);
}

.btn-copy-quote:hover {
  border-color: var(--gold-primary);
  color: #ffffff;
}

/* ==================== BOLETO / PRESUPUESTO REFERENCIAL (DOCUMENTO) ==================== */
.boleto-modal-container {
  max-width: 860px !important;
  width: 95% !important;
  background: #ffffff !important;
  color: #0f172a !important;
}

.boleto-modal-header {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 12px;
}

.boleto-modal-header h3 {
  color: #0f172a;
}

.boleto-modal-body {
  padding: 16px 20px;
  max-height: 82vh;
  overflow-y: auto;
  background: #f1f5f9;
}

.boleto-sheet {
  background: #ffffff;
  color: #0f172a;
  padding: 24px 28px;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  line-height: 1.35;
  border: 2px solid #0f172a;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.boleto-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.boleto-logo-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.boleto-logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 6px;
}

.boleto-brand-title {
  font-family: var(--font-heading), 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.05em;
  margin: 0;
  line-height: 1.2;
}

.boleto-brand-sub {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.boleto-brand-mat {
  display: block;
  font-size: 0.74rem;
  color: #334155;
  font-weight: 600;
}

.boleto-meta-box {
  text-align: right;
}

.boleto-tag {
  display: inline-block;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 5px;
}

.boleto-date-text {
  font-size: 0.78rem;
  color: #334155;
  font-weight: 500;
  line-height: 1.4;
}

.boleto-divider {
  height: 2.5px;
  background: #0f172a;
  margin: 8px 0 12px 0;
}

.boleto-section {
  margin-bottom: 11px;
}

.boleto-sec-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: #0f172a;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 3px;
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.boleto-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  border: 1.5px solid #0f172a;
}

.boleto-info-table td {
  padding: 5px 8px;
  border: 1px solid #cbd5e1;
}

.boleto-info-table .lbl-cell {
  color: #0f172a;
  font-weight: 700;
  background: #f1f5f9;
}

.boleto-info-table .val-cell {
  color: #0f172a;
  background: #ffffff;
}

.boleto-status-pill {
  display: inline-block;
  background: #f8fafc;
  color: #0f172a;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 3px;
  border: 1.5px solid #0f172a;
}

/* KPI GRID EN BOLETO */
.boleto-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 10px;
  width: 100%;
}

.boleto-kpi-grid.boleto-kpi-grid-2 {
  grid-template-columns: 1fr 1fr;
}

.boleto-kpi-box {
  background: #f8fafc;
  border: 1.5px solid #0f172a;
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
}

.boleto-kpi-box.highlight {
  background: #f8fafc;
  border: 2px solid #0f172a;
}

.bkpi-lbl {
  font-size: 0.74rem;
  font-weight: 800;
  color: #334155;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.bkpi-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.bkpi-val.total {
  font-size: 1.3rem;
  color: #0f172a;
}

.bkpi-sub {
  font-size: 0.72rem;
  color: #475569;
  font-weight: 600;
  margin-top: 1px;
}

/* TABLA DE CUOTAS EN BOLETO */
.boleto-cuotas-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  border: 1.5px solid #0f172a;
}

.boleto-cuotas-table th {
  background: #0f172a;
  color: #ffffff;
  padding: 6px 8px;
  text-align: left;
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.boleto-cuotas-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #cbd5e1;
  color: #0f172a;
}

.boleto-cuotas-table tr:nth-child(even) {
  background: #f8fafc;
}

.boleto-recargo-pill {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 3px;
  border: 1.5px solid #0f172a;
  background: #ffffff;
  color: #0f172a;
}

.cuota-money-cell {
  font-weight: 800;
  color: #0f172a;
  font-size: 0.9rem;
}

/* OBSERVACIONES */
.boleto-obs-box {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-left: 4px solid #0f172a;
  border-radius: 4px;
  padding: 7px 12px;
  font-size: 0.78rem;
  color: #1e293b;
  line-height: 1.4;
}

.boleto-obs-box p {
  margin: 0;
}

/* FIRMAS */
.boleto-signatures-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 16px 0 10px 0;
}

.boleto-sig-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 0.76rem;
  color: #334155;
}

.sig-space {
  height: 48px;
  width: 100%;
}

.sig-line {
  width: 85%;
  max-width: 280px;
  border-top: 1.5px solid #0f172a;
  margin-bottom: 6px;
}

.boleto-sig-box strong {
  font-size: 0.84rem;
  color: #0f172a;
  font-weight: 800;
  margin-bottom: 2px;
}

.boleto-legal-footer {
  border-top: 1px dashed #94a3b8;
  padding-top: 5px;
  font-size: 0.68rem;
  color: #475569;
  text-align: center;
}

/* Detail Page (Full Page View) */
.detail-page-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.detail-page-gallery {
  position: sticky;
  top: 90px;
}

.detail-page-info {
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   ADMIN LOGIN & ADMIN DRAWER PANEL
   ========================================================================== */
.admin-login-box {
  text-align: center;
  max-width: 420px;
}

.admin-lock-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-glass);
}

.demo-credentials-badge {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed var(--border-glass);
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
}

.demo-credentials-badge code {
  color: var(--gold-light);
  font-weight: 700;
  background: rgba(212, 175, 55, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Admin Drawer Panel */
.admin-drawer-modal .modal-content {
  max-width: 900px;
}

.admin-nav-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.admin-tab-btn {
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: var(--transition-fast);
}

.admin-tab-btn:hover {
  color: var(--text-main);
}

.admin-tab-btn.active {
  color: var(--gold-primary);
  border-bottom-color: var(--gold-primary);
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

/* Admin Table */
.admin-table-container {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.admin-table th, .admin-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-table th {
  color: var(--gold-light);
  font-family: var(--font-heading);
  font-weight: 700;
  background: rgba(11, 15, 25, 0.4);
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Admin Pill Indicator */
.admin-pill-indicator {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: auto;
  z-index: 1000;
  background: var(--bg-surface);
  border: 1px solid var(--gold-primary);
  box-shadow: var(--shadow-gold);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-light);
  backdrop-filter: blur(10px);
}

.admin-pill-indicator button {
  font-size: 0.75rem;
  color: var(--accent-rose);
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: #070911;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 1rem;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
}

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

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--gold-primary);
  padding-left: 4px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-legal-links {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-legal-links a {
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: var(--transition-fast);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal-links a:hover {
  color: var(--gold-light);
}

/* Legal Terms Modal Styles */
.legal-modal-box {
  max-width: 680px;
  width: 92%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.legal-nav-tabs {
  display: flex;
  gap: 8px;
  padding: 0.75rem 1.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.2);
}

.legal-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.legal-tab-btn:hover {
  color: var(--gold-light);
}

.legal-tab-btn.active {
  color: var(--gold-primary);
  border-bottom-color: var(--gold-primary);
}

.legal-modal-body {
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.legal-tab-content {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
}

.legal-tab-content.active {
  display: flex;
}

.legal-clause {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
}

.legal-clause h5 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.legal-clause h5 i {
  color: var(--gold-primary);
  font-size: 0.85rem;
}

.legal-clause p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.legal-clause p + p {
  margin-top: 0.5rem;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  left: auto;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  animation: whatsappPulse 2.5s infinite;
}

.floating-whatsapp:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.55);
}

.floating-whatsapp-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  left: auto;
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: translateX(6px);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
}

.floating-whatsapp:hover .floating-whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Keyframes */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(212, 175, 55, 0.2); }
  50% { box-shadow: 0 0 22px rgba(212, 175, 55, 0.6); }
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 6px 28px rgba(37, 211, 102, 0.7); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Queries */
@media (max-width: 992px) {
  .hero-grid, .bio-grid, .calculator-grid, .contact-grid, .payment-layout-grid, .detail-page-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-title {
    font-size: 2.75rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 56px;
  }

  .container {
    padding: 0 1rem;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
  }
  .nav-wrapper {
    height: 56px;
    flex-wrap: nowrap;
    gap: 3px;
    padding: 0 0.35rem;
  }
  .brand-logo {
    gap: 4px;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
  }
  .logo-img-wrapper {
    height: 30px;
    width: auto;
    flex-shrink: 0;
  }
  .brand-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: visible;
  }
  .brand-title {
    font-size: 0.72rem;
    font-weight: 800;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    letter-spacing: 0.2px;
    line-height: 1.12;
  }
  .brand-subtitle {
    font-size: 0.42rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.1;
    margin-top: 1px;
  }
  .header-actions {
    gap: 3px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
  }
  .currency-toggle-wrapper {
    display: inline-flex !important;
    padding: 1px;
  }
  .currency-toggle-btn {
    padding: 0.16rem 0.32rem;
    font-size: 0.6rem;
  }
  .btn-admin-subtle {
    width: 28px;
    height: 28px;
    font-size: 0.72rem;
  }
  .mobile-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 0.95rem;
    padding: 0;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
  }
  .main-nav {
    display: none;
  }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(7, 10, 18, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-glass);
    padding: 1rem 1.25rem;
    gap: 8px;
    z-index: 1001;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.7);
    animation: slideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .main-nav.open .nav-tab-btn {
    width: 100%;
    text-align: left;
    padding: 0.65rem 0.9rem;
    font-size: 0.92rem;
  }
  
  /* Form row grids collapse on mobile */
  .form-row-2col,
  .form-row-3col {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  /* Centered Section Headers */
  .section-header {
    text-align: center;
    max-width: 100%;
    margin: 0 auto 1.5rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .section-tag {
    margin-bottom: 0.5rem;
  }
  .section-title {
    font-size: 1.65rem;
    line-height: 1.2;
    text-align: center;
  }
  .section-description {
    font-size: 0.88rem;
    text-align: center;
    line-height: 1.55;
    max-width: 95%;
    margin: 0 auto;
  }

  /* Hero adjustments on mobile */
  .hero-section {
    padding: 1.25rem 0 2.5rem 0;
    min-height: auto;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-title {
    font-size: 1.75rem;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 0.85rem;
  }
  .hero-subtitle {
    font-size: 0.9rem;
    line-height: 1.55;
    text-align: center;
    max-width: 95%;
    margin: 0 auto 1.25rem auto;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-bottom: 1.25rem;
  }
  .hero-actions .btn-primary-gold {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }
  .hero-card-showcase {
    min-height: auto;
    padding: 8px;
  }
  .hero-img-wrapper {
    height: 250px;
  }
  .hero-card-overlay {
    padding: 0.85rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    background: linear-gradient(to top, rgba(11, 15, 25, 0.96) 0%, rgba(11, 15, 25, 0.7) 60%, transparent 100%);
  }
  .hero-card-info {
    width: 100%;
  }
  .hero-card-info h3 {
    font-size: 1.05rem;
    line-height: 1.2;
    margin-bottom: 2px;
  }
  .hero-card-info p {
    font-size: 0.75rem;
    line-height: 1.3;
  }
  .hero-card-badge {
    align-self: flex-start;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
  }

  /* METRICAS DE CONFIANZA RESPONSIVE */
  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0.75rem 0.9rem;
    width: 100%;
    box-sizing: border-box;
  }
  .stat-item {
    padding: 4px;
  }
  .stat-item-icon {
    font-size: 1.25rem;
    margin-bottom: 3px;
  }
  .stat-item h4 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1.25;
    letter-spacing: 0.01em;
    text-align: center;
    word-break: normal;
    overflow-wrap: break-word;
  }

  /* Featured Header & Sections on mobile */
  .featured-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
  }
  .featured-header .btn-secondary-outline {
    width: 100%;
    justify-content: center;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Bio section on mobile */
  .bio-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .bio-portrait-wrapper {
    max-width: 270px;
    margin: 0 auto 0.5rem auto;
  }
  .bio-portrait-card {
    height: 310px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
  }
  .bio-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
  }
  .bio-badge-overlay {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    width: auto;
    font-size: 0.72rem;
    padding: 6px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-align: center;
    background: rgba(11, 15, 25, 0.92);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(8px);
  }
  .bio-badge-sep {
    display: none;
  }
  .bio-badge-name {
    font-weight: 800;
    color: #ffffff;
    font-size: 0.82rem;
  }
  .bio-badge-role {
    color: var(--gold-light);
    font-size: 0.7rem;
  }
  .bio-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .bio-text {
    font-size: 0.88rem;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 1.5rem;
  }
  .features-list {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    width: 100%;
  }
  .feature-item {
    padding: 0.85rem 1rem;
    align-items: center;
    text-align: left;
    gap: 12px;
  }
  .feature-item h5 {
    font-size: 0.92rem;
    margin-bottom: 2px;
  }
  .feature-item p {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  /* Detail Page on mobile */
  .detail-page-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .detail-page-gallery {
    position: static;
  }
  .modal-main-viewer {
    height: 250px;
  }
  .detail-main-info {
    padding-top: 0;
  }

  /* Medios de Pago & Contacto en Móvil */
  .section-padding {
    padding-top: 1.5rem;
    padding-bottom: 2.25rem;
  }
  .section-header {
    margin-top: 0.35rem;
    margin-bottom: 1.25rem;
  }

  .payment-layout-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .payment-card {
    padding: 0.95rem 1rem;
    border-radius: var(--radius-md);
  }
  .payment-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
  }
  .payment-card p {
    font-size: 0.8rem;
    line-height: 1.45;
  }
  .payment-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  .payment-badge {
    top: 10px;
    right: 10px;
    font-size: 0.65rem;
    padding: 2px 7px;
  }
  .payment-cta-card {
    padding: 1rem;
    border-radius: var(--radius-md);
    gap: 0.45rem;
  }
  .payment-cta-card h3 {
    font-size: 0.96rem;
  }
  .payment-cta-card p {
    font-size: 0.78rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
  }
  .contact-info-card {
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-md);
    gap: 10px;
  }
  .contact-info-icon {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }
  .contact-info-text h4 {
    font-size: 0.85rem;
    margin-bottom: 1px;
  }
  .contact-info-text p {
    font-size: 0.78rem;
    line-height: 1.35;
  }
  .contact-info-text span {
    font-size: 0.7rem;
  }
  .contact-form-container {
    padding: 1rem 0.85rem;
    border-radius: var(--radius-md);
  }
  .contact-form-container h3 {
    font-size: 1.15rem;
  }

  /* Calculadora en Móvil */
  .calculator-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .calculator-box {
    padding: 1.25rem 1rem;
  }
  .calc-result-card {
    padding: 1.25rem 1rem;
  }
  .term-selector {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Catálogo y Filtros en Móvil */
  .catalog-bar {
    margin-bottom: 1.5rem;
    padding: 0.85rem;
  }
  .catalog-filters-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .sort-select-wrapper select {
    width: 100%;
  }

  /* Tarjetas de Terreno en Móvil */
  .card-specs {
    flex-wrap: wrap;
    gap: 6px 12px;
    font-size: 0.8rem;
  }
  .card-body {
    padding: 1.15rem;
  }
  .card-title {
    font-size: 1.15rem;
  }
  .card-price {
    font-size: 1.3rem;
  }

  /* Módulo de Financiación / Interés en Móvil */
  .interest-panel-controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .interest-chips-group {
    width: 100%;
  }
  .interest-cuotas-builder-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .interest-actions-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .btn-print-boleto-action,
  .btn-copy-quote {
    width: 100%;
    justify-content: center;
  }

  /* Modal Boleto Referencial en Móvil */
  .boleto-modal-container {
    width: 96% !important;
    margin: 10px auto;
  }
  .boleto-sheet {
    padding: 16px 14px;
  }
  .boleto-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .boleto-meta-box {
    text-align: left;
  }
  .boleto-kpi-grid,
  .boleto-kpi-grid-2 {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .boleto-signatures-section {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 16px;
  }

  /* ==================== PANEL DE ADMINISTRACIÓN ULTRA COMPACTO EN MÓVIL ==================== */
  .admin-drawer-modal .modal-content {
    width: 95% !important;
    max-width: 95% !important;
    max-height: 90vh !important;
    padding: 0 !important;
    border-radius: 12px !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
  }
  .admin-drawer-modal .modal-header {
    padding: 10px 14px !important;
    border-bottom: 1px solid var(--border-glass) !important;
    background: rgba(15, 23, 42, 0.95) !important;
    flex-shrink: 0;
  }
  .admin-drawer-modal .modal-header .modal-title {
    font-size: 0.92rem !important;
  }
  .admin-drawer-modal .modal-body {
    padding: 12px 14px !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
  }
  
  .admin-nav-tabs {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    gap: 4px !important;
    padding-bottom: 4px !important;
    margin-bottom: 10px !important;
    border-bottom: 1px solid var(--border-glass) !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .admin-nav-tabs::-webkit-scrollbar {
    display: none;
  }
  .admin-tab-btn {
    padding: 5px 9px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--border-subtle) !important;
    color: var(--text-muted) !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }
  .admin-tab-btn.active {
    background: var(--gold-gradient) !important;
    color: #0b0f19 !important;
    border-color: var(--gold-primary) !important;
  }
  
  .admin-table-container {
    border-radius: 6px;
    border: 1px solid var(--border-glass);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .admin-table {
    min-width: 440px;
    font-size: 0.74rem;
  }
  .admin-table th, .admin-table td {
    padding: 6px 8px;
  }

  .admin-drawer-modal .form-row-2col,
  .admin-drawer-modal .form-row-3col {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .admin-drawer-modal .form-group {
    margin-bottom: 8px !important;
  }
  .admin-drawer-modal .form-group label {
    font-size: 0.75rem !important;
    margin-bottom: 3px !important;
  }
  .admin-drawer-modal .form-control {
    padding: 6px 10px !important;
    font-size: 0.84rem !important;
  }

  /* Verificación crediticia en móvil */
  .credit-compact-suite {
    padding: 0.85rem !important;
  }
  .credit-compact-title strong {
    font-size: 0.82rem !important;
  }
  .credit-compact-title span {
    font-size: 0.68rem !important;
  }
  .credit-compact-bar {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .credit-compact-input-wrap {
    width: 100% !important;
  }
  .btn-compact-bcra-main {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.65rem 1rem !important;
  }
  .credit-compact-actions {
    flex-direction: column !important;
    gap: 6px !important;
  }
  .btn-compact-sub-action {
    width: 100% !important;
    justify-content: space-between !important;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    text-align: center;
  }
  .detail-specs-grid {
    grid-template-columns: 1fr;
  }

  /* BOTONES FLOTANTES EN MÓVIL (SIN COLISIONES) */
  .admin-pill-indicator {
    bottom: 12px;
    left: 12px;
    right: auto;
    padding: 4px 10px;
    font-size: 0.7rem;
    background: rgba(11, 15, 25, 0.94);
    border: 1px solid rgba(244, 63, 94, 0.6);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
    border-radius: var(--radius-full);
    z-index: 998;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .admin-pill-indicator button {
    font-size: 0.68rem;
    gap: 5px;
  }

  .floating-whatsapp {
    width: 46px;
    height: 46px;
    font-size: 1.35rem;
    bottom: 12px;
    right: 12px;
    left: auto;
    z-index: 999;
  }
  .floating-whatsapp-tooltip {
    display: none;
  }
  .btn-whatsapp-header span {
    display: none;
  }
}

@media (max-width: 400px) {
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
  }
  .stat-item {
    flex-direction: row;
    gap: 12px;
    text-align: left;
    justify-content: flex-start;
  }
  .stat-item-icon {
    margin-bottom: 0;
    font-size: 1.25rem;
  }
  .stat-item h4 {
    text-align: left;
    font-size: 0.84rem;
  }
}

@media (max-width: 400px) {
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
  }
  .stat-item {
    flex-direction: row;
    gap: 12px;
    text-align: left;
    justify-content: flex-start;
  }
  .stat-item-icon {
    margin-bottom: 0;
    font-size: 1.25rem;
  }
  .stat-item h4 {
    text-align: left;
    font-size: 0.84rem;
  }
}

