/* =========================================================
   ENJOY MOMENTS — Fotografía y Video de Bodas · Guayaquil, EC
   Sistema de diseño
   ========================================================= */

/* ---------------------------------------------------------
   Tipografías de marca (con licencia paga — ver LEEME.txt)
   Coloca los archivos .woff2 en assets/fonts/ con estos
   nombres exactos y estas 3 fuentes se activan solas.
   Mientras no estén, el sitio usa alternativas gratuitas
   muy cercanas para que nunca se vea roto.
--------------------------------------------------------- */
@font-face {
  font-family: 'Sloop Script Bold';
  src: url('../fonts/SloopScriptOne-Bold.woff2') format('woff2'),
       url('../fonts/SloopScriptOne-Bold.woff') format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Ethereal Thin';
  src: url('../fonts/Ethereal-Thin.woff2') format('woff2'),
       url('../fonts/Ethereal-Thin.woff') format('woff');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Reina Neue Light Italic';
  src: url('../fonts/ReinaNeueW05-LightItalic.woff2') format('woff2'),
       url('../fonts/ReinaNeueW05-LightItalic.woff') format('woff');
  font-weight: 300; font-style: italic; font-display: swap;
}

:root {
  --ink: #121212;
  --ink-soft: #1c1c1a;
  --ivory: #faf7f2;
  --ivory-dim: #f1ece2;
  --charcoal: #3a3a36;
  --sage: #8a9483;
  --sage-light: #a9b39f;
  --gold: #c9a878;
  --white: #ffffff;

  /* Cuerpo de texto general (queda igual) */
  --font-display: 'Cormorant Garamond', serif;
  --font-sans: 'Jost', sans-serif;

  /* Sistema de marca — con fallback gratuito de aspecto similar */
  --font-script: 'Sloop Script Bold', 'Alex Brush', cursive;
  --font-light: 'Ethereal Thin', 'Cormorant Garamond', serif;
  --font-numeral: 'Reina Neue Light Italic', 'Cormorant Garamond', serif;

  --container: 1240px;
  --pad: clamp(20px, 5vw, 72px);

  --ease: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--ivory);
  color: var(--charcoal);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 12px;
  font-weight: 400;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  line-height: 1.08;
}

p { line-height: 1.7; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid currentColor;
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  background: none;
}
.btn-dark { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn-dark:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-light { background: transparent; color: var(--ivory); border-color: rgba(255,255,255,.6); }
.btn-light:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.btn-outline-dark { color: var(--ink); border-color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: var(--ivory); }

/* ---------------- Splash (safety-netted) ---------------- */
#splash {
  position: fixed; inset: 0; z-index: 999;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  animation: splashOut .6s var(--ease) 1.6s forwards;
}
#splash span {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ivory);
  font-size: 28px;
  letter-spacing: .04em;
  opacity: 0;
  animation: splashText .8s var(--ease) .15s forwards;
}
@keyframes splashText { to { opacity: 1; } }
@keyframes splashOut { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* ---------------- Nav ---------------- */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
#nav.scrolled {
  background: rgba(250,247,242,0.92);
  backdrop-filter: blur(10px);
  padding-top: 14px; padding-bottom: 14px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.logo { display: flex; align-items: center; }
.logo-img { height: 26px; width: auto; transition: opacity .3s var(--ease); }
.logo-light-bg { display: none; }
#nav.scrolled .logo-dark-bg { display: none; }
#nav.scrolled .logo-light-bg { display: block; }

.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ivory);
  position: relative;
  padding-bottom: 6px;
  transition: color .4s var(--ease);
}
#nav.scrolled .nav-links a { color: var(--ink); }
.nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--sage);
  transition: width .35s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--sage-light); }

.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-actions .btn-dark { padding: 12px 26px; }

.burger {
  display: none;
  width: 26px; height: 18px; position: relative;
  background: none; border: none; cursor: pointer; padding: 0;
}
.burger span {
  position: absolute; left: 0; right: 0; height: 1px;
  background: var(--ivory); transition: all .3s var(--ease);
}
#nav.scrolled .burger span { background: var(--ink); }
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 8px; }
.burger span:nth-child(3) { top: 16px; }

