:root {
  --paper: #f2ede4;
  --ink: #f6f1e8;
  --muted: rgba(246, 241, 232, .68);
  --gold: #c9a868;
  --wine: #6e2530;
  --night: #120f0d;
  --panel: #1a1512;
  --line: rgba(246, 241, 232, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--night); }
body::before { position: fixed; inset: 0; z-index: -1; content: ""; pointer-events: none; opacity: .32; background-image: radial-gradient(circle at 20% 10%, rgba(201,168,104,.14), transparent 28%), radial-gradient(circle at 84% 58%, rgba(110,37,48,.18), transparent 30%); }
img { display: block; max-width: 100%; }
button, a { font: inherit; }
a { color: inherit; }
em { color: var(--gold); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }

.portfolio-header { position: absolute; top: 0; right: 0; left: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(20px, 4vw, 68px); border-bottom: 1px solid rgba(255,255,255,.16); }
.portfolio-brand { display: inline-flex; gap: 11px; align-items: center; font-weight: 850; text-decoration: none; letter-spacing: -.02em; }
.portfolio-brand img { width: 42px; height: 42px; object-fit: contain; border-radius: 8px; }
.portfolio-header nav, .portfolio-footer nav { display: flex; gap: 12px; align-items: center; }
.portfolio-header nav a { padding: 10px 14px; color: rgba(255,255,255,.86); font-size: .86rem; font-weight: 760; text-decoration: none; }
.portfolio-header .nav-cta { padding-inline: 20px; color: #16110d; border-radius: 999px; background: var(--paper); }

.portfolio-hero { position: relative; min-height: 100svh; overflow: hidden; isolation: isolate; }
.hero-image { position: absolute; background-repeat: no-repeat; background-size: cover; }
.hero-image-main { inset: 0 0 0 34%; background-image: url('/img/galerias/bodas/fotografia-boda-manialgara-196.webp'); background-position: 52% center; animation: hero-breathe 16s ease-in-out infinite alternate; }
.hero-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(18,15,13,.99) 0%, rgba(18,15,13,.95) 31%, rgba(18,15,13,.46) 55%, rgba(18,15,13,.16) 80%), linear-gradient(180deg, rgba(0,0,0,.46), transparent 28%, rgba(0,0,0,.48)); }
.hero-copy { position: relative; z-index: 2; display: flex; min-height: 100svh; max-width: min(650px, 54vw); flex-direction: column; justify-content: center; padding: 120px 0 80px clamp(24px, 7vw, 120px); }
.overline { display: flex; gap: 12px; align-items: center; margin: 0 0 24px; color: var(--gold); font-size: .72rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.overline span { width: 36px; height: 1px; background: currentColor; }
.hero-copy h1, .manifesto h2, .selection-heading h2, .care-copy h2, .archive-heading h2, .portfolio-cta h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.055em; }
.hero-copy h1 { max-width: 720px; font-size: clamp(4rem, 8vw, 8.6rem); line-height: .82; }
.hero-copy > p:not(.overline) { max-width: 560px; margin: 34px 0 0; color: rgba(255,255,255,.78); font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.75; }
.hero-actions { display: flex; gap: 22px; align-items: center; margin-top: 38px; }
.primary-action, .secondary-action { display: inline-flex; gap: 18px; align-items: center; justify-content: center; font-weight: 820; text-decoration: none; }
.primary-action { padding: 15px 22px; color: #15100d; border-radius: 999px; background: var(--paper); }
.primary-action span { color: var(--wine); }
.secondary-action { color: rgba(255,255,255,.78); border-bottom: 1px solid rgba(255,255,255,.32); }
.hero-note { position: absolute; right: clamp(20px, 4vw, 70px); bottom: 28px; z-index: 2; margin: 0; color: rgba(255,255,255,.58); font-size: .7rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }

.manifesto { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .7fr); gap: clamp(36px, 9vw, 150px); align-items: end; max-width: 1500px; margin: 0 auto; padding: clamp(90px, 12vw, 180px) clamp(24px, 6vw, 100px); }
.manifesto h2, .selection-heading h2, .care-copy h2, .archive-heading h2, .portfolio-cta h2 { font-size: clamp(3rem, 6.2vw, 6.9rem); line-height: .94; }
.manifesto-copy { display: grid; gap: 22px; }
.manifesto-copy p, .archive-heading > p { margin: 0; color: var(--muted); font-size: 1.04rem; line-height: 1.8; }

.editorial-break { display: grid; grid-template-columns: minmax(240px, .72fr) minmax(280px, .8fr) minmax(340px, 1.25fr); gap: clamp(18px, 3vw, 46px); align-items: center; padding: 0 clamp(24px, 4vw, 70px) clamp(90px, 12vw, 180px); }
.editorial-break figure { position: relative; margin: 0; overflow: hidden; }
.editorial-break img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms ease; }
.editorial-break figure:hover img { transform: scale(1.025); }
.editorial-tall { aspect-ratio: 4/5; }
.editorial-wide { aspect-ratio: 4/3; }
.editorial-break figcaption { position: absolute; right: 14px; bottom: 12px; padding: 7px 10px; color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; background: rgba(0,0,0,.55); }
.editorial-break blockquote { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.8rem, 3vw, 3.5rem); line-height: 1.16; }

