/* =========================================================
   Miguel & Estrella — Un mundo por crear
   Hoja de estilos principal
   ========================================================= */

/* ---------- 1. Base ---------- */
:root {
  --paper: #f7f2e8;
  --paper-2: #efe7d8;
  --paper-3: #e5dac7;
  --cream: #fcf8f0;
  --ink: #2a2e27;
  --muted: #6e7166;
  --green: #3f5a49;
  --green-deep: #2d4236;
  --rust: #a96145;
  --gold: #c49a5c;
  --line: rgba(42, 46, 39, 0.15);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Karla", "Segoe UI", Arial, sans-serif;
  --shadow: 0 24px 60px rgba(58, 45, 30, 0.14);
  --shadow-soft: 0 14px 36px rgba(58, 45, 30, 0.09);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --pad: clamp(20px, 7vw, 110px);
  --maxw: 1320px;
  --section-y: clamp(64px, 9vw, 120px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 8% 2%, rgba(196, 154, 92, 0.09), transparent 34rem),
    radial-gradient(circle at 96% 88%, rgba(63, 90, 73, 0.07), transparent 38rem);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

h1,
h2,
h3,
blockquote {
  font-family: var(--serif);
  font-weight: 400;
}

p {
  margin-top: 0;
}

::selection {
  background: var(--rust);
  color: var(--cream);
}

:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--green-deep);
  color: var(--cream);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

/* ---------- 2. Barra superior y cabecera ---------- */
.topbar {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 4px 16px;
  background: var(--green-deep);
  color: #f2eadb;
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-align: center;
}

.topbar i {
  color: var(--gold);
  font-style: normal;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 0 var(--pad);
  background: rgba(247, 242, 232, 0.9);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(58, 45, 30, 0.06);
}

.header-inner {
  width: 100%;
  max-width: var(--maxw);
  min-height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand-seal {
  display: block;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  color: var(--green);
  transition: transform 0.6s var(--ease);
}

.brand:hover .brand-seal {
  transform: rotate(-8deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.brand-text strong i {
  color: var(--rust);
  font-size: 0.82rem;
}

.brand-text small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.52rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 40px);
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  color: #5f645a;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--rust);
  transition: width 0.3s var(--ease);
}

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

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  width: 100%;
}

.site-nav .nav-cta {
  padding: 11px 18px;
  background: var(--green);
  color: var(--cream);
  transition: background 0.25s ease, transform 0.25s ease;
}

.site-nav .nav-cta::after {
  display: none;
}

.site-nav .nav-cta:hover {
  background: var(--green-deep);
  color: var(--cream);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 11px;
  width: 20px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease), opacity 0.2s ease;
}

.nav-toggle span:first-child {
  top: 17px;
}

.nav-toggle span:last-child {
  top: 24px;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  top: 21px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  top: 21px;
  transform: rotate(-45deg);
}

