/* ==========================================================================
   Lic. Karen Zarzosa — Nutrición Clínica SLP
   Estilo editorial inspirado en Crafted by Carly
   ========================================================================== */

@font-face {
  font-family: "Caviar Dreams";
  src: url("font/CaviarDreams.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Caviar Dreams";
  src: url("font/CaviarDreams_Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Caviar Dreams";
  src: url("font/CaviarDreams_Italic.ttf") format("truetype");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Caviar Dreams";
  src: url("font/CaviarDreams_BoldItalic.ttf") format("truetype");
  font-weight: 700; font-style: italic; font-display: swap;
}

:root {
  /* Paleta Carly */
  --sage: #EBF5E0;
  --sage-soft: #CBD6CF;
  --teal: #EBF5E0;
  --coral: #EF8585;
  --coral-dark: #D96F6F;
  --cream: #F4F3F2;
  --warm-gray: #E4E0DE;
  --white: #FFFFFF;
  --ink: #201E1F;
  --ink-muted: rgba(32, 30, 31, 0.65);
  --ink-soft: rgba(32, 30, 31, 0.82);
  --line: #201E1F;
  --line-soft: rgba(32, 30, 31, 0.22);
  --stroke: 1.5px;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius: 999px;
  --max: 1200px;
  --narrow: 760px;

  --font-sans: "Caviar Dreams", system-ui, -apple-system, sans-serif;
  --font-serif: "Caviar Dreams", system-ui, -apple-system, sans-serif;
  --font-display: "Caviar Dreams", system-ui, -apple-system, sans-serif;
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 15px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}
.container--narrow {
  max-width: var(--narrow);
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

/* Tipografía editorial — patrón Carly: line-height:1, un solo color, overlap entre líneas */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  color: var(--ink);
}
h1 { font-size: clamp(32px, 4.5vw, 52px); line-height: 1.1; }
h2 { font-size: clamp(24px, 3.2vw, 36px); line-height: 1.1; }
h3 { font-size: 18px; letter-spacing: 0; font-weight: 400; line-height: 1.2; }
h4 {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
}

/* Em en titulares: italic, mismo color (sin cambio cromático), línea propia con overlap */
h1 em, h2 em, h3 em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: inherit;
  display: block;
  line-height: 1;
  margin-top: -0.06em;
}
h1 .h1-tail,
h2 .h2-tail {
  display: block;
  line-height: 1;
  margin-top: -0.06em;
  font-style: normal;
}
/* Keep em inline only when explicitly re-enabled */
.article__body h2 em { display: inline; margin-top: 0; }

p { color: var(--ink); max-width: 62ch; }

/* Overline / eyebrow labels */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  opacity: 0.78;
  margin-bottom: 24px;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  transition: all 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary {
  background: var(--coral);
  color: var(--ink);
  font-weight: 400;
  border: var(--stroke) solid var(--ink);
  box-shadow: 3px 3px 0 0 var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn--primary:hover {
  background: var(--coral-dark);
  color: var(--white);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 0 var(--ink);
}

/* Microcopy bajo CTAs — italic editorial 15/1.75 */
.btn-microcopy {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink);
  margin: 14px 0 0;
  max-width: 460px;
}
.btn-microcopy strong { font-weight: 500; }
/* Cuando el microcopy está en un contexto centrado (page-hero, cta-final), auto-centra y respira */
.page-hero .btn-microcopy,
.cta-final .btn-microcopy {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.page-hero .btn-microcopy { margin-top: 20px; margin-bottom: 40px; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: var(--stroke) solid var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.btn--pill {
  padding: 14px 30px;
  font-size: 11px;
  letter-spacing: 0.22em;
  background: var(--coral);
  color: var(--ink);
  border: var(--stroke) solid var(--ink);
  box-shadow: 3px 3px 0 0 var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn--pill:hover {
  background: var(--coral-dark);
  color: var(--white);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 0 var(--ink);
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 40;
  background: var(--sage);
  border-bottom: var(--stroke) solid var(--ink);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}
.logo picture { display: flex; align-items: center; flex-shrink: 0; }
.logo img { display: block; }
.logo span {
  font-style: normal;
  opacity: 0.5;
}
.logo--light { color: var(--ink); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 38px;
}
.nav__links a {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink);
  transition: opacity 0.25s ease;
}
.nav__links a:hover { opacity: 0.6; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding-top: 72px;
  background: var(--sage);
}
.hero__grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 40px 112px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero__content .eyebrow { margin-bottom: 20px; }
.hero h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1;
  margin-bottom: 28px;
  color: var(--ink);
}
.hero h1 em {
  display: block;
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1;
  color: inherit;
  margin-top: -0.08em;
}
.hero h1 .h1-tail {
  display: block;
  line-height: 1;
  font-size: clamp(32px, 4.5vw, 52px);
  margin-top: -0.08em;
}
.hero .lead {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  max-width: 460px;
  margin-bottom: 28px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero__media {
  position: relative;
}
.hero__photo {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-sm);
  border: var(--stroke) solid var(--ink);
  overflow: hidden;
  box-shadow: 10px 10px 0 0 var(--ink);
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero__badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius);
  border: var(--stroke) solid var(--ink);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  box-shadow: 0 8px 20px -10px rgba(32,30,31,0.2);
}
.hero__badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(239, 133, 133, 0.25);
}

