/* Blog editorial · Variedades Ivette
   CSS encapsulado: no altera estilos generales del catálogo. */
.ivblog {
  --ivblog-line: #e9e3e8;
  --ivblog-ink: #242028;
  background: #fff;
  color: var(--ivblog-ink);
}

.ivblog :is(h1, h2, h3, p, figure, blockquote) {
  margin-top: 0;
}

.ivblog :is(a, button, input):focus-visible {
  outline: 3px solid var(--ivette-rosa);
  outline-offset: 3px;
}

.ivblog-hero {
  background:
    radial-gradient(circle at 85% 30%, #f3eefb 0, transparent 34%),
    linear-gradient(115deg, #fff5f8 0%, #fff 54%, #faf8fc 100%);
  border-bottom: 1px solid #f0eaf0;
}

.ivblog-hero__inner {
  padding: 108px 0 110px;
  max-width: var(--container);
}

.ivblog-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.05rem, 7.2vw, 6.8rem);
  font-weight: 500;
  letter-spacing: -0.048em;
  line-height: 0.99;
  max-width: 890px;
  margin: 8px 0 27px;
}

.ivblog-hero h1 em {
  font-weight: 400;
  color: var(--ivette-rosa);
}

.ivblog-hero p {
  max-width: 580px;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  color: var(--gris-700);
  line-height: 1.75;
  margin-bottom: 28px;
}

.ivblog-hero__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  font-weight: 800;
  color: var(--ivette-rosa);
}

.ivblog-hero__link i {
  transition: transform 0.2s;
}

.ivblog-hero__link:hover i {
  transform: translateY(4px);
}

.ivblog-index {
  padding: 82px 0 100px;
}

.ivblog-index__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 34px;
  margin-bottom: 34px;
}

.ivblog-index__heading h2,
.ivblog-related h2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  line-height: 1.12;
  margin: 0;
}

.ivblog-index__heading > p {
  max-width: 350px;
  color: var(--gris-700);
  margin: 0;
}

.ivblog-categorias {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 26px;
}

.ivblog-categorias a {
  padding: 9px 15px;
  border: 1px solid var(--ivblog-line);
  border-radius: 999px;
  color: var(--gris-700);
  font-size: 0.79rem;
  font-weight: 800;
  transition: 0.2s ease;
}

.ivblog-categorias a:hover {
  color: var(--ivette-rosa);
  border-color: #f6b6ca;
  background: var(--ivette-rosa-suave);
}

.ivblog-categorias a.is-active {
  color: #fff;
  background: var(--ivette-azul);
  border-color: var(--ivette-azul);
}

.ivblog-search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 570px;
  padding: 6px 7px 6px 19px;
  background: #fff;
  border: 1px solid var(--ivblog-line);
  border-radius: 14px;
  margin-bottom: 42px;
  box-shadow: 0 6px 24px rgba(37, 25, 33, 0.03);
}

.ivblog-search > i {
  color: var(--gris-500);
}

.ivblog-search input {
  width: 100%;
  min-width: 0;
  flex: 1;
  outline: none !important;
  border: 0;
  background: transparent;
  font-size: 0.92rem;
  color: var(--ivblog-ink);
}

.ivblog-search input:focus-visible {
  box-shadow: none;
}

.ivblog-search button {
  background: var(--ivette-rosa);
  color: white;
  padding: 12px 20px;
  border: 0;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.83rem;
}

.ivblog-search button:hover {
  background: var(--ivette-rosa-oscuro);
}

.ivblog-featured {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  min-height: 420px;
  overflow: hidden;
  margin-bottom: 50px;
  background: #fbf7fa;
  border: 1px solid #f2eaf0;
  border-radius: 26px;
}

