/* ============================================================
   modals.css — Lokal
   Todos los modales, overlays, formularios, toast, auth,
   panel de categorías, lightbox y banner de saludo
   ============================================================ */


/* ════════════════════════════════════════
   OVERLAY + MODAL GENÉRICO (publicar, términos, etc.)
   ════════════════════════════════════════ */

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.overlay.active {
  display: flex;
}

.modal {
  background: var(--blanco);
  border-radius: 24px;
  padding: 32px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalIn 0.3s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--crema-oscura) transparent;
}

.modal::-webkit-scrollbar {
  width: 6px;
}

.modal::-webkit-scrollbar-thumb {
  background: var(--crema-oscura);
  border-radius: 10px;
}


@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: var(--crema-oscura);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cafe);
}

.modal h2 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--cafe);
  margin-bottom: 6px;
  padding-right: 40px;
}

.modal-sub {
  color: var(--gris);
  font-size: 14px;
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  .modal {
    padding: 24px 16px;
  }

  .modal-edit {
    padding: 24px 16px 32px;
  }
}



/* ════════════════════════════════════════
   FORMULARIOS (form-group, inputs, selects)
   ════════════════════════════════════════ */

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--cafe);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--crema-oscura);
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--cafe);
  background: var(--crema);
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--verde);
  background: white;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group .input-hint {
  font-size: 11px;
  color: var(--gris);
  margin-top: 4px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

.btn-submit {
  width: 100%;
  background: var(--verde);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}

.btn-submit:hover {
  background: var(--verde-claro);
}

.btn-eliminar-cuenta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff5f5;
  border: 1.5px solid #feb2b2;
  color: #e53e3e;
  padding: 10px 20px;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
}

.btn-eliminar-cuenta:hover {
  background: #fff0f0;
  border-color: #fc8181;
  color: #c53030;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.12);
}

.btn-eliminar-cuenta:active {
  transform: translateY(0);
}

/* Password toggle */
.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 44px;
}

.toggle-pw {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--gris);
  padding: 0;
  line-height: 1;
}

/* Barra de fortaleza de contraseña */
.strength-bar {
  height: 4px;
  border-radius: 4px;
  background: var(--crema-oscura);
  margin-top: 6px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s, background 0.3s;
  width: 0%;
}


/* ════════════════════════════════════════
   MODAL DETALLE (overlay-det)
   ════════════════════════════════════════ */

.overlay-det {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 250;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.overlay-det.active {
  display: flex;
}

@media (min-width: 600px) {
  .overlay-det {
    align-items: center;
    padding: 20px;
  }

  .modal-det {
    border-radius: 24px !important;
    max-height: 90vh !important;
  }
}

.modal-det {
  background: var(--blanco);
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.32s cubic-bezier(.22, .68, 0, 1.2);
}

@keyframes slideUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.det-handle {
  width: 40px;
  height: 4px;
  background: var(--crema-oscura);
  border-radius: 2px;
  margin: 12px auto 0;
}

.det-hero {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--crema-oscura), var(--crema));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  position: relative;
  overflow: hidden;
}

.det-gallery {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.det-gallery::-webkit-scrollbar {
  display: none;
}

.gallery-indicator {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  pointer-events: none;
}

.det-badge {
  position: absolute;
  bottom: 10px;
  left: 16px;
  background: var(--verde);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.det-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: rgba(0, 0, 0, 0.25);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 15px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.det-body {
  padding: 20px 24px 28px;
}

.det-title {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--cafe);
  line-height: 1.2;
  margin-bottom: 6px;
}

.det-precio {
  font-family: 'Fraunces', serif;
  font-size: 30px;
  font-weight: 900;
  color: var(--verde);
  margin-bottom: 16px;
}

.det-precio span {
  font-size: 14px;
  font-weight: 400;
  color: var(--gris);
  font-family: 'DM Sans', sans-serif;
}

.det-vendedor {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--crema);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.det-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--verde);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  flex-shrink: 0;
}

.det-vend-nombre {
  font-weight: 700;
  font-size: 14px;
  color: var(--cafe);
}

.det-vend-tiempo {
  font-size: 12px;
  color: var(--gris);
}

.det-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.65;
  margin-bottom: 20px;
  white-space: pre-wrap;
}