/* ---------- 3. Tipografía y utilidades ---------- */
.eyebrow,
.kicker {
  margin: 0;
  color: var(--green);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow-line {
  width: 28px;
  height: 1px;
  background: var(--rust);
}

.kicker {
  color: var(--rust);
}

h1 {
  margin: 24px 0 22px;
  font-size: clamp(3rem, 6.4vw, 5.7rem);
  line-height: 0.99;
  letter-spacing: -0.035em;
}

h1 em,
h2 em {
  color: var(--rust);
  font-weight: 400;
}

h2 {
  margin: 14px 0 0;
  font-size: clamp(2.2rem, 4.2vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 52ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.9;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.btn span {
  font-size: 0.95rem;
}

.btn-solid {
  background: var(--green);
  color: var(--cream);
}

.btn-solid:hover {
  background: var(--green-deep);
  transform: translateY(-2px);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--rust);
  color: var(--rust);
  transform: translateY(-2px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rust);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.link-arrow span {
  color: var(--rust);
  font-size: 1rem;
  transition: transform 0.3s var(--ease);
}

.link-arrow:hover span {
  transform: translateX(5px);
}

.section-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
}

/* ---------- 4. Portada ---------- */
.hero {
  width: 100%;
  max-width: 1460px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 108px) var(--pad) clamp(70px, 9vw, 120px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(34px, 6vw, 88px);
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-art {
  position: relative;
  min-height: clamp(380px, 43vw, 550px);
}

.hero-halo {
  position: absolute;
  top: 3%;
  right: 2%;
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 200, 156, 0.85) 0%, rgba(226, 200, 156, 0.45) 52%, transparent 72%);
}

.hero-frame {
  position: absolute;
  top: 2%;
  left: 0;
  width: 78%;
  margin: 0;
  padding: 11px 11px 0;
  background: var(--cream);
  box-shadow: var(--shadow);
  transform: rotate(-2.2deg);
}

.hero-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-frame figcaption {
  padding: 11px 4px 13px;
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-slip {
  position: absolute;
  right: 0;
  bottom: 3%;
  width: 47%;
  padding: 25px 24px 22px;
  background: var(--cream);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: rotate(3deg);
}

.hero-slip > span {
  display: block;
  color: var(--rust);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-slip p {
  margin: 13px 0 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(0.98rem, 1.4vw, 1.14rem);
  line-height: 1.7;
}

.hero-slip small {
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}

.hero-stamp {
  position: absolute;
  left: 1%;
  bottom: 1%;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rust);
  border-radius: 50%;
  background: rgba(247, 242, 232, 0.72);
  color: var(--rust);
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.55;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-9deg);
}

/* ---------- 5. Historia ---------- */
.story {
  padding: var(--section-y) var(--pad);
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 760px;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(34px, 6vw, 90px);
  margin-top: clamp(34px, 5vw, 56px);
  align-items: start;
}

.story-text p {
  margin-bottom: 17px;
  color: #5f6459;
  font-size: 0.98rem;
  line-height: 1.95;
}

.story-text p:last-child {
  margin-bottom: 0;
}

.story-sign {
  margin-top: 26px !important;
  color: var(--rust) !important;
  font-family: var(--serif);
  font-size: 1.2rem !important;
  font-style: italic;
}

.story-note {
  position: relative;
  padding: clamp(28px, 4vw, 44px);
  background: var(--green);
  color: var(--cream);
  overflow: hidden;
}

.story-note::before {
  content: "✳";
  position: absolute;
  right: -8px;
  bottom: -34px;
  color: rgba(252, 248, 240, 0.13);
  font-size: 8rem;
  line-height: 1;
}

.story-note-label {
  margin: 0 0 14px;
  color: #d8c39e;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.story-note-title {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  line-height: 1.22;
}

.story-note-text {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(252, 248, 240, 0.76);
  font-size: 0.9rem;
  line-height: 1.8;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 46px);
  margin: clamp(42px, 6vw, 70px) 0 0;
  padding: clamp(24px, 3vw, 32px) 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.values li {
  display: grid;
  grid-template-columns: 30px 1fr;
  column-gap: 12px;
  align-items: baseline;
}

.values li > span {
  grid-row: span 2;
  color: var(--rust);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.values strong {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
}

.values p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

/* ---------- 6. Secciones de Miguel y Estrella ---------- */
.feature {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--paper);
}

.feature--reverse .feature-art {
  order: 2;
}

.feature-art {
  position: relative;
  min-height: clamp(430px, 47vw, 620px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: clamp(36px, 5vw, 70px);
  background: var(--paper-3);
  overflow: hidden;
}

.feature-art::before {
  content: "";
  position: absolute;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(196, 154, 92, 0.2);
  top: 8%;
  left: 14%;
}

.feature-art--rose {
  background: #eadbd3;
}

.feature-art--rose::before {
  background: rgba(169, 97, 69, 0.14);
}

.feature-frame {
  position: relative;
  z-index: 1;
  width: min(82%, 450px);
  margin: 0;
  padding: 12px;
  background: var(--cream);
  box-shadow: var(--shadow);
  transform: rotate(-1.4deg);
}

.feature--reverse .feature-frame {
  transform: rotate(1.4deg);
}

.feature-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.feature-caption {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}

.feature-copy {
  align-self: center;
  padding: clamp(50px, 7vw, 100px) clamp(28px, 6vw, 90px);
}

.feature-copy h2 {
  margin-bottom: 24px;
}

.feature-copy > p:not(.kicker) {
  max-width: 50ch;
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.9;
}

.mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mini-list li + li::before {
  content: "·";
  margin: 0 12px;
  color: var(--rust);
}

/* ---------- 7. Cita ---------- */
.quote {
  position: relative;
  padding: clamp(80px, 11vw, 140px) var(--pad);
  background: var(--green-deep);
  color: var(--cream);
  text-align: center;
  overflow: hidden;
}

.quote::before {
  content: "";
  position: absolute;
  inset: -40% 20% auto;
  height: 90%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 154, 92, 0.16), transparent 68%);
}

