/* === Blog Dr. Casarsa — estilos compartidos (paleta consistente con sitio público) === */
:root {
  /* Paleta blend Hims/Ro/Mayo Clinic */
  --navy: #1F1F1F;            /* charcoal principal */
  --navy-deep: #1F2A36;
  --blue: #2A4D6E;            /* navy autoridad */
  --teal-dark: #A85537;       /* terracota deep — antes verde */
  --teal: #C66A4C;            /* terracota — antes verde */
  --mint: #E5B8A8;            /* dusty rose */
  --light-blue: #5A5450;      /* warm grey */
  --ice: #FBF8F3;             /* off-white — antes ice azul */
  --dark: #1F2A28;            /* navy-deep warm */
  --white: #FAF5EC;           /* cream warm — antes azul-blanco */
  --cream: #F4EFE6;
  --text: #1F1F1F;            /* charcoal */
  --muted: #5A5450;           /* warm grey */
  --line: #E6DFD3;
  --accent-warm: #C66A4C;
  --accent-warm-soft: #E5B8A8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* TOP NAV — cream warm con texto charcoal */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,245,236,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  border-bottom: 1px solid var(--line);
}
.topnav .brand {
  color: var(--text);
  font-family: 'DM Serif Display', 'Fraunces', 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 400;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  letter-spacing: -0.01em;
}
.topnav .brand:hover { color: var(--accent-warm); }
.topnav .nav-links {
  margin-left: auto;
  display: flex;
  gap: 1.4rem;
  list-style: none;
  align-items: center;
}
.topnav .nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  opacity: 0.7;
  transition: color 0.2s, opacity 0.2s;
}
.topnav .nav-links a:hover { color: var(--accent-warm); opacity: 1; }
/* CTA negro Hims/Ro */
.topnav .nav-links a.cta,
.topnav .nav-links li.nav-cta a {
  background: var(--text);
  color: #FAF5EC !important;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--text);
  letter-spacing: -0.005em;
  transition: background 0.2s, transform 0.15s;
  opacity: 1;
  box-shadow: none;
}
.topnav .nav-links a.cta:hover,
.topnav .nav-links li.nav-cta a:hover {
  background: var(--accent-warm);
  color: #FAF5EC !important;
  transform: translateY(-1px);
  border-color: var(--accent-warm);
}

/* HAMBURGER BUTTON — visible solo en mobile */
.topnav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}
.topnav-hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: #1F1F1F;
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.25s ease;
}
.topnav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 7px); }
.topnav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.topnav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -7px); }

/* Article meta — stack vertical en mobile */
@media (max-width: 520px) {
  .article-header .meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }
  .article-header .meta > span:nth-child(2),
  .article-header .meta > span:nth-child(4),
  .article-header .meta > span:nth-child(6) {
    display: none; /* ocultar separadores · */
  }
  .article-hero { aspect-ratio: 4 / 3; }
}