.ivblog-featured__visual {
  min-height: 380px;
  display: block;
  background: linear-gradient(140deg, #f8dfe9, #e4ddf5);
  overflow: hidden;
}

.ivblog-featured__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ivblog-featured__visual:hover img {
  transform: scale(1.035);
}

.ivblog-featured__placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 380px;
  font-size: 6rem;
  color: rgba(57, 48, 134, 0.35);
}
/* Portada editorial de respaldo mientras aún no existe una fotografía cargada. */
.ivblog-featured__placeholder {
  position: relative;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  text-align: center;
  background:
    radial-gradient(circle at 70% 25%, #fcf2f7, transparent 45%),
    linear-gradient(140deg, #f5dfe9 5%, #e0d8f4 95%);
}

.ivblog-featured__placeholder-kicker {
  font: 800 0.69rem var(--font-body);
  letter-spacing: 0.2em;
  color: #604c79;
}

.ivblog-featured__placeholder-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  font-weight: 500;
  line-height: 1.1;
  max-width: 340px;
  color: #45395f;
}

.ivblog-featured__copy {
  padding: clamp(32px, 5vw, 68px);
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
}

.ivblog-featured__label {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: var(--ivette-rosa);
  margin-bottom: 22px;
}

.ivblog-featured__category {
  font-size: 0.81rem;
  color: var(--ivette-azul);
  font-weight: 800;
  margin-bottom: 14px;
}

.ivblog-featured__copy h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.3vw, 3.3rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}

.ivblog-featured__copy p {
  color: var(--gris-700);
  font-size: 0.95rem;
  margin: 0 0 29px;
  line-height: 1.75;
}

.ivblog-featured__copy .btn {
  font-size: 0.84rem;
}

.ivblog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 27px;
}

.ivblog-grid:empty {
  display: none;
}

.ivblog-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--ivblog-line);
  border-radius: 20px;
  overflow: hidden;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.ivblog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
}

.ivblog-card__visual {
  display: block;
  aspect-ratio: 1.48;
  overflow: hidden;
  background: linear-gradient(130deg, #fce4ed, #ebe6f7);
}

.ivblog-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.ivblog-card:hover img {
  transform: scale(1.035);
}

.ivblog-card__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 3.3rem;
  color: rgba(57, 48, 134, 0.4);
}

.ivblog-card__body {
  padding: 24px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.ivblog-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.72rem;
  margin-bottom: 14px;
}

.ivblog-card__meta span {
  font-weight: 900;
  color: var(--ivette-rosa);
}

.ivblog-card__meta time {
  color: var(--gris-500);
}

.ivblog-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 12px;
}

.ivblog-card__body p {
  color: var(--gris-700);
  font-size: 0.87rem;
  line-height: 1.72;
  margin: 0 0 22px;
  flex: 1;
}

.ivblog-card__read {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--ivette-azul);
}

.ivblog-card__read:hover {
  color: var(--ivette-rosa);
}

.ivblog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 19px;
  margin-top: 48px;
  font-size: 0.85rem;
}

.ivblog-pagination span {
  color: var(--gris-700);
}

.ivblog-pagination a {
  font-weight: 800;
  border: 1px solid var(--ivblog-line);
  padding: 11px 17px;
  border-radius: 999px;
}

.ivblog-pagination a:hover {
  background: var(--ivette-rosa-suave);
  color: var(--ivette-rosa);
}

.ivblog-empty {
  text-align: center;
  padding: 80px 20px;
  border: 1px dashed #e5dce5;
  border-radius: 22px;
  background: #fcfafc;
}

.ivblog-empty > i {
  font-size: 2.6rem;
  color: var(--ivette-rosa);
}

.ivblog-empty h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  margin: 12px 0;
}

.ivblog-empty p {
  color: var(--gris-700);
  margin: 0 auto 26px;
  max-width: 490px;
}

.ivblog-finale {
  text-align: center;
  padding: 78px 0;
  background: var(--ivette-azul-suave);
}

.ivblog-finale span {
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  color: var(--ivette-azul);
}

.ivblog-finale p {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 3.3rem);
  max-width: 790px;
  line-height: 1.22;
  margin: 20px auto 0;
}

.ivblog-sr-only {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}
/* Página individual de artículo */
.ivblog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 25px 0;
  color: var(--gris-700);
  font-size: 0.8rem;
}