.quote-mark {
  position: relative;
  display: block;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 4rem;
  line-height: 0.6;
}

.quote blockquote {
  position: relative;
  max-width: 900px;
  margin: 26px auto 24px;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.quote > p {
  position: relative;
  margin: 0;
  color: rgba(252, 248, 240, 0.7);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.quote-star {
  display: block;
  margin-top: 38px;
  color: var(--gold);
  font-size: 1.1rem;
}

/* ---------- 8. Pie ---------- */
.site-footer {
  padding: clamp(52px, 7vw, 80px) var(--pad) 24px;
  background: var(--paper-2);
}

.footer-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.footer-seal {
  display: block;
  width: 58px;
  height: 58px;
  color: var(--green);
}

.footer-name span {
  color: var(--rust);
}

.footer-admin {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

.footer-admin:hover {
  color: var(--rust);
}

.footer-inner > p {
  max-width: 46ch;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.8;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 30px;
  margin: 28px 0 42px;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-nav a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--rust);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}

.footer-bottom b {
  color: var(--rust);
  font-weight: 400;
}

/* ---------- 9. Cabeceras de página interior ---------- */
.page-hero {
  position: relative;
  padding: clamp(68px, 9vw, 120px) var(--pad) clamp(58px, 8vw, 100px);
  overflow: hidden;
}

.page-hero--miguel {
  background: linear-gradient(120deg, #e9e0cf 0%, #f2e9da 100%);
}

.page-hero--estrella {
  background: linear-gradient(120deg, #eadbd3 0%, #f3e6dd 100%);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(3rem, 6vw, 5.4rem);
}

.page-hero-lead {
  max-width: 58ch;
  margin: 0;
  color: #5f6459;
  font-size: 0.98rem;
  line-height: 1.9;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 38px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-meta strong {
  color: var(--ink);
  font-weight: 600;
}

.page-symbol {
  position: absolute;
  right: 6%;
  top: 50%;
  color: var(--gold);
  font-size: clamp(130px, 20vw, 270px);
  line-height: 1;
  opacity: 0.22;
  transform: translateY(-50%);
  user-select: none;
}

/* ---------- 10. Galería ---------- */
.gallery {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--section-y) var(--pad);
}

.gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(24px, 5vw, 60px);
  margin-bottom: clamp(36px, 5vw, 60px);
}

.gallery-head > p {
  max-width: 36ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.8;
}

.art-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 5vw, 66px) clamp(24px, 4vw, 48px);
}

.art-card {
  min-width: 0;
}

.art-open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  cursor: zoom-in;
}

.art-open img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--paper-2);
  transition: transform 0.8s var(--ease);
}

.art-open:hover img {
  transform: scale(1.035);
}

.art-zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 9px 14px;
  background: rgba(252, 248, 240, 0.95);
  color: var(--ink);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
}

.art-open:hover .art-zoom,
.art-open:focus-visible .art-zoom {
  opacity: 1;
  transform: none;
}

.art-info {
  padding-top: 18px;
}

.art-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.art-num {
  color: var(--rust);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.art-title h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.1vw, 1.7rem);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.art-tech {
  display: block;
  margin: 3px 0 11px 30px;
  color: var(--muted);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.art-legend {
  max-width: 56ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.8;
}

/* ---------- 11. Nota del artista ---------- */
.artist-note {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--pad) var(--section-y);
  text-align: center;
}

