:root {
  --bg: #0f0e0d;
  --panel: #181614;
  --line: #2a2724;
  --ink: #f3eee7;
  --mute: #a39b90;
  --accent: #d6a868;
  --accent-ink: #1a140c;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

/* ---------- Encabezado ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter);
  background: linear-gradient(to bottom, rgba(15,14,13,.85), rgba(15,14,13,0));
  transition: background .3s;
}
.site-header.solid { background: rgba(15,14,13,.94); backdrop-filter: blur(8px); }
.brand { text-decoration: none; line-height: 1.1; }
.brand strong { display: block; font: 500 24px/1 var(--serif); letter-spacing: .02em; }
.brand span { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--mute); }
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--mute); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink) !important;
  font-weight: 600; font-size: 14px; text-decoration: none;
  transition: transform .2s, filter .2s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink) !important; border: 1px solid var(--line); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Portada ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06);
  filter: brightness(.8) saturate(.95);
  transition: opacity 1.6s ease, transform 7s linear;
}
.hero-slide.on { opacity: 1; transform: scale(1); }
/* Dos capas: abajo para el texto en celular, a la izquierda para el texto en compu.
   Así el título se lee aunque pase una foto con cielo o luces muy claras. */
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(15,14,13,.88) 0%, rgba(15,14,13,.7) 40%, rgba(15,14,13,.1) 75%),
    linear-gradient(to top, rgba(15,14,13,.95) 0%, rgba(15,14,13,.45) 50%, rgba(15,14,13,.35) 100%);
}
.hero-copy {
  position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(48px, 10vh, 110px);
  max-width: 760px;
}
.eyebrow { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }
.hero h1 { margin: 14px 0 18px; font: 400 clamp(40px, 7vw, 84px)/1.02 var(--serif); text-shadow: 0 2px 24px rgba(0,0,0,.55); }
.hero h1 em { color: #e6bd82; }
.hero p { margin: 0 0 28px; max-width: 520px; color: #e4ddd3; font-size: 17px; text-shadow: 0 1px 12px rgba(0,0,0,.7); }
.hero .eyebrow { text-shadow: 0 1px 10px rgba(0,0,0,.8); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Secciones ---------- */
section { padding: clamp(72px, 12vw, 140px) var(--gutter); }
.section-head { max-width: 1240px; margin: 0 auto 40px; }
.section-head h2 { margin: 10px 0 0; font: 400 clamp(34px, 5vw, 56px)/1.05 var(--serif); }

/* Pestañas */
.tabs {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  max-width: 1240px; margin: 0 auto 28px; padding-bottom: 4px;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; padding: 10px 18px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--mute); font-size: 14px;
  transition: all .2s;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* Galería en columnas */
.gallery { max-width: 1240px; margin: 0 auto; columns: 3 320px; column-gap: 12px; }
.shot {
  position: relative; display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 0;
  break-inside: avoid; cursor: zoom-in; overflow: hidden; border-radius: 4px;
  background-size: cover; background-position: center;
}
.shot img { width: 100%; height: auto; opacity: 0; transition: opacity .6s, transform .8s; }
.shot img.loaded { opacity: 1; }
.shot:hover img { transform: scale(1.03); }
.gallery.fade { animation: fade .5s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.gallery-cta {
  max-width: 1240px; margin: 36px auto 0; padding: 28px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
}
.gallery-cta p { margin: 0; font: 400 24px/1.25 var(--serif); }

/* Sobre mí */
.about {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center;
}
.about figure { margin: 0; }
.about figure img { border-radius: 4px; }
.about figcaption { margin-top: 8px; font-size: 12px; color: var(--mute); }
.about h2 { margin: 10px 0 20px; font: 400 clamp(34px, 5vw, 52px)/1.05 var(--serif); }
.about p { color: #d0c9bf; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips span { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--mute); }

/* Cómo trabajo */
.process { background: var(--panel); }
.steps { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.step b { font: 400 44px/1 var(--serif); color: var(--accent); }
.step h3 { margin: 14px 0 8px; font: 500 22px/1.2 var(--serif); }
.step p { margin: 0; color: var(--mute); font-size: 15px; }
.step a { color: var(--accent); }

/* Contacto */
.contact { text-align: center; }
.contact h2 { margin: 10px auto 18px; max-width: 760px; font: 400 clamp(36px, 6vw, 68px)/1.04 var(--serif); }
.contact p { margin: 0 auto 30px; max-width: 520px; color: var(--mute); }
.contact .hero-actions { justify-content: center; }

footer {
  padding: 28px var(--gutter); border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 13px; color: var(--mute);
}

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 30;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.4);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Visor ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 50; display: none;
  background: rgba(8,8,7,.97); touch-action: pan-y;
}
.lightbox.open { display: block; }
.lb-stage { position: absolute; inset: 56px 0 56px; display: grid; place-items: center; padding: 0 var(--gutter); }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; transition: opacity .25s; }
.lb-bar {
  position: absolute; left: 0; right: 0; top: 0; height: 56px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter);
  font-size: 13px; color: var(--mute);
}
.lb-btn {
  border: 0; background: rgba(255,255,255,.06); width: 44px; height: 44px; border-radius: 50%;
  cursor: pointer; display: grid; place-items: center; font-size: 22px;
}
.lb-btn:hover { background: rgba(255,255,255,.14); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; } .lb-next { right: 12px; }

/* ---------- Galería privada ---------- */
.gate { min-height: 100svh; display: grid; place-items: center; padding: 24px; position: relative; overflow: hidden; }
.gate-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(2px) brightness(.35); transform: scale(1.05); }
.gate-card {
  position: relative; width: 100%; max-width: 420px; padding: 36px 32px;
  background: rgba(15,14,13,.88); border: 1px solid var(--line); border-radius: 10px; text-align: center;
}
.gate-card h1 { margin: 10px 0 8px; font: 400 36px/1.1 var(--serif); }
.gate-card p { margin: 0 0 24px; color: var(--mute); font-size: 15px; }
.field {
  width: 100%; padding: 14px 16px; margin-bottom: 12px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--line); color: var(--ink); font: inherit;
  text-align: center; letter-spacing: .2em; text-transform: uppercase;
}
.field:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.gate-card .btn { width: 100%; justify-content: center; }
.hint { margin-top: 18px; font-size: 13px; color: var(--mute); }
.hint code { color: var(--accent); }
.error { min-height: 20px; margin: 0 0 8px; color: #e48a7a; font-size: 14px; }

.client-top { padding: 110px var(--gutter) 24px; max-width: 1288px; margin: 0 auto; }
.client-top h1 { margin: 8px 0 6px; font: 400 clamp(34px, 5vw, 54px)/1.05 var(--serif); }
.client-top p { margin: 0; color: var(--mute); }
.client-tools {
  position: sticky; top: 72px; z-index: 10; max-width: 1240px; margin: 18px auto 20px;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: rgba(24,22,20,.95); border: 1px solid var(--line); border-radius: 10px;
}
.client-tools .group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.client-grid { padding: 0 var(--gutter) 80px; }
.fav {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: rgba(15,14,13,.7); font-size: 18px;
  transition: transform .15s;
}
.fav:active { transform: scale(.9); }
.fav[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.shot-wrap { position: relative; break-inside: avoid; margin-bottom: 12px; }
.shot-wrap .shot { margin: 0; }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 20px);
  max-width: calc(100% - 32px); padding: 14px 20px; border-radius: 10px;
  background: var(--ink); color: var(--bg); font-size: 14px; opacity: 0; pointer-events: none;
  transition: all .3s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Celular ---------- */
@media (max-width: 820px) {
  .nav a:not(.btn) { display: none; }
  .nav .btn { padding: 10px 14px; }
  .about, .steps { grid-template-columns: 1fr; }
  .gallery { columns: 2; column-gap: 8px; }
  .shot, .shot-wrap { margin-bottom: 8px; }
  .lb-prev, .lb-next { display: none; }
  .client-tools { position: static; padding: 10px; margin: 12px auto 16px; }
  .client-tools .btn, .client-tools .tab { padding: 9px 13px; font-size: 13px; }
  .client-top { padding-top: 96px; }
}
@media (max-width: 420px) {
  .brand strong { font-size: 20px; }
  .nav .btn span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