.ivblog-breadcrumb i {
  font-size: 0.65rem;
  color: var(--gris-500);
}

.ivblog-breadcrumb a:hover {
  color: var(--ivette-rosa);
}

.ivblog-article__header {
  text-align: center;
  padding: 45px 0 50px;
}

.ivblog-article__header .eyebrow {
  justify-content: center;
}

.ivblog-article__header h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.85rem, 6vw, 5.7rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  margin: 13px auto 22px;
  max-width: 990px;
}

.ivblog-article__excerpt {
  max-width: 760px;
  font-size: clamp(1.03rem, 1.6vw, 1.18rem);
  color: var(--gris-700);
  line-height: 1.7;
  margin: 0 auto 26px;
}

.ivblog-article__meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.82rem;
  color: var(--gris-700);
}

.ivblog-article__meta i {
  margin-right: 5px;
  color: var(--ivette-rosa);
}

.ivblog-article__cover {
  max-width: 1120px;
  margin: 0 auto 56px !important;
}

.ivblog-article__cover img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 24px;
}

.ivblog-article__body {
  max-width: 760px;
  width: min(calc(100% - 40px), 760px);
  margin: 0 auto;
  color: #343039;
}

.ivblog-article__body h2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.027em;
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  line-height: 1.15;
  margin: 52px 0 21px;
}

.ivblog-article__body h3 {
  font-size: 1.19rem;
  margin: 35px 0 15px;
  font-weight: 800;
}

.ivblog-article__body > p {
  font-size: 1.055rem;
  line-height: 1.95;
  margin: 0 0 23px;
  white-space: pre-line;
}

.ivblog-article__body > ul {
  font-size: 1.04rem;
  line-height: 1.9;
  padding-left: 27px;
  margin: 0 0 32px;
}

.ivblog-article__body li {
  padding: 5px 0;
}

.ivblog-article__body blockquote {
  position: relative;
  margin: 42px 0;
  padding: 28px 28px 27px 32px;
  border-left: 4px solid var(--ivette-rosa);
  background: #fff5f8;
  border-radius: 0 14px 14px 0;
}

.ivblog-article__body blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.7vw, 2.05rem);
  line-height: 1.36;
  margin: 0;
  color: #4c3043;
}

.ivblog-article__image {
  margin: 40px 0 !important;
}

.ivblog-article__image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 15px;
}

.ivblog-article__image figcaption {
  text-align: center;
  color: var(--gris-500);
  font-size: 0.77rem;
  margin-top: 12px;
}

.ivblog-sources,
.ivblog-article__footer {
  max-width: 760px;
  width: min(calc(100% - 40px), 760px);
  margin: 56px auto 0;
  border-top: 1px solid var(--ivblog-line);
  padding-top: 28px;
}

.ivblog-sources h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
}

.ivblog-sources ul {
  padding-left: 20px;
  line-height: 1.8;
  color: var(--gris-700);
  font-size: 0.86rem;
}

.ivblog-sources li {
  margin: 9px 0;
}

.ivblog-sources a {
  color: var(--ivette-azul);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ivblog-article__footer p {
  color: var(--gris-700);
  margin-bottom: 15px;
}

.ivblog-article__footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ivette-rosa);
  font-size: 0.88rem;
  font-weight: 800;
}

.ivblog-related {
  padding: 95px 0 100px;
}

.ivblog-related .ivblog-grid {
  margin-top: 30px;
}

