/*
Theme Name: MOM
Theme URI: https://github.com/tostis005/MOM
Author: MOM
Description: Tema editorial premium para maternidad, crianza y vida familiar, conectado con Content Contract v2.
Version: 0.2.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: mom
*/

:root {
  --mom-bg: #f8f4ef;
  --mom-paper: #fffdfb;
  --mom-ink: #292322;
  --mom-muted: #746b66;
  --mom-line: #e9dfd7;
  --mom-rose: #a5645c;
  --mom-rose-deep: #7c4944;
  --mom-blush: #f1ddd4;
  --mom-sand: #eadfd4;
  --mom-sage: #7f8b78;
  --mom-radius: 22px;
  --mom-shadow: 0 20px 60px rgba(67, 47, 42, .09);
  --mom-max: 1360px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mom-bg);
  color: var(--mom-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
button, input { font: inherit; }
.container { width: min(calc(100% - 64px), var(--mom-max)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,253,251,.94);
  border-bottom: 1px solid rgba(233,223,215,.86);
  backdrop-filter: blur(18px);
}
.header-main {
  min-height: 84px;
  display: grid;
  grid-template-columns: minmax(210px, auto) 1fr auto;
  gap: 34px;
  align-items: center;
}
.site-brand { text-decoration: none; display: inline-flex; align-items: center; gap: 18px; }
.site-brand strong { font: 700 43px/.9 Georgia, "Times New Roman", serif; letter-spacing: -.06em; white-space: nowrap; }
.site-brand strong::after { content: "."; color: var(--mom-ink); }
.site-brand small { max-width: 110px; color: #987c73; font-size: 9px; line-height: 1.35; letter-spacing: .16em; text-transform: uppercase; }
.primary-nav { justify-self: center; }
.primary-nav ul { display: flex; align-items: center; flex-wrap: wrap; gap: 34px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { position: relative; text-decoration: none; font-size: 13px; font-weight: 650; }
.primary-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 1px; background: var(--mom-rose); transition: right .2s ease; }
.primary-nav a:hover::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-search { width: 42px; height: 42px; display: grid; place-items: center; text-decoration: none; font-size: 23px; border-radius: 50%; }
.header-search:hover { background: #f4ece6; }
.header-cta { display: inline-flex; align-items: center; min-height: 42px; padding: 0 20px; border-radius: 999px; background: var(--mom-rose); color: #fff; text-decoration: none; font-size: 12px; font-weight: 750; box-shadow: 0 8px 20px rgba(124,73,68,.12); }
.header-cta:hover { background: var(--mom-rose-deep); }
.language-links { display: flex; gap: 4px; }
.language-links a { font-size: 10px; font-weight: 800; text-decoration: none; text-transform: uppercase; padding: 5px 7px; border-radius: 999px; border: 1px solid transparent; }
.language-links a.current { border-color: var(--mom-line); background: #fff; }

.home-hero { padding: 26px 0 18px; }
.hero-shell { min-height: 600px; display: grid; grid-template-columns: 46% 54%; overflow: hidden; border: 1px solid #eaded6; border-radius: 30px; background: linear-gradient(115deg, #f5ebe4 0%, #f2e6de 48%, #e6d6ca 100%); box-shadow: 0 24px 68px rgba(63, 46, 41, .08); }
.hero-copy { padding: clamp(48px, 6vw, 88px) clamp(34px, 5vw, 76px); display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; }
.eyebrow, .section-label { color: var(--mom-rose-deep); font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.hero-copy h1 { margin: 15px 0 18px; max-width: 11.5ch; font: 500 clamp(48px, 5.6vw, 78px)/.98 Georgia, "Times New Roman", serif; letter-spacing: -.045em; }
.hero-copy > p:not(.hero-signature) { margin: 0; max-width: 48ch; color: #655c57; font-size: clamp(16px, 1.55vw, 19px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 22px; border-radius: 12px; text-decoration: none; font-size: 13px; font-weight: 750; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--mom-rose); color: #fff; border: 1px solid var(--mom-rose); }
.button-primary:hover { background: var(--mom-rose-deep); border-color: var(--mom-rose-deep); }
.button-secondary { color: var(--mom-rose-deep); border: 1px solid #cba79a; background: rgba(255,255,255,.36); }
.hero-signature { margin: 24px 0 0; max-width: 410px; color: #866c63; font: italic 17px/1.4 Georgia, "Times New Roman", serif; text-align: right; }
.hero-media { position: relative; min-height: 600px; overflow: hidden; background: #d7bbae; }
.hero-media > img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(54,39,35,.05), transparent 28%, rgba(42,30,27,.05)); pointer-events: none; }
.hero-art-fallback { position: absolute; inset: 0; background: linear-gradient(145deg, #dcb7a8 0%, #be8f7e 52%, #866663 100%); }
.hero-art-fallback svg { width: 86%; height: 86%; position: absolute; left: 7%; top: 3%; color: #fff9f5; }
.hero-quote { position: absolute; right: 7%; top: 17%; z-index: 2; max-width: 205px; padding: 18px; color: #fffaf7; text-align: center; text-shadow: 0 1px 10px rgba(42,29,26,.26); }
.hero-quote span { display: block; font: italic 22px/1.22 Georgia, "Times New Roman", serif; }
.hero-quote strong { display: block; margin-top: 16px; font: 500 14px/1 Georgia, serif; letter-spacing: .08em; }

.home-section { padding: 28px 0; }
.home-section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 16px; }
.home-section-head h2 { margin: 0; font: 500 clamp(29px, 3vw, 38px)/1.05 Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
.home-section-head p { margin: 5px 0 0; color: var(--mom-muted); font-size: 13px; }
.section-hint { flex: 0 0 auto; color: #9a665b; font-size: 12px; }
.topic-section { background: rgba(255,253,251,.72); border-block: 1px solid rgba(233,223,215,.8); }
.topic-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(155px, 1fr); gap: 12px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; padding-bottom: 8px; }
.premium-topic-card { min-width: 155px; overflow: hidden; border: 1px solid #eee5df; border-radius: 14px; background: #fff; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.premium-topic-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(62,43,38,.08); }
.premium-topic-art { height: 104px; display: grid; place-items: center; color: var(--topic-accent); background: radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--topic-accent) 13%, transparent), transparent 30%), linear-gradient(145deg, color-mix(in srgb, var(--topic-accent) 11%, #f8f1ec), #efe7e1); }
.premium-topic-art svg { width: 68px; height: 68px; }
.premium-topic-copy { min-height: 96px; display: block; padding: 12px 13px 14px; }
.premium-topic-copy strong { display: block; font: 500 16px/1.14 Georgia, serif; }
.premium-topic-copy small { display: block; margin-top: 5px; color: var(--mom-muted); font-size: 10.5px; line-height: 1.3; }
.stage-section { background: #fbf8f5; }
.stage-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 10px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 7px; }
.premium-stage-card { min-height: 76px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 11px; padding: 12px 14px; border: 1px solid var(--mom-line); border-radius: 12px; background: rgba(255,255,255,.7); text-decoration: none; transition: background .18s ease, border-color .18s ease; }
.premium-stage-card:hover { background: #fff; border-color: #d9c5ba; }
.stage-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #f3e4de; color: var(--mom-rose-deep); font-size: 10px; font-weight: 800; }
.stage-copy strong { display: block; font: 500 14px/1.18 Georgia, serif; }
.stage-copy small { display: block; margin-top: 3px; color: var(--mom-muted); font-size: 9.5px; }
.stage-arrow { color: #9a7f74; font-size: 20px; }
.audience-section { padding-top: 14px; }
.audience-shell { display: grid; grid-template-columns: 330px 1fr; gap: 28px; align-items: center; padding: 28px 34px; border-radius: 24px; background: linear-gradient(120deg, #f1e2da, #f8eee8 58%, #efe3dc); border: 1px solid #ead8cf; }
.audience-intro h2 { margin: 7px 0 8px; font: 500 31px/1.06 Georgia, serif; letter-spacing: -.035em; }
.audience-intro p { margin: 0; color: #746762; font-size: 12px; }
.audience-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.premium-audience-card { min-height: 108px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 14px 10px; text-align: center; border-radius: 16px; background: rgba(255,255,255,.55); text-decoration: none; border: 1px solid rgba(255,255,255,.7); }
.premium-audience-card:hover { background: rgba(255,255,255,.86); }
.audience-symbol { font: 500 27px/1 Georgia, serif; color: var(--mom-rose); }
.premium-audience-card strong { font: 500 13px/1.2 Georgia, serif; }
.stories-section { padding-top: 34px; }
.story-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.story-card { min-width: 0; overflow: hidden; border: 1px solid #e9e0da; border-radius: 14px; background: #fff; }
.story-card > a { display: grid; grid-template-columns: 42% 58%; min-height: 185px; text-decoration: none; }
.story-media { min-height: 185px; background: #eadbd3; overflow: hidden; }
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.story-fallback { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(145deg, #f1dfd6, #e3c5b7); }
.story-fallback svg { width: 58%; height: 58%; }
.story-body { padding: 15px 14px 13px; display: flex; flex-direction: column; }
.story-kicker { align-self: flex-start; padding: 3px 7px; border-radius: 999px; background: #f3e0dc; color: #8c5b54; font-size: 8.5px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.story-body h3 { margin: 8px 0 7px; font: 500 18px/1.08 Georgia, serif; letter-spacing: -.02em; }
.story-body p { margin: 0; color: var(--mom-muted); font-size: 10.5px; line-height: 1.35; }
.story-meta { margin-top: auto; padding-top: 10px; color: #8a7d77; font-size: 9.5px; }
.story-card:hover { box-shadow: 0 15px 30px rgba(60,44,39,.07); }
.community-section { padding: 10px 0 52px; }
.community-card { display: grid; grid-template-columns: 190px minmax(330px, 1fr) auto 230px; gap: 24px; align-items: center; padding: 24px 30px; border: 1px solid #eccfc7; border-radius: 20px; background: linear-gradient(100deg, #f4dfd9, #f8e9e4 52%, #f1d8d1); }
.community-kicker { color: #a56d63; font-size: 9px; line-height: 1.5; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; }
.community-copy h2 { margin: 0; font: 500 27px/1.08 Georgia, serif; }
.community-copy p { margin: 5px 0 0; color: #756661; font-size: 11.5px; }
.community-signature { color: #8d6d65; font: italic 15px/1.35 Georgia, serif; text-align: right; }

.section { padding: 46px 0; }
.section-intro { display: grid; grid-template-columns: 1fr minmax(280px, 520px); gap: 30px; align-items: end; margin-bottom: 25px; }
.section-intro h2, .compact-intro h2, .archive-header h1 { margin: 6px 0 0; font: 500 clamp(34px, 4.4vw, 52px)/1.05 Georgia, serif; letter-spacing: -.04em; }
.section-intro p, .compact-intro p { margin: 0; color: var(--mom-muted); }
.compact-intro { max-width: 760px; margin-bottom: 24px; }
.compact-intro p { margin-top: 10px; }
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.topic-card { --topic-accent: var(--mom-rose); display: grid; grid-template-columns: 92px 1fr auto; gap: 17px; align-items: center; min-height: 154px; padding: 18px; background: var(--mom-paper); border: 1px solid var(--mom-line); border-radius: 18px; text-decoration: none; }
.topic-art { width: 92px; height: 92px; display: grid; place-items: center; border-radius: 16px; background: color-mix(in srgb, var(--topic-accent) 14%, #fff); color: var(--topic-accent); }
.topic-art svg { width: 66px; height: 66px; }
.topic-copy strong { display: block; font: 500 20px/1.15 Georgia, serif; }
.topic-copy small { display: block; margin-top: 7px; color: var(--mom-muted); line-height: 1.4; font-size: 12.5px; }
.topic-arrow { color: var(--topic-accent); font-size: 20px; }
.stage-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.stage-card { min-height: 140px; padding: 20px; background: var(--mom-paper); border: 1px solid var(--mom-line); border-radius: 18px; text-decoration: none; }
.stage-number { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #f2e4dd; color: var(--mom-rose-deep); font-weight: 800; font-size: 12px; }
.stage-card strong { display: block; margin-top: 22px; font: 500 18px/1.15 Georgia, serif; }
.audience-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 13px; }
.audience-card { min-height: 160px; padding: 22px; border-radius: 18px; border: 1px solid var(--mom-line); background: #fff; text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; }
.audience-card strong { font: 500 19px/1.15 Georgia, serif; }
.audience-card small { display: block; margin-top: 7px; color: var(--mom-muted); font-size: 12.5px; }
.latest-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.latest-head h2 { margin: 6px 0 0; font: 500 clamp(34px, 4vw, 48px)/1.05 Georgia, serif; letter-spacing: -.04em; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card { background: var(--mom-paper); border: 1px solid var(--mom-line); border-radius: 18px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--mom-shadow); }
.post-card > a { display: block; text-decoration: none; }
.card-media { aspect-ratio: 16 / 10; background: #eadbd2; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-fallback { width: 100%; height: 100%; display: grid; place-items: center; color: var(--mom-rose-deep); background: linear-gradient(145deg, #f1ded3, #e7c2b3); }
.card-fallback svg { width: 43%; height: 43%; }
.card-body { padding: 20px; }
.card-kicker { color: var(--mom-rose-deep); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; }
.card-title { margin: 7px 0 9px; font: 500 24px/1.12 Georgia, serif; letter-spacing: -.025em; }
.card-excerpt { margin: 0; color: var(--mom-muted); font-size: 14px; }
.card-meta { display: flex; gap: 8px; margin-top: 15px; color: var(--mom-muted); font-size: 11px; }
.archive-wrap { padding: 48px 0 72px; }
.archive-header { max-width: 820px; margin-bottom: 30px; }
.archive-header p { color: var(--mom-muted); font-size: 18px; }
.pagination { margin-top: 34px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { padding: 9px 13px; border: 1px solid var(--mom-line); border-radius: 999px; background: var(--mom-paper); text-decoration: none; }
.page-numbers.current { background: var(--mom-rose-deep); color: #fff; }
.article-shell { width: min(calc(100% - 36px), 900px); margin-inline: auto; }
.article-header { padding: 48px 0 28px; text-align: center; }
.article-header .card-kicker { display: block; }
.article-header h1 { margin: 12px auto 18px; max-width: 880px; font: 500 clamp(44px, 6.5vw, 72px)/1.02 Georgia, serif; letter-spacing: -.05em; }
.article-deck { max-width: 720px; margin: 0 auto; color: var(--mom-muted); font-size: 19px; }
.article-meta { margin-top: 17px; color: var(--mom-muted); font-size: 12px; }
.article-hero { width: min(calc(100% - 36px), 1120px); margin: 0 auto 34px; border-radius: 24px; overflow: hidden; }
.article-hero img { width: 100%; max-height: 680px; object-fit: cover; }
.entry-content { font: 20px/1.78 Georgia, "Times New Roman", serif; }
.entry-content > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.entry-content h2, .entry-content h3 { line-height: 1.15; letter-spacing: -.025em; margin-top: 2em; }
.entry-content h2 { font-size: 37px; }
.entry-content h3 { font-size: 28px; }
.entry-content table { width: 100%; border-collapse: collapse; font-family: Inter, sans-serif; font-size: 14px; }
.entry-content th, .entry-content td { padding: 11px; border-bottom: 1px solid var(--mom-line); text-align: left; }
.entry-content th { background: #f1e8e2; }
.site-footer { margin-top: 20px; background: #302a29; color: #f8efea; }
.footer-main { padding: 50px 0 34px; display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 36px; }
.footer-brand { font: 700 46px/1 Georgia, serif; letter-spacing: -.05em; }
.footer-brand::after { content: "."; color: #d79a82; }
.footer-copy { max-width: 430px; color: #cdbfbb; }
.footer-links h3 { margin: 0 0 12px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #dfcfca; }
.footer-links ul { margin: 0; padding: 0; list-style: none; }
.footer-links li + li { margin-top: 8px; }
.footer-links a { color: inherit; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0 24px; color: #ad9f9c; font-size: 12px; }

@media (max-width: 1180px) {
  .container { width: min(calc(100% - 40px), var(--mom-max)); }
  .header-main { grid-template-columns: auto 1fr; }
  .primary-nav { display: none; }
  .header-actions { justify-self: end; }
  .hero-shell { grid-template-columns: 1fr 1fr; }
  .audience-shell { grid-template-columns: 280px 1fr; }
  .audience-list { grid-template-columns: repeat(3, 1fr); }
  .story-grid { grid-template-columns: repeat(2, 1fr); }
  .community-card { grid-template-columns: 160px 1fr auto; }
  .community-signature { display: none; }
}
@media (max-width: 820px) {
  .site-brand small, .header-cta, .language-links { display: none; }
  .header-main { min-height: 70px; gap: 12px; }
  .site-brand strong { font-size: 36px; }
  .home-hero { padding-top: 14px; }
  .hero-shell { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 44px 30px 36px; }
  .hero-copy h1 { font-size: clamp(45px, 12vw, 66px); max-width: 12ch; }
  .hero-media { min-height: 420px; }
  .hero-quote { right: 5%; top: 10%; }
  .audience-shell { grid-template-columns: 1fr; }
  .community-card { grid-template-columns: 1fr; }
  .community-kicker, .community-signature { display: block; text-align: left; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .stage-grid, .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .container { width: min(calc(100% - 24px), var(--mom-max)); }
  .hero-copy { padding: 36px 22px 30px; }
  .hero-copy h1 { font-size: clamp(40px, 13vw, 56px); }
  .hero-copy > p:not(.hero-signature) { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .hero-signature { text-align: left; font-size: 15px; }
  .hero-media { min-height: 350px; }
  .hero-quote { max-width: 160px; padding: 10px; }
  .hero-quote span { font-size: 18px; }
  .home-section { padding: 24px 0; }
  .home-section-head { align-items: flex-start; }
  .section-hint { display: none; }
  .topic-rail { grid-auto-columns: 150px; }
  .stage-rail { grid-auto-columns: 225px; }
  .audience-shell { padding: 24px 18px; }
  .audience-list { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: 1fr; }
  .story-card > a { grid-template-columns: 40% 60%; }
  .community-card { padding: 24px 20px; }
  .topic-grid, .stage-grid, .audience-grid, .card-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .entry-content { font-size: 18px; }
}
