@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

.of-body { background: #f5f5f5; }

/* ── LOGIN ── */
#pantalla-login {
  min-height: calc(100vh - 62px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.of-login-wrap {
  background: white;
  border-radius: 24px;
  padding: 36px 28px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.1);
  text-align: center;
}

.of-login-logo {
  font-size: 3.5rem;
  margin-bottom: 12px;
}

.of-login-wrap h1 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 6px;
}

.of-login-wrap > p {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 24px;
}

.of-error {
  color: #e8392a;
  font-size: 0.82rem;
  margin: 8px 0;
}

.of-hint {
  font-size: 0.78rem;
  color: #aaa;
  margin-top: 16px;
}
.of-hint a { color: #e8392a; text-decoration: none; font-weight: 600; }

/* ── PANEL ── */
#pantalla-panel {
  max-width: 600px;
  margin: 0 auto;
  padding: 16px 16px 60px;
}

/* ── FICHA ── */
.of-ficha {
  background: white;
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.of-ficha-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.of-ficha-emoji {
  width: 52px; height: 52px;
  background: #f0f2f5;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; flex-shrink: 0;
}

.of-ficha-info {
  flex: 1;
  display: flex; flex-direction: column; gap: 2px;
}
.of-ficha-info strong { font-size: 1rem; font-weight: 700; color: #1a1a2e; }
.of-ficha-info span   { font-size: 0.78rem; color: #888; }

.of-ficha-badge {
  background: #e8f5e9; color: #1a7a4a;
  font-size: 0.72rem; font-weight: 700;
  padding: 4px 10px; border-radius: 20px;
  flex-shrink: 0;
}

/* ── STATS ── */
.of-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.of-stat {
  background: white;
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.of-stat-num {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.of-stat-label {
  font-size: 0.72rem;
  color: #888;
  font-weight: 500;
}

/* ── TABS ── */
.of-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  background: white;
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.of-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #888;
  cursor: pointer;
  transition: all 0.2s;
}

.of-tab.activo {
  background: #1a1a2e;
  color: white;
}

/* ── SECTION HEADER ── */
.of-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.of-section-header h2 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a2e;
}

/* ── OFERTA CARD ── */
.of-oferta-card {
  background: white;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.2s;
}
.of-oferta-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.of-oferta-card.inactiva { opacity: 0.5; }

.of-oferta-card-emoji {
  font-size: 1.8rem;
  width: 44px; height: 44px;
  background: #f5f5f5;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.of-oferta-card-info { flex: 1; min-width: 0; }
.of-oferta-card-info strong { display: block; font-size: 0.9rem; color: #1a1a2e; margin-bottom: 3px; }
.of-oferta-card-info p { font-size: 0.8rem; color: #888; margin: 0; }

.of-precio-tag {
  display: inline-block;
  margin-top: 5px;
  background: #fff0f1;
  color: #e8392a;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 2px 10px;
  border-radius: 20px;
}

.of-oferta-card-actions {
  display: flex; flex-direction: column; gap: 5px; flex-shrink: 0;
}

.of-btn-icon {
  border: none; border-radius: 8px;
  width: 34px; height: 34px;
  font-size: 0.9rem; cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.of-btn-icon.edit { background: #eef6fd; }
.of-btn-icon.del  { background: #fef0ef; }
.of-btn-icon:hover { transform: scale(1.1); }

/* ── EMPTY ── */
.of-empty {
  text-align: center;
  padding: 40px 20px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.of-empty-icon { font-size: 3rem; margin-bottom: 10px; }
.of-empty p { font-size: 0.88rem; color: #aaa; }

/* ── MODAL ── */
.of-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(3px);
}

.of-modal {
  background: white;
  border-radius: 24px 24px 0 0;
  padding: 24px 20px 32px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.15);
}

.of-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.of-modal-header h3 { font-size: 1rem; font-weight: 700; color: #1a1a2e; }

.of-modal-close {
  background: #f0f2f5; border: none;
  width: 32px; height: 32px;
  border-radius: 50%; cursor: pointer;
  font-size: 0.9rem; color: #555;
  transition: background 0.15s;
}
.of-modal-close:hover { background: #e0e3e6; }

.of-modal-footer {
  display: flex; gap: 10px; margin-top: 20px;
}

/* ── FIELDS ── */
.of-field {
  margin-bottom: 14px;
}
.of-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 5px;
}
.of-field input,
.of-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid #eee;
  border-radius: 12px;
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  -webkit-user-select: text;
  user-select: text;
}
.of-field input:focus,
.of-field textarea:focus { border-color: #e8392a; }

.of-field-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

.of-emoji-pick {
  width: 56px; height: 46px;
  background: #f5f5f5;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; cursor: pointer;
  border: 2px solid #eee;
}

.of-emoji-grid {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 16px;
}
.of-emoji-grid span {
  font-size: 1.4rem; cursor: pointer;
  padding: 5px; border-radius: 8px;
  transition: background 0.15s;
}
.of-emoji-grid span:hover { background: #f0f2f5; }

/* ── PREVIEW ── */
.of-preview-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}

.of-preview {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 4px;
}
.of-preview-emoji { font-size: 1.6rem; flex-shrink: 0; }
.of-preview strong { display: block; font-size: 0.88rem; color: #1a1a2e; }
.of-preview p { font-size: 0.8rem; color: #888; margin: 2px 0 0; }
.of-preview-precio {
  display: inline-block; margin-top: 4px;
  background: #fff0f1; color: #e8392a;
  font-weight: 700; font-size: 0.8rem;
  padding: 2px 8px; border-radius: 20px;
}

/* ── FICHA PREVIEW ── */
.of-ficha-preview { padding: 4px 0; }
.of-negocio-mock {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.of-mock-banner {
  height: 100px;
  background: linear-gradient(135deg, #1a1a2e, #0f3460);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.of-mock-body { padding: 14px 16px 16px; }

/* ── BOTONES ── */
.of-btn-primary {
  flex: 1;
  background: #e8392a;
  color: white; border: none;
  padding: 13px; border-radius: 12px;
  font-size: 0.92rem; font-weight: 700;
  font-family: 'Poppins', sans-serif;
  cursor: pointer; transition: background 0.2s;
  box-shadow: 0 4px 14px rgba(232,57,42,0.3);
}
.of-btn-primary:hover { background: #c0301f; }
.of-btn-primary:disabled { background: #ccc; box-shadow: none; cursor: not-allowed; }
.of-btn-primary.of-btn-sm { flex: none; padding: 9px 18px; font-size: 0.85rem; }

.of-btn-secondary {
  background: #f0f2f5; color: #555;
  border: none; padding: 13px 18px;
  border-radius: 12px; font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600; cursor: pointer;
  transition: background 0.2s;
}
.of-btn-secondary:hover { background: #e2e5e8; }

.of-btn-header {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.8rem; font-weight: 600;
  border: 1.5px solid rgba(255,255,255,0.2);
  padding: 6px 12px; border-radius: 20px;
  background: none; cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: background 0.2s;
}
.of-btn-header:hover { background: rgba(255,255,255,0.1); }

/* ── RESPONSIVE ── */
@media (min-width: 600px) {
  .of-modal {
    border-radius: 24px;
    margin: auto;
    max-height: 85vh;
  }
  .of-modal-overlay { align-items: center; }
}
