/* =========================================================
   ROBERT VARÓN - BLOG HOME V1
   Estilos exclusivos de la portada del blog
   ========================================================= */

.rv-blog-home {
  --rvb-gold: #c9a44c;
  --rvb-dark: #111111;
  --rvb-cream: #faf8f3;
  --rvb-muted: #696969;
  color: var(--rvb-dark);
  background: var(--rvb-cream);
  overflow: hidden;
}

.rv-blog-home *,
.rv-blog-home *::before,
.rv-blog-home *::after {
  box-sizing: border-box;
}

.rv-blog-home a {
  text-decoration: none;
}

.rv-blog-home a:focus-visible {
  outline: 3px solid var(--rvb-gold);
  outline-offset: 4px;
}

.rv-blog-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: 30px;
  min-height: 510px;
  padding: 76px max(24px, calc((100vw - 1160px) / 2));
  background:
    radial-gradient(circle at 80% 30%, rgba(201,164,76,.20), transparent 35%),
    linear-gradient(135deg, #111 0%, #222 100%);
  color: #fff;
}

.rv-blog-hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.rv-blog-eyebrow,
.rv-blog-section-kicker {
  display: inline-block;
  color: var(--rvb-gold);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.rv-blog-hero h1 {
  margin: 22px 0;
  color: #fff;
  font-size: clamp(2.6rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.045em;
}

.rv-blog-hero h2 span,
.rv-blog-community h2 span {
  display: block;
  color: var(--rvb-gold);
}

.rv-blog-hero p {
  max-width: 570px;
  color: #ddd;
  font-size: 1.08rem;
  line-height: 1.8;
}

.rv-blog-hero-actions,
.rv-blog-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.rv-blog-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: .94rem;
  font-weight: 750;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.rv-blog-button:hover {
  transform: translateY(-3px);
}

.rv-blog-button-primary {
  color: #171717 !important;
  background: var(--rvb-gold);
}

.rv-blog-button-primary:hover {
  background: #e0bb62;
  box-shadow: 0 10px 25px rgba(201,164,76,.25);
}

.rv-blog-button-outline {
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.4);
}

.rv-blog-button-light {
  color: #222 !important;
  border: 1px solid #d7c8a8;
}

.rv-blog-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 42px;
  color: #ccc;
  font-size: .85rem;
}

.rv-blog-hero-stats strong {
  color: var(--rvb-gold);
  font-size: 1.3rem;
}

.rv-blog-hero-decoration {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
}

.rv-blog-orbit {
  position: absolute;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(201,164,76,.28);
  border-radius: 50%;
}

.rv-blog-orbit-two {
  width: 205px;
  height: 205px;
  transform: rotate(35deg);
  border-style: dashed;
}

.rv-blog-hero-symbol {
  display: grid;
  place-items: center;
  width: 145px;
  height: 145px;
  border: 2px solid var(--rvb-gold);
  border-radius: 30px;
  color: var(--rvb-gold);
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -.08em;
  transform: rotate(-8deg);
  box-shadow: 0 0 65px rgba(201,164,76,.12);
}

.rv-blog-library {
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px 24px;
}

.rv-blog-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}

.rv-blog-section-heading h2 {
  margin: 12px 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.15;
}

.rv-blog-section-heading p {
  max-width: 620px;
  color: var(--rvb-muted);
  line-height: 1.7;
}

.rv-blog-count {
  flex-shrink: 0;
  padding: 10px 15px;
  border: 1px solid #e6ddc9;
  border-radius: 100px;
  color: #66552e;
  font-size: .85rem;
}

.rv-blog-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.rv-blog-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e7dfce;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.045);
  transition: transform .25s ease, box-shadow .25s ease;
}

.rv-blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 50px rgba(0,0,0,.12);
}

.rv-blog-card-visual {
  position: relative;
  display: flex;
  align-items: end;
  min-height: 180px;
  padding: 22px;
  overflow: hidden;
}

.rv-blog-visual-license {
  background: linear-gradient(135deg, #161616, #5a4925);
}

.rv-blog-visual-renewal {
  background: linear-gradient(135deg, #2c2c2c, #9a7839);
}

.rv-blog-visual-fines {
  background: linear-gradient(135deg, #1a1a1a, #595959);
}

.rv-blog-card-visual::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -35px;
  top: -65px;
  border: 25px solid rgba(255,255,255,.07);
  border-radius: 50%;
}

.rv-blog-card-number {
  position: absolute;
  top: 20px;
  left: 22px;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
}

.rv-blog-card-visual-text {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: clamp(1.1rem, 2vw, 1.65rem);
  font-weight: 900;
  letter-spacing: .08em;
}

.rv-blog-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px;
}

.rv-blog-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #777;
  font-size: .78rem;
}