/* ---------------- Hero / carrusel ---------------- */
#hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--ink);
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
  background-size: cover;
  background-position: center;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img, .hero-slide video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-slide.placeholder {
  display: flex; align-items: center; justify-content: center;
}
.hero-slide.placeholder .ph-label {
  color: rgba(255,255,255,.55);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  border: 1px dashed rgba(255,255,255,.3);
  padding: 10px 18px;
  border-radius: 999px;
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,18,18,.35) 0%, rgba(18,18,18,.25) 40%, rgba(18,18,18,.75) 100%);
  z-index: 2;
}
.hero-content {
  position: relative; z-index: 3;
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  text-align: center;
  padding: 0 var(--pad) 90px;
  color: var(--ivory);
}
.hero-content .eyebrow { color: var(--sage-light); margin-bottom: 18px; opacity: 0; animation: rise .9s var(--ease) .4s forwards; }
.hero-content h1 {
  font-size: clamp(26px, 4.6vw, 52px);
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  word-spacing: -0.1em;
  line-height: 1.18;
  max-width: 34ch;
  opacity: 0; animation: rise .9s var(--ease) .6s forwards;
}
.hero-dots {
  position: absolute; bottom: 28px; right: var(--pad); z-index: 4;
  display: flex; gap: 10px;
}
.hero-dots button {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.4); border: none; padding: 0; cursor: pointer;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.hero-dots button.is-active { background: var(--ivory); transform: scale(1.3); }
.scroll-cue {
  position: absolute; bottom: 32px; left: var(--pad); z-index: 4;
  color: rgba(255,255,255,.7); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.scroll-cue::before {
  content: ''; width: 1px; height: 34px; background: rgba(255,255,255,.5);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine { 0%,100% { transform: scaleY(1); opacity: .6;} 50% { transform: scaleY(.4); opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* ---------------- Sección genérica ---------------- */
section { position: relative; }
.section-pad { padding: 120px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head .eyebrow { color: var(--sage); margin-bottom: 16px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); font-style: italic; }
.section-dark { background: var(--ink); color: var(--ivory); }
.section-dark .section-head .eyebrow { color: var(--sage-light); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------------- Nosotros ---------------- */
#nosotros .grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: center;
}
.about-media {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(155deg, #d9d3c4, #b9c2ae 60%, #8a9483);
  display: flex; align-items: center; justify-content: center;
}
.about-media .ph-label { color: rgba(30,30,28,.55); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.about-media img { position:absolute; inset:0; width:100%; height:100%; object-fit: cover; }
.about-copy p { font-size: 17px; color: var(--charcoal); margin-bottom: 20px; }
.about-copy .quote-line { font-size: 15.5px; font-style: italic; color: var(--sage); margin-top: 24px; }

/* Encabezado mixto script + light, tal como en el brandbook */
.brand-heading { margin-bottom: 22px; line-height: 1.15; }
.brand-heading .script { font-family: var(--font-script); font-size: clamp(30px, 3.4vw, 42px); font-weight: 400; display: block; }
.brand-heading .light { font-family: var(--font-light); font-size: clamp(22px, 2.4vw, 30px); letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }

.stat-row { display: flex; gap: 48px; margin-top: 40px; }
.stat b { font-family: var(--font-numeral); font-style: italic; font-weight: 300; font-size: 36px; display: block; color: var(--ink); }
.stat span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--charcoal); }

/* ---------------- Precios / numerales ---------------- */
.plan .tag-row { display: flex; align-items: center; gap: 10px; }
.plan .badge {
  font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase;
  background: var(--sage); color: var(--ink); padding: 3px 9px; border-radius: 999px;
}
.plan.featured .badge { background: var(--gold); }
.plan .price-num { font-family: var(--font-numeral); font-style: italic; font-weight: 300; font-size: 28px; }
.plan .price-currency { font-family: var(--font-sans); font-size: 12px; letter-spacing: .12em; margin-right: 4px; }

/* ---------------- Experiencias adicionales ---------------- */
.extras {
  margin-top: 64px;
  border-top: 1px solid rgba(0,0,0,.08);
  padding-top: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.extras h3 { font-size: 20px; font-style: italic; margin-bottom: 18px; }
.extras ul { list-style: none; padding: 0; margin: 0; }
.extras li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-top: 1px solid rgba(0,0,0,.08); font-size: 14.5px;
}
.extras li:first-child { border-top: none; }
.extras .price-num { font-size: 16px; }
.extras .sub-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--sage); margin: 18px 0 6px; }

/* ---------------- Portfolio ---------------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 130px;
  gap: 12px;
}
.p-item {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  cursor: pointer;
  background: #ddd;
}
.p-item:nth-child(1){ grid-column: span 3; grid-row: span 3; }
.p-item:nth-child(2){ grid-column: span 3; grid-row: span 2; }
.p-item:nth-child(3){ grid-column: span 3; grid-row: span 2; }
.p-item:nth-child(4){ grid-column: span 3; grid-row: span 3; }
.p-item:nth-child(5){ grid-column: span 2; grid-row: span 2; }
.p-item:nth-child(6){ grid-column: span 2; grid-row: span 2; }
.p-item:nth-child(7){ grid-column: span 2; grid-row: span 2; }
.p-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.p-item:hover img { transform: scale(1.06); }
.p-item.placeholder { display:flex; align-items:center; justify-content:center; }
.p-item:nth-child(6n+1).placeholder { background: linear-gradient(160deg,#e7e2d6,#c7cdba); }
.p-item:nth-child(6n+2).placeholder { background: linear-gradient(160deg,#dcd6c9,#b7c2ac); }
.p-item:nth-child(6n+3).placeholder { background: linear-gradient(160deg,#e2ddd0,#c9b998); }
.p-item:nth-child(6n+4).placeholder { background: linear-gradient(160deg,#d6d1c2,#a9b39f); }
.p-item:nth-child(6n+5).placeholder { background: linear-gradient(160deg,#e9e4d8,#cbb98f); }
.p-item .ph-label { color: rgba(30,30,28,.5); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; text-align:center; padding: 0 10px; }
.p-item .p-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55) 100%);
  opacity: 0; transition: opacity .4s var(--ease);
  display: flex; align-items: flex-end; padding: 20px;
}
.p-item:hover .p-overlay { opacity: 1; }
.p-overlay-inner { display: flex; flex-direction: column; gap: 4px; }
.p-overlay-inner .p-title {
  font-family: var(--font-script);
  color: #fff; font-size: clamp(22px, 2.4vw, 30px); line-height: 1;
  transform: translateY(6px); opacity: 0; transition: all .5s var(--ease) .05s;
}
.p-overlay-inner .p-sub {
  color: rgba(255,255,255,.8); font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  padding-top: 6px; border-top: 1px solid rgba(255,255,255,.35); width: fit-content;
  transform: translateY(6px); opacity: 0; transition: all .5s var(--ease) .15s;
}
.p-item:hover .p-title, .p-item:hover .p-sub { transform: translateY(0); opacity: 1; }

/* ---------------- Films ---------------- */
.films-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.film-card {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(160deg, #24241f, #3a3a36);
  background-size: cover;
  background-position: center;
  cursor: pointer;
}
.film-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.1) 45%, rgba(0,0,0,.7) 100%);
  z-index: 1;
  transition: background .35s var(--ease);
}
.film-card:hover::before { background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.05) 45%, rgba(0,0,0,.55) 100%); }
.film-card > * { position: relative; z-index: 2; }
.film-card video, .film-card img { width: 100%; height: 100%; object-fit: cover; }
.film-card .ph-label { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color: rgba(255,255,255,.45); font-size: 11px; letter-spacing:.16em; text-transform:uppercase; }
.play-btn {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.film-card:hover .play-btn { transform: scale(1.1); background: rgba(255,255,255,.12); }
.play-btn svg { width: 18px; height: 18px; fill: #fff; margin-left: 3px; }
.film-caption {
  position: absolute; left: 24px; bottom: 20px; right: 24px; color: #fff;
  display: flex; flex-direction: column; gap: 5px;
}
.film-caption .film-title {
  font-family: var(--font-light); font-weight: 300;
  font-size: clamp(19px, 2.2vw, 25px); line-height: 1.2;
  text-transform: uppercase; letter-spacing: .05em;
}
.film-caption .film-sub {
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.75);
  padding-top: 6px; border-top: 1px solid rgba(255,255,255,.3); width: fit-content;
}

/* ---------------- Servicios ---------------- */
.servicios-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.plan {
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 6px;
  padding: 44px 32px;
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.plan:hover { border-color: var(--sage); transform: translateY(-6px); }
.plan.featured { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.plan h3 { font-size: 26px; font-style: italic; margin-bottom: 6px; }
.plan .tag { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--sage); }
.plan.featured .tag { color: var(--sage-light); }
.plan ul { list-style: none; padding: 0; margin: 26px 0 32px; }
.plan li { padding: 10px 0; border-top: 1px solid rgba(0,0,0,.08); font-size: 14.5px; }
.plan.featured li { border-top: 1px solid rgba(255,255,255,.12); }
.plan li:first-child { border-top: none; }
.plan .price { font-family: var(--font-display); font-style: italic; font-size: 15px; color: var(--charcoal); margin-bottom: 4px; }
.plan.featured .price { color: rgba(255,255,255,.75); }

/* ---------------- Contacto ---------------- */
#contacto .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.contact-info .eyebrow { color: var(--sage-light); }
.contact-info h2 { font-size: clamp(30px,4vw,44px); font-style: italic; margin-bottom: 26px; }
.contact-line { display: flex; flex-direction: column; gap: 22px; margin-top: 34px; }
.contact-line a, .contact-line span { font-size: 15px; }
.contact-line small { display:block; text-transform: uppercase; letter-spacing: .16em; font-size: 10.5px; color: var(--sage-light); margin-bottom: 4px; }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; color: rgba(255,255,255,.6); }
.form-field input, .form-field textarea {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,.28);
  color: #fff; font-family: var(--font-sans); font-size: 15px; padding: 10px 2px; outline: none;
  transition: border-color .3s var(--ease);
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--sage-light); }
.form-field textarea { resize: vertical; min-height: 90px; }
.form-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.form-note { font-size: 12.5px; color: rgba(255,255,255,.5); margin-top: 16px; }

