*, *::before, *::after { box-sizing: border-box; }

/* ══════════════════════════════════════════
   COLOR SYSTEM — única fuente de verdad
══════════════════════════════════════════ */
:root {
  --color-base:         #FAF7F4;   /* blanco cálido — fondo dominante      */
  --color-soft:         #F2DDE4;   /* rosa palo — secciones alternas/cards  */
  --color-accent:       #7A2640;   /* vino profundo — CTAs y acentos        */
  --color-accent-light: #C4537A;   /* rosa medio — hover states             */
  --color-text:         #1A1A1A;   /* texto principal / títulos             */
  --color-text-mid:     #52526A;   /* texto secundario / párrafos           */
  --color-border:       #E8D5DE;   /* bordes sutiles                        */
  --color-white:        #FFFFFF;

  /* Decorativos — no son color de UI, no se usan en texto/botones */
  --deco-blob:          #F2DDE4;
  --deco-blob-dark:     #E8C4D0;
  --deco-dot-light:     #F2D6D6;
  --deco-dot-mid:       #C4537A;
  --deco-dot-dark:      #7A2640;

  /* Quiz palette */
  --qz-fuchsia: #D83B7D;
  --qz-pink:    #E84C8A;
  --qz-coral:   #FF8A6B;
  --qz-peach:   #FFE1D2;
  --qz-blush:   #FDEAF1;
  --qz-text:    #2E2430;
  --qz-mid:     #6B5D66;
  --qz-border:  #F0D6E3;
}

/* ── Base ── */
body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  background: var(--color-base);
  color: var(--color-text);
}

/* ── Grain / textura papel ── */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ── Títulos ── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
h1 { font-size: clamp(2.8rem, 5vw, 5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 500; }

/* ── Labels / tags ── */
.label, .tag, .section-label, [class*="label"], [class*="tag"] {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ── Quotes ── */
blockquote, .quote, [class*="quote"] {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1.4rem;
  line-height: 1.5;
}

/* ── Nav / botones ── */
button, a, nav, .btn, [class*="btn"] {
  font-family: 'DM Sans', sans-serif;
}

/* ── Secciones ── */
#section-hero {
  background: var(--color-base); /* WebGL shader fills this; CSS is fallback */
}
#hero-shader {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
#servicios {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(242,221,228,.6) 0%, transparent 50%),
    var(--color-soft);
}
#servicios-beams {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
#visita {
  background:
    radial-gradient(ellipse at 30% 60%, rgba(194,100,130,.08) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(122,38,64,.05)  0%, transparent 45%),
    var(--color-base);
}
#equipo {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(242,221,228,.6) 0%, transparent 50%),
    var(--color-soft);
}
footer { background: var(--color-soft); border-top: 1px solid var(--color-border); }

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* ── Organic shapes ── */
.organic-shape { border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%; }
.blob-shape    { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }

/* ── Shadows ── */
.shadow-warm {
  box-shadow:
    0 2px 4px  rgba(122,38,64,.04),
    0 8px 24px rgba(122,38,64,.08),
    0 24px 48px rgba(0,0,0,.06);
}
.shadow-card {
  box-shadow:
    0 2px 4px  rgba(122,38,64,.04),
    0 8px 24px rgba(122,38,64,.08),
    0 24px 48px rgba(0,0,0,.06);
}

/* ── Ribbon / motivo visual ── */
.ribbon-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.ribbon-divider::before {
  content: '';
  width: 32px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  border-radius: 2px;
  flex-shrink: 0;
}

.step-marker {
  width: 36px;
  height: 36px;
  background: var(--color-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 500;
  flex-shrink: 0;
  margin: 0 auto 12px;
}

.card-accent {
  border-left: 3px solid var(--color-accent);
  padding-left: 20px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}
.section-tag::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--color-accent);
  flex-shrink: 0;
}

/* ── Doc card hover ── */
.doc-card {
  transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .3s ease;
}
.doc-card:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 4px 8px  rgba(122,38,64,.06),
    0 16px 40px rgba(122,38,64,.12),
    0 32px 64px rgba(0,0,0,.08);
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s ease, transform .75s cubic-bezier(.22,1,.36,1);
}
.reveal.visible { opacity: 1; transform: none; }

