/* Cecilia Brein · Fotografía
   Paleta tomada de su tarjeta: crema cálido, tinta, rosa acuarela y un toque dorado. */
:root {
  --bg: #faf5ef;
  --bg-2: #f3ebe2;
  --ink: #2a2320;
  --ink-2: #5d524b;
  --muted: #8b7f77;
  --line: #e6dcd1;
  --rose: #b76e86;
  --rose-soft: #ecc9d3;
  --gold: #bf9b55;
  --dark: #141110;

  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --script: 'Allura', 'Snell Roundhand', cursive;

  --header-h: 84px;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--rose-soft); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 999; }
.skip:focus { left: 8px; }
:focus-visible { outline: 1px solid var(--rose); outline-offset: 3px; }

/* ---------- encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; height: var(--header-h);
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; line-height: 1; }
.brand-name { font-family: var(--script); font-size: 44px; font-weight: 400; letter-spacing: .01em; color: var(--ink); line-height: .9; }
.brand-tag {
  font-family: var(--sans); font-size: 10.5px; letter-spacing: .42em; text-transform: uppercase;
  color: var(--ink-2); margin: 4px 0 0 3px;
}

.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav > a, .nav-item > a {
  font-family: var(--sans); font-size: 12px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-2); padding: 8px 0; position: relative; transition: color .25s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav > a::after, .nav-item > a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--rose);
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.site-nav > a[aria-current="page"]::after, .nav-item > a[aria-current="page"]::after,
.site-nav > a:hover::after, .nav-item > a:hover::after { transform: scaleX(1); }
.plus { display: inline-block; margin-left: 2px; transition: transform .3s; }

.nav-item { position: relative; }
.submenu {
  position: absolute; top: calc(100% + 18px); left: 50%; transform: translate(-50%, 6px);
  min-width: 280px; background: var(--bg); border: 1px solid var(--line);
  padding: 18px 24px 20px; box-shadow: 0 18px 40px -24px rgba(42, 35, 32, .35);
  opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s;
}
.submenu::before { content: ''; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-sub:hover .plus { transform: rotate(45deg); }
.submenu h4 {
  margin: 12px 0 4px; font-family: var(--sans); font-size: 10px; font-weight: 500; letter-spacing: .3em;
  text-transform: uppercase; color: var(--rose);
}
.submenu h4:first-child { margin-top: 0; }
.submenu a { display: block; padding: 3px 0; font-size: 18px; text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.submenu a:hover { color: var(--ink); font-style: italic; }
.submenu .all { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-family: var(--sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }

.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 0; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--ink); transition: transform .3s, top .3s; }
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 26px; }
.menu-open .menu-toggle span:first-child { top: 22px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 22px; transform: rotate(-45deg); }

/* ---------- general ---------- */
main { min-height: 70vh; outline: none; }
.loading { padding: 30vh 0; text-align: center; color: var(--muted); font-style: italic; }
.view { animation: rise .6s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.eyebrow {
  font-family: var(--sans); font-size: 11px; letter-spacing: .34em; text-transform: uppercase; color: var(--rose);
  margin: 0 0 14px;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.section-head { text-align: center; margin: 0 0 44px; }
.section-head h2 { font-weight: 400; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.1; margin: 0; letter-spacing: .01em; }
.sprig { display: block; margin: 16px auto 0; width: 92px; height: 22px; color: var(--rose); opacity: .8; }

/* ---------- inicio: slideshow ---------- */
.hero {
  position: relative; height: calc(100svh - var(--header-h)); min-height: 420px; max-height: 1000px;
  background: var(--dark); overflow: hidden;
}
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.on { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 8s ease-out; }
.hero-slide.on img { transform: scale(1); }
.hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, rgba(0,0,0,.45)); pointer-events: none; }
.hero-caption {
  position: absolute; left: var(--gutter); bottom: 34px; z-index: 2; color: #fff; max-width: 70%;
  text-shadow: 0 1px 12px rgba(0,0,0,.35);
}
.hero-caption .t { font-size: clamp(20px, 2.2vw, 28px); font-style: italic; line-height: 1.2; display: block; }
.hero-caption a {
  font-family: var(--sans); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; text-decoration: none;
  display: inline-block; margin-top: 8px; border-bottom: 1px solid rgba(255,255,255,.5); padding-bottom: 2px;
}
.hero-caption a:hover { border-color: #fff; }
.hero-nav {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 56px; height: 56px; border: 0; background: rgba(250,245,239,.1); color: #fff; font-size: 34px; line-height: 1;
  cursor: pointer; opacity: 0; transition: opacity .3s, background .3s; backdrop-filter: blur(3px);
}
.hero:hover .hero-nav, .hero-nav:focus-visible { opacity: 1; }
.hero-nav:hover { background: rgba(250,245,239,.25); }
.hero-prev { left: 18px; } .hero-next { right: 18px; }
.hero-count {
  position: absolute; right: var(--gutter); bottom: 38px; z-index: 2; color: rgba(255,255,255,.85);
  font-family: var(--sans); font-size: 12px; letter-spacing: .25em;
}
.hero-progress { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--rose-soft); z-index: 3; width: 0; }
.hero-progress.run { width: 100%; transition: width linear; }

