/* ==========================================================
   Nazareth · Arte & Naturaleza
   ========================================================== */
:root {
  --bg: #efefed;
  --bg-alt: #e7e5e0;
  --paper: #f7f6f3;
  --ink: #141414;
  --ink-soft: #4a4844;
  --line: #bdbab3;
  --accent: #a8742a;          /* ocre de las patas del halcón */
  --display: "Tenor Sans", "Optima", "Candara", sans-serif;
  --body: "Nunito Sans", "Segoe UI", sans-serif;
  --header-h: 92px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) - 1px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 300 17px/1.75 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
em { font-style: italic; }
figure { margin: 0; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }

/* ---------------- Header ---------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 clamp(20px, 5vw, 110px);
  transition: background .35s, box-shadow .35s;
}
.site-header.is-scrolled {
  background: rgba(239, 239, 237, .94);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.brand img { height: 54px; width: auto; }

.main-nav ul {
  list-style: none; margin: 0; padding: 6px 10px; display: flex;
  background: rgba(239, 239, 237, .72); backdrop-filter: blur(5px); border-radius: 30px;
}
.is-scrolled .main-nav ul { background: transparent; backdrop-filter: none; }
.main-nav li { border-left: 1.5px solid var(--ink); }
.main-nav li:last-child { border-right: 1.5px solid var(--ink); }
.main-nav a {
  display: block; padding: 4px 22px;
  font: 400 15.5px/1.6 var(--display); letter-spacing: .09em;
  text-decoration: none; color: var(--ink);
  transition: background .25s, color .25s;
}
.main-nav a:hover { color: var(--accent); }
.main-nav a.is-active { background: var(--ink); color: #fff; }

.social { display: flex; gap: 14px; }
.social a { display: grid; place-items: center; width: 26px; height: 26px; }
.social svg { width: 22px; height: 22px; fill: var(--ink); transition: fill .2s; }
.social a:hover svg { fill: var(--accent); }

.nav-toggle { display: none; }

/* ---------------- Hero slider ---------------- */
.hero {
  position: relative; height: 100vh; min-height: 560px; max-height: 1100px;
  overflow: hidden; background: var(--bg);
}
.slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 1.4s ease, visibility 0s 1.4s;
}
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.4s ease; }
.slide img {
  position: absolute; max-width: none;
  transform: translateX(3%);
  transition: transform 7s ease-out;
}
.slide.is-active img { transform: translateX(0); }
.slide-text {
  position: absolute; left: 6vw; top: 55%;
  margin: 0; max-width: 62vw;
  font: 400 clamp(26px, 3.15vw, 58px)/1.25 var(--display);
  letter-spacing: .08em;
  opacity: 0; transform: translateY(14px);
  transition: opacity 1.2s .5s, transform 1.2s .5s;
}
.slide.is-active .slide-text { opacity: 1; transform: none; }

/* composición según los mockups */
.slide--halcon img   { height: 104%; width: auto; right: -6vw; top: -2%; }
.slide--halcon .slide-text { max-width: 58vw; }
.slide--pescadora img{ height: 122%; width: auto; right: -4vw; top: -16%; }
.slide--pescadora .slide-text { left: 9vw; max-width: 52vw; }
.slide--lechuza img  { width: 50vw; height: auto; right: 1vw; top: 4%; }
.slide--lechuza .slide-text { max-width: 46vw; }

.hero-dots {
  position: absolute; left: 6vw; bottom: 42px; display: flex; gap: 12px; z-index: 2;
}
.hero-dots button {
  width: 34px; height: 3px; padding: 0; border: 0; cursor: pointer;
  background: var(--line);
}
.hero-dots button.is-active { background: var(--ink); }
.scroll-cue { display: none; }

/* ---------------- Sections ---------------- */
.section { padding: 120px 0 110px; position: relative; }
.section--alt { background: var(--bg-alt); }
.section-title {
  margin: 0 0 18px;
  font: 400 clamp(30px, 3.4vw, 46px)/1.2 var(--display);
  letter-spacing: .12em; text-transform: uppercase;
}
.section-title::after {
  content: ""; display: block; width: 200px; height: 1.5px; margin-top: 14px; background: var(--ink);
}
.section-sub {
  font: 400 15px var(--display); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); margin-top: -4px; margin-bottom: 44px;
}
.sub-nav { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 26px 0 30px; }
.sub-nav a {
  font: 400 14px var(--display); letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-soft);
  padding-bottom: 3px; border-bottom: 1px solid transparent;
}
.sub-nav a:hover { color: var(--ink); border-color: var(--ink); }

