/* ============================================================
   MODO CALMADO · Sistema de diseño
   Cálido, femenino, natural, elegante, acogedor, moderno, real.
   Regla final: ¿esto se siente como Modo Calmado?
   ============================================================ */

:root {
  --cream: #F8F4EE;          /* fondos principales */
  --beige: #E8DED1;          /* secciones y fondos secundarios */
  --beige-soft: #F1E9DB;     /* beige más suave */
  --sage: #AAB5A0;           /* acentos wellness */
  --sage-pale: #E7EBE2;      /* sage pálido */
  --brown: #6D5B4D;          /* texto secundario */
  --terracotta: #C98268;     /* acento */
  --terracotta-deep: #A9603F;/* acento para texto (legibilidad) */
  --terracotta-pale: #F5E3D5;/* acento pálido */
  --ink: #292725;            /* texto principal (negro cálido) */
  --white: #FFFFFF;
  --radius: 20px;
  --shadow: 0 12px 32px rgba(41, 39, 37, 0.07);
  --font-title: "DM Serif Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem; /* 18px */
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.6em;
}

/* Artículo: 48–60px desktop / 34–42px móvil */
h1 { font-size: clamp(2.125rem, 1.4rem + 3.4vw, 3.75rem); }
/* Subtítulos: 30–36px */
h2 { font-size: clamp(1.875rem, 1.55rem + 1.4vw, 2.25rem); }
/* Sub-subtítulos: 22–26px */
h3 { font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.625rem); }

p { margin: 0 0 1.15em; }

a { color: var(--terracotta-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  background: rgba(248, 244, 238, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--beige);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0.9rem; padding-bottom: 0.9rem; gap: 1rem; flex-wrap: wrap;
}
.brand {
  font-family: var(--font-title);
  font-size: 1.65rem; color: var(--ink); line-height: 1;
}
.brand:hover { text-decoration: none; color: var(--terracotta-deep); }
.site-header nav { display: flex; gap: 1.15rem; align-items: center; flex-wrap: wrap; }
.site-header nav a { color: var(--brown); font-weight: 600; font-size: 0.98rem; }
.site-header nav a:hover { color: var(--terracotta-deep); text-decoration: none; }
.nav-quiet {
  border: 1.5px solid var(--beige); border-radius: 999px;
  padding: 0.42rem 1.1rem !important; color: var(--brown) !important;
  background: transparent; font-size: 0.92rem !important;
}
.nav-quiet:hover { border-color: var(--sage); color: var(--ink) !important; }
.nav-cta {
  background: var(--terracotta); color: #fff !important;
  padding: 0.5rem 1.15rem; border-radius: 999px;
}
.nav-cta:hover { background: var(--terracotta-deep); }

/* ---------- Hero ---------- */
.hero { padding: 4.5rem 0 4rem; text-align: center; }
.hero .eyebrow { margin-bottom: 1rem; }
.hero h1 { margin-bottom: 0.5rem; }
.hero .tagline {
  font-size: 1.25rem; color: var(--brown);
  max-width: 620px; margin: 0 auto 2.2rem;
}
.hero-photo {
  max-width: 860px; margin: 0 auto 2.2rem;
}
.hero-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.8rem;
  color: var(--brown); font-weight: 700; margin-bottom: 0.9rem;
}

