/* ============================================================
   bravé studio — main.css
   Minimal · Editorial · Apple-like premium
============================================================ */

:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --ink-soft: #2a2a2a;
  --muted: #8a8a8a;
  --line: #ececec;
  --accent: #0a0a0a;

  --f-display: 'Poppins', 'Inter', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --t-fast: .25s;
  --t-med: .55s;
  --t-slow: .9s;

  --w-max: 1320px;
  --w-text: 720px;
  --pad-x: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--ink); color: #fff; }

/* ----------- Typography ----------- */
.eyebrow {
  display: inline-block;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.section-title {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: clamp(34px, 5.5vw, 72px);
  line-height: 1.04;
  letter-spacing: -.02em;
  margin: 0 0 24px;
  color: var(--ink);
}
.section-title .muted { color: var(--muted); font-weight: 300; }

/* ----------- Logo (Poppins) ----------- */
.logo-mark {
  font-family: var(--f-display);
  font-weight: 900;
  letter-spacing: -.04em;
  color: #000;
}
.logo-sub {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: .58em;
  letter-spacing: .42em;
  text-transform: lowercase;
  color: #000;
  margin-left: .35em;
  vertical-align: middle;
}

/* ----------- Nav ----------- */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad-x);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
#navbar.scrolled { border-color: var(--line); }

.nav-logo {
  display: inline-flex; flex-direction: column; align-items: center;
  font-size: 20px; line-height: 1;
}
.nav-logo .logo-sub {
  font-size: 8px; letter-spacing: .42em;
  margin-left: 0; margin-top: 4px; padding-left: 0;
}

.nav-links {
  list-style: none; display: flex; gap: 36px; margin: 0; padding: 0;
}
.nav-links a {
  font-size: 14px; font-weight: 500; letter-spacing: .01em;
  color: var(--ink); position: relative; padding: 6px 0;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--ink); transition: right var(--t-med) var(--ease);
}
.nav-links a:hover::after { right: 0; }

