:root {
  --paper: #f6f3ee;
  --paper-light: #fffdf8;
  --paper-cool: #eef3f0;
  --ink: #26322d;
  --muted: #66746d;
  --sage: #788d78;
  --sage-deep: #435c53;
  --water: #6f9097;
  --clay: #b97961;
  --rose: #d9b5a7;
  --gold: #d8aa6d;
  --line: rgba(55, 75, 68, 0.17);
  --shadow: 0 22px 60px rgba(51, 67, 61, 0.13);
  --nav-h: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(246, 243, 238, 0.96)),
    var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Candara, "Trebuchet MS", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: var(--sage-deep);
  text-decoration-color: rgba(67, 92, 83, 0.42);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

a:hover {
  color: #253f38;
}

:focus-visible {
  outline: 3px solid rgba(185, 121, 97, 0.55);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 30;
  transform: translateY(-180%);
  border-radius: 6px;
  background: var(--paper-light);
  color: var(--ink);
  padding: 0.65rem 0.95rem;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(67, 92, 83, 0.13);
  background: rgba(255, 253, 248, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.04rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.site-nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.96rem;
  text-decoration: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.45rem;
  height: 1px;
  background: transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a[aria-current="page"]::after {
  background: var(--clay);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 253, 248, 0.74);
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

body.nav-open .nav-toggle {
  border-color: rgba(67, 92, 83, 0.3);
  background: rgba(238, 243, 240, 0.96);
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: calc(86svh - var(--nav-h));
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(90deg, rgba(24, 39, 38, 0.58), rgba(39, 52, 47, 0.31) 46%, rgba(32, 48, 49, 0.16)),
    linear-gradient(180deg, rgba(36, 47, 44, 0.14), rgba(36, 47, 44, 0.5)),
    url("Conny_iglesia.png");
  background-position: center 48%;
  background-size: cover;
  color: #fff8ef;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 24%;
  background: linear-gradient(180deg, rgba(246, 243, 238, 0), var(--paper));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1040px, 90vw);
  margin: 0 auto;
  padding: 4rem 0 5rem;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.75rem;
  color: var(--clay);
  font-size: 0.83rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f7d9bd;
  text-shadow: 0 1px 10px rgba(29, 40, 39, 0.38);
}

h1,
h2,
h3,
blockquote,
.poem-lines {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  font-size: 4.4rem;
  line-height: 1.02;
}

h2 {
  margin: 0 0 1rem;
  font-size: 2.2rem;
  line-height: 1.15;
}

h3 {
  margin: 0 0 0.75rem;
  font-size: 1.42rem;
  line-height: 1.2;
}

.hero h1 {
  max-width: 780px;
  color: #fff8ef;
  text-shadow: 0 2px 24px rgba(23, 37, 35, 0.52);
}

.hero-poem {
  max-width: 760px;
  margin-top: 1.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.75;
  text-shadow: 0 2px 22px rgba(23, 37, 35, 0.5);
}

.hero-poem p {
  margin: 0 0 0.9rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0.72rem 1.08rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.button:hover {
  transform: translateY(-1px);
}

.button-light {
  background: rgba(255, 253, 248, 0.92);
  color: #2e433d;
}

.button-quiet {
  border-color: rgba(255, 248, 238, 0.72);
  color: #fff8ef;
  background: rgba(255, 255, 255, 0.08);
}

.button-warm {
  background: var(--clay);
  color: #fffaf3;
  box-shadow: 0 14px 30px rgba(185, 121, 97, 0.2);
}

.button-warm:hover {
  color: #fffaf3;
  background: #a96954;
}

.section {
  padding: 6rem 5vw;
}

.section-soft {
  background:
    linear-gradient(180deg, rgba(238, 243, 240, 0.82), rgba(250, 247, 242, 0.94)),
    var(--paper-cool);
}

.section-water {
  background:
    linear-gradient(135deg, rgba(67, 92, 83, 0.93), rgba(111, 144, 151, 0.88)),
    var(--sage-deep);
  color: #fff8ef;
}

.section-water .section-kicker {
  color: #f7d9bd;
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.narrow {
  width: min(760px, 100%);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 2rem;
}

.section-welcome {
  padding-top: 4.5rem;
}

.lead {
  font-size: 1.12rem;
}

.prose p {
  margin: 0 0 1.15rem;
  color: var(--muted);
}

.prose h2 {
  margin-top: 2.7rem;
}

.prose blockquote {
  margin: 2.6rem 0 0;
  padding: 1.4rem 0 1.4rem 1.4rem;
  border-left: 3px solid var(--clay);
  color: var(--sage-deep);
  font-size: 1.55rem;
  line-height: 1.45;
}

.poem-grid,
.library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.poem-card,
.theme-card,
.quiet-panel,
.contact-form,
.poem-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: var(--shadow);
}

.poem-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.poem-card:hover,
.poem-card:focus-within {
  border-color: rgba(67, 92, 83, 0.28);
  box-shadow: 0 26px 70px rgba(51, 67, 61, 0.16);
  transform: translateY(-2px);
}

.poem-card p {
  color: var(--muted);
}

.poem-card a {
  margin-top: auto;
  font-weight: 700;
}

.leaf-mark {
  width: 36px;
  height: 18px;
  margin: 0 0 1.15rem;
  border-bottom: 1px solid rgba(67, 92, 83, 0.34);
  border-left: 1px solid rgba(67, 92, 83, 0.3);
  border-radius: 0 0 0 18px;
}

.book-feature {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
}

.book-cover-wrap {
  width: min(100%, 340px);
}

.book-cover-wrap img,
.book-intro img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(38, 50, 45, 0.24);
}

.book-copy {
  max-width: 560px;
}

.book-copy p,
.about-preview p,
.page-hero p {
  color: var(--muted);
  font-size: 1.09rem;
}

.book-copy .button {
  margin-top: 1.1rem;
}

.about-preview {
  max-width: 760px;
}

.about-preview p {
  color: rgba(255, 248, 239, 0.86);
  margin-bottom: 1.4rem;
}

.page-hero {
  --page-hero-image: url("Conny_iglesia.png");
  --page-hero-position: center;
  padding: 5.5rem 5vw 4rem;
  background-image:
    linear-gradient(90deg, rgba(24, 39, 38, 0.68), rgba(42, 55, 50, 0.38) 52%, rgba(44, 59, 58, 0.22)),
    linear-gradient(180deg, rgba(36, 47, 44, 0.18), rgba(36, 47, 44, 0.54)),
    var(--page-hero-image);
  background-position: var(--page-hero-position);
  background-size: cover;
  border-bottom: 1px solid var(--line);
  color: #fff8ef;
}

.page-hero h1 {
  color: #fff8ef;
  font-size: 3.6rem;
  text-shadow: 0 2px 24px rgba(23, 37, 35, 0.52);
}

.page-hero .section-kicker,
.page-hero .breadcrumb a {
  color: #f7d9bd;
}

.page-hero p {
  color: rgba(255, 248, 239, 0.9);
  text-shadow: 0 2px 18px rgba(23, 37, 35, 0.42);
}

.library-hero {
  --page-hero-image: url("Biblioteca 4.jpeg");
  --page-hero-position: center 46%;
}

.book-hero {
  --page-hero-image: url("Descubrir libro.jpeg");
  --page-hero-position: center 54%;
  padding-bottom: 5rem;
}

.about-hero {
  --page-hero-image: url("hero-sobre-v2.png");
  --page-hero-position: center 52%;
}

.contact-hero {
  --page-hero-image: url("Contacto.jpeg");
  --page-hero-position: center 58%;
}

.book-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 3rem;
  align-items: center;
}