.rv-blog-tag {
  padding: 6px 10px;
  border-radius: 100px;
  color: #72561e;
  background: #f6edda;
  font-weight: 700;
}

.rv-blog-card h3 {
  margin: 20px 0 12px;
  color: #171717;
  font-size: 1.4rem;
  line-height: 1.3;
}

.rv-blog-card p {
  flex: 1;
  color: #626262;
  line-height: 1.75;
}

.rv-blog-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #eee7d8;
  color: #8a681e !important;
  font-weight: 800;
}

.rv-blog-card-link span {
  font-size: 1.3rem;
  transition: transform .2s ease;
}

.rv-blog-card:hover .rv-blog-card-link span {
  transform: translate(3px, -3px);
}

.rv-blog-community {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  align-items: center;
  gap: 35px;
  padding: 75px max(24px, calc((100vw - 1160px) / 2));
  background: #efe8d9;
}

.rv-blog-community h2 {
  margin: 15px 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.15;
}

.rv-blog-community p {
  max-width: 660px;
  color: #5d5d5d;
  line-height: 1.8;
}

.rv-blog-community-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
  margin: auto;
  border: 2px solid #b28e3e;
  border-radius: 50%;
  color: #6d541d;
  transform: rotate(-12deg);
}

.rv-blog-community-badge strong {
  font-size: 4rem;
  line-height: 1;
}

.rv-blog-community-badge span {
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.rv-blog-bottom {
  padding: 65px 24px 35px;
  text-align: center;
  background: #fff;
}

.rv-blog-bottom-content {
  max-width: 680px;
  margin: auto;
}

.rv-blog-bottom h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.rv-blog-bottom p {
  color: #666;
  line-height: 1.7;
}

.rv-blog-bottom-actions {
  justify-content: center;
}

.rv-blog-disclaimer {
  max-width: 760px;
  margin: 65px auto 0;
  font-size: .8rem;
  color: #777;
}

@media (max-width: 900px) {
  .rv-blog-hero,
  .rv-blog-community {
    grid-template-columns: 1fr;
  }

  .rv-blog-hero-decoration {
    display: none;
  }

  .rv-blog-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .rv-blog-hero {
    min-height: auto;
    padding: 65px 22px;
  }

  .rv-blog-library {
    padding: 65px 18px;
  }

  .rv-blog-cards {
    grid-template-columns: 1fr;
  }

  .rv-blog-section-heading {
    align-items: start;
    flex-direction: column;
  }

  .rv-blog-community {
    padding: 65px 22px;
  }

  .rv-blog-community-badge {
    width: 150px;
    height: 150px;
  }

  .rv-blog-hero-stats {
    gap: 12px;
  }

  .rv-blog-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rv-blog-home *,
  .rv-blog-home *::before,
  .rv-blog-home *::after {
    transition: none !important;
  }
}

/* =========================================================
   RV BLOG SEARCH V1
   ========================================================= */

.rv-blog-search-panel {
  margin: 34px 0 30px;
  padding: 24px;
  border: 1px solid #e9dfca;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0,0,0,.035);
}

.rv-blog-search-field label {
  display: block;
  margin-bottom: 10px;
  color: #262626;
  font-size: .92rem;
  font-weight: 800;
}

.rv-blog-search-field input {
  width: 100%;
  min-height: 52px;
  padding: 14px 17px;
  border: 1px solid #d8cfbd;
  border-radius: 12px;
  background: #faf9f6;
  color: #202020;
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.rv-blog-search-field input:focus-visible {
  outline: 2px solid #a77e2b;
  outline-offset: 2px;
  border-color: #a77e2b;
}

.rv-blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.rv-blog-filter {
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid #ded5c4;
  border-radius: 999px;
  background: #fff;
  color: #333;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, color .2s ease,
              border-color .2s ease;
}

.rv-blog-filter:hover {
  border-color: #b28b3c;
  background: #fbf5e8;
}

.rv-blog-filter.is-active {
  border-color: #181818;
  background: #181818;
  color: #fff;
}

.rv-blog-filter:focus-visible {
  outline: 2px solid #a77e2b;
  outline-offset: 3px;
}

.rv-blog-search-status {
  margin: 18px 0 0;
  color: #676767;
  font-size: .88rem;
}

.rv-blog-empty:not([hidden]) {
  display: block;
  margin: 0 0 24px;
  padding: 30px;
  border: 1px dashed #c9b58b;
  border-radius: 16px;
  background: #faf7f0;
  color: #444;
  text-align: center;
}

.rv-blog-card[hidden],
.rv-blog-empty[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .rv-blog-search-panel {
    padding: 18px;
    margin-top: 25px;
  }

  .rv-blog-filter {
    padding: 10px 14px;
    font-size: .84rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rv-blog-filter,
  .rv-blog-search-field input {
    transition: none;
  }
}

/* END RV BLOG SEARCH V1 */