.nav-toggle {
  display: none; width: 28px; height: 22px; position: relative; padding: 0;
}
.nav-toggle span {
  position: absolute; left: 0; right: 0; height: 1.5px; background: var(--ink);
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.nav-toggle span:nth-child(1) { top: 2px; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { bottom: 2px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ----------- Hero ----------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: 120px var(--pad-x) 80px;
  position: relative;
  background: #fff;
  overflow: hidden;
}
.hero-inner {
  text-align: center;
  max-width: var(--w-text);
  animation: heroIn 1.2s var(--ease) both;
}
.hero-logo {
  display: inline-flex; flex-direction: column; align-items: center;
  font-size: clamp(56px, 10vw, 132px);
  line-height: 1;
  margin-bottom: 56px;
}
.hl-mark {
  font-family: var(--f-display);
  font-weight: 900;
  letter-spacing: -.05em;
  color: #000;
}
.hl-sub {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: .14em;
  letter-spacing: .48em;
  text-transform: lowercase;
  color: #000;
  margin-top: .35em;
  padding-left: .48em;
}
.hero-tagline {
  font-family: var(--f-body);
  font-weight: 300;
  font-size: clamp(28px, 4vw, 52px);
  letter-spacing: -.02em;
  line-height: 1.1;
  margin: 0 0 14px;
}
.hero-sub {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: clamp(14px, 1.3vw, 17px);
  letter-spacing: .04em;
  color: var(--muted);
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: .9em;
}
.hero-sub .hs-left { text-align: right; }
.hero-sub .hs-right { text-align: left; }
.hero-sub .hs-pipe { opacity: .55; }
@media (max-width: 640px) {
  .hero-sub {
    grid-template-columns: 1fr;
    row-gap: .4em;
  }
  .hero-sub .hs-left, .hero-sub .hs-right { text-align: center; }
  .hero-sub .hs-pipe { display: none; }
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

/* ----------- Sections ----------- */
section {
  padding: clamp(80px, 12vh, 140px) var(--pad-x);
  max-width: var(--w-max);
  margin: 0 auto;
}
.section-header { max-width: 680px; margin: 0 auto clamp(48px, 7vw, 96px); text-align: center; }

.portfolio-preview .section-header { max-width: none; margin-bottom: 0; }
.portfolio-preview { padding-bottom: 0; }
.cats-line {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: clamp(18px, 2.4vw, 32px);
  letter-spacing: -.01em;
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
  white-space: nowrap;
}
.cats-line .dot { padding: 0 .45em; opacity: .4; font-weight: 500; }
.cats-line a {
  position: relative;
  color: inherit;
  text-decoration: none;
  transition: opacity var(--t-fast) var(--ease);
}
.cats-line a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: -.18em;
  height: 2px;
  background: currentColor;
  transition: right var(--t-med) var(--ease);
}
.cats-line a:hover::after { right: 0; }
.cats-line .cat-soon { opacity: .35; cursor: not-allowed; }

@media (max-width: 720px) {
  .cats-line { white-space: normal; font-size: clamp(16px, 4vw, 22px); text-wrap: balance; }
}

/* ----------- About ----------- */
.about-grid {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  max-width: 1100px; margin: 0 auto;
}
.about-image {
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border-radius: 2px;
}
.about-image img,
.about-image .about-video {
  width: 100%; height: 100%; object-fit: contain;
  display: block;
}
.about-text .section-title {
  font-size: clamp(28px, 4vw, 52px);
}
.about-text p {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 18px;
  font-weight: 300;
  max-width: 520px;
}
.about-signature {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 22px !important;
  color: var(--ink) !important;
  letter-spacing: -.02em;
  margin-top: 24px !important;
}

/* ----------- Portfolio preview (category cards) ----------- */
.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: clamp(16px, 2vw, 28px);
  align-items: stretch;
}
.cat-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: #f5f5f5;
  aspect-ratio: 3 / 4;
  transition: transform var(--t-med) var(--ease);
}
.cat-card.featured { aspect-ratio: 4 / 5; }
.cat-img { position: absolute; inset: 0; overflow: hidden; }
.cat-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease), filter var(--t-med) var(--ease);
  filter: brightness(.92);
}
.cat-card:hover .cat-img img { transform: scale(1.06); filter: brightness(1); }

.cat-meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,0) 70%);
  display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 12px;
}
.cat-meta h3 {
  margin: 0;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: clamp(18px, 1.6vw, 24px);
  letter-spacing: -.01em;
}
.cat-num {
  font-size: 12px; letter-spacing: .2em; opacity: .8; align-self: end;
}
.cat-arrow {
  font-size: 22px;
  transition: transform var(--t-med) var(--ease);
}
.cat-card:hover .cat-arrow { transform: translateX(6px); }
.cat-flag {
  position: absolute; top: 20px; left: 20px;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  background: #fff; color: var(--ink);
  padding: 6px 12px;
  font-weight: 500;
}

/* ----------- Galleries (categoría dedicada) ----------- */
.gallery { padding-top: clamp(60px, 8vh, 100px); max-width: 1140px; }
.gallery-header { max-width: 720px; margin: 0 0 56px; }
.gallery-lede {
  font-size: 17px; font-weight: 300; color: var(--ink-soft);
  max-width: 560px; margin: 0;
}