.artist-note blockquote {
  margin: 18px auto 22px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.artist-note > span {
  color: var(--rust);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- 12. Proceso ---------- */
.process {
  padding: var(--section-y) var(--pad);
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}

.process-head {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: clamp(24px, 5vw, 60px);
  margin-bottom: clamp(40px, 6vw, 70px);
}

.process-head h2 {
  margin-top: 14px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 50px);
}

.step {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.step > span {
  color: var(--rust);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.step h3 {
  margin: 10px 0 10px;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.8;
}

/* ---------- 13. Poemas ---------- */
.poems {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--section-y) var(--pad);
}

.poem-featured {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: clamp(28px, 4vw, 44px);
  background: var(--cream);
  box-shadow: var(--shadow-soft);
}

.poem-featured .poem-illu {
  margin: 0;
  min-height: 100%;
  overflow: hidden;
}

.poem-featured .poem-illu img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.poem-featured .poem-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 70px);
}

.poem-num {
  color: var(--rust);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.poem-body h2 {
  margin: 10px 0 20px;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
}

.poem-text {
  margin: 0 0 18px;
  color: #4f554b;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  font-style: italic;
  line-height: 1.9;
}

.poem-note {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.8;
}

.poem-sign {
  color: var(--rust);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.poem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
}

.poem-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--cream);
  box-shadow: var(--shadow-soft);
}

.poem-card .poem-illu {
  margin: 0;
  overflow: hidden;
}

.poem-card .poem-illu img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.poem-card:hover .poem-illu img {
  transform: scale(1.03);
}

.poem-card .poem-body {
  padding: 26px 26px 30px;
}

.poem-card .poem-body h2 {
  margin: 8px 0 14px;
  font-size: clamp(1.35rem, 2vw, 1.6rem);
}

.poem-card .poem-text {
  font-size: 1rem;
  line-height: 1.85;
}

/* Poemas sin imagen */
.poem-featured.poem--text {
  grid-template-columns: 1fr;
}

.poem-featured.poem--text .poem-body {
  align-items: center;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.poem-card.poem--text {
  border-top: 3px solid var(--rust);
}

.poem-text {
  overflow-wrap: anywhere;
}

/* Estado vacío (sin obras todavía) */
.empty-state {
  padding: clamp(48px, 8vw, 90px) 24px;
  border: 1px dashed var(--line);
  background: var(--cream);
  text-align: center;
}

.empty-state span {
  display: block;
  margin-bottom: 14px;
  color: var(--rust);
  font-size: 1.6rem;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-style: italic;
}

/* ---------- 14. Visor de cuadros ---------- */
.lightbox {
  width: min(1040px, 94vw);
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 40px 100px rgba(20, 25, 20, 0.4);
  overflow: auto;
}

.lightbox::backdrop {
  background: rgba(28, 34, 28, 0.78);
  backdrop-filter: blur(5px);
}

.lightbox[open] {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
}

.lb-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  background: var(--paper-3);
}

.lb-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 92vh;
  object-fit: contain;
}

.lb-info {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 44px);
}

.lb-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lb-close:hover {
  background: var(--green);
  color: var(--cream);
}