/* ==========================================================================
   Stats band
   ========================================================================== */
.stats-band {
  background: var(--cream);
  padding: 64px 0;
}
.stats-band__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.stats-band__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.stats-band__list li {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  border-left: 1px solid var(--line);
  padding-left: 20px;
  min-width: 0;
}
.stats-band__list strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1;
  color: var(--ink);
  min-height: 1em;
}
.stats-band__list span {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink);
  opacity: 0.7;
  min-height: 2.4em;
  display: flex;
  align-items: flex-start;
}
.stats-band__text {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  width: 100%;
  margin: 0;
}
.stats-band__text em {
  font-style: italic;
  color: var(--ink);
}

/* ==========================================================================
   Sobre mí
   ========================================================================== */
.about {
  background: var(--warm-gray);
  padding: 90px 0;
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about__media {
  position: relative;
}
.about__photo {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-sm);
  border: var(--stroke) solid var(--ink);
  overflow: hidden;
  background-image: url('images/daniela-seated.png');
  background-size: cover;
  background-position: center;
  box-shadow: 10px 10px 0 0 var(--ink);
}
.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.about__media::after {
  content: none !important;
  display: none !important;
}
.about__content h2 {
  margin-bottom: 20px;
}
.about__content p {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 16px;
  max-width: 500px;
}
.about__content p strong { font-weight: 400; }
.credentials {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.credentials li {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 13px;
  color: var(--ink);
  padding-left: 16px;
  position: relative;
}
.credentials li::before {
  content: '•';
  position: absolute;
  left: 0; top: 0;
  font-size: 13px;
  line-height: inherit;
  font-style: normal;
  background: none;
  width: auto; height: auto;
}

/* ==========================================================================
   Servicios
   ========================================================================== */
.services {
  background: var(--cream);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.services__head {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 72px;
}
.services__head h2 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1;
  color: var(--ink);
  margin-bottom: 24px;
  letter-spacing: 0.005em;
}
.services__head h2 em {
  display: inline;
  margin-top: 0;
  font-style: italic;
  color: inherit;
}
.services__head p {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.75;
  margin: 0 auto;
  color: var(--ink);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.services__grid--four {
  grid-template-columns: repeat(4, 1fr);
}
.services__grid--two {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 1080px) {
  .services__grid--four { grid-template-columns: repeat(2, 1fr); }
  .services__grid--two { grid-template-columns: 1fr; }
}
.service {
  background: var(--white);
  border-radius: var(--radius-xs);
  border: var(--stroke) solid var(--ink);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 6px 6px 0 0 var(--ink);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service:hover {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 0 var(--ink);
}
.service__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 32px;
  line-height: 1;
  color: #77AB39;
  margin-bottom: 4px;
}
.service h3 {
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 4px;
}
.service p {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink);
  opacity: 0.85;
  flex: 1;
}
.service__link {
  margin-top: 8px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral);
  transition: opacity 0.25s ease;
  align-self: flex-start;
}
.service__link:hover { opacity: 0.7; }

