/* ── Sección Contenedora ── */
.fb-native-feed-section {
  padding: 3rem 0;
  background: transparent;
  width: 100%;
}
.fb-feed-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Encabezado de Sección ── */
.fb-native-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}
.fb-native-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.fb-native-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1877f2, #0d5ec4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 4px 18px rgba(24, 119, 242, 0.4);
  flex-shrink: 0;
}
.fb-native-title {
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-size: 1.6rem;
  font-weight: 800;
  color: #240047;
  margin: 0;
  letter-spacing: -0.3px;
}
.fb-native-subtitle {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0.2rem 0 0;
}
.fb-native-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #1877f2;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.fb-native-follow-btn:hover {
  background: #1565d8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(24, 119, 242, 0.5);
}

/* ── Grid de Tarjetas (4 Columnas) ── */
.fb-native-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* ── Tarjeta Individual (Estilo Nativo Facebook) ── */
.fb-post-native-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}
.fb-post-native-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
  border-color: #cbd5e1;
}

/* ── Top Bar de la Tarjeta ── */
.fb-card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}
.fb-card-author-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  overflow: hidden;
}
.fb-card-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  flex-shrink: 0;
}
.fb-card-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  overflow: hidden;
}
.fb-card-author-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fb-card-date {
  font-size: 0.76rem;
  color: #64748b;
}
.fb-card-meta-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* ── Texto del Post ── */
.fb-card-content-text {
  font-size: 0.87rem;
  color: #1e293b;
  line-height: 1.48;
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}
.fb-text-link {
  color: #1877f2 !important;
  text-decoration: none;
  font-weight: 600;
}
.fb-text-link:hover {
  text-decoration: underline;
}

/* ── Contenedor Multimedia ── */
.fb-card-media-wrapper {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  margin-bottom: 0.9rem;
  margin-top: auto;
}
.fb-card-media-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.fb-post-native-card:hover .fb-card-media-thumb {
  transform: scale(1.04);
}

/* ── Botón Play Centrado en Video ── */
.fb-card-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.25s ease;
}
.fb-post-native-card:hover .fb-card-play-overlay {
  background: rgba(0, 0, 0, 0.4);
}
.fb-card-play-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.75);
  backdrop-filter: blur(4px);
  border: 2px solid rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.25rem;
  padding-left: 3px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, background 0.25s ease;
}
.fb-post-native-card:hover .fb-card-play-btn {
  transform: scale(1.12);
  background: #1877f2;
  border-color: #ffffff;
}

/* ── Barra de Interacción Inferior ── */
.fb-card-interaction-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid #f1f5f9;
  color: #64748b;
  font-size: 0.82rem;
}
.fb-card-stats-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.fb-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}
.fb-stat-pill i {
  font-size: 0.95rem;
}
.fb-card-share-btn {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: color 0.2s, background 0.2s;
}
.fb-card-share-btn:hover {
  color: #1877f2;
  background: #f1f5f9;
}

/* ════════════ MODAL LIGHTBOX ════════════ */
.fb-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.fb-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.fb-modal-container {
  width: 100%;
  max-width: 1100px;
  height: 86vh;
  max-height: 720px;
  background: #000000;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.fb-modal-overlay.is-active .fb-modal-container {
  transform: scale(1);
}

/* Botón Cerrar (X) */
.fb-modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  border: none;
  color: #64748b;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.fb-modal-close-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  transform: rotate(90deg);
}

/* Columna Izquierda Multimedia */
.fb-modal-media-col {
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}
.fb-modal-video-iframe-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}
.fb-modal-video-iframe-wrap iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 100%;
  border: none;
  background: #000;
  display: block;
}
.fb-modal-single-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Columna Derecha Detalle */
.fb-modal-details-col {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  overflow: hidden;
  position: relative;
}

/* Cabecera del Modal */
.fb-modal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
  margin-right: 2.5rem;
}
.fb-modal-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e2e8f0;
}
.fb-modal-author-name {
  font-weight: 800;
  font-size: 1.05rem;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
}
.fb-modal-post-date {
  font-size: 0.78rem;
  color: #64748b;
}

/* Cuerpo del Mensaje */
.fb-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 0;
  font-size: 0.94rem;
  color: #1e293b;
  line-height: 1.6;
  word-break: break-word;
}
.fb-modal-body::-webkit-scrollbar {
  width: 6px;
}
.fb-modal-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

/* Pie del Modal */
.fb-modal-footer {
  border-top: 1px solid #f1f5f9;
  padding-top: 1rem;
  margin-top: auto;
}
.fb-modal-stats-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: #64748b;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}
.fb-modal-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}
.fb-modal-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.fb-modal-view-on-fb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #1877f2 !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}
.fb-modal-view-on-fb i {
  font-size: 1.35rem;
}
.fb-modal-view-on-fb:hover {
  text-decoration: underline;
  opacity: 0.85;
}
.fb-modal-share-btn {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  font-size: 1.15rem;
  transition: color 0.2s, background 0.2s;
}
.fb-modal-share-btn:hover {
  color: #1877f2;
  background: #f1f5f9;
}

/* Toast flotante */
.fb-share-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #0f172a;
  color: #ffffff;
  padding: 0.85rem 1.4rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 1000000;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}
.fb-share-toast.show {
  transform: translateY(0);
  opacity: 1;
}
.fb-share-toast i {
  color: #22c55e;
}

/* ── Responsive ── */
@media (max-width: 1080px) {
  .fb-native-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .fb-modal-container {
    grid-template-columns: 1fr;
    grid-template-rows: 240px 1fr;
    height: 90vh;
    max-height: none;
  }
  .fb-modal-close-btn {
    top: 0.75rem;
    right: 0.75rem;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }
  .fb-modal-details-col {
    padding: 1.25rem;
  }
}
@media (max-width: 580px) {
  .fb-native-grid {
    grid-template-columns: 1fr;
  }
  .fb-native-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