/* ---------- Botones: simples, redondeados, no gigantes ---------- */
.btn-row { display: flex; gap: 0.8rem; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-block; padding: 0.8rem 1.9rem; border-radius: 999px;
  font-weight: 700; font-size: 1rem; border: 2px solid var(--terracotta);
  background: var(--terracotta); color: #fff;
}
.btn:hover { background: var(--terracotta-deep); border-color: var(--terracotta-deep); color: #fff; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--terracotta-deep); }
.btn.ghost:hover { background: var(--terracotta-pale); border-color: var(--terracotta); color: var(--terracotta-deep); text-decoration: none; }
.btn.small { padding: 0.55rem 1.2rem; font-size: 0.92rem; }
.btn.sage { background: var(--sage); border-color: var(--sage); }
.btn.sage:hover { background: var(--brown); border-color: var(--brown); }

/* ---------- Secciones: mucho aire ---------- */
.section { padding: 4.5rem 0; }
.section.beige { background: var(--beige-soft); }
.section-title { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-title p { color: var(--brown); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.rounded-img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Categorías ---------- */
.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.4rem;
}
.cat-card { text-align: center; }
.cat-card:hover { text-decoration: none; }
.cat-card img {
  border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover;
  width: 100%; box-shadow: var(--shadow); margin-bottom: 0.9rem;
}
.cat-card span {
  font-family: var(--font-title); font-size: 1.35rem; color: var(--ink);
}
.cat-card:hover span { color: var(--terracotta-deep); }

/* ---------- Frase destacada ---------- */
.pull-quote {
  background: var(--beige);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  margin: 3.5rem auto;
  max-width: 820px;
  text-align: center;
}
.pull-quote p {
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 1.1rem + 1.6vw, 1.9rem);
  line-height: 1.4; color: var(--ink); margin: 0;
}

/* En artículos, los blockquote se ven como frase destacada */
.article-body blockquote {
  background: var(--beige);
  border-radius: var(--radius);
  padding: 2.6rem 2.2rem;
  margin: 2.8rem 0;
  text-align: center;
}
.article-body blockquote p {
  font-family: var(--font-title);
  font-size: clamp(1.35rem, 1.05rem + 1.5vw, 1.8rem);
  line-height: 1.45; color: var(--ink); margin: 0;
}

/* ---------- Blog cards: foto, categoría, título, descripción, Leer más ---------- */
.post-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}
.post-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--beige);
  display: flex; flex-direction: column;
}
.post-card > a:first-child { display: block; }
.post-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.post-card-body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.post-card-body h3 { margin: 0; font-size: 1.45rem; line-height: 1.25; }
.post-card-body h3 a { color: var(--ink); }
.post-card-body h3 a:hover { color: var(--terracotta-deep); text-decoration: none; }
.post-card-body p { color: var(--brown); font-size: 1rem; margin: 0; flex: 1; }
.post-card .read-more { font-weight: 700; color: var(--terracotta-deep); }
.post-meta { font-size: 0.86rem; color: var(--brown); display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.post-meta .cat {
  background: var(--terracotta-pale); color: var(--terracotta-deep);
  border-radius: 999px; padding: 0.18rem 0.75rem; font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.post-meta .cat.sage { background: var(--sage-pale); color: var(--brown); }

/* Lista vertical (índice del blog) */
.post-list { display: grid; gap: 1.8rem; max-width: 860px; margin: 0 auto; }

/* ---------- Artículo: columna 680–780px, párrafos cortos ---------- */
.article { max-width: 740px; margin: 0 auto; padding: 3.5rem 1.5rem 4rem; }
.article-hero { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin: 2rem 0 2.5rem; }
.article-hero img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.article h1 { margin-bottom: 0.5rem; }
.article .post-meta { margin-bottom: 0.5rem; }
.article-body p { margin-bottom: 1.4rem; }
.article-body h2 { margin-top: 2.8rem; }
.article-body h3 { margin-top: 2.2rem; }
.article-body img { border-radius: var(--radius); box-shadow: var(--shadow); margin: 2rem 0; }
.back-link { display: inline-block; margin-top: 3rem; font-weight: 700; }

/* ---------- Libro ---------- */
.book-grid { display: grid; grid-template-columns: 340px 1fr; gap: 3.5rem; align-items: start; }
.book-cover { border-radius: 12px; box-shadow: 0 18px 45px rgba(41, 39, 37, 0.16); }
.reflection {
  background: var(--white); border-left: 4px solid var(--terracotta);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 1.7rem; margin-bottom: 1.3rem; box-shadow: var(--shadow);
}
.reflection p { margin: 0; font-family: var(--font-title); font-size: 1.35rem; }

/* ---------- Receta: plantilla propia ---------- */
.receta {
  background: var(--white); border: 1px solid var(--beige);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 2.2rem; margin: 2.5rem 0;
}
.receta h2 { margin-bottom: 1rem; }
.receta-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem; margin-bottom: 1.8rem;
}
.receta-meta div {
  background: var(--cream); border-radius: 14px; padding: 0.9rem 1rem; text-align: center;
}
.receta-meta strong { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brown); margin-bottom: 0.2rem; }
.receta-meta span { font-family: var(--font-title); font-size: 1.25rem; }
.receta h3 { margin-top: 1.8rem; color: var(--terracotta-deep); }
.receta ul, .receta ol { padding-left: 1.3rem; }
.receta li { margin-bottom: 0.6rem; }
.receta .tip {
  background: var(--sage-pale); border-radius: 14px;
  padding: 1.2rem 1.4rem; margin-top: 1.6rem;
}
.receta .tip strong { color: var(--brown); }