.lb-counter {
  color: var(--rust);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lb-info h2 {
  margin: 8px 0 4px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.lb-tech {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lb-desc {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.lb-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.lb-nav button {
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.lb-nav button:hover {
  color: var(--rust);
}

/* ---------- 15. Página 404 ---------- */
.page-404 {
  min-height: 62vh;
  display: grid;
  place-items: center;
  padding: var(--section-y) var(--pad);
  text-align: center;
}

.page-404 h1 {
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 1;
  margin: 0 0 16px;
}

.page-404 p {
  max-width: 40ch;
  margin: 0 auto 28px;
  color: var(--muted);
}

/* ---------- 16. Animaciones de entrada ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 17. Adaptación a pantallas ---------- */
@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .feature-copy {
    padding-inline: clamp(26px, 5vw, 60px);
  }

  .values {
    gap: 26px;
  }
}

@media (max-width: 880px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--pad) 26px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(58, 45, 30, 0.12);
  }

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

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav .nav-cta {
    margin-top: 14px;
    padding: 14px 18px;
    border-bottom: 0;
    text-align: center;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-art {
    min-height: 500px;
    margin-top: 12px;
  }

  .hero-frame {
    width: 70%;
  }

  .hero-slip {
    width: 48%;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .story-note {
    max-width: 560px;
  }

  .values {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .feature {
    grid-template-columns: 1fr;
  }

  .feature--reverse .feature-art {
    order: 0;
  }

  .feature-art {
    min-height: 420px;
  }

  .feature-copy {
    padding: 54px var(--pad) 70px;
  }

  .process-head {
    grid-template-columns: 1fr;
  }

  .gallery-head {
    display: block;
  }

  .gallery-head > p {
    margin-top: 20px;
  }

  .poem-featured {
    grid-template-columns: 1fr;
  }

  .poem-featured .poem-illu img {
    aspect-ratio: 16 / 9;
  }

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

  .poem-card:last-child:nth-child(odd) {
    grid-column: span 2;
  }

  .poem-card:last-child:nth-child(odd):not(.poem--text) {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .poem-card:last-child:nth-child(odd):not(.poem--text) .poem-illu img {
    height: 100%;
    aspect-ratio: auto;
  }

  .page-symbol {
    right: 2%;
    opacity: 0.14;
  }

  .lightbox[open] {
    grid-template-columns: 1fr;
  }

  .lb-media {
    max-height: 48vh;
  }

  .lb-media img {
    max-height: 48vh;
  }
}

@media (max-width: 720px) {
  .topbar {
    font-size: 0.5rem;
    letter-spacing: 0.16em;
  }

  .header-inner {
    min-height: 74px;
  }

  .brand-seal {
    width: 40px;
    height: 40px;
  }

  .brand-text strong {
    font-size: 0.98rem;
  }

  .brand-text small {
    font-size: 0.46rem;
    letter-spacing: 0.16em;
  }

  h1 {
    font-size: clamp(2.65rem, 11vw, 3.8rem);
    letter-spacing: -0.03em;
  }

  .hero {
    padding-top: 46px;
  }

  .hero-art {
    min-height: 410px;
  }

  .hero-frame {
    width: 78%;
  }

  .hero-slip {
    width: 54%;
    padding: 20px 18px 18px;
  }

  .hero-stamp {
    width: 72px;
    height: 72px;
    font-size: 0.48rem;
  }

  .art-grid {
    grid-template-columns: 1fr;
  }

  .art-title h3 {
    font-size: 1.5rem;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .poem-grid {
    grid-template-columns: 1fr;
  }

  .poem-card:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .poem-card:last-child:nth-child(odd):not(.poem--text) {
    display: flex;
  }

  .poem-card:last-child:nth-child(odd):not(.poem--text) .poem-illu img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .poem-featured .poem-body {
    padding: 30px 26px 34px;
  }

  .page-hero {
    padding-top: 56px;
  }

  .page-meta {
    gap: 12px 22px;
  }

  .page-symbol {
    font-size: 120px;
    top: 34%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .lightbox {
    width: 96vw;
  }

  .lb-info {
    padding: 22px;
  }

  .lb-nav {
    margin-top: 4px;
  }
}

@media (max-width: 460px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

  .hero-art {
    min-height: 360px;
  }

  .hero-frame {
    width: 84%;
    padding: 8px 8px 0;
  }

  .hero-frame figcaption {
    font-size: 0.5rem;
    padding: 8px 3px 10px;
  }

  .hero-slip {
    width: 58%;
    padding: 17px 15px 15px;
  }

  .hero-slip p {
    font-size: 0.9rem;
  }

  .hero-stamp {
    width: 62px;
    height: 62px;
    font-size: 0.42rem;
  }

  .values li {
    grid-template-columns: 24px 1fr;
  }

  .feature-copy {
    padding-inline: 24px;
  }

  .mini-list {
    font-size: 0.56rem;
  }

  .page-hero h1 {
    font-size: clamp(2.5rem, 12vw, 3.4rem);
  }

  .poem-body h2 {
    font-size: 1.7rem;
  }
}

/* ---------- 18. Accesibilidad y preferencias ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .topbar,
  .site-header,
  .site-footer,
  .hero-actions,
  .art-zoom,
  .lightbox {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .hero,
  .feature,
  .poem-featured,
  .poem-card {
    break-inside: avoid;
  }

  a {
    text-decoration: underline;
  }
}