/* ── Nav link ── */
.nav-link {
  position: relative;
  color: var(--color-text-mid);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .015em;
  transition: color .2s ease;
  white-space: nowrap;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: var(--color-accent);
  transition: width .25s cubic-bezier(.22,1,.36,1);
}
.nav-link:hover      { color: var(--color-accent); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link.active     { color: var(--color-accent); font-weight: 700; }

/* ── Botón primario — único color de acción en la página ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 11px 28px;
  border-radius: 9999px;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(122,38,64,.30);
  transition:
    background .2s ease,
    transform   .3s cubic-bezier(.34,1.56,.64,1),
    box-shadow  .2s ease;
}
.btn-primary:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(122,38,64,.25);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(122,38,64,.2);
}
.btn-primary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

@keyframes hero-heartbeat {
  0%   { box-shadow: 0 2px 10px rgba(122,38,64,.30), 0 0 0 0 rgba(122,38,64,0.45); transform: scale(1); }
  50%  { box-shadow: 0 2px 10px rgba(122,38,64,.30), 0 0 0 10px rgba(122,38,64,0); transform: scale(1.04); }
  100% { box-shadow: 0 2px 10px rgba(122,38,64,.30), 0 0 0 0 rgba(122,38,64,0); transform: scale(1); }
}
#hero-cta-btn {
  animation: hero-heartbeat 1.8s ease-in-out infinite;
}
#hero-cta-btn:hover {
  animation-play-state: paused;
}

/* ── Service card ── */
.service-card {
  cursor: pointer;
  border-radius: 20px;
  transition: background .25s ease;
}
.service-card:hover { background: var(--color-soft); }

.blob-bg {
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), background .2s ease;
}
.service-card:hover .blob-bg { transform: scale(1.18) rotate(14deg); background: var(--deco-blob-dark); }