/* ---------- Social ---------- */
.social-row { display: flex; gap: 0.8rem; flex-wrap: wrap; justify-content: center; margin-top: 1.4rem; }
.social-row a {
  border: 2px solid var(--beige); color: var(--ink); font-weight: 700;
  padding: 0.6rem 1.4rem; border-radius: 999px; background: var(--white);
}
.social-row a:hover { border-color: var(--terracotta); color: var(--terracotta-deep); text-decoration: none; }
.tagline-final { text-align: center; margin-top: 2.5rem; font-weight: 700; letter-spacing: 0.05em; color: var(--terracotta-deep); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--cream); padding: 3.5rem 0 2rem; margin-top: 2rem; }
.footer-inner { text-align: center; }
.footer-brand { font-family: var(--font-title); font-size: 1.9rem; margin-bottom: 0.3rem; }
.site-footer p { color: var(--beige); }
.site-footer .social-row a { background: transparent; border-color: #5a5148; color: var(--cream); }
.site-footer .social-row a:hover { border-color: var(--terracotta); color: var(--terracotta); }
.footer-small { font-size: 0.85rem; opacity: 0.7; margin-top: 1.6rem; }

/* ---------- Video sugerido ---------- */
.video-sugerido {
  background: var(--sage-pale); border-radius: var(--radius);
  padding: 1.8rem 2rem; margin: 3rem 0;
}
.video-sugerido p { margin: 0; font-weight: 600; color: var(--brown); }
.video-sugerido strong { color: var(--ink); }

/* ---------- Responsive: mobile first ---------- */
@media (max-width: 820px) {
  body { font-size: 1.0625rem; } /* 17px */
  .hero { padding: 3rem 0 2.8rem; }
  .hero .tagline { font-size: 1.12rem; }
  .two-col, .book-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .section { padding: 3.2rem 0; }
  .pull-quote { padding: 2.2rem 1.6rem; margin: 2.5rem auto; }
  .article { padding: 2.5rem 1.25rem 3rem; }
  .header-inner { padding-top: 0.75rem; padding-bottom: 0.75rem; }
  .site-header nav { gap: 0.9rem; }
  .receta { padding: 1.5rem; }
}

/* ---------- Compatibilidad páginas internas ---------- */
.section.alt { background: var(--beige-soft); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; text-align: left; }
.hero-grid .hero-photo { margin: 0; }
.frase {
  font-family: var(--font-title); font-size: 1.5rem;
  color: var(--terracotta-deep); margin-bottom: 1.6rem;
}
.tagline { text-align: center; margin-top: 2.2rem; font-weight: 700; letter-spacing: 0.05em; color: var(--terracotta-deep); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 1.8rem;
  box-shadow: var(--shadow); border: 1px solid var(--beige);
}
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--brown); font-size: 0.99rem; }
.card .card-tag {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brown); margin-bottom: 0.5rem;
}
.lang-toggle { text-align: center; margin-bottom: 1.8rem; }
.lang-btn {
  background: none; border: 1px solid var(--beige); border-radius: 999px;
  padding: 0.45rem 1.2rem; margin: 0 0.3rem; cursor: pointer;
  font-family: inherit; font-size: 0.95rem; color: var(--brown);
}
.lang-btn.active { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.author-photo { display: block; max-width: 300px; margin: 0 auto 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.video-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 1rem; }
.video-strip video { width: 100%; aspect-ratio: 9/16; object-fit: cover; border-radius: 12px; background: #000; }
.brand-chips { display: flex; gap: 0.8rem; flex-wrap: wrap; justify-content: center; margin-top: 1.6rem; }
.brand-chips span {
  border: 2px solid var(--beige); color: var(--ink); font-weight: 700;
  padding: 0.7rem 1.6rem; border-radius: 999px; background: var(--white);
  font-family: var(--font-title); font-size: 1.3rem;
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
}
