:root {
  --ink: #2d3239;
  --ink-soft: #5a6270;
  --accent: #4a7a6f;
  --accent-dark: #3a6157;
  --bg: #fdfcfa;
  --bg-alt: #f3f1ec;
  --line: #e4e0d8;
  --max: 900px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 1.05rem;
}
h1, h2, h3, nav, .btn, footer { font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif; }

/* ---------- Nav ---------- */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253,252,250,.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem 1.25rem;
}
.brand { font-weight: 600; font-size: 1rem; color: var(--ink); text-decoration: none; letter-spacing: .02em; }
.brand span { color: var(--accent); }
nav ul { list-style: none; display: flex; gap: 1.4rem; }
nav a { text-decoration: none; color: var(--ink-soft); font-size: .92rem; }
nav a:hover { color: var(--accent-dark); }
nav a.current { color: var(--accent-dark); font-weight: 600; }
#menu-toggle { display: none; }
.hamburger {
  display: none; cursor: pointer; padding: .4rem;
  border: none; background: none; font-size: 1.5rem; color: var(--ink);
}
@media (max-width: 760px) {
  .hamburger { display: block; }
  nav { position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .25s ease; }
  #menu-toggle:checked ~ nav { max-height: 22rem; }
  nav ul { flex-direction: column; gap: 0; padding: .5rem 0; }
  nav li { border-top: 1px solid var(--line); }
  nav a { display: block; padding: .7rem 1.25rem; }
}

/* ---------- Layout ---------- */
section { padding: 3.5rem 1.25rem; }
.inner { max-width: var(--max); margin: 0 auto; }
.alt { background: var(--bg-alt); }
h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 1.2rem; color: var(--ink); }
h2::after { content: ""; display: block; width: 3rem; height: 3px; background: var(--accent); margin-top: .5rem; border-radius: 2px; }
h3 { font-size: 1.1rem; font-weight: 600; margin: 1.5rem 0 .5rem; color: var(--accent-dark); }
p + p { margin-top: 1rem; }
ul.list { margin: 1rem 0 1rem 1.3rem; }
ul.list li { margin-bottom: .45rem; }
a { color: var(--accent-dark); }
strong { font-weight: 600; }

/* ---------- Hero G1: retrato + texto ---------- */
.hero {
  background: var(--bg);
  padding: 3.25rem 1.25rem 3rem;
}
.hero-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 2.5rem;
  align-items: center;
}
.hero .portrait {
  height: 330px;
  border-radius: 6px;
  background-image: image-set(url("images/web/ana-800.webp") type("image/webp"),
                              url("images/web/ana-800.jpg")  type("image/jpeg"));
  background-size: 160% auto;
  background-position: 50% 39%;
  background-repeat: no-repeat;
  background-color: var(--bg-alt);
}
.hero .hero-text {
  display: flex; flex-direction: column; justify-content: center;
}
.hero .eyebrow {
  font-family: 'Segoe UI', sans-serif; font-size: .78rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
}
.hero h1 { font-size: clamp(1.45rem, 2.4vw, 1.95rem); font-weight: 400; line-height: 1.3; margin-top: .5rem; }
.hero .subtitle { color: var(--accent-dark); font-style: italic; margin-top: .7rem; }
.hero .lead { color: var(--ink-soft); margin-top: 1rem; font-size: .98rem; }
@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; gap: 1.75rem; justify-items: center; }
  /* En móvil el retrato es cuadrado y se escala, en vez de recortarse por abajo.
     El encuadre (160% / 50% 39%) es el mismo que en escritorio. */
  .hero .portrait {
    width: 100%; max-width: 330px; height: auto; aspect-ratio: 1 / 1;
  }
  .hero .hero-text { width: 100%; }
}

/* ---------- Cabecera de página interior ---------- */
.page-head { background: var(--bg-alt); padding: 3rem 1.25rem 2.5rem; }
.page-head h1 { font-family: Georgia, serif; font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.3; }
.page-head p { color: var(--ink-soft); margin-top: .8rem; max-width: 44rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block; margin-top: 1.7rem; padding: .75rem 1.8rem;
  background: var(--accent); color: #fff; text-decoration: none;
  border-radius: 4px; font-size: .95rem; letter-spacing: .02em;
  align-self: flex-start;
}
.btn:hover { background: var(--accent-dark); }
.btn-ghost {
  background: transparent; color: var(--accent-dark);
  border: 1px solid var(--accent);
}
.btn-ghost:hover { background: var(--accent); color: #fff; }

/* ---------- Notas ---------- */
.note {
  background: #fff; border-left: 4px solid var(--accent);
  padding: 1rem 1.25rem; margin-top: 1.5rem; border-radius: 0 6px 6px 0;
  font-size: .97rem;
}
.alt .note { background: var(--bg); }

/* ---------- Recursos ---------- */
.entry {
  border-left: 3px solid var(--line);
  padding: .1rem 0 .1rem 1.25rem;
  margin-top: 1.75rem;
}
.entry:first-of-type { margin-top: 1.25rem; }
.entry h4 {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.02rem; font-weight: 600; color: var(--ink); line-height: 1.45;
}
.entry p { font-size: .97rem; color: var(--ink-soft); margin-top: .4rem; }
.entry .links { list-style: none; margin-top: .6rem; font-size: .95rem; }
.entry .links li { margin-bottom: .25rem; }
.entry .links a { text-decoration: none; border-bottom: 1px solid rgba(74,122,111,.35); }
.entry .links a:hover { border-bottom-color: var(--accent); }
.entry .links a::before { content: "→ "; color: var(--accent); }

/* ---------- Contacto ---------- */
.contact-email { font-size: 1.2rem; font-weight: 600; word-break: break-all; }
.fineprint { font-size: .9rem; color: var(--ink-soft); margin-top: 1.5rem; }

footer {
  border-top: 1px solid var(--line); padding: 1.8rem 1.25rem;
  text-align: center; color: var(--ink-soft); font-size: .85rem;
}
footer a { color: var(--ink-soft); }