@media (max-width: 720px) {
  .topnav { padding: 0.85rem 1.2rem; position: relative; }
  .topnav-hamburger { display: block; }
  .topnav .nav-links { display: none; }
  .topnav .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FAF5EC;
    padding: 1.4rem 1.8rem;
    margin-left: 0;
    gap: 0.4rem;
    align-items: stretch;
    box-shadow: 0 14px 36px rgba(31,31,31,0.12);
    border-bottom: 1px solid var(--line, #E6DFD3);
    z-index: 100;
  }
  .topnav .nav-links.open li { width: 100%; }
  .topnav .nav-links.open li a {
    color: #1F1F1F !important;
    opacity: 1 !important;
    font-size: 1.05rem;
    padding: 0.7rem 0;
    display: block;
    border-bottom: 1px solid rgba(31,31,31,0.06);
  }
  .topnav .nav-links.open li.nav-cta a {
    background: #1F1F1F;
    color: #FAF5EC !important;
    border-bottom: 0;
    text-align: center;
    margin-top: 0.6rem;
    border-radius: 8px;
    padding: 0.85rem 1rem;
  }
  /* "Más ▾" dropdown se vuelve acordeón inline en mobile */
  .topnav .nav-links.open .nav-more-btn {
    width: 100%;
    text-align: left;
    color: #1F1F1F;
    padding: 0.7rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(31,31,31,0.06);
  }
  .topnav .nav-links.open .nav-more-panel {
    position: static;
    min-width: 0;
    box-shadow: none;
    grid-template-columns: 1fr;
    padding: 0.4rem 0 0.8rem 0;
    background: transparent;
  }
  .topnav .nav-links.open .nav-more-panel a {
    font-size: 0.95rem;
    padding: 0.5rem 0.5rem !important;
    border-bottom: none !important;
    color: #1F1F1F !important;
  }
  .topnav .nav-links.open .nav-more-title {
    font-size: 0.72rem;
    color: #A85537;
    padding: 0.5rem 0 0.3rem;
  }
  /* Page hero responsive */
  .page-hero, .blog-hero, .pr-hero, .so-hero { padding: 4rem 1.5rem 3rem; }
  .page-hero h1, .blog-hero h1 { font-size: clamp(1.9rem, 7vw, 2.4rem); }
  /* Hero de artículo individual */
  .article-hero { border-radius: 0; margin: 0 -1.5rem 1.8rem; }
  /* Touch targets ≥ 44px */
  .btn, .article-content a.btn, .related-list a, .topnav .nav-links a { min-height: 44px; box-sizing: border-box; }
}

/* Dropdown "Más ▾" — mapa completo del sitio */
.topnav .nav-more { position: relative; }
.topnav .nav-more-btn {
  background: none; border: none; color: var(--text);
  font-size: 0.92rem; font-family: inherit; cursor: pointer;
  padding: 0; letter-spacing: -0.005em; opacity: 0.7;
  display: inline-flex; align-items: center; gap: 0.3rem;
  transition: color 0.2s, opacity 0.2s;
}
.topnav .nav-more-btn:hover { color: var(--accent-warm); opacity: 1; }
.topnav .nav-more-btn .caret { font-size: 0.7rem; transition: transform 0.2s; }
.topnav .nav-more.open .nav-more-btn .caret { transform: rotate(180deg); }
.topnav .nav-more-panel {
  position: absolute; top: calc(100% + 12px); right: 0;
  background: #fff; border-radius: 14px;
  box-shadow: 0 20px 60px rgba(11,42,71,0.18), 0 4px 16px rgba(11,42,71,0.08);
  padding: 1.2rem 1.4rem; min-width: 600px;
  display: none; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; z-index: 100;
}
.topnav .nav-more.open .nav-more-panel { display: grid; }
.topnav .nav-more-section { display: flex; flex-direction: column; gap: 0.45rem; }
.topnav .nav-more-title {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--accent-warm); text-transform: uppercase;
  margin-bottom: 0.3rem; padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}
.topnav .nav-more-panel a {
  color: var(--navy) !important; font-size: 0.9rem;
  text-decoration: none; padding: 0.4rem 0.5rem;
  border-radius: 8px; transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.topnav .nav-more-panel a:hover {
  background: var(--cream); color: var(--teal-dark) !important;
}
@media (max-width: 720px) {
  .topnav .nav-more-panel {
    position: static; min-width: 0;
    grid-template-columns: 1fr;
    box-shadow: none; padding: 0.6rem 0;
  }
}

/* BREADCRUMB */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 1.5rem 2rem 0;
  max-width: 1100px;
  margin: 0 auto;
}
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb .sep { margin: 0 0.5rem; opacity: 0.6; }

