body {
    background: #f3f3f3;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}



.fm-topbar {
    display: flex;
    width: 100%;
    height: 60px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
}

.fm-topbar-left {
    background: #d2242a;
    padding: 0 24px;
    display: flex;
    align-items: center;
}

.fm-logo {
    height: 48px;
    display: block;
}

.fm-topbar-right {
    flex: 1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.fm-main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.fm-nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    text-decoration: none;
}

.fm-nav-link:hover {
    color: #d2242a;
}

.fm-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fm-icon-circle {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
}

.fm-icon-circle:hover {
    background: #ffffff;
    border-color: #d2242a;
}

.fm-login-btn {
    border-radius: 999px;
    border: 2px solid #d2242a;
    padding: 6px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #d2242a;
    background: #ffffff;
    cursor: pointer;
}

.fm-login-btn:hover {
    background: #d2242a;
    color: #ffffff;
}


.blog-header {
    border-bottom: 1px solid #e5e5e5;
    padding: 1.5rem 0;
    background: #ffffff;
}

.blog-logo {
    font-weight: 700;
    letter-spacing: .08em;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.post-card {
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid #e5e5e5;
    padding: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
}

.post-thumb {
    width: 13rem;
    height:7rem;
    border-radius: .9rem;
    object-fit: cover;
    flex-shrink: 0;
    background: #ddd;
}

.post-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: .25rem;
}

.post-meta {
    font-size: .8rem;
    color: #888;
    margin-bottom: .35rem;
}

.sidebar-card {
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid #e5e5e5;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.post-extra-wrapper {
  max-width: 720px;
  margin: 0 auto; 
}


/* ---------- Footer blog ---------- */

.blog-footer {
  background: #ffffff;
  margin-top: 3rem;
}

/* Contenedor del carrusel */
.recom-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Pista del carrusel */
.recom-track {
  flex: 1;
  display: flex;
  gap: 0.75rem;
  overflow: hidden;
  scroll-behavior: smooth;
}

.recom-card,
.recom-card-skel {
  flex: 0 0 260px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.recom-card-skel {
  min-height: 210px;
  background: linear-gradient(
    90deg,
    #f1f5f9 0%,
    #e2e8f0 40%,
    #f1f5f9 80%
  );
  background-size: 200% 100%;
  animation: skel-recom 1.3s infinite linear;
}

@keyframes skel-recom {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.recom-card a {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.recom-card-thumb {
  width: 100%;
  height: 150px;
  overflow: hidden;
  background: #f3f4f8;
}

.recom-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.recom-card-body {
  padding: 0.75rem 0.9rem 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.recom-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.recom-card-meta {
  font-size: 0.8rem;
  color: #64748b;
}

.recom-btn {
  border: none;
  background: #ffffff;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0.125rem 0.4rem rgba(15, 23, 42, 0.16);
  color: #64748b;
  transition: all 0.15s ease;
}

.recom-btn:hover {
  color: #ef4444;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .recom-card,
  .recom-card-skel {
    flex: 0 0 80%;
  }
}

.post-portada-wrapper {
  max-width: 720px;
  margin: 0 auto;
}

.skel-portada {
  min-height: 220px;
}

.post-hero {
  margin: 0;
  position: relative;
}

.post-hero-img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 1rem 1rem 0 0;
}

.post-detail-card {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid #e5e5e5;
  padding: 0;
  overflow: hidden;
}

.post-detail-header {
  padding: 1.25rem 1.5rem 0.75rem;
}

.post-summary {
  font-size: 0.95rem;
}

.post-extra-wrapper {
  max-width: 720px;
  margin: 0 auto 1.5rem;
}

.post-extra-img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
}

.post-extra-pdf {
  width: 100%;
  min-height: 480px;
  border-radius: 1rem;
}

.skel-portada {
  min-height: 360px;
}

.skel-extra {
  min-height: 660px;
}

.post-body-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.post-body-col-img {
  flex: 0 0 280px; 
  max-width: 320px;
}


.post-body-col-text {
  flex: 1 1 0;
}

@media (max-width: 768px) {
  .post-body-grid {
    flex-direction: column;
  }

  .post-body-col-img {
    max-width: 100%;
  }
}

.post-extra-inline {
  float: left;
  max-width: 280px;
  margin: 0 1.5rem 1rem 0;
}

.skel-extra-inline {
  height: 180px;
}


@media (max-width: 768px) {
  .post-extra-inline {
    float: none;
    max-width: 100%;
    margin: 0 0 1rem 0;
  }
}

/* Skeleton genérico */
.skeleton-box {
  width: 100%;
  border-radius: 1rem;
  background: linear-gradient(90deg, #f5f5f5 0%, #e5e5e5 50%, #f5f5f5 100%);
  background-size: 200% 100%;
  animation: skel-shimmer 1.2s ease-in-out infinite;
}

.skel-portada {
  min-height: 360px;
}

.skel-extra {
  min-height: 20rem;
}

.post-extra-inline {
  float: left;
  max-width: 280px;
  margin: 0 1.5rem 1rem 0;
}

.skel-extra-inline {
  height: 180px;
}

.post-extra-inline .skeleton-box,
.post-extra-inline img {
  width: 100%;
  border-radius: 1rem;
  display: block;
}

@media (max-width: 768px) {
  .post-extra-inline {
    float: none;
    max-width: 100%;
    margin: 0 0 1rem 0;
  }
}