/* ===========================
   SISTEMA DE DISEÑO CORPORATIVO
   =========================== */

:root {
  --bg-page: #f3f4f6;
  --card-bg: #ffffff;
  --text-main: #111827;
  --text-muted: #6b7280;
  --border-soft: #e5e7eb;
  --primary: #1b5cff;        /* Mismo tono que Perfil */
  --primary-dark: #1748c7;
  --danger: #dc2626;
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-soft: 0 14px 30px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.08);
  --transition-fast: 0.15s ease;
}

/* Reset básico */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===========================
   BASE DEL DOCUMENTO
   =========================== */

body {
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 72px; /* espacio para el header fijo */
  overflow-x: hidden;
  user-select: none;
}

/* ===========================
   HEADER – IGUAL LÍNEA QUE PERFIL/TRABAJOS
   =========================== */

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  color: #1f2937;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between; /* ✅ CAMBIO CLAVE */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  border-bottom: 1px solid #e5e7eb;
}

.logo {
  margin: 0;
  color: var(--primary);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* ===========================
   NAV SUPERIOR DE SECCIÓN
   =========================== */

nav {
  width: 100%;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 10px 16px;
  position: sticky;
  top: 72px; /* se coloca debajo del header */
  z-index: 900;
}

nav a {
  color: #4b5563;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: background-color var(--transition-fast), color var(--transition-fast),
    box-shadow var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}

nav a:hover {
  background-color: #eef2ff;
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(27, 92, 255, 0.25);
  transform: translateY(-1px);
}

/* ===========================
   CONTENEDOR PRINCIPAL
   =========================== */

.container {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 32px 16px 40px;
}

.content {
  width: 100%;
  max-width: 900px;
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 24px 26px 28px;
}

/* Títulos */
.content h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 12px;
  color: var(--text-main);
}

/* ===========================
   LISTAS DE CURRÍCULUMS
   =========================== */

.recent-curriculums,
.all-curriculums {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.recent-curriculums {
  margin-top: 8px;
  margin-bottom: 24px;
}

/* ===========================
   SECCIÓN "MI CURRÍCULUM"
   =========================== */

.my-curriculum {
  margin: 18px 0 22px;
  padding: 14px 14px 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.my-cv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.role-pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.my-cv-muted {
  color: var(--text-muted);
  font-size: 14px;
}

.all-curriculums {
  margin-top: 8px;
}

/* ===========================
   TARJETA DE CURRÍCULUM
   =========================== */

.resume {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  padding: 18px 18px 14px;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast),
    border-color var(--transition-fast), background-color var(--transition-fast);
}

.resume:hover {
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14);
  transform: translateY(-2px);
  border-color: #d1d5db;
}

.resume.highlight {
  border-left: 4px solid var(--primary);
}

.resume.mine {
  border-color: rgba(27, 92, 255, 0.35);
}

.resume-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.owner-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(27, 92, 255, 0.35);
  background: rgba(27, 92, 255, 0.08);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

/* Header de tarjeta: avatar + datos */
.resume-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.resume-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  overflow: hidden;
  flex: 0 0 auto;
  background: linear-gradient(135deg, rgba(27, 92, 255, 0.12), rgba(27, 92, 255, 0.04));
  border: 1px solid rgba(27, 92, 255, 0.18);
  display: grid;
  place-items: center;
}

.resume-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.resume-avatar.has-image .resume-avatar-img {
  display: block;
}

.resume-avatar-fallback {
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.5px;
  font-size: 16px;
}

.resume-meta {
  min-width: 0;
  flex: 1;
}

.resume-user {
  color: var(--text-main);
  font-weight: 600;
  font-size: 14px;
  margin: 0;
}

.resume-date {
  color: var(--text-muted);
  font-size: 12px;
  margin: 1px 0 0;
}

/* Cabecera dentro de la tarjeta */
.resume h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-main);
  overflow-wrap: anywhere;
}

.resume p {
  font-size: 14px;
  margin: 2px 0;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.resume ul,
.resume li {
  overflow-wrap: anywhere;
}

.resume .contact-note {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(27, 92, 255, 0.06);
  border: 1px solid rgba(27, 92, 255, 0.14);
  color: #1e3a8a;
  font-size: 13px;
}

.resume .summary {
  color: #334155;
}

/* ===========================
   CONTACTO (empleador) + SOLICITUDES (trabajador)
   =========================== */

.cv-contact-requests {
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(27, 92, 255, 0.16);
  background: rgba(27, 92, 255, 0.04);
}

.cv-req-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px;
}

.cv-req-sub {
  font-size: 13px;
  color: #475569;
  margin: 0 0 12px;
}

.cv-req-card {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--shadow-card);
}

.cv-req-card + .cv-req-card {
  margin-top: 10px;
}

.cv-req-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cv-req-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  overflow: hidden;
  flex: 0 0 auto;
  background: linear-gradient(135deg, rgba(27, 92, 255, 0.12), rgba(27, 92, 255, 0.04));
  border: 1px solid rgba(27, 92, 255, 0.18);
  display: grid;
  place-items: center;
}