/* ---------------- Footer ---------------- */
footer { background: var(--ink-soft); color: rgba(255,255,255,.6); padding: 50px 0 26px; }
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-row .logo { color: var(--ivory); font-size: 20px; }
.social-links { display: flex; gap: 22px; }
.social-links a { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.social-links a:hover { color: var(--sage-light); }
.footer-bottom { margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: 11.5px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }

/* ---------------- Lightbox ---------------- */
#lightbox {
  position: fixed; inset: 0; background: rgba(10,10,10,.94); z-index: 500;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
}
#lightbox.open { opacity: 1; pointer-events: all; }
#lightbox img { max-width: 88vw; max-height: 84vh; object-fit: contain; border-radius: 2px; }
#lightbox .lb-close {
  position: absolute; top: 26px; right: var(--pad); color: #fff; font-size: 13px;
  letter-spacing: .16em; text-transform: uppercase; cursor: pointer; background: none; border: none;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .nav-links, .nav-actions .btn-dark { display: none; }
  .burger { display: block; }
  #nosotros .grid, #contacto .grid { grid-template-columns: 1fr; gap: 40px; }
  .servicios-grid { grid-template-columns: 1fr; }
  .films-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .extras { grid-template-columns: 1fr; }
  .p-item:nth-child(n) { grid-column: span 1; grid-row: span 2; }
  .section-pad { padding: 80px 0; }
  .stat-row { gap: 28px; }
}

.nav-open .nav-links {
  display: flex; position: fixed; inset: 0; top: 0;
  flex-direction: column; align-items: center; justify-content: center;
  background: var(--ink); gap: 30px; z-index: 250;
}
.nav-open .nav-links a { color: var(--ivory); font-size: 15px; }
.nav-open .burger span { background: var(--ivory) !important; }
.nav-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