/* ==========================================================================
   Testimonios
   ========================================================================== */
.testimonials {
  background: var(--teal);
  padding: 96px 0;
}
.testimonials__head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}
.testimonials__head h2 {
  margin-bottom: 18px;
  color: var(--ink);
}
.testimonials__head h2 em {
  display: block;
}
.testimonials__head p {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 auto;
}
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: var(--white);
  border-radius: var(--radius-xs);
  border: var(--stroke) solid var(--ink);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 6px 6px 0 0 var(--ink);
}
.testimonial__avatar {
  border: var(--stroke) solid var(--ink);
}
.testimonial__quote {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink);
  flex: 1;
  margin: 0;
  position: relative;
  padding-top: 28px;
  max-width: none;
}
.testimonial__quote::before {
  content: '"';
  position: absolute;
  top: -12px;
  left: -4px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 60px;
  line-height: 1;
  color: #77AB39;
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.testimonial__avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
}
.testimonial__author strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
}
.testimonial__author span {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 12px;
  color: var(--ink);
  opacity: 0.6;
  margin-top: 2px;
}

/* ==========================================================================
   Contacto
   ========================================================================== */
.contact {
  background: var(--cream);
  padding: 96px 0;
}
.contact__grid {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}
.contact__intro h2 {
  margin-bottom: 20px;
}
.contact__intro p {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 36px;
  max-width: 420px;
}
.contact__details {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact__details li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact__details strong {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink);
  opacity: 0.6;
}
.contact__details span {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 14px;
  color: var(--ink);
}

/* Form */
.form {
  background: var(--white);
  border-radius: var(--radius-xs);
  border: var(--stroke) solid var(--ink);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  box-shadow: 8px 8px 0 0 var(--ink);
}
.form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form label span {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink);
  opacity: 0.6;
}
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--ink);
  box-shadow: 3px 3px 0 0 var(--ink);
}
.form textarea {
  resize: vertical;
  min-height: 100px;
}
.form__full {
  grid-column: 1 / -1;
}
.form__submit {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 8px;
}
.form__ok {
  grid-column: 1 / -1;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  color: var(--ink);
}

/* ==========================================================================
   CTA final
   ========================================================================== */
.cta-final {
  background: var(--sage);
  padding: 96px 0;
  text-align: center;
}
.cta-final h2 {
  font-size: clamp(32px, 4.5vw, 58px);
  line-height: 1;
  margin-bottom: 32px;
  color: var(--ink);
}
.cta-final h2 em {
  display: block;
  line-height: 1;
  margin-top: -0.18em;
  color: inherit;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--sage);
  color: var(--ink);
  padding-top: 0;
  border-top: 1px solid #201E1F;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 64px;
  padding-top: 80px;
  padding-bottom: 40px;
}
.footer__brand p {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
  opacity: 0.75;
  margin: 16px 0 20px;
  max-width: 280px;
}
.socials {
  display: flex;
  gap: 12px;
}
.socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: var(--stroke) solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: all 0.25s ease;
}
.socials a:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.socials svg {
  width: 16px; height: 16px;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer__cols h4 {
  color: var(--ink);
  opacity: 0.8;
  font-weight: 500;
  margin-bottom: 16px;
}
.footer__cols a,
.footer__cols span {
  display: block;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink);
  transition: opacity 0.25s ease;
}
.footer__cols a:hover { opacity: 0.6; }

.footer__base {
  padding: 20px 40px;
  border-top: 1px solid var(--line);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 11px;
  color: var(--ink);
  opacity: 0.6;
}

/* ==========================================================================
   Blog (para la página de blog)
   ========================================================================== */