@media (max-width: 970px) {
  .ivblog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ivblog-featured {
    grid-template-columns: 1fr 1fr;
  }

  .ivblog-featured__visual {
    min-height: 330px;
  }

  .ivblog-featured__copy {
    padding: 32px;
  }

  .ivblog-index__heading {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 700px) {
  .ivblog-hero__inner {
    padding: 72px 0 74px;
  }

  .ivblog-hero h1 {
    font-size: clamp(2.7rem, 12vw, 4.8rem);
  }

  .ivblog-index {
    padding: 58px 0 68px;
  }

  .ivblog-featured {
    grid-template-columns: 1fr;
  }

  .ivblog-featured__visual,
  .ivblog-featured__placeholder {
    min-height: 270px;
    max-height: 320px;
  }

  .ivblog-featured__visual img {
    height: 290px;
  }

  .ivblog-featured__copy {
    padding: 32px 26px;
  }

  .ivblog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ivblog-card__visual {
    aspect-ratio: 1.65;
  }

  .ivblog-search button {
    padding: 12px 13px;
  }

  .ivblog-article__header {
    padding: 25px 0 35px;
  }

  .ivblog-article__cover {
    margin-bottom: 35px !important;
  }

  .ivblog-article__cover img {
    border-radius: 13px;
  }

  .ivblog-article__body > p {
    font-size: 1rem;
    line-height: 1.85;
  }

  .ivblog-related {
    padding: 65px 0;
  }

  .ivblog-finale {
    padding: 58px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ivblog * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* =============================================
   TIPOGRAFÍA DEL BLOG · Variedades Ivette
   Misma familia usada por la página principal:
   Montserrat. Se limita a las páginas del blog.
   ============================================= */
body.ivblog-page {
  --font-display: "Montserrat", Arial, sans-serif;
  --font-body: "Montserrat", Arial, sans-serif;
  font-family: var(--font-body);
}

body.ivblog-page .ivblog {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
}

/* ======================================================
   BLOG · ARMONIZACION CON LA PAGINA PRINCIPAL DE IVETTE
   Pegar al FINAL de wwwroot/css/blog.css
   No modifica los estilos de otras páginas.
   ====================================================== */

body.ivblog-page .ivblog {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

body.ivblog-page
  .ivblog
  :is(h1, h2, h3, h4, p, a, span, button, input, time, blockquote) {
  font-family: "Montserrat", Arial, sans-serif;
}

/* Presentación: conservar protagonismo sin títulos gigantes */
body.ivblog-page .ivblog-hero__inner {
  padding-top: 76px;
  padding-bottom: 78px;
}

body.ivblog-page .ivblog-hero h1 {
  max-width: 720px;
  font-size: clamp(32px, 3.7vw, 52px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}

body.ivblog-page .ivblog-hero h1 em {
  font-weight: 600;
}

body.ivblog-page .ivblog-hero p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 23px;
}

body.ivblog-page .ivblog-index {
  padding-top: 60px;
  padding-bottom: 72px;
}

body.ivblog-page .ivblog-index__heading {
  margin-bottom: 25px;
}

body.ivblog-page .ivblog-index__heading h2,
body.ivblog-page .ivblog-related h2 {
  font-size: clamp(20px, 1.35rem + 0.25vw, 26px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

/* Artículo principal destacado */
body.ivblog-page .ivblog-featured {
  min-height: 350px;
  margin-bottom: 36px;
  border-radius: 20px;
}

body.ivblog-page .ivblog-featured__visual,
body.ivblog-page .ivblog-featured__placeholder {
  min-height: 330px;
}

body.ivblog-page .ivblog-featured__copy {
  padding: clamp(25px, 3.5vw, 44px);
}

body.ivblog-page .ivblog-featured__copy h3 {
  font-size: clamp(22px, 2.4vw, 29px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}

body.ivblog-page .ivblog-featured__placeholder-title {
  font-size: clamp(20px, 2.2vw, 29px);
  font-weight: 600;
  line-height: 1.3;
}

body.ivblog-page .ivblog-featured__copy p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 22px;
}

/* Tarjetas de artículos */
body.ivblog-page .ivblog-grid {
  gap: 20px;
}

body.ivblog-page .ivblog-card {
  border-radius: 17px;
}

body.ivblog-page .ivblog-card__body {
  padding: 20px;
}

body.ivblog-page .ivblog-card h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0;
  margin-bottom: 10px;
}

body.ivblog-page .ivblog-card__body p {
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 16px;
}

/* Página de lectura */
body.ivblog-page .ivblog-article__header {
  padding-top: 32px;
  padding-bottom: 35px;
}

body.ivblog-page .ivblog-article__header h1 {
  max-width: 850px;
  font-size: clamp(29px, 3.6vw, 46px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

body.ivblog-page .ivblog-article__excerpt {
  font-size: 15px;
  line-height: 1.75;
}

body.ivblog-page .ivblog-article__body h2 {
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  margin: 42px 0 16px;
}

body.ivblog-page .ivblog-article__body h3 {
  font-size: 17px;
  font-weight: 600;
}

body.ivblog-page .ivblog-article__body > p,
body.ivblog-page .ivblog-article__body > ul {
  font-size: 15px;
  line-height: 1.85;
}

body.ivblog-page .ivblog-article__body blockquote p {
  font-size: clamp(17px, 2.1vw, 22px);
  font-weight: 500;
  line-height: 1.55;
}

body.ivblog-page .ivblog-sources h2 {
  font-size: 20px;
  font-weight: 600;
}

body.ivblog-page .ivblog-related {
  padding-top: 68px;
  padding-bottom: 75px;
}

body.ivblog-page .ivblog-finale {
  padding: 55px 0;
}

body.ivblog-page .ivblog-finale p {
  font-size: clamp(20px, 2.7vw, 29px);
  font-weight: 500;
  line-height: 1.45;
}

@media (max-width: 700px) {
  body.ivblog-page .ivblog-hero__inner {
    padding-top: 50px;
    padding-bottom: 56px;
  }

  body.ivblog-page .ivblog-hero h1 {
    font-size: clamp(29px, 7.5vw, 38px);
  }

  body.ivblog-page .ivblog-index {
    padding-top: 46px;
    padding-bottom: 55px;
  }

  body.ivblog-page .ivblog-featured__visual,
  body.ivblog-page .ivblog-featured__placeholder {
    min-height: 260px;
  }

  body.ivblog-page .ivblog-featured__copy {
    padding: 26px 22px;
  }

  body.ivblog-page .ivblog-article__header h1 {
    font-size: clamp(28px, 7.5vw, 36px);
  }

  body.ivblog-page .ivblog-article__body > p,
  body.ivblog-page .ivblog-article__body > ul {
    font-size: 15px;
    line-height: 1.8;
  }
}

/* ======================================================
   BLOG · APARIENCIA OSCURA
   La selección se controla desde el selector global del sitio.
   Las fotografías y portadas editoriales conservan su color original.
   ====================================================== */

html[data-theme="dark"] body.ivblog-page {
  background: var(--theme-page);
  color: var(--theme-text);
}

html[data-theme="dark"] body.ivblog-page .ivblog {
  --ivblog-line: var(--theme-border);
  --ivblog-ink: var(--theme-text);
  --gris-700: var(--theme-muted);
  --gris-500: #a99aaa;
  --ivette-azul: var(--theme-info);
  --ivette-azul-suave: var(--theme-info-soft);
  --ivette-rosa-suave: var(--theme-accent-soft);
  background: var(--theme-page);
  color: var(--theme-text);
}

html[data-theme="dark"] body.ivblog-page .ivblog-hero {
  background:
    radial-gradient(circle at 85% 30%, rgba(200, 187, 255, 0.12) 0, transparent 34%),
    linear-gradient(115deg, #241d27 0%, var(--theme-page) 54%, #211b25 100%);
  border-bottom-color: var(--theme-border);
}

html[data-theme="dark"] body.ivblog-page .ivblog-search,
html[data-theme="dark"] body.ivblog-page .ivblog-card {
  background: var(--theme-surface);
  border-color: var(--theme-border);
}

html[data-theme="dark"] body.ivblog-page .ivblog-search {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] body.ivblog-page .ivblog-search input {
  color: var(--theme-text);
}

html[data-theme="dark"] body.ivblog-page .ivblog-featured {
  background: var(--theme-surface-soft);
  border-color: var(--theme-border);
}

html[data-theme="dark"] body.ivblog-page .ivblog-card:hover {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] body.ivblog-page .ivblog-categorias a {
  color: var(--theme-muted);
  border-color: var(--theme-border);
  background: var(--theme-surface);
}

html[data-theme="dark"] body.ivblog-page .ivblog-categorias a:hover {
  color: var(--theme-accent);
  border-color: var(--theme-accent-border);
  background: var(--theme-accent-soft);
}

html[data-theme="dark"] body.ivblog-page .ivblog-categorias a.is-active {
  color: var(--theme-info);
  border-color: var(--theme-info);
  background: var(--theme-info-soft);
}

html[data-theme="dark"] body.ivblog-page .ivblog-pagination a {
  color: var(--theme-text);
  border-color: var(--theme-border);
  background: var(--theme-surface);
}

html[data-theme="dark"] body.ivblog-page .ivblog-pagination a:hover {
  color: var(--theme-accent);
  background: var(--theme-accent-soft);
}

html[data-theme="dark"] body.ivblog-page .ivblog-empty {
  background: var(--theme-surface);
  border-color: var(--theme-border);
}

html[data-theme="dark"] body.ivblog-page .ivblog-finale {
  background: var(--theme-info-soft);
  border-top: 1px solid var(--theme-border);
}

html[data-theme="dark"] body.ivblog-page .ivblog-article__body {
  color: var(--theme-text);
}

html[data-theme="dark"] body.ivblog-page .ivblog-article__body blockquote {
  background: var(--theme-accent-soft);
}

html[data-theme="dark"] body.ivblog-page .ivblog-article__body blockquote p {
  color: #ffd3e2;
}

html[data-theme="dark"] body.ivblog-page .ivblog-sources,
html[data-theme="dark"] body.ivblog-page .ivblog-article__footer {
  border-top-color: var(--theme-border);
}

/* Compartir una publicación */
.ivblog-share {
  padding: clamp(26px, 5vw, 42px);
  border: 1px solid var(--theme-border, #eadfe6);
  border-radius: 22px;
  background: var(--theme-surface-soft, #fbf7fa);
  text-align: center;
}

.ivblog-share__eyebrow {
  display: block;
  margin-bottom: 9px;
  color: var(--theme-accent, var(--ivette-rosa));
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

body.ivblog-page .ivblog-share h2 {
  margin: 0 0 12px;
  color: var(--theme-text, var(--ivblog-ink));
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  line-height: 1.25;
}

body.ivblog-page .ivblog-share > p:not(.ivblog-share__status) {
  max-width: 590px;
  margin: 0 auto 24px;
  color: var(--theme-muted, var(--gris-700));
  line-height: 1.7;
}

.ivblog-share__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ivblog-share__action,
.ivblog-article__footer .ivblog-share__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 800 0.79rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.ivblog-share__action:hover {
  transform: translateY(-2px);
}

.ivblog-share__action--whatsapp,
.ivblog-article__footer .ivblog-share__action--whatsapp {
  background: #128c52;
  color: #fff;
}

.ivblog-share__action--whatsapp:hover {
  background: #0d7543;
  color: #fff;
}

.ivblog-share__action--native {
  background: var(--ivette-rosa);
  color: #fff;
}

.ivblog-share__action--copy {
  border-color: var(--theme-border, #dfd4dc);
  background: var(--theme-surface, #fff);
  color: var(--theme-text, var(--ivblog-ink));
}

.ivblog-share__action--copy:hover {
  border-color: var(--theme-accent-border, #e6aec2);
  background: var(--theme-accent-soft, #fff2f6);
  color: var(--theme-accent, var(--ivette-rosa));
}

.ivblog-share__action[hidden] {
  display: none !important;
}

.ivblog-share__status {
  min-height: 20px;
  margin: 13px 0 -8px;
  color: var(--theme-success, #167648);
  font-size: 0.76rem;
}

.ivblog-article__footer .ivblog-article__back {
  margin-top: 24px;
}

@media (max-width: 560px) {
  .ivblog-share__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ivblog-share__action {
    width: 100%;
  }
}