/* Acciones visitante */
.det-acciones {
  display: flex;
  gap: 8px;
  margin-bottom: 0;
}

.det-acciones .btn-wa {
  flex: 1;
  padding: 13px;
  border-radius: 12px;
  font-size: 14px;
}

.det-btn-rep {
  background: var(--crema);
  border: 1.5px solid var(--crema-oscura);
  color: var(--gris);
  padding: 13px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  transition: all .2s;
  white-space: nowrap;
}

.det-btn-rep:hover {
  background: #fee2e2;
  color: #c53030;
  border-color: #fca5a5;
}

.det-btn-share {
  background: var(--crema);
  border: 1.5px solid var(--crema-oscura);
  color: var(--cafe);
  padding: 13px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  transition: all .2s;
  white-space: nowrap;
}

.det-btn-share:hover {
  background: var(--crema-oscura);
}

/* Acciones dueño */
.det-owner-acciones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 0;
}

.det-owner-acciones .btn-wa {
  border-radius: 12px;
  padding: 13px;
  font-size: 14px;
}

.det-btn-editar {
  background: var(--verde);
  color: white;
  border: none;
  padding: 13px;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
}

.det-btn-editar:hover {
  background: var(--verde-claro);
}

.det-btn-borrar {
  background: #fff0f0;
  color: #c53030;
  border: 1.5px solid #fca5a5;
  padding: 13px;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
}

.det-btn-borrar:hover {
  background: #fee2e2;
  border-color: #c53030;
}

.det-btn-share2 {
  background: var(--crema);
  border: 1.5px solid var(--crema-oscura);
  color: var(--cafe);
  padding: 13px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  transition: all .2s;
}

.det-btn-share2:hover {
  background: var(--crema-oscura);
}


/* ════════════════════════════════════════
   MODAL EDICIÓN (overlay-edit)
   ════════════════════════════════════════ */

.overlay-edit {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 260;
  align-items: flex-end;
  justify-content: center;
}

.overlay-edit.active {
  display: flex;
}

@media (min-width: 600px) {
  .overlay-edit {
    align-items: center;
    padding: 20px;
  }

  .modal-edit {
    border-radius: 24px !important;
    max-height: 90vh !important;
  }
}

.modal-edit {
  background: var(--blanco);
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp .32s cubic-bezier(.22, .68, 0, 1.2);
  padding: 28px 24px 32px;
  scrollbar-width: thin;
  scrollbar-color: var(--crema-oscura) transparent;
}

.modal-edit::-webkit-scrollbar {
  width: 5px;
}

.modal-edit::-webkit-scrollbar-thumb {
  background: var(--crema-oscura);
  border-radius: 10px;
}


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

.edit-header h3 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--cafe);
}

.edit-close {
  background: var(--crema-oscura);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cafe);
}

.emoji-grid-edit {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.emoji-e {
  font-size: 22px;
  padding: 7px;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .15s;
  line-height: 1;
}

.emoji-e.sel,
.emoji-e:hover {
  border-color: var(--verde);
  background: var(--crema-oscura);
}

/* Foto en modal edición (Actualizado para usar slots) */
.edit-foto-section {
  margin-bottom: 24px;
}

.edit-foto-section label {
  font-size: 13px;
  font-weight: 700;
  color: var(--cafe);
  display: block;
  margin-bottom: 12px;
  text-align: center;
}

.edit-foto-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 180px;
}

.edit-foto-container .foto-slot {
  width: 100%;
  max-width: 280px;
}

.edit-foto-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
}

.edit-foto-btn {
  padding: 10px 16px;
  border-radius: 12px;
  border: 2px solid var(--crema-oscura);
  background: var(--crema);
  color: var(--cafe);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  font-family: 'DM Sans', sans-serif;
}

.edit-foto-btn:hover {
  border-color: var(--verde);
  background: white;
}



/* ════════════════════════════════════════
   MODAL PUBLICAR — PASOS
   ════════════════════════════════════════ */

.paso-indicator {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  align-items: center;
}

.paso-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--crema-oscura);
  transition: all 0.2s;
}

.paso-dot.active {
  background: var(--verde);
  width: 20px;
  border-radius: 4px;
}

.paso {
  display: none;
}

.paso.active {
  display: block;
}