.two-column,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 2rem;
  align-items: start;
}

.quiet-panel,
.theme-card {
  padding: 1.5rem;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.theme-card:focus-within {
  border-color: rgba(67, 92, 83, 0.28);
  box-shadow: 0 24px 64px rgba(51, 67, 61, 0.16);
}

.quiet-panel h2,
.theme-card h2 {
  font-size: 1.55rem;
}

.theme-poems {
  display: grid;
  gap: 1rem;
}

.library-poem {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.library-poem h3 {
  margin-bottom: 0.45rem;
  font-size: 1.18rem;
}

.library-poem p {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.library-poem a {
  font-weight: 700;
  text-decoration: none;
}

.soft-list,
.poem-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.soft-list li,
.poem-list li {
  position: relative;
  padding: 0.72rem 0 0.72rem 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.soft-list li::before,
.poem-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.42rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose);
}

.poem-list a {
  font-weight: 700;
  text-decoration: none;
}

.library-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.breadcrumb {
  margin: 0 0 1rem;
}

.breadcrumb a {
  font-size: 0.96rem;
  font-weight: 700;
}

.poem-title h1 {
  max-width: 780px;
}

.poem-shell {
  width: min(780px, 100%);
  margin: 0 auto;
  padding: 2.4rem;
}

.poem-lines {
  color: var(--ink);
  font-size: 1.36rem;
  line-height: 1.9;
}

.poem-lines p {
  margin: 0 0 0.2rem;
}

.poem-reflection {
  margin: 2.2rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.poem-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

.poem-nav a {
  font-weight: 700;
}

.contact-form {
  padding: 1.5rem;
}

.field-group {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

label {
  color: var(--ink);
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(67, 92, 83, 0.26);
  border-radius: 7px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--ink);
  font: inherit;
  padding: 0.78rem 0.85rem;
}

textarea {
  resize: vertical;
}

.form-note {
  min-height: 1.6rem;
  margin: 1rem 0 0;
  color: var(--sage-deep);
}

.contact-mail-fallback {
  display: inline-flex;
  margin-top: 0.8rem;
  border-color: rgba(67, 92, 83, 0.24);
  color: var(--sage-deep);
  background: rgba(238, 243, 240, 0.76);
}

.contact-mail-fallback.is-visible {
  display: inline-flex;
}

.contact-note p {
  color: var(--muted);
}

.privacy-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-hero {
  --page-hero-image: url("hero-inicio-v2.png");
  --page-hero-position: center 54%;
}

.legal-content {
  display: grid;
  gap: 2.25rem;
}

.legal-alert {
  border-left: 3px solid var(--clay);
  border-radius: 0 7px 7px 0;
  background: rgba(217, 181, 167, 0.2);
  padding: 1rem 1.1rem;
}

.legal-section {
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--line);
}

.legal-section:last-of-type {
  padding-bottom: 0;
  border-bottom: 0;
}

.legal-section h2 {
  font-size: 1.65rem;
}

.legal-section p,
.legal-section address {
  margin: 0 0 1rem;
  color: var(--muted);
  font-style: normal;
}

.legal-placeholder {
  color: #8b4e3d;
  font-weight: 700;
}

.legal-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 5vw;
  border-top: 1px solid var(--line);
  background: #eef3f0;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer p:first-child {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

.footer-copy {
  display: grid;
  gap: 0.15rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
}

.footer-links a {
  font-size: 0.94rem;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 900px) {
  .poem-grid,
  .library-grid,
  .book-feature,
  .book-intro,
  .two-column,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .book-cover-wrap,
  .book-intro img {
    width: min(280px, 76vw);
  }

  .book-feature {
    gap: 2rem;
  }

  h1 {
    font-size: 3.45rem;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 66px;
    padding: 0 1rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.8rem 1rem 1rem;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 253, 248, 0.98);
    box-shadow: var(--shadow);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 0.75rem 0;
  }

  .site-nav a::after {
    bottom: 0.35rem;
    right: auto;
    width: 46px;
  }

  .hero {
    min-height: auto;
    align-items: flex-end;
    background-position: center;
  }

  .hero-content {
    width: 100%;
    padding: 5rem 1.2rem 4.2rem;
  }

  h1,
  .page-hero h1 {
    font-size: 2.85rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .hero-poem,
  .poem-lines {
    font-size: 1.18rem;
  }

  .section,
  .page-hero {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .page-hero {
    padding-top: 4rem;
    padding-bottom: 3rem;
  }

  .button-row,
  .button {
    width: 100%;
  }

  .poem-shell {
    padding: 1.5rem;
  }

  .poem-nav {
    display: grid;
  }

  .site-footer {
    display: grid;
  }

  .footer-links {
    padding-top: 0.5rem;
  }
}