.project { padding: 90px 0 30px; border-top: 1px solid var(--line); margin-top: 40px; }
.project:first-of-type { border-top: 0; margin-top: 0; padding-top: 50px; }
.project-kicker {
  margin: 0 0 6px; font: 400 13px var(--display); letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent);
}
.project-title {
  margin: 0 0 40px;
  font: 400 clamp(24px, 2.4vw, 34px)/1.25 var(--display); letter-spacing: .1em; text-transform: uppercase;
}
.lead {
  font: 400 clamp(20px, 1.9vw, 26px)/1.5 var(--display); letter-spacing: .03em; color: var(--ink);
}
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.cols { columns: 2 340px; column-gap: 56px; }
.cols p { break-inside: avoid; }

.highlight {
  margin: 0 0 36px; padding: 0 0 0 26px;
  border-left: 2px solid var(--accent);
  font: 400 clamp(19px, 1.65vw, 24px)/1.6 var(--display); letter-spacing: .02em;
}
.highlight cite {
  display: block; margin-top: 14px;
  font: 400 13px var(--body); font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft);
}
.highlight--center {
  max-width: 860px; margin: 56px auto; padding: 0; border: 0; text-align: center;
}
.highlight--center::before {
  content: "“"; display: block; font: 400 72px/0.6 Georgia, serif; color: var(--accent); margin-bottom: 18px;
}

/* Mi enfoque */
.enfoque { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: start; }
.enfoque-media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
.enfoque-main { grid-column: 1 / -1; }
.enfoque-media img { width: 100%; height: 100%; object-fit: cover; }
.enfoque-media .cutout img { object-fit: contain; max-height: 420px; }

/* split layouts */
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: center; margin-bottom: 50px; }
.split .cutout img { max-height: 440px; margin: 0 auto; }
.split--tienda { grid-template-columns: 1.2fr 1fr; }
.split--tienda figure img { max-height: 620px; width: 100%; object-fit: cover; }
.links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Galleries (estilo grilla tipo Zaria Forman) */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 40px 0;
}
.gallery button {
  padding: 0; border: 0; cursor: zoom-in; background: #ddd; overflow: hidden; aspect-ratio: 3 / 2;
}
.gallery img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease, filter .4s;
}
.gallery button:hover img { transform: scale(1.04); filter: brightness(1.04); }
.gallery.is-collapsed button:nth-child(n+13) { display: none; }
.gallery-more { display: block; width: fit-content; margin: -16px auto 40px; }

/* Consumo azul */
.fish { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 50px; margin: 50px 0 40px; align-items: center; }
.fish figure { text-align: center; }
.fish img { margin: 0 auto; max-height: 220px; width: auto; }
.fish figcaption { margin-top: 10px; font: 400 13px var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }

/* Decorative birds */
.deco { pointer-events: none; user-select: none; position: absolute; }
.deco--golondrina { position: relative; width: min(420px, 60vw); margin: 10px 0 -40px auto; opacity: .95; }
.deco--garcita { width: 34%; right: -16%; bottom: -8%; }
.deco--vuelvepiedras { position: relative; width: 210px; margin-top: 30px; }

/* Buttons */
.btn {
  display: inline-block; cursor: pointer;
  padding: 13px 28px; border: 1.5px solid var(--ink);
  background: var(--ink); color: #fff;
  font: 400 14px var(--display); letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  transition: background .25s, color .25s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.link-btn {
  background: none; border: 0; padding: 0; margin: 0 0 32px; cursor: pointer;
  font: 400 14px var(--display); letter-spacing: .12em; text-transform: uppercase;
  border-bottom: 1px solid var(--ink); color: var(--ink);
}

/* Talleres CTA */
.cta-box {
  margin-top: 60px; padding: 56px 40px; text-align: center;
  background: var(--paper); border: 1px solid var(--line);
}
.cta-box h3 { margin: 0 0 10px; font: 400 clamp(22px, 2vw, 28px) var(--display); letter-spacing: .08em; }
.cta-box p { color: var(--ink-soft); margin-bottom: 28px; }

/* Tienda */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 28px; margin-top: 70px; }
.product { display: flex; flex-direction: column; }
.product img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; margin-bottom: 18px; }
.product h3 { margin: 0 0 8px; font: 400 18px var(--display); letter-spacing: .1em; text-transform: uppercase; }
.product p { font-size: 15px; line-height: 1.65; color: var(--ink-soft); flex: 1; }
.btn--wa { align-self: flex-start; padding: 10px 20px; font-size: 13px; }
.btn--wa::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #25d366; margin-right: 10px; vertical-align: middle; }