.icon-lift {
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.service-card:hover .icon-lift { transform: translateY(-6px) scale(1.06); }

/* ── Step card hover ── */
.step-img {
  transition: transform .45s cubic-bezier(.22,1,.36,1);
}
.step-card:hover .step-img { transform: translateY(-6px); }

/* ── Doc card ── */
.doc-card {
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.doc-card:hover { transform: scale(1.04); }

/* ── Wavy decoration ── */
.wavy-line {
  position: absolute;
  top: 45%; left: 0;
  width: 100%; height: 80px;
  background: url('data:image/svg+xml,<svg width="1200" height="80" viewBox="0 0 1200 80" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 40C150 80 300 0 450 40C600 80 750 0 900 40C1050 80 1200 0 1350 40" stroke="%23E8D5DE" stroke-width="1.2"/></svg>') repeat-x center;
  transform: translateY(-50%);
  opacity: .8;
  pointer-events: none;
}

/* ── Mobile menu ── */
#mobile-menu { display: none; }
#mobile-menu.open { display: flex; }

/* ── Focus ring ── */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Stats badge float ── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
.float-badge { animation: float 4s ease-in-out infinite; }

/* ── TextRotate ── */
@keyframes tr-in  { from { transform: translateY(110%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes tr-out { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-120%); opacity: 0; } }
.tr-clip  { display: inline-block; overflow: hidden; vertical-align: bottom; }
.tr-inner { display: inline-block; }
#hero-tr  { display: block; min-height: 1.2em; }
#visita-tr { display: inline-flex; align-items: baseline; }

/* ── Ribbon-divider: center when inside centered container ── */
.text-center .ribbon-divider { justify-content: center; }

/* ══ Estudios: 4 columnas, left-aligned ══ */
.studies-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}
.studies-grid > .service-card {
  border-radius: 24px;
  border: 1px solid var(--color-border);
  padding: 28px 24px 32px;
  background: rgba(255,255,255,.75);
  text-align: center;
  transition: box-shadow .3s ease, transform .3s cubic-bezier(.22,1,.36,1);
}
.studies-grid > .service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(122,38,64,.1), 0 2px 8px rgba(122,38,64,.06);
}
.study-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  flex-shrink: 0;
  transition: background .25s ease;
}
.service-card:hover .study-icon-circle {
  background: var(--deco-blob-dark);
}
.study-icon-circle svg {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.service-card:hover .study-icon-circle svg {
  transform: scale(1.15);
}
.studies-grid h3 {
  font-size: 1.3rem;
  color: var(--color-accent);
  margin-bottom: 10px;
}
@media (max-width: 860px) {
  .studies-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .studies-grid { grid-template-columns: 1fr; }
}

/* ══ Equipo: layout horizontal alternado ══ */
.team-grid {
  display: flex;
  flex-direction: column;
  gap: 56px;
  max-width: 860px;
  margin: 0 auto;
}
.team-card {
  display: flex;
  align-items: center;
  gap: 48px;
}
.team-grid > .team-card:nth-child(even) {
  flex-direction: row-reverse;
}
.team-grid > .team-card:nth-child(even) .team-text {
  text-align: right;
}
.team-text h4 { margin-bottom: 6px; }
.team-text p  { font-size: 0.9rem; line-height: 1.6; max-width: 320px; }
.team-grid > .team-card:nth-child(even) .team-text p { margin-left: auto; }
@media (max-width: 768px) {
  .team-card { flex-direction: column !important; gap: 20px; }
  .team-grid > .team-card:nth-child(even) .team-text { text-align: left; }
  .team-grid > .team-card:nth-child(even) .team-text p { margin-left: 0; }
}

/* ══ QUIZ: ¿Qué estudio necesitas? ══ */
#medyfen-quiz {
  max-width: 700px;
  margin: 0 auto 72px;
  background:
    radial-gradient(ellipse 65% 55% at 88% 8%,  rgba(216,59,125,.11) 0%, transparent 55%),
    radial-gradient(ellipse 50% 45% at 8%  92%, rgba(255,138,107,.12) 0%, transparent 52%),
    var(--qz-blush);
  border-radius: 28px;
  padding: 26px;
  position: relative;
  overflow: hidden;
}
#medyfen-quiz::before {
  content: '';
  position: absolute;
  bottom: -18px;
  left: -5%;
  width: 110%;
  height: 90px;
  background: rgba(216,59,125,.055);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  pointer-events: none;
}
#medyfen-quiz::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,138,107,.16) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.quiz-shell {
  position: relative;
  z-index: 1;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 28px rgba(216,59,125,.10), 0 1px 4px rgba(0,0,0,.04);
  overflow: hidden;
}
.quiz-shell-inner {
  display: flex;
  align-items: center;
  min-height: 400px;
}
.quiz-shell-text {
  flex: 1;
  padding: 44px 36px 44px 44px;
  min-width: 0;
}
.quiz-illus-col {
  flex-shrink: 0;
  width: 290px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0 12px 0 0;
  position: relative;
}

.quiz-card {
  position: relative;
  z-index: 1;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 28px rgba(216,59,125,.10), 0 1px 4px rgba(0,0,0,.04);
}
.quiz-result-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border: none;
  border-radius: 20px;
  padding: 44px 40px;
  box-shadow: 0 4px 28px rgba(216,59,125,.10);
}

.quiz-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 32px;
  border: none;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--qz-fuchsia) 0%, var(--qz-coral) 100%);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: visible;
  box-shadow: 0 6px 26px rgba(216,59,125,.40), 0 2px 8px rgba(216,59,125,.18);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.quiz-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(216,59,125,.50), 0 3px 10px rgba(216,59,125,.26);
  filter: brightness(1.05);
}

.quiz-option-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 20px;
  border-radius: 16px;
  border: 1.5px solid var(--qz-border);
  background: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--qz-text);
  cursor: pointer;
  text-align: left;
  transition: border-color .18s, background .18s, color .18s, transform .18s, box-shadow .18s;
}
.quiz-option-btn:hover {
  border-color: var(--qz-pink);
  transform: translateY(-1px);
  box-shadow: 0 3px 14px rgba(216,59,125,.11);
}
.quiz-option-btn.selected {
  background: linear-gradient(90deg, var(--qz-fuchsia) 0%, var(--qz-coral) 100%);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 5px 20px rgba(216,59,125,.30);
  transform: translateY(-1px);
}
.quiz-option-btn:focus-visible {
  outline: 2px solid var(--qz-fuchsia);
  outline-offset: 2px;
}
.quiz-opt-icon {
  flex-shrink: 0;
  color: rgba(216,59,125,.45);
  line-height: 0;
  transition: color .18s;
}
.quiz-opt-label { flex: 1; }
.quiz-opt-check-right {
  flex-shrink: 0;
  line-height: 0;
  opacity: 0;
  transition: opacity .18s;
}
.quiz-option-btn:hover .quiz-opt-icon   { color: var(--qz-pink); }
.quiz-option-btn.selected .quiz-opt-icon { color: rgba(255,255,255,.75); }
.quiz-option-btn.selected .quiz-opt-check-right { opacity: 1; }