.selection-section { padding: clamp(80px, 10vw, 150px) clamp(14px, 3vw, 48px); background: var(--paper); color: #181411; }
.selection-heading { display: flex; gap: 40px; align-items: end; justify-content: space-between; max-width: 1500px; margin: 0 auto clamp(36px, 6vw, 80px); padding-inline: clamp(10px, 3vw, 40px); }
.selection-heading .overline { color: #7e5f2e; }
.selection-heading h2 em { color: var(--wine); }
.portfolio-filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.portfolio-filters button { padding: 10px 15px; color: #4f4942; border: 1px solid rgba(24,20,17,.18); border-radius: 999px; background: transparent; cursor: pointer; }
.portfolio-filters button.is-active { color: #fff; border-color: var(--wine); background: var(--wine); }
.story-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-flow: dense; gap: clamp(8px, 1.2vw, 18px); max-width: 1560px; margin: 0 auto; }
.story-card { position: relative; grid-column: span 4; min-width: 0; min-height: 300px; padding: 0; overflow: hidden; color: #fff; text-align: left; border: 0; background: #d4cec3; cursor: zoom-in; }
.story-card-1, .story-card-6 { grid-column: span 7; aspect-ratio: 16/10; }
.story-card-2, .story-card-5 { grid-column: span 5; aspect-ratio: 4/5; }
.story-card-3 { grid-column: span 4; aspect-ratio: 4/5; }
.story-card-4, .story-card-7 { grid-column: span 8; aspect-ratio: 16/9; }
.story-card[hidden] { display: none; }
.story-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(.2,.7,.2,1), filter 300ms ease; }
.story-card::after { position: absolute; inset: 35% 0 0; content: ""; background: linear-gradient(transparent, rgba(0,0,0,.74)); }
.story-card > span { position: absolute; right: 18px; bottom: 16px; left: 18px; z-index: 1; display: flex; gap: 12px; align-items: baseline; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1rem, 1.6vw, 1.4rem); }
.story-card small { color: var(--gold); font-family: Inter, ui-sans-serif, system-ui; font-size: .64rem; font-weight: 900; letter-spacing: .15em; }
.story-card:hover img, .story-card:focus-visible img { filter: saturate(1.06); transform: scale(1.025); }

.care-section { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); min-height: 820px; }
.care-image { position: relative; min-height: 680px; overflow: hidden; }
.care-image::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.72)); }
.care-image img { width: 100%; height: 100%; object-fit: cover; }
.care-image > span { position: absolute; bottom: 36px; left: clamp(24px, 4vw, 64px); z-index: 1; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.5rem, 2.4vw, 3rem); line-height: 1.08; }
.care-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(54px, 7vw, 110px); background: var(--panel); }
.care-copy h2 { font-size: clamp(2.7rem, 4.5vw, 5.2rem); }
.care-list { display: grid; gap: 0; margin-top: 48px; }
.care-list > div { display: grid; grid-template-columns: 38px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.care-list b { color: var(--gold); font-size: .72rem; }
.care-list p { margin: 0; color: var(--muted); line-height: 1.65; }
.care-list strong { display: block; margin-bottom: 5px; color: var(--ink); }

.archive-section { padding: clamp(90px, 12vw, 170px) clamp(14px, 3vw, 48px); }
.archive-heading { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, .46fr); gap: clamp(36px, 8vw, 120px); align-items: end; max-width: 1500px; margin: 0 auto 60px; padding-inline: clamp(10px, 3vw, 40px); }
.archive-heading h2 { font-size: clamp(2.9rem, 5.4vw, 6.2rem); }
.archive-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; max-width: 1580px; margin: 0 auto; }
.archive-item { position: relative; aspect-ratio: 1; padding: 0; overflow: hidden; border: 0; background: #211b17; cursor: zoom-in; }
.archive-item[hidden] { display: none; }
.archive-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.archive-item:hover img { transform: scale(1.04); }
.load-more { display: flex; gap: 18px; align-items: center; margin: 36px auto 0; padding: 14px 22px; color: var(--ink); font-weight: 820; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.05); cursor: pointer; }
.load-more[hidden] { display: none; }
.load-more span { color: var(--gold); }