/* Sobre mí */
.about { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 80px; align-items: start; }
.about-photo { position: relative; position: sticky; top: calc(var(--header-h) + 20px); }
.about-photo > img:first-child { width: 100%; }
.video { margin-top: 90px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; max-width: 980px; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; margin-top: 40px; }
.contact-list { list-style: none; padding: 0; margin: 30px 0 0; }
.contact-list li { border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list a {
  display: flex; justify-content: space-between; gap: 20px; padding: 16px 2px;
  text-decoration: none; transition: padding .25s, color .25s;
}
.contact-list a:hover { padding-left: 10px; color: var(--accent); }
.contact-list span { font: 400 13px/2 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }

.contact-form { background: var(--paper); padding: 44px 40px; border: 1px solid var(--line); }
.contact-form h3 { margin: 0 0 26px; font: 400 20px var(--display); letter-spacing: .1em; text-transform: uppercase; }
.contact-form label { display: block; margin-bottom: 18px; font: 400 13px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.contact-form small { text-transform: none; letter-spacing: 0; }
.contact-form input, .contact-form select, .contact-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px;
  font: 300 16px var(--body); color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 0;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.contact-form .hp { position: absolute; left: -9999px; }
.form-status { margin: 16px 0 0; font-size: 15px; }
.form-status.ok { color: #2f6b3a; }
.form-status.err { color: #9b2c2c; }

/* Footer */
.site-footer { padding: 60px 20px 50px; text-align: center; border-top: 1px solid var(--line); }
.site-footer img { width: 200px; margin: 0 auto 18px; }
.site-footer p { font-size: 13px; letter-spacing: .1em; color: var(--ink-soft); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(20, 20, 20, .94);
  display: grid; place-items: center;
}
.lightbox img { max-width: 90vw; max-height: 86vh; object-fit: contain; }
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer;
  font: 300 54px/1 var(--body); padding: 16px; opacity: .75;
}
.lightbox button:hover { opacity: 1; }
.lb-close { top: 10px; right: 18px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #bbb; font: 400 13px var(--display); letter-spacing: .16em; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 54px; height: 54px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.18);
  transition: transform .25s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1180px) {
  .main-nav a { padding: 4px 14px; font-size: 14.5px; }
  .products { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .brand img { height: 42px; }
  .social { margin-left: auto; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 6px; justify-content: center;
    width: 40px; height: 40px; padding: 8px; background: none; border: 0; cursor: pointer; order: 3;
  }
  .nav-toggle span { display: block; height: 1.5px; background: var(--ink); transition: transform .3s, opacity .3s; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg);
    display: grid; place-items: center;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transition: opacity .3s; }
  .nav-open .site-header { background: var(--bg); }
  .main-nav ul { flex-direction: column; text-align: center; gap: 6px; }
  .main-nav li, .main-nav li:last-child { border: 0; }
  .main-nav a { font-size: 24px; padding: 8px 30px; }

  .enfoque, .split, .split--tienda, .about, .contact { grid-template-columns: 1fr; gap: 44px; }
  .about-photo { position: relative; top: 0; max-width: 480px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .products { grid-template-columns: repeat(2, 1fr); }

  /* Hero: ilustración arriba, frase abajo */
  .hero { height: 100svh; }
  .slide-text { top: auto; bottom: 90px; left: 24px; right: 24px; max-width: none; font-size: clamp(24px, 6.4vw, 40px); }
  .slide-text br { display: none; }
  .slide--halcon .slide-text, .slide--lechuza .slide-text { max-width: none; }
  .slide--pescadora .slide-text { left: 24px; max-width: none; }
  .slide::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%;
    background: linear-gradient(to top, var(--bg) 55%, rgba(239,239,237,0));
  }
  .slide-text { z-index: 1; }
  .slide--halcon img   { height: 72%; right: -14vw; top: 6%; }
  .slide--pescadora img{ height: 78%; right: -22vw; top: 2%; }
  .slide--lechuza img  { width: 82vw; right: -6vw; top: 9%; }
  .hero-dots { left: 24px; bottom: 44px; }
  .scroll-cue { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 84px 0 70px; }
  .social { gap: 8px; }
  .social svg { width: 19px; height: 19px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .gallery.is-collapsed button:nth-child(n+9) { display: none; }
  .products { grid-template-columns: 1fr; }
  .fish { grid-template-columns: 1fr; }
  .cta-box, .contact-form { padding: 34px 20px; }
  .contact-list a { flex-direction: column; gap: 0; }
  .deco--garcita { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
