.op-card {
  background: #fff;
  border-radius: 14px;
  position: relative;
  padding: 1.25rem;
  height: 100%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
  border: 1px solid rgba(0, 0, 0, .06);
}

.op-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 195, 14, .65), rgba(0, 0, 0, 0));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.op-quote {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #1f1f1f;
}

.op-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: #111;
  color: #fff;
}

.op-meta {
  font-size: .95rem;
  color: #666;
}

.op-stars svg {
  width: 18px;
  height: 18px;
}

.op-stars {
  gap: 4px;
}

/* Banda alterna para separar del resto de la página */
.opiniones-wrap {
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
  border-radius: 16px;
  padding: 2rem 1rem;
}

@media (min-width: 768px) {
  .opiniones-wrap {
    padding: 2.5rem;
  }
}

.btn-cta {
  background-color: #ffc30e;
  color: #fff;
  font-weight: bold;
  border-radius: 50px;
  padding: 0.6rem 1.2rem;
}

.btn-cta:hover {
  background-color: #b71c0c;
  color: #fff;
}

header {
background-color: dimgrey;
  color: #fff;
  text-align: center;
  padding: 4rem 1rem;
}

footer {
  background-color: #222;
  color: #ccc;
  font-size: 0.9rem;
}

footer a {
  color: #ccc;
  text-decoration: none;
}

footer a:hover {
  color: #fff;
}

/* ==============================
   Mobile First Blog (DesokupaCyL)
   ============================== */

body {
  font-size: 1rem;
  line-height: 1.6;
}

h1,
h2 {
  font-weight: 700;
}

h1 {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
}

h2 {
  font-size: clamp(1.3rem, 4vw, 1.8rem);
}

/* ===== Tarjeta de post (mejorada) ===== */

.op-card.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}

.op-card.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .12);
}

.post-card figure {
  border-radius: 12px;
  overflow: hidden;
  margin: 0 0 .8rem 0;
  aspect-ratio: 16/9;
  position: relative;
}

.post-card figure > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.post-card h3 {
  margin-bottom: .35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card .op-meta {
  font-size: .9rem;
  color: #6b7280;
  margin-bottom: .35rem;
}

.post-card .mb-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card .author-bio {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-card .author-bio img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, .06);
}

@media (min-width: 992px) {
  .post-card .author-bio img {
    width: 64px;
    height: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .op-card.post-card {
    transition: none;
  }
}

/* Chips de categorías */
.cat-chip {
  display: inline-block;
  font-size: .8rem;
  padding: .25rem .6rem;
  border-radius: 999px;
  background: #fff3cd;
  color: #7a5a00;
  border: 1px solid #ffe299;
  margin-bottom: .5rem;
  vertical-align: middle;
  letter-spacing: .1px;
}

/* Sidebar */
.sidebar .list-group-item {
  border: none;
  padding-left: .2rem;
  padding-right: .2rem;
  background: transparent;
}

.breadcrumb a {
  color: #fff;
  text-decoration: underline;
}

.breadcrumb .active {
  color: #ffe08a;
}

/* Avatar de autor fuera de cards */
.author-bio img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

@media (min-width: 992px) {
  .author-bio img {
    width: 72px;
    height: 72px;
  }

  .author-bio {
    display: flex;
    align-items: center;
    gap: 12px;
  }
}