.portfolio-cta { max-width: 1200px; margin: 0 auto; padding: clamp(70px, 10vw, 150px) 24px clamp(110px, 13vw, 190px); text-align: center; }
.portfolio-cta .overline { justify-content: center; }
.portfolio-cta > p:not(.overline) { max-width: 650px; margin: 28px auto 36px; color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
.portfolio-cta > div { display: flex; gap: 24px; align-items: center; justify-content: center; }
.portfolio-footer { display: flex; gap: 30px; align-items: center; justify-content: space-between; padding: 26px clamp(20px, 4vw, 68px); color: rgba(255,255,255,.62); border-top: 1px solid var(--line); }
.portfolio-footer p { margin: 0; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.portfolio-footer nav a { font-size: .8rem; text-decoration: none; }

.photo-lightbox { width: min(1260px, calc(100% - 28px)); max-width: none; height: min(900px, calc(100% - 28px)); max-height: none; padding: 54px 74px 24px; color: var(--ink); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; background: rgba(12,10,9,.985); box-shadow: 0 40px 110px rgba(0,0,0,.82); }
.photo-lightbox::backdrop { background: rgba(0,0,0,.91); backdrop-filter: blur(8px); }
.photo-lightbox figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 14px; width: 100%; height: 100%; margin: 0; }
.photo-lightbox figure img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.photo-lightbox figcaption { min-height: 1.3em; color: var(--muted); text-align: center; }
.lightbox-close, .lightbox-arrow { position: absolute; display: grid; place-items: center; color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: rgba(255,255,255,.06); cursor: pointer; }
.lightbox-close { top: 12px; right: 14px; width: 40px; height: 40px; font-size: 1.5rem; }
.lightbox-arrow { top: 50%; width: 42px; height: 42px; transform: translateY(-50%); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@keyframes hero-breathe { from { transform: scale(1); } to { transform: scale(1.035); } }

@media (max-width: 920px) {
  .portfolio-header nav a:not(.nav-cta) { display: none; }
  .hero-image-main { left: 0; background-position: 58% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(18,15,13,.95), rgba(18,15,13,.3)), linear-gradient(180deg, rgba(0,0,0,.5), transparent 35%, rgba(0,0,0,.65)); }
  .hero-copy { max-width: 720px; padding-right: 24px; }
  .manifesto, .archive-heading { grid-template-columns: 1fr; }
  .editorial-break { grid-template-columns: .8fr 1fr; }
  .editorial-break blockquote { grid-column: 1 / -1; grid-row: 2; padding: 24px 6vw 0; text-align: center; }
  .selection-heading { align-items: flex-start; flex-direction: column; }
  .portfolio-filters { justify-content: flex-start; }
  .story-card, .story-card-1, .story-card-2, .story-card-3, .story-card-4, .story-card-5, .story-card-6, .story-card-7 { grid-column: span 6; min-height: 0; aspect-ratio: 4/5; }
  .story-card:nth-child(3n+1) { aspect-ratio: 16/10; }
  .care-section { grid-template-columns: 1fr; }
  .care-image { min-height: 58vw; }
  .archive-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 620px) {
  .portfolio-header { padding: 14px 16px; }
  .portfolio-brand span { font-size: .9rem; }
  .portfolio-header .nav-cta { padding: 9px 15px; }
  .portfolio-hero, .hero-copy { min-height: 92svh; }
  .hero-copy { max-width: none; padding: 112px 18px 74px; justify-content: flex-end; }
  .hero-copy h1 { font-size: clamp(3.6rem, 17vw, 5.6rem); }
  .hero-copy > p:not(.overline) { margin-top: 24px; line-height: 1.6; }
  .hero-actions { align-items: flex-start; flex-direction: column; margin-top: 28px; }
  .hero-note { right: 18px; bottom: 14px; left: 18px; font-size: .58rem; text-align: right; }
  .manifesto { padding: 80px 18px; }
  .manifesto h2, .selection-heading h2, .archive-heading h2, .portfolio-cta h2 { font-size: clamp(2.8rem, 13vw, 4.4rem); }
  .editorial-break { grid-template-columns: 1fr 1fr; padding: 0 10px 80px; }
  .editorial-break blockquote { font-size: 1.55rem; }
  .selection-section { padding: 74px 8px; }
  .selection-heading { padding-inline: 10px; }
  .portfolio-filters { gap: 6px; }
  .portfolio-filters button { padding: 8px 11px; font-size: .78rem; }
  .story-grid { gap: 6px; }
  .story-card, .story-card-1, .story-card-2, .story-card-3, .story-card-4, .story-card-5, .story-card-6, .story-card-7 { grid-column: span 6; min-height: 0; aspect-ratio: 4/5; }
  .story-card:nth-child(4n+1) { grid-column: span 12; aspect-ratio: 16/10; }
  .story-card > span { right: 9px; bottom: 9px; left: 9px; font-size: .85rem; }
  .story-card small { display: none; }
  .care-image { min-height: 82vw; }
  .care-copy { padding: 64px 20px; }
  .care-copy h2 { font-size: 2.8rem; }
  .archive-section { padding: 80px 8px; }
  .archive-heading { padding-inline: 10px; }
  .archive-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .portfolio-cta > div { align-items: center; flex-direction: column; }
  .portfolio-footer { align-items: flex-start; flex-direction: column; }
  .portfolio-footer nav { flex-wrap: wrap; }
  .photo-lightbox { padding: 52px 12px 20px; }
  .lightbox-arrow { top: auto; bottom: 12px; }
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
  .photo-lightbox figcaption { padding: 0 50px; font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