/* Grids de selección */
.tipo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 8px;
}

.tipo-card {
  border: 2px solid var(--crema-oscura);
  border-radius: 14px;
  padding: 16px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--crema);
}

.tipo-card:hover,
.tipo-card.active {
  border-color: var(--verde);
  background: white;
  box-shadow: 0 2px 12px rgba(45, 106, 79, 0.12);
}

.tipo-card .tipo-icon {
  font-size: 28px;
  margin-bottom: 6px;
}

.tipo-card .tipo-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--cafe);
}

.cat-grid-modal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

.cat-card-modal {
  border: 2px solid var(--crema-oscura);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--cafe);
  background: var(--crema);
  transition: all 0.18s;
}

.cat-card-modal:hover,
.cat-card-modal.active {
  border-color: var(--verde);
  background: white;
  color: var(--verde);
}

.cat-card-modal .cc-icon {
  font-size: 20px;
}

.sub-grid-modal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.sub-pill-modal {
  border: 2px solid var(--crema-oscura);
  border-radius: 50px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--cafe);
  background: var(--crema);
  transition: all 0.18s;
}

.sub-pill-modal:hover,
.sub-pill-modal.active {
  border-color: var(--verde);
  background: var(--verde);
  color: white;
}

/* Navegación de pasos */
.paso-nav {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.btn-paso-back {
  flex: 0;
  background: var(--crema-oscura);
  border: none;
  padding: 10px 18px;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  cursor: pointer;
  color: var(--cafe);
  font-size: 14px;
}

.btn-paso-next {
  flex: 1;
  background: var(--verde);
  border: none;
  padding: 10px 18px;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  cursor: pointer;
  color: white;
  font-size: 14px;
}

.btn-paso-next:hover {
  background: var(--verde-claro);
}

/* Foto upload */
.foto-upload:hover {
  border-color: var(--verde);
}

.foto-upload p {
  color: var(--gris);
  font-size: 13px;
  margin-top: 8px;
}

/* 2 Fotos Grid */
.fotos-grid-upload {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 5px;
}

.foto-slot {
  position: relative;
  width: 100%;
}

.foto-slot .foto-drop-area {
  padding: 20px 10px;
  border: 2px dashed var(--crema-oscura);
  background: var(--crema);
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.foto-slot .foto-drop-area:hover {
  border-color: var(--verde);
  background: white;
}

.foto-slot .fda-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.foto-slot .fda-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--cafe);
}

.foto-preview-wrap {
  display: none;
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--verde);
}

.foto-preview-wrap.visible {
  display: block;
}

.foto-preview-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.foto-remove-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.emoji-picker {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.emoji-opt {
  font-size: 28px;
  text-align: center;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s;
  background: white;
}

.emoji-opt:hover {
  border-color: var(--verde-claro);
}

.emoji-opt.selected {
  border-color: var(--verde);
  background: #D8F3DC;
}


/* ════════════════════════════════════════
   PANEL CATEGORÍAS (sidebar)
   ════════════════════════════════════════ */

.panel-cats {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
}

.panel-cats.active {
  display: flex;
}

.panel-cats-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.panel-cats-inner {
  position: relative;
  z-index: 1;
  background: var(--blanco);
  width: 340px;
  max-width: 95vw;
  height: calc(100vh - 64px);
  top: 64px;
  overflow-y: auto;
  padding: 28px 24px 40px;
  animation: slideIn 0.28s ease;
  box-shadow: 4px 0 32px rgba(0, 0, 0, 0.15);
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.panel-cats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.panel-cats-header h3 {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--cafe);
}

.panel-close {
  background: var(--crema-oscura);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cafe);
}

.panel-grupo {
  margin-bottom: 20px;
}

.panel-grupo-titulo {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--crema-oscura);
}

.panel-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--cafe);
  font-weight: 500;
  transition: background 0.15s;
}

.panel-item:hover,
.panel-item.active {
  background: var(--crema-oscura);
  color: var(--verde);
  font-weight: 600;
}

.panel-item .panel-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.panel-item .panel-arrow {
  margin-left: auto;
  font-size: 11px;
  color: var(--gris);
}

.panel-subitem {
  display: flex;
  align-items: center;
  padding: 7px 12px 7px 46px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--cafe);
  transition: background 0.15s;
}