.blog-hero { background: var(--warm-gray); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 28px;
  padding: 80px 0 120px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  transition: opacity 0.25s ease;
  height: 100%;
}
.blog-card:hover { opacity: 0.75; }
.blog-card .blog-card__cta { margin-top: auto; align-self: flex-start; }
.blog-grid { align-items: stretch; }
.blog-card__img {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-xs);
  border: var(--stroke) solid var(--ink);
  background-size: cover;
  background-position: center;
  margin-bottom: 18px;
  overflow: hidden;
}
.blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.blog-card h3 {
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 10px;
}
.blog-card p {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink);
  opacity: 0.8;
  margin-bottom: 12px;
}
.blog-card__meta {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 11px;
  color: var(--ink);
  opacity: 0.6;
  margin-top: auto;
}
.blog-featured {
  background: var(--cream);
  padding: 80px 0;
}
.blog-featured__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.blog-featured__img {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-xs);
  border: var(--stroke) solid var(--ink);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow: 10px 10px 0 0 var(--ink);
}
.blog-featured__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.blog-featured h2 {
  font-size: clamp(26px, 3.3vw, 42px);
  line-height: 1.15;
  margin-bottom: 16px;
}
.blog-featured p {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 18px;
}

/* ==========================================================================
   Page hero (para páginas interiores)
   ========================================================================== */
.page-hero {
  padding-top: 72px;
  text-align: center;
}
.page-hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 76px 40px 112px;
}
.page-hero h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1;
  margin-bottom: 24px;
  color: var(--ink);
}
.page-hero h1 em {
  display: block;
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1;
  margin-top: -0.08em;
  color: inherit;
}
.page-hero p {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  max-width: 560px;
  margin: 0 auto 28px;
}
.page-hero--sage { background: var(--sage); }
.page-hero--teal { background: var(--teal); }
.page-hero--warm { background: var(--warm-gray); }
.page-hero--cream { background: var(--cream); }

/* Article / long content */
.article {
  background: var(--cream);
  padding: 80px 0 120px;
}
.article__body {
  max-width: var(--narrow);
  margin: 0 auto;
  padding: 0 40px;
}
.article__body p {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  margin-bottom: 20px;
}
.article__body h2 {
  font-size: clamp(22px, 2.8vw, 32px);
  margin: 40px 0 16px;
}
.article__body h2 em { display: inline; }

/* ==========================================================================
   Hamburger toggle (oculto en desktop)
   ========================================================================== */
.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: var(--stroke) solid var(--ink);
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav__cta-mobile { display: none; }

/* ==========================================================================
   Tablet (<= 900px)
   ========================================================================== */
@media (max-width: 900px) {
  .container,
  .nav__inner { padding: 0 24px; }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 60px 24px 80px;
  }
  .stats-band__inner,
  .about__grid,
  .contact__grid,
  .footer__inner,
  .blog-featured__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .stats-band__list { grid-template-columns: 1fr; gap: 18px; }
  .services__grid,
  .services__grid--three,
  .services__grid--four,
  .testimonials__grid,
  .blog-grid,
  .footer__cols {
    grid-template-columns: 1fr;
  }
  .form { grid-template-columns: 1fr; padding: 28px; }

  /* Ocultar flechas de botones en tablet/mobile */
  .btn-arrow { display: none; }

  /* Nav: hamburger aparece */
  .nav__toggle { display: inline-flex; }
  .nav__cta-desktop { display: none; }
  .nav__cta-mobile { display: inline-flex; margin-top: 16px; }
  .nav__links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--sage);
    border-bottom: var(--stroke) solid var(--ink);
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 24px 32px;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    z-index: 39;
  }
  body.nav-open .nav__links { transform: translateY(0); }
  body.nav-open .nav__toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  body.nav-open .nav__toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav__toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .nav__links a { font-size: 13px; }

  .nav__inner { height: 64px; }
}

/* ==========================================================================
   Mobile (<= 640px) — ajuste fino
   ========================================================================== */