/* PAGE HERO — banda cream warm unificada para todas las landings internas */
.page-hero,
.blog-hero,
.pr-hero,
.so-hero {
  background: linear-gradient(180deg, #FAF5EC 0%, #F4EFE6 100%);
  color: var(--text);
  padding: 6.5rem 2rem 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before,
.blog-hero::before,
.pr-hero::before,
.so-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 55% 45% at 85% 85%, rgba(198,106,76,0.10), transparent 70%),
    radial-gradient(ellipse 45% 35% at 15% 10%, rgba(107,127,107,0.10), transparent 70%);
  pointer-events: none;
}
.page-hero .container,
.blog-hero .container,
.pr-hero .container,
.so-hero .container {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}
.page-hero .eyebrow,
.blog-hero .eyebrow,
.pr-hero .eyebrow,
.so-hero .eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  color: #A85537;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  font-weight: 600;
  padding: 0.42rem 1rem;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(166,86,55,0.18);
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.page-hero h1,
.blog-hero h1,
.pr-hero h1,
.so-hero h1 {
  font-family: 'DM Serif Display', 'Fraunces', 'Playfair Display', serif;
  font-size: clamp(2.3rem, 5.2vw, 3.4rem);
  color: #1F1F1F;
  margin: 0 0 1.1rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.page-hero p,
.page-hero .lead,
.blog-hero p,
.pr-hero p,
.so-hero p,
.pr-hero .lead,
.so-hero .lead {
  font-size: 1.12rem;
  color: #5A5450;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.62;
}

/* INDEX GRID */
.blog-grid-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}
.category-label {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
  font-weight: 600;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.8rem;
  margin-bottom: 3rem;
}
.blog-card {
  background: var(--bg-card, #fff);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
}
.blog-card:hover {
  border-color: var(--accent-warm);
  box-shadow: 0 12px 32px rgba(31,31,31,0.06);
  transform: translateY(-2px);
}
.blog-card .thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--cream) 0%, var(--accent-warm-soft) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card .thumb.has-image { background: #2A1F18; }
.blog-card .thumb.has-image picture,
.blog-card .thumb.has-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.blog-card:hover .thumb.has-image img { transform: scale(1.04); }
.blog-card .thumb.has-image::after { display: none; }
.blog-card .thumb.has-image .tag {
  z-index: 2;
  background: rgba(31,31,31,0.85);
  color: #fff;
  backdrop-filter: blur(4px);
}

/* ===== ARTICLE HERO — Imagen IA editorial ===== */
.article-hero {
  margin: 0 0 2rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(31,31,31,0.12);
  background: #2A1F18;
}
.article-hero picture,
.article-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 760px) {
  .article-hero { border-radius: 0; margin: 0 -1.5rem 2rem; }
}
.blog-card .thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 50% at 20% 60%, rgba(198,106,76,0.14) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(107,127,107,0.16) 0%, transparent 60%);
  pointer-events: none;
}
.blog-card .thumb-icon {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  color: var(--accent-warm, #C66A4C);
  opacity: 0.88;
  transition: transform 0.35s ease, opacity 0.25s ease;
}
.blog-card:hover .thumb-icon {
  transform: scale(1.07);
  opacity: 1;
}
.blog-card .thumb-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.4;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.blog-card .thumb .tag {
  position: absolute;
  bottom: 0.8rem; left: 0.8rem;
  background: rgba(31,31,31,0.85);
  color: var(--white);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-weight: 600;
  z-index: 1;
}
.blog-card .body { padding: 1.5rem 1.5rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.blog-card h2 {
  font-family: 'DM Serif Display', 'Fraunces', 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.7rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.blog-card .excerpt {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1rem;
  flex: 1;
  line-height: 1.55;
}
.blog-card .meta {
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  gap: 0.8rem;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}
.blog-card .meta .read-time::before { content: '⏱'; margin-right: 0.3rem; }

/* ARTICLE PAGE */
.article-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}
.article-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5eaf0;
}
.article-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
  font-weight: 600;
}
.article-header h1 {
  font-family: 'DM Serif Display', 'Fraunces', 'Playfair Display', serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--text);
  margin-bottom: 1rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.article-header .lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.article-header .meta {
  font-size: 0.85rem;
  color: #8a9aaa;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.article-header .meta strong { color: var(--navy); }
.article-header .meta .read-time::before { content: '⏱'; margin-right: 0.3rem; }

.article-content {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.8;
}
.article-content h2 {
  font-family: 'DM Serif Display', 'Fraunces', 'Playfair Display', serif;
  font-size: 1.7rem;
  color: var(--text);
  margin: 2.8rem 0 1rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.article-content h3 {
  font-size: 1.2rem;
  color: var(--text);
  margin: 1.8rem 0 0.5rem;
  font-weight: 600;
}
.article-content p { margin-bottom: 1.1rem; }
.article-content ul, .article-content ol {
  margin: 0 0 1.2rem 1.4rem;
  color: var(--text);
}
.article-content li { margin-bottom: 0.5rem; }
.article-content strong { color: var(--navy); }
.article-content a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(24,95,165,0.3);
  text-underline-offset: 3px;
  transition: all 0.2s;
}
.article-content a:hover { color: var(--teal); text-decoration-color: var(--teal); }

.article-content blockquote {
  border-left: 4px solid var(--teal);
  background: var(--ice);
  padding: 1rem 1.4rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #3a4a5a;
}

/* CALLOUTS */
.callout {
  background: var(--ice);
  border-left: 4px solid var(--teal);
  border-radius: 0 10px 10px 0;
  padding: 1.2rem 1.4rem;
  margin: 1.8rem 0;
  font-size: 0.97rem;
  line-height: 1.65;
}
.callout strong { color: var(--navy); display: block; margin-bottom: 0.4rem; font-size: 0.95rem; letter-spacing: 0.02em; text-transform: uppercase; font-weight: 700; }
.callout.warning { background: #FFF8E1; border-color: #F5A623; }
.callout.warning strong { color: #8B6800; }

/* AUTHOR VOICE — observaciones clínicas en primera persona del Dr.
   Diferencia visualmente las inserciones de criterio propio vs explicación general. */
.article-content p.author-voice {
  position: relative;
  background: #FBF6EC;
  border-left: 3px solid #C66A4C;
  border-radius: 0 10px 10px 0;
  padding: 1.1rem 1.4rem 1.1rem 2.6rem;
  margin: 1.8rem 0;
  font-size: 1.02rem;
  line-height: 1.7;
  color: #2A2522;
  font-style: normal;
}
.article-content p.author-voice::before {
  content: '"';
  position: absolute;
  left: 0.9rem;
  top: 0.4rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.4rem;
  line-height: 1;
  color: #C66A4C;
  opacity: 0.6;
}
.article-content p.author-voice em { color: #A85537; font-style: italic; font-weight: 500; }
@media (max-width: 520px) {
  .article-content p.author-voice {
    padding: 1rem 1.1rem 1rem 2.2rem;
    font-size: 0.98rem;
  }
  .article-content p.author-voice::before {
    left: 0.7rem;
    font-size: 2rem;
  }
}

/* CTA BOX — cream + terracota acento (consistente con home) */
.cta-box {
  background: linear-gradient(135deg, var(--cream) 0%, var(--accent-warm-soft) 100%);
  color: var(--text);
  padding: 2.4rem 2rem;
  border-radius: 12px;
  margin: 3rem 0;
  text-align: center;
  border: 1px solid var(--line);
}
.cta-box h3 {
  font-family: 'DM Serif Display', 'Fraunces', 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 0.6rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.cta-box p { color: var(--muted); margin-bottom: 1.4rem; font-size: 1rem; line-height: 1.55; }
.cta-box .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--text);
  color: var(--white);
  padding: 0.85rem 1.8rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  border: 1px solid var(--text);
  transition: background 0.2s, transform 0.18s;
}
.cta-box .btn:hover { background: var(--accent-warm); border-color: var(--accent-warm); transform: translateY(-1px); }

/* REFERENCES */
.references {
  margin-top: 3rem;
  padding-top: 1.8rem;
  border-top: 1px solid #e5eaf0;
}
.references h3 {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
  font-weight: 700;
}
.references ol {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  padding-left: 1.4rem;
}
.references li { margin-bottom: 0.6rem; }
.references li em { color: #3a4a5a; }

/* RELATED ARTICLES */
.related {
  margin-top: 3rem;
  padding-top: 1.8rem;
  border-top: 1px solid #e5eaf0;
}
.related h3 {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  /* era var(--teal) #C66A4C → ratio 3.47 (AA fail). Subido a --teal-dark #A85537 → 4.7:1 AA. */
  color: var(--teal-dark);
  margin-bottom: 1rem;
  font-weight: 700;
}
.related-list { display: grid; gap: 0.7rem; }
.related-list a {
  display: block;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid #e5eaf0;
  border-radius: 8px;
  text-decoration: none;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s;
}
.related-list a:hover { border-color: var(--teal); background: var(--ice); transform: translateX(4px); }
.related-list a::before { content: '→'; color: var(--teal); margin-right: 0.5rem; font-weight: 700; }

/* AUTHOR BOX */
.author-box {
  margin: 3rem 0;
  padding: 1.5rem;
  background: var(--ice);
  border-radius: 12px;
  display: flex;
  gap: 1.2rem;
  align-items: center;
}
.author-box img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid #fff;
}
.author-box .info h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
}
.author-box .info p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}
.author-box .info .credentials {
  font-size: 0.78rem;
  color: var(--teal);
  margin-top: 0.4rem;
  font-weight: 500;
}
@media (max-width: 480px) {
  .author-box { flex-direction: column; text-align: center; }
}

/* FAB WhatsApp (shared) */
.wa-fab {
  position: fixed;
  bottom: 1.4rem; right: 1.4rem;
  z-index: 999;
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: linear-gradient(135deg, #C66A4C 0%, #A85537 100%); color: #fff;
  padding: 0.85rem 1.25rem 0.85rem 1.05rem;
  border-radius: 50px;
  text-decoration: none; font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 8px 24px rgba(37,211,102,0.35), 0 2px 6px rgba(0,0,0,0.15);
  transition: all 0.25s ease;
}
.wa-fab:hover {
  background: linear-gradient(135deg, #A85537 0%, #8B4329 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(166, 86, 47, 0.40);
}
@media (max-width: 480px) {
  .wa-fab { padding: 0.85rem 1rem; }
  .wa-fab .wa-label { display: none; }
}

/* FAB Reseña Google (bottom-left, complementario al WA FAB) */
.review-fab {
  position: fixed;
  bottom: 1.4rem; left: 1.4rem;
  z-index: 998;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #422006;
  padding: 0.7rem 1.05rem 0.7rem 0.9rem;
  border-radius: 50px;
  text-decoration: none; font-weight: 700;
  font-size: 0.88rem; line-height: 1;
  box-shadow: 0 6px 18px rgba(245,158,11,0.32), 0 2px 6px rgba(0,0,0,0.12);
  transition: all 0.25s ease;
  font-family: 'DM Sans', sans-serif;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}
.review-fab.review-fab--visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.review-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(245,158,11,0.45), 0 4px 10px rgba(0,0,0,0.18);
}
.review-fab svg { flex-shrink: 0; }
.review-fab .review-fab__close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  margin-left: 4px; padding: 0; border: 0;
  background: rgba(66,32,6,0.18);
  border-radius: 50%;
  color: #422006;
  font-size: 12px; font-weight: 700; line-height: 1; cursor: pointer;
  transition: background 0.15s;
}
.review-fab .review-fab__close:hover { background: rgba(66,32,6,0.32); }
@media (max-width: 480px) {
  .review-fab { padding: 0.6rem 0.85rem 0.6rem 0.75rem; font-size: 0.82rem; bottom: 1rem; left: 1rem; }
  .review-fab .review-fab__label { display: none; }
}

/* FOOTER */
footer.site-footer {
  background: #1F2A36;
  color: #C8C0B5;
  padding: 4rem 2rem 2rem;
  font-size: 0.92rem;
  margin-top: 4rem;
  border-top: 4px solid #C66A4C;
}
footer.site-footer .footer-cols {
  max-width: 1100px;
  margin: 0 auto 2.5rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 3rem;
  text-align: left;
}
footer.site-footer h4 {
  color: #FAF5EC;
  font-family: 'DM Serif Display', 'Playfair Display', serif;
  font-size: 1.05rem;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
  font-weight: 400;
}
footer.site-footer .footer-cols p,
footer.site-footer .footer-cols li {
  line-height: 1.6;
  margin-bottom: 0.55rem;
  color: #C8C0B5;
  font-size: 0.9rem;
}
footer.site-footer .footer-cols ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer .footer-cols .muted { color: #B0AAA3; font-size: 0.82rem; }  /* era #8A8480 — ratio 3.95:1 (AA fail) sobre footer dark */
footer.site-footer .footer-cols strong { color: #FAF5EC; font-weight: 600; }
footer.site-footer .footer-cols a {
  color: #E5B8A8;
  text-decoration: none;
  transition: color 0.2s;
  margin: 0;
}
footer.site-footer .footer-cols a:hover { color: #FAF5EC; text-decoration: underline; }
footer.site-footer .footer-cols .icon {
  display: inline-block;
  width: 22px;
  margin-right: 0.4rem;
  opacity: 0.85;
}
footer.site-footer .footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(232,223,211,0.08);
}
footer.site-footer .footer-bottom p { color: #C8C0B5; font-size: 0.82rem; margin-bottom: 0.45rem; line-height: 1.55; }  /* era #8A8480 — ratio 3.95:1 (AA fail), matcheado con resto del footer */
footer.site-footer .footer-bottom a {
  color: #C8C0B5;
  text-decoration: none;
  margin: 0 0.35rem;
}
footer.site-footer .footer-bottom a:hover { color: #FAF5EC; text-decoration: underline; }
footer.site-footer .legal {
  font-size: 0.8rem;
  /* era #6B655F — ratio ~2.5:1 sobre footer dark, ilegible (no cumple WCAG ni para texto grande).
     Subido a #ADA59C → ~5:1 contraste, cumple WCAG AA. */
  color: #ADA59C;
  margin-top: 0.8rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  font-style: italic;
}
@media (max-width: 760px) {
  footer.site-footer .footer-cols { grid-template-columns: 1fr; gap: 2rem; }
  footer.site-footer { padding: 3rem 1.4rem 1.5rem; }
}


/* FAQ Block */
.faq-block { margin: 32px 0; padding: 24px; background: #f7faff; border-radius: 12px; border: 1px solid #d9e6f5; }
.faq-block h2 { margin-top: 0; color: var(--text); font-size: 1.4rem; }
.faq-block details { margin: 12px 0; padding: 14px 16px; background: #fff; border: 1px solid #e2eaf2; border-radius: 8px; }
.faq-block details[open] { border-color: var(--text); }
.faq-block summary { cursor: pointer; font-weight: 600; color: var(--text); font-size: 1.02rem; list-style: none; padding-right: 24px; position: relative; }
.faq-block summary::-webkit-details-marker { display: none; }
.faq-block summary::after { content: "+"; position: absolute; right: 0; top: 0; font-size: 1.4rem; line-height: 1; color: var(--text); transition: transform 0.2s; }
.faq-block details[open] summary::after { content: "−"; }
.faq-block .answer { margin-top: 10px; color: #1f2d3d; line-height: 1.6; font-size: 0.97rem; }


/* TOC + Last Reviewed */
.article-toc { margin: 24px 0; padding: 18px 22px; background: linear-gradient(135deg, var(--ice) 0%, var(--cream) 100%); border-radius: 10px; border-left: 4px solid var(--accent-warm); }
.article-toc-title { font-size: 13px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 10px; }
.article-toc ol { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.8; color: #1f2d3d; }
.article-toc ol li a { color: var(--text); text-decoration: none; border-bottom: 1px solid transparent; }
.article-toc ol li a:hover { border-bottom-color: var(--accent-warm); color: var(--accent-warm); }
.last-reviewed { font-size: 13px; color: var(--accent-warm); font-weight: 500; }
