/* ============================================================
   RESPONSIVE.CSS — Auth modal, header user, reportar modal,
                    media queries globales
   ============================================================ */

/* ── AUTH MODAL ── */
.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; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.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); }

.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;
}

.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;
}

/* ── HEADER USER BUTTON ── */
.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); }

.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); }

/* ── USER MENU DROPDOWN ── */
.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; }

/* ── Inputs: hint y strength bar ── */
.form-group .input-hint { font-size: 11px; color: var(--gris); margin-top: 4px; }

.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%;
}

/* ── REPORTAR ── */
.btn-reportar {
  background: white;
  border: 2px solid #fca5a5;
  cursor: pointer;
  color: #c53030;
  padding: 7px 10px;
  border-radius: 10px;
  transition: all 0.15s;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 12px;
  flex: 1;
}
.btn-reportar::before { content: '🚩'; font-size: 13px; }
.btn-reportar:hover { background: #fff0f0; border-color: #c53030; transform: scale(1.03); }
.btn-reportar.reportado { background: #fff0f0; border-color: #c53030; color: #c53030; }

.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;
  border: 1px solid var(--crema-oscura);
}
.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 en card */
.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;
}

/* ── MEDIA QUERIES GLOBALES ── */
@media (max-width: 600px) {
  .articulos-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .modal { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .stats-bar { gap: 16px; }

  /* Ajustes cabecera y barra de ubicación en móviles */
  header {
    padding: 0 12px !important;
  }
  .logo {
    font-size: 22px !important;
  }
  .ub-select-wrap {
    padding: 5px 10px 5px 8px !important;
    gap: 4px !important;
  }
  .ub-texto .hide-mobile {
    display: none !important;
  }

  /* Ajustes barra de saludo/banner en móviles */
  .saludo-bar {
    flex-direction: column !important;
    text-align: center !important;
    padding: 12px 16px !important;
    gap: 10px !important;
  }
  .saludo-texto {
    font-size: 13px !important;
    line-height: 1.4 !important;
  }
  .saludo-btn {
    width: 100% !important;
    text-align: center !important;
    padding: 8px 16px !important;
  }

  /* Ajustes footer en móviles para que sea ultra compacto y quepa en una fila */
  .main-footer {
    padding: 12px 12px !important;
    gap: 6px !important;
    margin-top: 24px !important;
  }
  .footer-logo {
    font-size: 17px !important;
  }
  .footer-tagline {
    font-size: 12px !important;
    margin-top: -4px !important;
  }
  .footer-links {
    flex-wrap: nowrap !important;
    gap: 6px !important;
    margin-top: 0 !important;
  }
  .btn-footer-link {
    font-size: 12px !important;
    padding: 4px 6px !important;
    white-space: nowrap !important;
  }
  .footer-copyright {
    font-size: 11px !important;
    margin-top: 0 !important;
  }

  /* Evitar que el botón 'Entendido' se corte en el modal en móviles */
  .modal-scroll-content {
    max-height: 42vh !important;
  }
}

@media (max-width: 360px) {
  /* ajustes para pantallas muy pequeñas */
}

@media (min-width: 600px) {
  /* ajustes de escritorio */
}