.quiz-progress-bar {
  height: 6px;
  background: rgba(216,59,125,.10);
  border-radius: 9999px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--qz-fuchsia), var(--qz-coral));
  border-radius: 9999px;
  transition: width .5s cubic-bezier(.22,1,.36,1);
}

.quiz-study-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1.5px solid var(--qz-border);
  box-shadow: 0 2px 8px rgba(216,59,125,.06);
}
.quiz-study-chip svg { width: 20px; height: 20px; }

.quiz-restart-btn:hover {
  border-color: var(--qz-fuchsia) !important;
  color: var(--qz-fuchsia) !important;
}

@keyframes quizSlideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.quiz-animate { animation: quizSlideIn .35s cubic-bezier(.22,1,.36,1) forwards; }

.quiz-star {
  position: absolute;
  pointer-events: none;
  z-index: 20;
  transform-origin: center;
  opacity: 0;
  animation: quiz-star-sparkle var(--dur, .8s) ease-in-out var(--delay, 0s) forwards;
}
@keyframes quiz-star-sparkle {
  0%   { opacity: 0; transform: scale(0) rotate(75deg); }
  40%  { opacity: 1; transform: scale(1) rotate(120deg); }
  100% { opacity: 0; transform: scale(0) rotate(150deg); }
}

.ql-ch {
  display: inline-block;
  opacity: 0;
}
.ql-go .ql-ch {
  animation: ql-drop .36s cubic-bezier(.34,1.56,.64,1) var(--d,0s) forwards;
}
@keyframes ql-drop {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.quiz-divider {
  text-align: center;
  margin: 0 0 40px;
  color: var(--qz-fuchsia);
  font-size: 15px;
  letter-spacing: .14em;
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: .80;
}
.quiz-divider::before, .quiz-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--qz-border);
}

@media (max-width: 600px) {
  #medyfen-quiz        { padding: 18px; }
  .quiz-shell-inner    { flex-direction: column; min-height: auto; }
  .quiz-illus-col      { display: none; }
  .quiz-shell-text     { padding: 32px 28px 24px; }
  .quiz-card, .quiz-result-card { padding: 28px 20px !important; }
  .quiz-option-btn     { font-size: 14px; padding: 13px 14px; }
}

/* ══════════════════════════════════════════
   BLOG — Estilos exclusivos de blog.html
══════════════════════════════════════════ */

.blog-hero {
  padding: 120px 24px 64px;
  background: var(--color-soft);
  text-align: center;
}
@media (max-width: 768px) {
  .blog-hero { padding: 80px 24px 48px; }
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 48px;
  max-width: 800px;
  padding: 0 24px;
}

.category-pill {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-mid);
  padding: 10px 22px;
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.category-pill:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.category-pill.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
}

.blog-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease, opacity .2s ease;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 4px 8px rgba(122,38,64,.06),
    0 16px 40px rgba(122,38,64,.10),
    0 32px 64px rgba(0,0,0,.07);
}

.blog-card-img {
  aspect-ratio: 3 / 2;
  width: 100%;
  background: linear-gradient(135deg, var(--color-soft) 0%, var(--deco-blob-dark) 100%);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.blog-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(122,38,64,.08) 100%);
}

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

.blog-card-cat {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.blog-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-bottom: 8px;
}

.blog-card-time {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  color: var(--color-text-mid);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-card-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--color-text-mid);
  flex: 1;
  margin-bottom: 18px;
}

.blog-card-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: .02em;
  transition: gap .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
}
.blog-card-link:hover { color: var(--color-accent-light); gap: 8px; }

.blog-card[style*="none"] {
  display: none !important;
}
