/* ============================================================
   alyzamora.com — sistema de diseño ejecutable (producción)
   Tokens, tipografía y componentes. Sin frameworks.
   ============================================================ */

/* ---------- Fuentes ---------- */
@font-face {
  font-family: 'Enchants';
  src: url('../assets/fonts/ENCHANTS_personal_Use.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('../assets/fonts/CabinetGrotesk-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('../assets/fonts/CabinetGrotesk-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('../assets/fonts/CabinetGrotesk-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
/* Cormorant Garamond se carga desde Google Fonts en el <head> de cada página */

/* ---------- Tokens ---------- */
:root {
  --ink: #0A0A0A;
  --carbon: #1A1A1A;
  --taupe: #CEBDAF;
  --bone: #F4F2EE;
  --grey: #7A7A7A;

  --hairline-dark: rgba(10, 10, 10, 0.15);
  --hairline-light: rgba(244, 242, 238, 0.18);

  --font-wordmark: 'Enchants', cursive;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Cabinet Grotesk', 'Helvetica Neue', Arial, sans-serif;

  --s1: 8px;  --s2: 16px;  --s3: 24px;  --s4: 32px;
  --s5: 48px; --s6: 64px;  --s7: 96px;  --s8: 128px; --s9: 160px;

  --maxw: 1400px;
  --pad-x: 48px;
  --section-y: 140px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (max-width: 900px) {
  :root { --pad-x: 24px; --section-y: 72px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Tipografía ---------- */
.wordmark {
  font-family: var(--font-wordmark);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
}
.eyebrow {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 0;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-serif); font-weight: 500; margin: 0; color: var(--ink); }

.display {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.06;
  letter-spacing: 0;
}
.h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.08; font-weight: 500; }
.h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15; font-weight: 500; }
.h3 { font-size: clamp(22px, 2.2vw, 27px); line-height: 1.25; font-weight: 500; }

.body-l { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; max-width: 60ch; }
.body   { font-size: 16px; line-height: 1.65; max-width: 62ch; }
.caption { font-size: 13px; line-height: 1.5; color: var(--grey); letter-spacing: 0.01em; }

.serif-italic { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.muted { color: var(--grey); }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section-sm { padding-top: var(--s7); padding-bottom: var(--s7); }
.dark { background: var(--ink); color: var(--bone); }
.dark .eyebrow { color: rgba(244,242,238,0.6); }
.dark h1, .dark h2, .dark h3 { color: var(--bone); }
.taupe { background: var(--taupe); color: var(--ink); }
.hairline { border: 0; border-top: 1px solid var(--hairline-dark); margin: 0; }
.dark .hairline { border-top-color: var(--hairline-light); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 32px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bone);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bone); }
.dark .btn { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.dark .btn:hover { background: transparent; color: var(--bone); }
.dark .btn-ghost { background: transparent; color: var(--bone); border-color: var(--bone); }
.dark .btn-ghost:hover { background: var(--bone); color: var(--ink); }

/* link con subrayado animado */
.link-line {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}
.link-line::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(1); transform-origin: left;
  transition: transform .35s var(--ease);
}
.link-line:hover::after { transform: scaleX(0); transform-origin: right; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
  padding: 0 var(--pad-x);
}
.site-header.solid {
  position: sticky; background: var(--bone);
  border-bottom: 1px solid var(--hairline-dark);
}
.site-header .brand { font-family: var(--font-wordmark); font-size: 26px; line-height: 1; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
  font-family: var(--font-sans); font-weight: 500;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
}
.nav a:hover { opacity: .6; }
.nav a.active { opacity: .55; }
.lang { display: flex; gap: 10px; align-items: center; font-size: 11px; letter-spacing: .12em; }
.lang span { color: var(--grey); }
.lang a { color: var(--grey); transition: color .2s var(--ease); }
.lang a:hover { color: var(--ink); }
.lang .active { color: inherit; font-weight: 500; }
.site-header.on-dark { color: var(--bone); transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease); border-bottom: 1px solid transparent; }
.site-header.on-dark .lang span { color: rgba(244,242,238,0.5); }
.site-header.on-dark .lang a { color: rgba(244,242,238,0.55); }
.site-header.on-dark .lang a:hover { color: var(--bone); }
.site-header.on-dark .lang a.active { color: var(--bone); }
.site-header.on-dark.scrolled { position: fixed; background: var(--bone); color: var(--ink); border-bottom-color: var(--hairline-dark); }
.site-header.on-dark.scrolled .lang span { color: var(--grey); }

.nav-toggle { display: none; }

/* menú móvil desplegable */
.mobile-nav {
  display: none;
  position: fixed; inset: 0; z-index: 60;
  background: var(--bone); color: var(--ink);
  flex-direction: column; align-items: center; justify-content: center; gap: var(--s4);
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-family: var(--font-serif); font-size: 30px; }
.mobile-nav .mobile-close { position: absolute; top: 26px; right: var(--pad-x); background: none; border: 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }

/* ============================================================
   HERO (Home)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: flex-end;
  color: var(--bone);
  overflow: hidden;
}
.hero-img { position: absolute; inset: 0; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) contrast(1.02); }
.hero-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.42) 0%, rgba(10,10,10,.12) 34%, rgba(10,10,10,.50) 64%, rgba(10,10,10,.88) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-bottom: var(--s8); }
.hero .eyebrow { color: rgba(244,242,238,0.88); }
.hero .hero-wordmark { font-family: var(--font-wordmark); font-size: clamp(64px, 11vw, 150px); line-height: .92; margin: 18px 0 24px; color: var(--bone); }
.hero .hero-sub { font-family: var(--font-serif); font-weight: 400; font-size: clamp(20px, 2.4vw, 30px); line-height: 1.3; max-width: 22ch; }
.hero-actions { margin-top: 40px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 2; font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(244,242,238,0.7);
}

/* ============================================================
   SECCIONES COMPARTIDAS
   ============================================================ */
.section-head { display: flex; flex-direction: column; gap: var(--s2); margin-bottom: var(--s6); }
.section-head .eyebrow { margin-bottom: 4px; }

.statement { text-align: center; max-width: 860px; margin: 0 auto; }
.statement .display { max-width: 16ch; margin-left: auto; margin-right: auto; }
.statement-wide { text-align: center; max-width: 820px; margin: 0 auto; }

.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--s7); align-items: center; }
.split.reverse { grid-template-columns: 0.85fr 1.15fr; }
.split-text { display: flex; flex-direction: column; gap: var(--s3); }
.split-img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: grayscale(100%); }