/* Carousel (Weddings, Branding, Events) */
.carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}
.car-track {
  display: flex;
  gap: clamp(12px, 1.5vw, 22px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.car-track::-webkit-scrollbar { display: none; }
.car-track figure {
  margin: 0;
  flex: 0 0 auto;
  width: clamp(220px, 32vw, 440px);
  aspect-ratio: 4 / 5;
  background: #f5f5f5;
  overflow: hidden;
  scroll-snap-align: start;
  cursor: zoom-in;
  position: relative;
}
.car-track figure img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.car-track figure:hover img { transform: scale(1.04); }

.car-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: #fff;
  font-size: 16px;
  display: grid; place-items: center;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.car-btn:hover { background: var(--ink); color: #fff; }
.car-btn:active { transform: scale(.94); }

/* ----------- Contact ----------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: start;
}
.contact-list {
  list-style: none; margin: 24px 0 0; padding: 0;
  display: grid; gap: 18px;
}
.contact-list li {
  display: grid; grid-template-columns: 140px 1fr;
  gap: 16px; padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.contact-list li:last-child { border-bottom: none; }
.contact-list strong {
  font-weight: 500; color: var(--muted);
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  align-self: center;
}
.contact-list span { color: var(--ink); }

.contact-form-wrap { padding-top: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; margin-bottom: 18px; }
.form-group label {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px; font-weight: 500;
}
.form-group input,
.form-group textarea {
  font-family: var(--f-body);
  font-size: 15px;
  padding: 12px 0;
  border: none; border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  transition: border-color var(--t-fast) var(--ease);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none; border-bottom-color: var(--ink);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit {
  margin-top: 14px;
  padding: 14px 32px;
  background: var(--ink); color: #fff;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  border-radius: 999px;
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.form-submit:hover { transform: translateY(-2px); }
.form-submit:active { transform: translateY(0); opacity: .9; }
.form-note { font-size: 12px; color: var(--muted); margin: 14px 0 0; }
.form-honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error {
  margin: 0 0 14px;
  font-size: 13px;
  color: #b00020;
  padding: 10px 12px;
  background: rgba(176, 0, 32, .06);
  border-left: 2px solid #b00020;
}
.form-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.success-msg {
  padding: 32px; border: 1px solid var(--line); text-align: center;
}
.success-icon { font-size: 26px; display: block; margin-bottom: 10px; }
.success-msg h3 { margin: 0 0 8px; font-weight: 500; }
.success-msg p { margin: 0; color: var(--muted); font-size: 14px; }

/* ----------- Footer ----------- */
footer {
  border-top: 1px solid var(--line);
  padding: 72px var(--pad-x) 56px;
  margin-top: 60px;
}
.footer-inner {
  max-width: var(--w-max); margin: 0 auto;
  display: grid; gap: 28px;
  justify-items: center; text-align: center;
}
.footer-logo {
  display: inline-flex; flex-direction: column; align-items: center;
  font-size: 32px; line-height: 1;
}
.footer-logo .logo-sub {
  font-size: 10px; letter-spacing: .42em; margin-left: 0; margin-top: 6px; padding-left: .42em;
}
.footer-tagline {
  font-size: 13px; letter-spacing: .14em; color: var(--muted);
  text-transform: uppercase; margin: 0;
}
.footer-nav {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 28px; flex-wrap: wrap; justify-content: center;
}
.footer-nav a { font-size: 13px; color: var(--ink-soft); }
.footer-nav a:hover { color: var(--ink); }
.footer-copy { font-size: 12px; color: var(--muted); margin: 0; }

/* ----------- Lightbox ----------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 10, 10, .96);
  display: grid; place-items: center;
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}
.lightbox.open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lb-stage {
  max-width: 92vw; max-height: 88vh;
  margin: 0; position: relative;
  transform: scale(.98);
  transition: transform var(--t-med) var(--ease);
}
.lightbox.open .lb-stage { transform: scale(1); }
.lb-stage img {
  max-width: 92vw; max-height: 88vh;
  object-fit: contain;
}
.lb-counter {
  position: absolute; left: 0; bottom: -32px;
  color: rgba(255,255,255,.7); font-size: 12px;
  letter-spacing: .18em; text-transform: uppercase;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute; color: #fff; font-size: 20px;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(6px);
  transition: background var(--t-fast) var(--ease);
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.18); }
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ----------- Reveal animation ----------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

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

/* ----------- Responsive ----------- */
@media (max-width: 900px) {
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff;
    padding: 16px var(--pad-x) 24px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-toggle { display: block; }

  .about-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-card, .cat-card.featured { aspect-ratio: 4 / 5; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
  .car-btn { width: 38px; height: 38px; }
}
