@import url("./tokens.css");

/* Botones y pills (reutilizables en Pomelli) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--sb-radius-pill);
  font-family: var(--sb-font-display);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-gold {
  background: var(--sb-gradient-gold);
  color: var(--sb-gold-border);
  border: 3px solid var(--sb-gold-border);
  box-shadow: var(--sb-shadow-gold);
}

.pill-burgundy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--sb-radius-pill);
  background: var(--sb-gradient-burgundy);
  border: 2px solid var(--sb-burgundy-dark);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
}

.blog-hero .pill-burgundy,
p.pill-burgundy {
  color: #fff;
}

.blog-page {
  margin: 0;
  font-family: var(--sb-font-body);
  color: var(--sb-text);
  background: var(--sb-bg);
  line-height: 1.65;
}

.blog-header {
  background: var(--sb-corporate-blue);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 14px 24px;
}

.blog-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.blog-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--sb-font-display);
  font-weight: 700;
}

.blog-logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.blog-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-nav a {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: var(--sb-radius-pill);
}

.blog-nav a:hover {
  background: rgba(255, 255, 255, 0.15);
}

.blog-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.blog-hero {
  margin-bottom: 40px;
}

.blog-hero h1 {
  font-family: var(--sb-font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--sb-navy);
  margin: 0 0 12px;
  line-height: 1.15;
}

.blog-hero p:not(.pill-burgundy) {
  color: var(--sb-text-muted);
  max-width: 62ch;
  margin: 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.blog-card {
  border-radius: var(--sb-radius-lg);
  overflow: hidden;
  background: var(--sb-white);
  border: 1px solid rgba(74, 123, 216, 0.15);
  box-shadow: var(--sb-shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sb-shadow-soft);
}

.blog-card-link {
  display: block;
  color: inherit;
}

.blog-card-image {
  aspect-ratio: 16 / 10;
  background: var(--sb-diamond-bg);
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 18px 20px 22px;
}

.blog-card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sb-burgundy);
  margin-bottom: 8px;
}

.blog-card h2 {
  font-family: var(--sb-font-display);
  font-size: 1.1rem;
  margin: 0 0 8px;
  color: var(--sb-navy);
  line-height: 1.25;
}

.blog-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--sb-text-muted);
}

.blog-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--sb-navy-light);
  font-weight: 700;
}

/* Artículo */
.article-breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 20px;
  color: var(--sb-text-muted);
}

.article-breadcrumb a {
  color: var(--sb-primary-dark);
  font-weight: 700;
}

.article-hero {
  border-radius: var(--sb-radius-xl);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--sb-shadow-soft);
}

.article-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.article-header h1 {
  font-family: var(--sb-font-display);
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  color: var(--sb-navy);
  margin: 0 0 16px;
  line-height: 1.15;
}

.article-intro {
  font-size: 1.08rem;
  color: var(--sb-navy-mid);
  margin-bottom: 28px;
  max-width: 72ch;
}

.article-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.article-dest {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid rgba(26, 46, 74, 0.1);
}

.article-dest:first-of-type {
  border-top: none;
  padding-top: 0;
}

.article-dest-image {
  border-radius: var(--sb-radius-md);
  overflow: hidden;
  background: var(--sb-diamond-bg);
  aspect-ratio: 4 / 3;
}

.article-dest-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-dest-num {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sb-burgundy);
  margin-bottom: 6px;
}

.article-dest h2 {
  font-family: var(--sb-font-display);
  font-size: 1.35rem;
  margin: 0 0 6px;
  color: var(--sb-navy);
}

.article-dest-location {
  font-size: 0.9rem;
  color: var(--sb-primary-dark);
  font-weight: 700;
  margin-bottom: 12px;
}

.article-dest p {
  margin: 0;
  color: var(--sb-text-muted);
}

.article-cta {
  margin-top: 48px;
  padding: 32px;
  border-radius: var(--sb-radius-xl);
  background: var(--sb-gradient-hero);
  color: #fff;
  text-align: center;
}

.article-cta h2 {
  font-family: var(--sb-font-display);
  margin: 0 0 10px;
}

.article-cta p {
  margin: 0 0 20px;
  opacity: 0.92;
}

.article-dest-link {
  margin-top: 12px;
  font-size: 0.85rem;
}

.article-dest-link a {
  color: var(--sb-primary-dark);
  font-weight: 700;
}

/* Paywall visual a mitad de lista (contenido sigue en HTML para SEO) */
.article-lock {
  position: relative;
  margin-top: 8px;
}

.article-lock-teaser {
  max-height: 420px;
  overflow: hidden;
  filter: blur(7px);
  opacity: 0.55;
  user-select: none;
  pointer-events: none;
}

.article-dest--blurred {
  border-top: 1px solid rgba(26, 46, 74, 0.1);
}

.article-lock-cta {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px 20px;
  text-align: center;
  background: linear-gradient(
    180deg,
    rgba(248, 249, 250, 0.15) 0%,
    rgba(248, 249, 250, 0.92) 28%,
    rgba(248, 249, 250, 0.98) 100%
  );
}

.article-lock-cta h2 {
  font-family: var(--sb-font-display);
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  color: var(--sb-navy);
  margin: 0;
  max-width: 22ch;
  line-height: 1.2;
}

.article-lock-cta p {
  margin: 0;
  color: var(--sb-text-muted);
  max-width: 42ch;
  font-size: 0.95rem;
}

.article-lock-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 8px;
}

.article-lock-badges img {
  display: block;
  height: 44px;
  width: auto;
}

.store-soon {
  position: relative;
  display: inline-flex;
  opacity: 0.7;
  filter: grayscale(0.4);
}

.store-soon-label {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--sb-navy);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
}

.article-cta-more {
  margin-top: 16px;
  font-size: 0.85rem;
  opacity: 0.85;
}

.article-cta-more a {
  color: inherit;
  text-decoration: underline;
  font-weight: 700;
}

.blog-lang-switch {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.blog-empty {
  padding: 40px;
  text-align: center;
  border-radius: var(--sb-radius-lg);
  background: var(--sb-white);
  border: 1px dashed rgba(74, 123, 216, 0.35);
  color: var(--sb-text-muted);
}

.blog-footer {
  text-align: center;
  padding: 32px 24px;
  font-size: 0.9rem;
  color: var(--sb-text-muted);
  border-top: 1px solid rgba(26, 46, 74, 0.08);
}

.blog-legal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  padding: 20px 16px 32px;
  font-size: 0.85rem;
  border-top: 1px solid rgba(26, 46, 74, 0.08);
}

.blog-legal-footer a {
  color: var(--sb-text-muted);
  font-weight: 600;
}

.blog-legal-footer a:hover {
  color: var(--sb-primary);
}

@media (max-width: 768px) {
  .article-dest {
    grid-template-columns: 1fr;
  }

  .article-lock-teaser {
    max-height: 360px;
  }
}