.edit-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s3); }
.edit-grid img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: transform .6s var(--ease); }
.edit-grid figure { margin: 0; overflow: hidden; }
.edit-grid figure:hover img { transform: scale(1.03); }
.col-4 { grid-column: span 4; } .col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; } .col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; } .col-12 { grid-column: span 12; }
.ar-45 { aspect-ratio: 4/5; } .ar-43 { aspect-ratio: 4/3; }
.ar-11 { aspect-ratio: 1/1; } .ar-169 { aspect-ratio: 16/9; } .ar-34 { aspect-ratio: 3/4; }

.fullbleed { position: relative; height: 80vh; min-height: 520px; overflow: hidden; }
.fullbleed img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); }
.fullbleed::after { content: ''; position: absolute; inset: 0; background: rgba(10,10,10,.3); }
.fullbleed .quote {
  position: relative; z-index: 2; height: 100%;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--bone);
}
.fullbleed .quote p {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(24px, 3.2vw, 40px); line-height: 1.3; max-width: 18ch; margin: 0;
}

figure.captioned { margin: 0; }
figure.captioned figcaption { margin-top: 12px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--carbon); color: var(--bone); padding: var(--s7) 0 var(--s5); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s5); align-items: start; }
.footer-brand .wordmark { font-size: 48px; }
.footer-brand p { color: rgba(244,242,238,0.6); margin-top: var(--s2); max-width: 30ch; }
.footer-col h4 { font-family: var(--font-sans); font-weight: 500; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: rgba(244,242,238,0.5); margin-bottom: var(--s2); }
.footer-col a { display: block; padding: 6px 0; font-size: 14px; color: rgba(244,242,238,0.85); }
.footer-col a:hover { color: var(--bone); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: var(--s6); padding-top: var(--s3); border-top: 1px solid var(--hairline-light); }
.footer-bottom p { font-size: 12px; letter-spacing: .04em; color: rgba(244,242,238,0.5); margin: 0; }

/* ============================================================
   PÁGINA: cabecera interna
   ============================================================ */
.page-hero { padding-top: 160px; padding-bottom: var(--s7); }
.page-hero .eyebrow { margin-bottom: var(--s2); }
.page-hero .h1 { margin-bottom: var(--s3); }
.page-hero .intro { color: var(--grey); max-width: 56ch; }

.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); }
.cols-3 .col h3 { margin-bottom: var(--s2); }
.cols-3 .col .eyebrow { margin-bottom: var(--s3); }

.collection { display: grid; grid-template-columns: 0.4fr 0.6fr; gap: var(--s6); padding: var(--s5) 0; border-top: 1px solid var(--hairline-dark); }
.collection:last-child { border-bottom: 1px solid var(--hairline-dark); }
.collection .c-price { font-family: var(--font-serif); font-size: 22px; color: var(--grey); margin-top: var(--s1); }
.collection ul li { padding: 5px 0; font-size: 15px; }
.collection ul li::before { content: '—'; color: var(--grey); margin-right: 12px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: start; }
.form-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: var(--s3); }
.form-row label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.form-row input, .form-row textarea, .form-row select {
  font-family: var(--font-sans); font-size: 16px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--hairline-dark);
  padding: 10px 0; outline: none; transition: border-color .3s var(--ease);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { border-bottom-color: var(--ink); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.contact-detail { margin-bottom: var(--s4); }
.contact-detail .eyebrow { margin-bottom: 8px; }
.contact-detail p { margin: 0; font-size: 17px; }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25D366; color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.22);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.wa-float:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 10px 26px rgba(0,0,0,.28); }
@media (max-width: 900px) { .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; } }