@media (max-width: 640px) {
  :root { --max: 100%; }
  body { font-size: 14px; }

  /* Eyebrow — wrap en mobile en lugar de desbordarse */
  .eyebrow {
    display: block;
    white-space: normal;
    letter-spacing: 0.15em;
    max-width: 100%;
  }

  /* Prevent shadow bleed causing horizontal overflow */
  .hero__photo,
  .about__photo,
  .blog-featured__img,
  .service,
  .testimonial,
  .form { max-width: 100%; }

  /* Stats: 3 columns stay visible, compact */
  .stats-band__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .stats-band__list li { padding-left: 12px; }
  .stats-band__list span { font-size: 11px; line-height: 1.4; }

  /* Larger tap targets for nav links (excluye botones) */
  .nav__links a:not(.btn) { padding: 6px 0; }

  .container,
  .container--narrow,
  .nav__inner { padding: 0 20px; }

  /* Tipografía — escala más contenida en mobile */
  .hero h1 { font-size: clamp(26px, 7.5vw, 36px); }
  .hero h1 em { font-size: clamp(32px, 9vw, 44px); }
  .hero h1 .h1-tail { font-size: clamp(26px, 7.5vw, 36px); }
  .page-hero h1 { font-size: clamp(24px, 7vw, 34px); }
  .page-hero h1 em { font-size: clamp(30px, 8.5vw, 42px); }
  .cta-final h2 { font-size: clamp(22px, 6.5vw, 32px); }
  .services__head h2 { font-size: clamp(20px, 6vw, 30px); }
  .about__content h2,
  .contact__intro h2,
  .testimonials__head h2,
  .blog-featured h2 { font-size: clamp(18px, 5.5vw, 26px); }

  /* Hero */
  .hero { padding-top: 64px; }
  .hero__grid { padding: 44px 20px 60px; gap: 36px; }
  .hero h1 { margin-bottom: 20px; }
  .hero .lead { font-size: 14px; line-height: 1.7; margin-bottom: 24px; }
  .hero__cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .hero__badge {
    font-size: 11px;
    bottom: 16px;
    left: 16px;
    padding: 8px 14px;
  }
  .hero__photo { box-shadow: 6px 6px 0 0 var(--ink); }

  /* Page hero */
  .page-hero__inner { padding: 64px 20px 72px; }

  /* Stats */
  .stats-band { padding: 56px 0; }
  .stats-band__list strong { font-size: clamp(24px, 7vw, 34px); }

  /* About */
  .about { padding: 72px 0; }
  .about__grid { gap: 32px; }
  .about__photo { box-shadow: 6px 6px 0 0 var(--ink); }

  /* Services */
  .services { padding: 72px 0; }
  .services__head { margin-bottom: 48px; }
  .service { padding: 30px 24px; box-shadow: 4px 4px 0 0 var(--ink); }
  .service__num { font-size: 30px; }
  .service h3 { font-size: 18px; }

  /* Testimonials */
  .testimonials { padding: 72px 0; }
  .testimonials__head { margin-bottom: 48px; }
  .testimonial { padding: 28px 22px; box-shadow: 4px 4px 0 0 var(--ink); }

  /* Contact */
  .contact { padding: 64px 0; }
  .contact__grid { gap: 40px; }
  .form {
    padding: 22px;
    box-shadow: 4px 4px 0 0 var(--ink);
    gap: 14px;
  }
  .form input,
  .form select,
  .form textarea { font-size: 16px; padding: 12px 14px; }
  .form__submit { width: 100%; }

  /* CTA */
  .cta-final { padding: 72px 0; }

  /* Blog */
  .blog-featured { padding: 48px 0; }
  .blog-featured__grid { gap: 28px; padding-left: 20px; padding-right: 20px; }
  .blog-featured__img { box-shadow: 6px 6px 0 0 var(--ink); }
  .blog-grid { padding: 48px 20px 72px; gap: 36px; }
  .blog-card h3 { font-size: 18px; }

  /* Blog posts */
  .post__inner { padding: 0 20px; }
  .post h1 { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  .post h2 { font-size: clamp(1.25rem, 5.5vw, 1.6rem); }
  .post p, .post ul { font-size: 1rem; }
  .post__cta { padding: 28px 20px; }
  .post__cta .btn { width: 100%; justify-content: center; }
  .post-nav { padding: 28px 0; }

  /* Legal */
  .legal { padding: 48px 0; }
  .legal__article h2 { font-size: clamp(1.3rem, 5vw, 1.7rem); }
  .legal__article p { font-size: 0.98rem; }
  .legal__intro { padding: 1rem 1.25rem; }

  /* Footer */
  .footer__inner {
    padding: 56px 20px 32px;
    gap: 32px;
  }
  .footer__cols {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .footer__base {
    padding: 18px 20px;
    text-align: center;
  }

  /* Botones — evitar desborde en mobile */
  .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
  .btn--pill { padding: 10px 32px; }

  /* Footer — zona segura garantizada */
  .footer__brand,
  .footer__cols { padding-left: 0; padding-right: 0; }
  .footer__inner { padding-left: 20px; padding-right: 20px; }
}

/* ==========================================================================
   Mobile pequeño (<= 400px) — texto aún más compacto
   ========================================================================== */
@media (max-width: 400px) {
  .hero h1 { font-size: 24px; }
  .hero h1 em { font-size: 30px; }
  .hero h1 .h1-tail { font-size: 24px; }
  .page-hero h1 { font-size: 22px; }
  .page-hero h1 em { font-size: 28px; }
  .cta-final h2 { font-size: 20px; }
  .services__head h2 { font-size: 18px; }
  .about__content h2,
  .contact__intro h2,
  .testimonials__head h2,
  .blog-featured h2 { font-size: 16px; }
  .footer__cols { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Divisores entre secciones (outline editorial)
   ========================================================================== */
.hero,
.stats-band,
.about,
.services,
.testimonials,
.contact,
.cta-final,
.page-hero,
.blog-featured {
  border-bottom: var(--stroke) solid var(--ink);
}
/* Section wrapping the blog grid on blog.html gets the divider */
.blog-grid-section {
  border-bottom: var(--stroke) solid var(--ink);
}

/* ==========================================================================
   Difuminado únicamente entre el page-hero de sobre-mi y la sección "Mi historia"
   ========================================================================== */
body.page-sobre-mi .page-hero--sage {
  background: linear-gradient(to bottom, var(--sage) 0%, var(--sage) 45%, var(--warm-gray) 100%) !important;
  border-bottom: 0 !important;
}
body.page-sobre-mi .about {
  border-top: 0;
}

.service__link {
  padding: 8px 14px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink) !important;
  letter-spacing: 0.18em;
  font-size: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}
.service__link:hover {
  background: var(--ink);
  color: var(--white) !important;
  opacity: 1 !important;
}

/* Blog — "Leer más" CTA */
.blog-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 16px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  align-self: flex-start;
  transition: background 0.2s ease, color 0.2s ease;
}
.blog-card__cta:hover {
  background: var(--ink);
  color: var(--white);
}
.blog-featured__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 14px 30px;
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius);
  background: var(--coral);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  box-shadow: 3px 3px 0 0 var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.blog-featured__cta:hover {
  background: var(--coral-dark);
  color: var(--white);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 0 var(--ink);
}

/* Logo — cursivo editorial (retorno a Cormorant italic) */
/* .logo — ver bloque principal arriba */
.logo span {
  font-style: normal;
  opacity: 0.5;
  margin: 0 4px;
}


/* ──────────────────────────────────────────────────────────────────────────
   Tweaks aplicados (migrados desde tweaks-panel.jsx / EDITMODE blocks)
   Valores ajustados en Claude Design — ahora estáticos en CSS.
   ────────────────────────────────────────────────────────────────────────── */

/* Imagen hero (index) */
.hero__photo img {
  object-fit: cover;
  object-position: center top;
}

/* Imagen about (index) */
.about__photo img {
  object-fit: cover;
  object-position: center 20%;
}

/* Imagen about (sobre-mi) */
body.page-sobre-mi .about__photo img {
  object-position: center top;
}

/* Line-height — index.html */
.hero h1, .hero h1 em { line-height: 0.8; }
#sobre-mi .about__content h2,
#sobre-mi .about__content h2 em { line-height: 1; }
#servicios .services__head h2,
#servicios .services__head h2 em { line-height: 0.8; }
.testimonials__head h2,
.testimonials__head h2 em { line-height: 0.95; }
#faq .services__head h2,
#faq .services__head h2 em { line-height: 0.95; }
.cta-final h2, .cta-final h2 em { line-height: 1.05; }
#contacto .contact__intro h2,
#contacto .contact__intro h2 em { line-height: 1; }

/* sobre-mi.html — overrides específicos por body class */
body.page-sobre-mi .page-hero h1,
body.page-sobre-mi .page-hero h1 em { line-height: 1.1; }
body.page-sobre-mi .about__content h2,
body.page-sobre-mi .about__content h2 em { line-height: 1; }
body.page-sobre-mi .services .services__head h2,
body.page-sobre-mi .services .services__head h2 em { line-height: 0.79; }
body.page-sobre-mi .cta-final h2,
body.page-sobre-mi .cta-final h2 em { line-height: 1; }

/* servicios.html */
body.page-servicios .page-hero h1,
body.page-servicios .page-hero h1 em { line-height: 1; }
body.page-servicios #modalidades .services__head h2,
body.page-servicios #modalidades .services__head h2 em { line-height: 1; }
body.page-servicios #areas .services__head h2,
body.page-servicios #areas .services__head h2 em { line-height: 1; }
body.page-servicios #proceso .services__head h2,
body.page-servicios #proceso .services__head h2 em { line-height: 0.87; }
body.page-servicios #faq .services__head h2,
body.page-servicios #faq .services__head h2 em { line-height: 0.87; }
body.page-servicios #cta-final h2,
body.page-servicios #cta-final h2 em { line-height: 1.1; }

/* blog.html */
body.page-blog .page-hero h1,
body.page-blog .page-hero h1 em { line-height: 1.05; }
body.page-blog .blog-featured h2,
body.page-blog .blog-featured h2 em { line-height: 0.86; }
body.page-blog .blog-card h3,
body.page-blog .blog-card h3 em { line-height: 1.15; }
body.page-blog .cta-final h2,
body.page-blog .cta-final h2 em { line-height: 1.07; }

/* contacto.html */
body.page-contacto .page-hero h1,
body.page-contacto .page-hero h1 em { line-height: 1; }
body.page-contacto .contact__intro h2,
body.page-contacto .contact__intro h2 em { line-height: 1; }

/* Posts del blog (.post h1 / h2) */
.post h1, .post h1 em { line-height: 1.1; }
.post h2, .post h2 em { line-height: 1.3; }

/* ──────────────────────────────────────────────────────────────────────────
   Sección "Sigue leyendo" en posts del blog (cards estilo blog.html)
   ────────────────────────────────────────────────────────────────────────── */
.related-posts {
  padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 9vw, 112px);
  background: var(--cream, #F4F3F2);
  border-top: 1.5px solid var(--ink, #201E1F);
}
.blog-card h3,
.blog-featured h2 { font-style: italic; }

/* Post navigation bar */
.post-nav {
  background: var(--cream);
  padding: 40px 0;
  border-top: 1px solid rgba(32, 30, 31, 0.18);
}
.post-nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.post-nav__back,
.post-nav__forward {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink);
  opacity: 0.65;
  transition: opacity 0.2s ease;
  text-decoration: none;
}
.post-nav__back:hover,
.post-nav__forward:hover { opacity: 1; }
.post-nav__forward { text-align: right; max-width: 55%; }
@media (max-width: 640px) {
  .post-nav__inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .post-nav__forward { text-align: left; max-width: 100%; }
}
.related-posts .services__head { text-align: left; margin-bottom: 32px; }
.related-posts .blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  padding: 0;
}
.related-posts .blog-card h3,
.related-posts .blog-card h3 em { line-height: 1.15; }
@media (max-width: 768px) {
  .related-posts .blog-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* blog-pan: titular alineado al espacio entre líneas de blog.html (page-hero h1: 1.05) */
body.page-post.page-post--pan .post h1,
body.page-post.page-post--pan .post h1 em { line-height: 1.05; }

/* ==========================================================================
   Tablet (641px – 900px) — rejillas a 2 columnas para que cada
   componente encaje sin saltar directamente a una sola columna
   ========================================================================== */
@media (min-width: 641px) and (max-width: 900px) {
  .blog-grid,
  .services__grid--three,
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  /* La tercera tarjeta impar ocupa el ancho completo y se centra */
  .services__grid--three > .service:nth-child(3):last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }
  .stats-band__list { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .blog-grid { padding: 64px 0 96px; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}

/* ==========================================================================
   Móvil — refuerzo: imágenes y media nunca desbordan su contenedor
   ========================================================================== */
@media (max-width: 640px) {
  .post__hero-img { margin: 1.25rem 0 2rem; }
  .blog-card__img,
  .blog-featured__img,
  .post__hero-img,
  .hero__photo,
  .about__photo { max-width: 100%; }
  /* Evita que el CTA del post se desborde en pantallas estrechas */
  .post__cta { padding: 24px 18px; }
}

/* ==========================================================================
   Carrusel de testimonios (solo móvil/tablet ≤ 900px)
   Se muestran de uno en uno con deslizamiento, puntos y flechas.
   ========================================================================== */
.carousel-controls { display: none; }
@media (max-width: 900px) {
  .testimonials__grid[data-carousel] {
    display: flex;
    flex-wrap: nowrap;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 16px;
    padding: 6px 4px 8px;
    margin: 0 -4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .testimonials__grid[data-carousel]::-webkit-scrollbar { display: none; }
  .testimonials__grid[data-carousel] > .testimonial {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    scroll-snap-align: center;
  }

  .carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 28px;
  }
  .carousel-dots { display: flex; align-items: center; gap: 9px; }
  .carousel-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    border: 1.5px solid var(--ink);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
  }
  .carousel-dot.is-active { background: var(--coral); transform: scale(1.15); }
  .carousel-arrow {
    width: 40px; height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1.5px solid var(--ink);
    background: var(--white);
    color: var(--ink);
    font-size: 22px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 3px 3px 0 0 var(--ink);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  }
  .carousel-arrow:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 0 var(--ink); }
  .carousel-arrow:hover { background: var(--coral); color: var(--white); }
}