.cv-req-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.cv-req-avatar.has-image .cv-req-avatar-img {
  display: block;
}

.cv-req-avatar-fallback {
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.5px;
  font-size: 14px;
}

.cv-req-meta {
  min-width: 0;
  flex: 1;
}

.cv-req-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  overflow-wrap: anywhere;
}

.cv-req-date {
  font-weight: 600;
  color: #64748b;
  font-size: 12px;
}

.cv-req-note {
  font-size: 13px;
  color: #475569;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.cv-req-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
}

.cv-req-btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.cv-req-btn.approve {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(27, 92, 255, 0.22);
}

.cv-req-btn.approve:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.cv-req-btn.reject {
  background: rgba(220, 38, 38, 0.1);
  color: var(--danger);
}

.cv-req-btn.reject:hover {
  background: rgba(220, 38, 38, 0.14);
  transform: translateY(-1px);
}

.cv-contact {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(27, 92, 255, 0.14);
  background: rgba(27, 92, 255, 0.04);
}

.cv-contact-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #0f172a;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.cv-contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.cv-contact-btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.cv-contact-btn.request {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(27, 92, 255, 0.22);
}

.cv-contact-btn.request:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.cv-contact-btn.cancel {
  background: rgba(220, 38, 38, 0.1);
  color: var(--danger);
}

.cv-contact-btn.cancel:hover {
  background: rgba(220, 38, 38, 0.14);
  transform: translateY(-1px);
}

.cv-contact-status {
  font-size: 13px;
  font-weight: 800;
}

.cv-contact-status.pending {
  color: #a16207;
}

.cv-contact-status.approved {
  color: #166534;
}

.cv-contact-status.rejected {
  color: #b91c1c;
}

.cv-contact-status.canceled {
  color: #475569;
}

.cv-contact-value {
  font-size: 13px;
  color: #0f172a;
  font-weight: 700;
}

.cv-contact-link {
  color: #0f172a;
  text-decoration: none;
  border-bottom: 1px dashed rgba(15, 23, 42, 0.4);
}

.cv-contact-link:hover {
  color: var(--primary);
  border-bottom-color: rgba(27, 92, 255, 0.6);
}

.cv-contact-muted {
  color: #64748b;
  font-weight: 600;
}

.resume p strong {
  color: var(--text-main);
}

/* Detalles desplegables (si los usás) */
.resume .details {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e5e7eb;
}

.resume .details p {
  margin-top: 6px;
}

.resume .details ul {
  margin: 4px 0 0 18px;
  padding: 0;
}

/* Detalles (nuevo diseño) */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.detail-section {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px;
}

.detail-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #0f172a;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.detail-empty {
  color: #64748b;
  font-size: 14px;
}

.detail-list {
  margin: 0;
  padding-left: 18px;
}

.detail-list li {
  margin: 6px 0;
  color: #334155;
  font-size: 14px;
}

/* Timeline (Experiencia/Educación) */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 18px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: rgba(27, 92, 255, 0.18);
}

.tl-item {
  position: relative;
  margin: 0;
  padding: 0;
}

.tl-item + .tl-item {
  margin-top: 10px;
}

.tl-dot {
  position: absolute;
  left: -15px;
  top: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 92, 255, 0.12);
}

.tl-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tl-title {
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.tl-meta {
  color: #64748b;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
}

.tl-desc {
  color: #334155;
  font-size: 13.5px;
  line-height: 1.35;
}

.detail-section[data-collapsed="1"] .tl-item.is-extra {
  display: none;
}

.detail-expand {
  margin-top: 10px;
  background: transparent;
  border: none;
  padding: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.detail-expand:hover {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(27, 92, 255, 0.18);
  background: rgba(27, 92, 255, 0.06);
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 600;
}

/* ===========================
   BOTONES
   =========================== */

.resume .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: var(--primary);
  color: #ffffff;
  padding: 8px 14px;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 500;
  font-size: 13px;
  margin-top: 12px;
  transition: background-color var(--transition-fast), transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.resume .button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(23, 72, 199, 0.35);
}

/* botón eliminar */
.resume .delete-curriculum {
  background-color: var(--danger);
}

.resume .delete-curriculum:hover {
  background-color: #b91c1c;
}

/* Botón para ver todos los currículums */
.view-all-button {
  background-color: var(--primary);
  color: #ffffff;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  display: block;
  margin: 8px auto 24px;
  text-align: center;
  transition: background-color var(--transition-fast), transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.view-all-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(23, 72, 199, 0.35);
}

/* ===========================
   FORMULARIOS (si los usás aquí)
   =========================== */

.form-container {
  background-color: #ffffff;
  padding: 20px 22px;
  margin-top: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
}

.form-container input,
.form-container textarea {
  width: 100%;
  padding: 10px 12px;
  margin: 8px 0;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  font-family: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast),
    background-color var(--transition-fast);
  background-color: #f9fafb;
}