/* honeypot oculto */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* mensajes de formulario */
.form-note { padding: 16px 20px; margin-bottom: var(--s3); font-size: 15px; line-height: 1.5; border: 1px solid; }
.form-note.ok { border-color: var(--ink); background: rgba(10,10,10,0.03); color: var(--ink); }
.form-note.err { border-color: #9a3b3b; background: rgba(154,59,59,0.06); color: #9a3b3b; }

/* ============================================================
   Last Weddings — listado de bodas
   ============================================================ */
/* Cada boda: imagen + datos al COSTADO (se apila en móvil) */
.weddings-list { display: flex; flex-direction: column; gap: var(--s8); }
.wed-card { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--s6); align-items: center; text-decoration: none; color: inherit; }
.wed-card-img { overflow: hidden; aspect-ratio: 4/3; background: var(--bone); }
.wed-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
/* Las bodas van a COLOR (a diferencia del resto del sitio, en B&N) */
.wed-gallery .edit-grid img { filter: none; }
.wed-card:hover .wed-card-img img { transform: scale(1.03); }
.wed-card-body { display: flex; flex-direction: column; gap: var(--s2); }
.wed-card-body .h3 { margin: 0; }
.wed-card-body .link-line { margin-top: var(--s2); }
/* Cabecera arriba (como estaba), compacta */
.page-hero.wed-hero { padding-top: var(--s6); padding-bottom: var(--s5); }
.wed-list-sec { padding-top: 0; }
@media (max-width: 900px) {
  .wed-card { grid-template-columns: 1fr; gap: var(--s3); }
}

/* ============================================================
   Lightbox — ver la foto completa (sin recorte) al hacer clic
   ============================================================ */
.gallery-zoom img { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 10, 10, 0.93);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .28s var(--ease);
  touch-action: pan-y;          /* el swipe horizontal lo maneja el JS (no el navegador) */
  -webkit-user-select: none; user-select: none;
}
.lb-img { -webkit-user-drag: none; user-select: none; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lb-img { max-width: 92vw; max-height: 88vh; object-fit: contain; box-shadow: 0 20px 70px rgba(0,0,0,.5); }
.lb-close {
  position: absolute; top: 16px; right: 24px;
  background: none; border: 0; color: #fff; font-size: 38px; line-height: 1;
  cursor: pointer; opacity: .8; transition: opacity .2s;
}
.lb-close:hover { opacity: 1; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: #fff; font-size: 52px; line-height: 1;
  cursor: pointer; opacity: .7; padding: 10px 18px; transition: opacity .2s;
}
.lb-nav:hover { opacity: 1; }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lb-count {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(244,242,238,.8); font-size: 12px; letter-spacing: .14em;
}
@media (max-width: 700px) {
  .lb-nav { font-size: 38px; padding: 8px 10px; }
  .lb-close { font-size: 32px; top: 10px; right: 14px; }
}

/* ============================================================
   Reveal (movimiento sutil, dial 3)
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .edit-grid figure:hover img { transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav, .lang { display: none; }
  .nav-toggle { display: block; background: none; border: 0; color: inherit; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: var(--s4); }
  .split.reverse .split-img { order: -1; }
  .cols-3 { grid-template-columns: 1fr; gap: var(--s5); }
  .collection { grid-template-columns: 1fr; gap: var(--s2); }
  .contact-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .footer-top { grid-template-columns: 1fr; gap: var(--s4); }
  .footer-bottom { flex-direction: column; gap: var(--s2); align-items: flex-start; }
  .hero-inner { padding-bottom: var(--s6); }
  .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: span 6; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .weddings-list { grid-template-columns: 1fr; gap: var(--s5); }
  /* En movil el hero de paginas internas tenia demasiado aire bajo la barra
     superior (160px). Lo compactamos para que el titulo se vea sin scroll. */
  .page-hero { padding-top: var(--s5); padding-bottom: var(--s4); }
  .page-hero.wed-hero { padding-top: var(--s4); padding-bottom: var(--s4); }
  /* .section-sm usaba 96px fijo (--s7) sin reducir en movil: demasiado aire
     entre el hero y el contenido y entre bloques. Lo bajamos solo en movil. */
  .section-sm { padding-top: var(--s5); padding-bottom: var(--s5); }
  /* El hero del About tenia padding-top:140px inline (no se reducia en movil).
     Se paso a esta clase; en escritorio .section ya da 140px, aqui lo compactamos. */
  .about-hero { padding-top: var(--s5); }
}