/* ==========================================================================
   Acordeón de FAQ (solo móvil/tablet ≤ 900px)
   Cada pregunta se despliega al hacer clic para no verse tan largo.
   ========================================================================== */
@media (max-width: 900px) {
  #faq .services__grid[data-accordion] {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  #faq .services__grid--three[data-accordion] > .service,
  [data-accordion] .service {
    padding: 18px 20px;
    gap: 0;
    box-shadow: 4px 4px 0 0 var(--ink);
    max-width: none;
    grid-column: auto;
    margin: 0;
    cursor: pointer;
  }
  #faq [data-accordion] .service h3,
  [data-accordion] .service h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0;
    min-height: 0;
    width: 100%;
    user-select: none;
  }
  [data-accordion] .service h3::after {
    content: "+";
    flex-shrink: 0;
    font-size: 24px;
    line-height: 1;
    font-weight: 400;
    color: var(--coral);
    transition: transform 0.25s ease;
  }
  [data-accordion] .service.is-open h3::after {
    content: "−";
    transform: rotate(180deg);
  }
  [data-accordion] .service p {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease, margin-top 0.25s ease;
  }
  [data-accordion] .service.is-open p {
    max-height: 600px;
    opacity: 0.85;
    margin-top: 12px;
  }
  [data-accordion] .service h3:focus-visible {
    outline: 2px solid var(--coral);
    outline-offset: 4px;
    border-radius: 2px;
  }
}