.form-container textarea {
  resize: vertical;
  min-height: 120px;
}

.form-container input:focus,
.form-container textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(27, 92, 255, 0.2);
  outline: none;
  background-color: #ffffff;
}

.form-container button {
  background-color: var(--primary);
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast),
    box-shadow var(--transition-fast);
  font-weight: 500;
}

.form-container button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(23, 72, 199, 0.35);
}

/* ===========================
   MODAL
   =========================== */

.modal {
  display: none; /* se cambiará a flex desde JS */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.45);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-content {
  background: #ffffff;
  color: #1f2937;
  padding: 24px 24px 20px;
  border-radius: 16px;
  max-width: 420px;
  width: 92%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
  border: 1px solid #e5e7eb;
  text-align: center;
}

.modal-content p {
  margin: 0;
  font-size: 15px;
}

.modal-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
}

/* botón cerrar genérico */
#modal-close {
  align-self: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  background-color: #6b7280;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

#modal-close:hover {
  background-color: #4b5563;
  transform: translateY(-1px);
}

/* variante para confirmación: Cancelar estilo secundario GREMIO */
#modal-close.modal-cancel {
  background: rgba(27, 92, 255, 0.08);
  color: var(--primary);
  border: 1px solid rgba(27, 92, 255, 0.22);
}

#modal-close.modal-cancel:hover {
  background: rgba(27, 92, 255, 0.12);
  transform: translateY(-1px);
}

/* botón que crea el JS para confirmar */
.confirm-button {
  background-color: var(--primary);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(27, 92, 255, 0.22);
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.confirm-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
}

/* ===========================
   FOOTER CORPORATIVO
   =========================== */

footer {
  background: #111827;
  color: #e5e7eb;
  text-align: center;
  padding: 18px 12px 22px;
  font-size: 14px;
  box-sizing: border-box;
  width: 100%;
}

footer a {
  color: #60a5fa;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

footer img {
  cursor: pointer;
  transition: transform 0.3s ease;
}

/* reutilizo tu animación */
footer img.clicked {
  animation: rollToRight 3s ease-in-out;
  pointer-events: none;
}

@keyframes rollToRight {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(100px) rotate(360deg);
  }
  100% {
    transform: translateX(0);
  }
}

/* === FOOTER GREMIO RECOMENDADO (igual que Trabajos) === */
.gremio-footer {
    margin-top: 60px;
    padding: 20px 16px;
    border-top: 1px solid #e5e7eb;
    background-color: #fafafa;
}

.gremio-footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
}

.gremio-footer-text {
    font-size: 14px;
    color: #555;
}

.gremio-footer-links {
    font-size: 13px;
    color: #777;
}

.gremio-footer-links a {
    color: #1b5cff;
    text-decoration: none;
}

.gremio-footer-links a:hover {
    text-decoration: underline;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 768px) {
  .content {
    padding: 18px 16px 22px;
    border-radius: 14px;
  }

  .resume {
    padding: 14px 12px;
  }

  .resume h3 {
    font-size: 16px;
  }

  .resume p {
    font-size: 13px;
  }

  nav {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .resume-top {
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .main-header {
    padding: 10px 16px;
  }

  .logo {
    font-size: 20px;
  }

  .view-all-button {
    width: 100%;
  }

  body {
    padding-top: 64px;
  }

  nav {
    top: 64px;
    gap: 10px;
    padding: 10px 12px;
    flex-wrap: wrap;
    overflow-x: visible;
    justify-content: flex-start;
  }

  nav a {
    padding: 8px 12px;
    font-size: 13px;
  }

  .container {
    padding: 18px 12px 28px;
  }

  .content {
    padding: 18px 14px 20px;
  }

  .resume {
    padding: 14px 12px 12px;
  }

  .resume-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .resume h3 {
    font-size: 16px;
  }

  .resume .summary {
    font-size: 14px;
  }
}

/* === MENÚ DE PERFIL (igual que Trabajos) === */
.profile-menu {
  position: relative;
}

.profile-button {
  background-color: #2563eb;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.profile-button:hover {
  background-color: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.profile-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 8px 0;
  z-index: 1000;
  margin-top: 8px;
  min-width: 180px;
}

.profile-dropdown li {
  border-bottom: 1px solid #f3f4f6;
}

.profile-dropdown li:last-child {
  border-bottom: none;
}

.profile-dropdown li a {
  text-decoration: none;
  color: #1f2937;
  display: block;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
}

.profile-dropdown li a:hover {
  background-color: #f9fafb;
  color: #2563eb;
}

.profile-dropdown.show {
  display: block;
}

/* Visor de imagen (tipo WhatsApp) */
.img-viewer {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
}

.img-viewer.open {
  display: block;
}

.img-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(2px);
}

.img-viewer-content {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}

.img-viewer-img {
  width: min(86vw, 420px);
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  background: #0b1220;
}

.img-viewer-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(17, 24, 39, 0.55);
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.img-viewer-close:hover {
  background: rgba(17, 24, 39, 0.8);
}