.panel-subitem:hover,
.panel-subitem.active {
  background: var(--crema-oscura);
  color: var(--verde);
}

.panel-sublist {
  display: none;
}

.panel-sublist.open {
  display: block;
}


/* ════════════════════════════════════════
   AUTH MODAL (login / registro)
   ════════════════════════════════════════ */

.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  background: var(--crema-oscura);
  border-radius: 14px;
  padding: 4px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  border-radius: 11px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--gris);
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab.active {
  background: var(--verde);
  color: white;
  box-shadow: 0 2px 8px rgba(45, 106, 79, 0.3);
}

.auth-panel {
  display: none;
}

.auth-panel.active {
  display: block;
  animation: fadeUp 0.25s ease;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--gris);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--crema-oscura);
}

.btn-google {
  width: 100%;
  background: white;
  color: var(--cafe);
  border: 2px solid var(--crema-oscura);
  padding: 12px;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
}

.btn-google:hover {
  border-color: var(--verde);
  background: var(--crema);
}

.auth-footer-link {
  text-align: center;
  font-size: 13px;
  color: var(--gris);
  margin-top: 14px;
}

.auth-footer-link span {
  color: var(--verde);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* Botón header (no autenticado) */
.btn-auth {
  background: rgba(255, 255, 255, 0.18);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.35);
  padding: 8px 16px;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-auth:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* Avatar usuario */
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--tierra);
  color: white;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: all 0.2s;
}

.user-avatar:hover {
  transform: scale(1.08);
}

/* Dropdown usuario */
.user-menu-wrap {
  position: relative;
}

.user-dropdown {
  display: none;
  position: fixed;
  top: 68px;
  right: 16px;
  background: var(--blanco);
  border: 2px solid var(--crema-oscura);
  border-radius: 16px;
  padding: 8px;
  min-width: 200px;
  z-index: 500;
  box-shadow: 0 8px 32px rgba(45, 106, 79, 0.18);
  animation: modalIn 0.2s ease;
}

.user-dropdown.open {
  display: block;
}

.dropdown-user-info {
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--crema-oscura);
  margin-bottom: 6px;
}

.dropdown-user-info strong {
  display: block;
  font-size: 14px;
  color: var(--cafe);
  font-weight: 700;
}

.dropdown-user-info small {
  font-size: 12px;
  color: var(--gris);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--cafe);
  font-weight: 500;
  transition: background 0.15s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
}

.dropdown-item:hover {
  background: var(--crema);
}

.dropdown-item.danger {
  color: #c53030;
}

.dropdown-item.danger:hover {
  background: #fff5f5;
}


/* ════════════════════════════════════════
   MODAL REPORTAR
   ════════════════════════════════════════ */

.motivos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}

.motivo-btn {
  border: 2px solid var(--crema-oscura);
  background: var(--crema);
  border-radius: 12px;
  padding: 12px 10px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--cafe);
  text-align: center;
  transition: all 0.15s;
  line-height: 1.4;
}

.motivo-btn:hover {
  border-color: #c53030;
  background: #fff5f5;
  color: #c53030;
}

.motivo-btn.selected {
  border-color: #c53030;
  background: #fff0f0;
  color: #c53030;
}

.motivo-btn .motivo-icon {
  font-size: 22px;
  display: block;
  margin-bottom: 4px;
}

