:root {
  --bg: #0c0b0a;
  --bg2: #141210;
  --txt: #ece6dc;
  --txt2: #9a9187;
  --acento: #c8955a;
  --linea: #2a2622;
  --gap: 10px;
}
:root[data-theme="light"] {
  --bg: #ffffff;
  --bg2: #f5f3f0;
  --txt: #1a1816;
  --txt2: #77706a;
  --acento: #9c6a33;
  --linea: #e6e1da;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--txt);
  font: 300 16px/1.6 Inter, system-ui, sans-serif;
  transition: background .4s, color .4s;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* Cabecera */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 40px;
  transition: background .3s, padding .3s;
}
.top::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); }
.top.solida::before { opacity: 1; }
.top.solida { padding: 14px 40px; }
.top:not(.solida) { color: #f3ede4; }
.logo {
  font: 500 15px/1 Inter, sans-serif;
  letter-spacing: .32em; text-transform: uppercase;
}
nav { display: flex; gap: 28px; align-items: center; font-size: 13px; letter-spacing: .08em; }
nav a { opacity: .75; transition: opacity .2s; }
nav a:hover, nav a.activa { opacity: 1; }
nav a.activa { border-bottom: 1px solid currentColor; }
.tema {
  width: 34px; height: 18px; border-radius: 9px; border: 1px solid currentColor;
  background: none; cursor: pointer; position: relative; color: inherit; opacity: .75;
}
.tema span {
  position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%;
  background: currentColor; transition: transform .3s;
}
:root[data-theme="light"] .tema span { transform: translateX(16px); }

/* Portada */
.hero { position: relative; height: 100vh; min-height: 560px; overflow: hidden; background: #000; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; opacity: .92; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.15) 55%, rgba(0,0,0,0) 100%);
}
.hero-txt { position: absolute; left: 8vw; bottom: 16vh; z-index: 2; color: #f3ede4; max-width: 760px; }
.kicker { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--acento); margin-bottom: 18px; }
.hero .kicker { color: #d8a76c; }
h1 {
  font: 400 clamp(52px, 7.5vw, 104px)/.95 "Cormorant Garamond", serif;
  letter-spacing: -.01em;
}
h1 em { font-style: italic; color: #d8a76c; }
.sub { margin-top: 22px; font-size: 17px; color: #d6cfc4; max-width: 420px; }

.autoridad { padding: 80px 8vw 30px; text-align: center; }
.autoridad p { font: 400 clamp(22px, 2.6vw, 32px)/1.3 "Cormorant Garamond", serif; color: var(--txt2); }
.autoridad strong { color: var(--txt); font-weight: 500; }

/* Galería */
main { padding: 40px 40px 80px; }
.titulo-galeria {
  font: 400 13px/1 Inter, sans-serif; letter-spacing: .28em; text-transform: uppercase;
  color: var(--txt2); text-align: center; margin-bottom: 36px; scroll-margin-top: 90px;
}
.grid { display: flex; gap: var(--gap); align-items: flex-start; }
.grid .col { flex: 1; min-width: 0; }
.grid figure {
  break-inside: avoid; margin-bottom: var(--gap); overflow: hidden; cursor: zoom-in;
  background: var(--bg2);
  opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s;
}
.grid figure.visible { opacity: 1; transform: none; }
.grid img { width: 100%; height: auto; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.grid figure:hover img { transform: scale(1.03); }

/* Clientes */
.clientes { padding: 80px 8vw; text-align: center; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.clientes ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 46px; margin-top: 10px; }
.clientes li { font: 400 26px/1.2 "Cormorant Garamond", serif; color: var(--txt2); letter-spacing: .04em; }

/* Cita */
.cita { padding: 110px 12vw; text-align: center; }
blockquote { font: italic 400 clamp(26px, 3.2vw, 42px)/1.25 "Cormorant Garamond", serif; max-width: 900px; margin: 0 auto; }
.firma { margin-top: 22px; font-size: 13px; letter-spacing: .14em; color: var(--txt2); text-transform: uppercase; }
.nota { text-transform: none; letter-spacing: 0; opacity: .6; }

/* Contacto */
.contacto { padding: 100px 8vw 120px; text-align: center; background: var(--bg2); scroll-margin-top: 60px; }
.contacto h2 { font: 400 clamp(36px, 4.5vw, 60px)/1.05 "Cormorant Garamond", serif; }
.contacto > p { color: var(--txt2); margin: 16px 0 36px; }
.botones { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.btn {
  padding: 14px 30px; border: 1px solid var(--acento); background: var(--acento); color: #120e0a;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; transition: opacity .2s;
}
.btn:hover { opacity: .85; }
.btn-sec { background: none; color: var(--txt); border-color: var(--linea); }
footer { padding: 30px; text-align: center; font-size: 12px; color: var(--txt2); letter-spacing: .1em; }

.wa-flotante {
  position: fixed; right: 24px; bottom: 24px; z-index: 30;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.35); transition: transform .2s;
}
.wa-flotante:hover { transform: scale(1.07); }

/* Visor */
.lightbox {
  position: fixed; inset: 0; z-index: 50; background: rgba(8,7,6,.96);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.lightbox button {
  position: absolute; background: none; border: 0; color: #eee; cursor: pointer;
  font: 300 46px/1 Inter, sans-serif; padding: 20px; opacity: .7;
}
.lightbox button:hover { opacity: 1; }
.lb-cerrar { top: 10px; right: 20px; }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }

/* Menú móvil */
.menu-btn { display: none; background: none; border: 0; width: 30px; height: 22px; position: relative; cursor: pointer; color: inherit; z-index: 40; }
.menu-btn span { position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .3s, top .3s; }
.menu-btn span:first-child { top: 6px; }
.menu-btn span:last-child { top: 15px; }
.menu-abierto .menu-btn span:first-child { top: 11px; transform: rotate(45deg); }
.menu-abierto .menu-btn span:last-child { top: 11px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .menu-btn { display: block; }
  nav {
    position: fixed; inset: 0; z-index: 30; background: var(--bg); color: var(--txt);
    flex-direction: column; justify-content: center; gap: 26px;
    font: 400 30px/1.2 "Cormorant Garamond", serif; letter-spacing: .02em;
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s;
  }
  .menu-abierto nav { opacity: 1; visibility: visible; transition: opacity .35s; }
  .menu-abierto .top { color: var(--txt); }
  nav a { opacity: .9; }
  nav a.activa { border: 0; color: var(--acento); }
  .tema { margin-top: 10px; }
  .top, .top.solida { padding-left: 16px; padding-right: 16px; }
  main { padding: 30px 16px 60px; }
}
@media (max-width: 520px) {
  :root { --gap: 6px; }
  .logo { letter-spacing: .2em; font-size: 13px; }
  .hero-txt { left: 16px; right: 16px; bottom: 12vh; }
  .hero img { object-position: 35% 50%; }
  .sub { font-size: 15px; }
  .clientes li { font-size: 21px; }
  .clientes ul { gap: 10px 26px; }
  .wa-flotante { right: 16px; bottom: 16px; width: 50px; height: 50px; }
  .botones { flex-direction: column; align-items: stretch; max-width: 300px; margin: 0 auto; }
  .btn { text-align: center; }
}
.email-txt { margin-top: 26px; font-size: 13px; color: var(--txt2); letter-spacing: .06em; user-select: all; }

/* Sobre mí */
.sobre { display: grid; grid-template-columns: 1fr 1.2fr; gap: 70px; align-items: center; padding: 110px 8vw; scroll-margin-top: 60px; }
.sobre-foto { aspect-ratio: 4/5; background: var(--bg2); border: 1px dashed var(--linea); display: grid; place-items: center; color: var(--txt2); font-size: 13px; letter-spacing: .1em; }
.sobre h2 { font: 400 clamp(36px, 4.2vw, 56px)/1.05 "Cormorant Garamond", serif; margin-bottom: 26px; }
.sobre-txt p:not(.kicker) { color: var(--txt2); font-size: 17px; margin-bottom: 16px; max-width: 540px; }
@media (max-width: 900px) { .sobre { grid-template-columns: 1fr; gap: 36px; padding: 70px 16px; } }
.sobre-foto { border: 0; overflow: hidden; }
.sobre-foto img { width: 100%; height: 100%; object-fit: cover; }