.intro { padding-top: clamp(70px, 10vw, 130px); padding-bottom: clamp(50px, 7vw, 90px); text-align: center; }
.intro blockquote { margin: 0 auto; max-width: 820px; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.4; font-style: italic; color: var(--ink); }
.intro cite { display: block; margin-top: 22px; font-family: var(--script); font-style: normal; font-size: 34px; color: var(--rose); }

/* ---------- grilla de series ---------- */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 26px; margin: -10px 0 46px; }
.filters button {
  background: none; border: 0; padding: 6px 0; cursor: pointer;
  font-family: var(--sans); font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { color: var(--ink); border-color: var(--rose); }

.series-grid { display: grid; align-items: start; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3.4vw, 54px) clamp(20px, 2.6vw, 40px); padding-bottom: clamp(70px, 9vw, 120px); }
.series-card { text-decoration: none; display: block; }
.series-card figure { margin: 0; aspect-ratio: 4 / 3; display: flex; align-items: flex-end; justify-content: center; }
.series-card img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: opacity .5s; }
.series-card:hover img { opacity: .88; }
.series-card .meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 16px; }
.series-card h3 { margin: 0; font-weight: 500; font-size: 24px; line-height: 1.2; }
.series-card .arrow { font-family: var(--sans); font-size: 15px; color: var(--rose); transition: transform .3s; }
.series-card:hover .arrow { transform: translate(3px, -3px); }
.series-card .sub { display: block; margin-top: 3px; font-family: var(--sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.series-card.hidden-by-filter { display: none; }

/* ---------- página de serie ---------- */
.series-hero { padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(36px, 5vw, 60px); text-align: center; }
.series-hero h1 { margin: 0; font-weight: 400; font-size: clamp(40px, 6vw, 76px); line-height: 1.02; letter-spacing: .005em; }
.series-hero .subtitle { margin: 12px 0 0; font-style: italic; font-size: clamp(21px, 2.2vw, 27px); color: var(--ink-2); }
.series-desc { max-width: 700px; margin: 0 auto; padding: 0 var(--gutter) clamp(40px, 6vw, 80px); color: var(--ink-2); }
.series-desc p { margin: 0 0 1.1em; text-wrap: pretty; hyphens: auto; }
.series-desc p:first-child::first-letter {
  float: left; font-size: 4.1em; line-height: .82; padding: 6px 10px 0 0; color: var(--ink); font-weight: 500;
}
.series-desc.clamped .desc-body { max-height: 13.5em; overflow: hidden; mask-image: linear-gradient(#000 60%, transparent); -webkit-mask-image: linear-gradient(#000 60%, transparent); }
.read-more {
  display: block; margin: 6px auto 0; background: none; border: 0; cursor: pointer; color: var(--rose);
  font-family: var(--sans); font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
}
.read-more[hidden] { display: none; }

/* Filas justificadas: cada foto conserva su proporción. */
.gallery { display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(10px, 1.4vw, 20px); padding-bottom: 20px; }
.gallery::after { content: ''; flex-grow: 999; }
.g-item {
  position: relative; margin: 0; cursor: zoom-in;
  flex-grow: calc(var(--r) * 100); flex-basis: calc(var(--r) * var(--row-h, 340px));
}
.g-item img { width: 100%; height: auto; aspect-ratio: var(--r); background: var(--bg-2); transition: opacity .4s; }
.g-item:hover img { opacity: .9; }
.g-item figcaption { margin-top: 8px; font-style: italic; font-size: 16px; color: var(--muted); line-height: 1.3; }
.g-item img[data-loading] { opacity: 0; }

.series-footer { border-top: 1px solid var(--line); margin-top: clamp(50px, 7vw, 90px); }
.series-pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 42px 0 64px; }
.series-pager a { text-decoration: none; }
.series-pager .lbl { display: block; font-family: var(--sans); font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.series-pager .ttl { font-size: 24px; }
.series-pager a:hover .ttl { font-style: italic; }
.series-pager .next { text-align: right; }
.series-pager .all { font-family: var(--sans); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- bio ---------- */
.bio { padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(70px, 9vw, 120px); }
.bio-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.bio-portrait { position: sticky; top: calc(var(--header-h) + 32px); margin: 0; }
.bio-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.02); }
.bio-portrait figcaption { margin-top: 12px; font-family: var(--script); font-size: 30px; color: var(--rose); }
.bio h1 { font-weight: 400; font-size: clamp(40px, 5vw, 64px); margin: 0 0 26px; line-height: 1.05; }
.bio h2 { font-weight: 400; font-size: 34px; margin: 56px 0 18px; }
.bio p { margin: 0 0 1.1em; color: var(--ink-2); text-wrap: pretty; }
.bio .lead::first-line { color: var(--ink); }
.statement p:first-of-type { font-size: 1.18em; font-style: italic; color: var(--ink); line-height: 1.5; }

/* ---------- contacto ---------- */
.contact { padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(70px, 9vw, 130px); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.card {
  position: relative; aspect-ratio: 1.6 / 1; background: #fbf7f2; overflow: hidden;
  box-shadow: 0 30px 60px -38px rgba(42, 35, 32, .45), 0 1px 0 var(--line);
  display: flex; flex-direction: column; justify-content: center; padding: 8% 9%;
}
.card .wash {
  position: absolute; inset: -10%;
  background:
    radial-gradient(38% 46% at 64% 40%, rgba(199, 110, 142, .55), transparent 70%),
    radial-gradient(30% 34% at 50% 62%, rgba(214, 140, 165, .45), transparent 72%),
    radial-gradient(26% 30% at 78% 70%, rgba(236, 190, 205, .7), transparent 70%),
    radial-gradient(22% 18% at 40% 30%, rgba(236, 201, 211, .6), transparent 70%);
  filter: blur(6px);
}
.card .fleck { position: absolute; right: 16%; bottom: 8%; width: 60px; height: 26px; opacity: .8;
  background: radial-gradient(circle, var(--gold) 1.2px, transparent 1.6px) 0 0 / 7px 6px; mask-image: radial-gradient(closest-side, #000, transparent); -webkit-mask-image: radial-gradient(closest-side, #000, transparent); }
.card .n { position: relative; font-family: var(--script); font-size: clamp(46px, 6vw, 74px); line-height: 1; color: var(--ink); }
.card .f { position: relative; margin-top: 10px; font-family: var(--sans); font-size: 11px; letter-spacing: .5em; text-transform: uppercase; color: var(--ink-2); }
.card .sprig { position: absolute; right: 12%; top: 57%; margin: 0; width: 80px; color: #fff; opacity: .95; }

.contact h1 { font-weight: 400; font-size: clamp(40px, 5vw, 60px); margin: 0 0 14px; line-height: 1.05; }
.contact .note { color: var(--ink-2); margin: 0 0 34px; }
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact-list li { border-bottom: 1px solid var(--line); }
.contact-list a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px 0; text-decoration: none; }
.contact-list .k { font-family: var(--sans); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); flex: none; width: 110px; }
.contact-list .v { font-size: 22px; flex: 1; overflow-wrap: anywhere; }
.contact-list .go { color: var(--rose); font-family: var(--sans); transition: transform .3s; }
.contact-list a:hover .v { font-style: italic; }
.contact-list a:hover .go { transform: translate(3px, -3px); }

/* ---------- pie ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 46px var(--gutter) 40px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.footer-name { font-family: var(--script); font-size: 38px; line-height: 1; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; }
.footer-links a { font-family: var(--sans); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); }
.footer-links a:hover { color: var(--rose); }
.site-footer small { font-family: var(--sans); font-size: 11px; color: var(--muted); letter-spacing: .04em; }

/* ---------- visor ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: var(--dark);
  display: grid; grid-template-columns: 80px 1fr 80px; align-items: center;
  animation: fade .3s ease;
}
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.lb-figure { margin: 0; height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 0 20px; min-width: 0; }
.lb-img { max-width: 100%; max-height: calc(100svh - 130px); object-fit: contain; transition: opacity .25s; user-select: none; -webkit-user-drag: none; }
.lb-img.swap { opacity: 0; }
.lb-caption { display: flex; gap: 24px; justify-content: center; align-items: baseline; margin-top: 18px; color: #d9cfc6; min-height: 28px; }
.lb-title { font-style: italic; font-size: 20px; }
.lb-count { font-family: var(--sans); font-size: 11px; letter-spacing: .25em; color: #8e847c; }
.lb-nav, .lb-close { background: none; border: 0; color: #cfc5bc; cursor: pointer; transition: color .2s; }
.lb-nav { font-size: 56px; height: 100%; font-weight: 300; }
.lb-nav:hover, .lb-close:hover { color: #fff; }
.lb-close { position: absolute; top: 12px; right: 18px; font-size: 40px; line-height: 1; padding: 8px 12px; z-index: 2; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .series-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  :root { --header-h: 72px; }
  body { font-size: 18px; }
  .brand-name { font-size: 38px; }
  .menu-toggle { display: block; z-index: 60; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg);
    flex-direction: column; align-items: stretch; gap: 0; padding: 20px var(--gutter) 40px; overflow-y: auto;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .menu-open .site-nav { opacity: 1; visibility: visible; }
  .site-nav > a, .nav-item > a { display: block; font-size: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .site-nav > a::after, .nav-item > a::after { display: none; }
  .plus { display: none; }
  .submenu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 8px 0 16px 4px; min-width: 0; }
  .has-sub:hover .submenu { transform: none; }
  .submenu a { white-space: normal; font-size: 21px; padding: 5px 0; }
  .hero { height: 72svh; }
  .hero-nav { display: none; }
  .hero-caption { max-width: calc(100% - 2 * var(--gutter) - 60px); bottom: 24px; }
  .hero-count { bottom: 28px; }
  .bio-grid, .contact-grid { grid-template-columns: 1fr; }
  .bio-portrait { position: static; max-width: 420px; }
  .gallery { --row-h: 220px; }
  .lightbox { grid-template-columns: 0 1fr 0; }
  .lb-nav { display: none; }
  .lb-figure { padding: 56px 8px 16px; }
  .series-pager { grid-template-columns: 1fr 1fr; }
  .series-pager .all { grid-column: 1 / -1; grid-row: 2; text-align: center; }
}
@media (max-width: 560px) {
  .series-grid { grid-template-columns: 1fr; }
  .contact-list .k { width: 84px; }
  .contact-list .v { font-size: 19px; }
  .card .sprig { width: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