.report-art-preview {
  background: var(--crema);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.report-art-emoji {
  font-size: 28px;
}

.report-art-info strong {
  display: block;
  font-size: 14px;
  color: var(--cafe);
  font-weight: 700;
}

.report-art-info span {
  font-size: 12px;
  color: var(--gris);
}

.badge-reportes {
  background: #fff0f0;
  color: #c53030;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}


/* ════════════════════════════════════════
   LIGHTBOX (zoom de fotos)
   ════════════════════════════════════════ */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

.lightbox.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  animation: zoomIn 0.25s cubic-bezier(.22, .68, 0, 1.2);
}

@keyframes zoomIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.foto-clickable {
  cursor: zoom-in;
}


/* ════════════════════════════════════════
   TOAST (notificaciones flotantes)
   ════════════════════════════════════════ */

.toast {
  position: fixed;
  bottom: 20px;
  left: 12px;
  right: 12px;
  width: auto;
  max-width: none;
  transform: translateY(120px);
  background: var(--cafe);
  color: white;
  padding: 13px 16px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 500;
  z-index: 99999;
  transition: transform 0.3s ease, opacity 0.3s ease;
  white-space: normal;
  word-break: break-word;
  text-align: center;
  box-sizing: border-box;
  opacity: 0;
  overflow: hidden;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}


/* ════════════════════════════════════════
   BANNER SALUDO (usuario logueado)
   ════════════════════════════════════════ */

.saludo-bar {
  background: var(--crema);
  border-bottom: 1px solid var(--crema-oscura);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.saludo-texto {
  font-size: 14px;
  color: var(--cafe);
  font-weight: 500;
}

.saludo-texto strong {
  font-family: 'Fraunces', serif;
  font-size: 15px;
  color: var(--verde);
}

.saludo-btn {
  background: var(--verde);
  color: white;
  border: none;
  padding: 7px 16px;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}

.saludo-btn:hover {
  background: var(--verde-claro);
}


/* ════════════════════════════════════════
   TÉRMINOS Y CONDICIONES
   ════════════════════════════════════════ */

.termino-bloque {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--crema-oscura);
}

.termino-bloque:last-child {
  border-bottom: none;
}

.termino-bloque h4 {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--verde);
  margin-bottom: 8px;
}

.termino-bloque p {
  font-size: 13px;
  color: var(--cafe);
  line-height: 1.7;
}

.termino-bloque ul li {
  font-size: 13px;
  color: var(--cafe);
}

/* ── Clases CSP de Utilidad para Modales y Formularios ── */
.paso-label {
  font-size: 12px;
  color: var(--gris);
  margin-left: 6px;
}

.paso-saludo {
  font-weight: 700;
  font-size: 16px;
}

.modal-label-bold {
  font-weight: 700;
  font-size: 15px;
}

.span-optional {
  font-weight: 400;
  color: var(--gris);
}

.select-subcat {
  margin-top: 8px;
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #D1C9A8;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  background: white;
  color: #3D1F00;
  display: none;
}

.precio-preview {
  font-size: 13px;
  color: var(--verde);
  font-weight: 700;
  margin-top: 5px;
  min-height: 18px;
}

.inp-readonly {
  background: #f5f5f5;
  cursor: not-allowed;
}

.btn-publicar-final {
  background: var(--tierra);
}

.modal-auth-width {
  max-width: 440px;
}

.modal-h2-title {
  margin-bottom: 4px;
}

.span-brand-green {
  color: #95D5B2;
}

.forgot-password-link {
  text-align: center;
  font-size: 12px;
  color: var(--gris);
  margin-top: 12px;
  cursor: pointer;
}

.modal-wide {
  max-width: 620px;
}

.modal-scroll-content {
  max-height: 65vh;
  overflow-y: auto;
  padding-right: 8px;
}

.termino-bloque-alert {
  border-left: 3px solid #e53e3e;
  background: #fff5f5;
}

.text-danger {
  color: #c53030;
}

.termino-lista {
  margin-top: 8px;
  padding-left: 20px;
  line-height: 2;
}

.termino-alert-footer {
  margin-top: 10px;
  font-weight: 600;
  color: #c53030;
}

.termino-bloque-highlight {
  background: var(--crema);
  border-radius: 12px;
  padding: 16px;
}

.btn-submit-margin {
  margin-top: 20px;
}

.textarea-edit-desc {
  min-height: 90px;
}

.edit-foto-flex {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.foto-slot-edit {
  max-width: 280px;
}

.textarea-report-comment {
  min-height: 70px;
}

.btn-submit-danger {
  background: #c53030;
}

.report-hint {
  text-align: center;
  font-size: 11px;
  color: var(--gris);
  margin-top: 10px;
}

.notif-read-actions {
  display: none;
  margin-bottom: 12px;
}

/* Modificar margin-top del tipo-grid, cat-grid-modal, sub-grid-modal y fda-sub en sus definiciones existentes */
.tipo-grid {
  margin-top: 14px;
}

.cat-grid-modal {
  margin-top: 12px;
}

.sub-grid-modal {
  margin-top: 12px;
}

.fda-sub {
  text-align: center;
  margin-top: 10px;
}