:root {
  --black: #080808;
  --dark: #111010;
  --card: #161414;
  --crimson: #7a1728;
  --crimson-light: #a02035;
  --gold: #c9a96e;
  --gold-dim: #9a7d4e;
  --white: #f4f0eb;
  --grey: #888;
  --light-grey: #bbb;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: normal; }
em { font-style: italic; color: var(--gold); }

/* Cursor */
#cursor {
  position: fixed; top: 0; left: 0; width: 12px; height: 12px;
  background: var(--gold); border-radius: 50%; pointer-events: none;
  z-index: 9999; transform: translate(-50%, -50%); transition: width 0.3s, height 0.3s, background 0.3s;
  mix-blend-mode: difference;
}
#cursor.grow { width: 40px; height: 40px; background: rgba(201, 169, 110, 0.4); mix-blend-mode: normal; }
@media (hover: none) and (pointer: coarse) { #cursor { display: none; } body, a, button, input, textarea, select, .btn-submit, .lb-close, .lb-prev, .lb-next, .gmodal-close, .gmodal-thumb, .galeria-card, .tab-btn { cursor: auto !important; } }

/* Separadores de sección */
.section-divider {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  margin: 0; opacity: 0.5;
}

/* Nav */
nav {
  position: fixed; top: 0; width: 100%; padding: 24px 60px;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 100; transition: background 0.4s, padding 0.4s;
}
nav.scrolled { background: rgba(8, 8, 8, 0.95); padding: 16px 60px; backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.nav-logo img { height: 44px; filter: invert(1) brightness(2); }
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--light-grey); font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; transition: color 0.3s; cursor: none;
}

/* Hamburger Menu */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 101; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--gold); transition: all 0.3s ease; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta {
  font-family: 'Barlow Condensed', sans-serif; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--black); background: var(--gold); padding: 12px 24px; text-decoration: none; transition: background 0.3s; cursor: none;
}
.nav-cta:hover { background: var(--white); }

/* Typography */
.section-label { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 24px; display: block; }
.section-title { font-family: 'Cormorant Garant', serif; font-size: 56px; line-height: 1.1; margin-bottom: 32px; }

/* Grid Portafolio (Collage sin huecos) */
.gallery-item img { width: 100%; height: auto; display: block; object-fit: cover; object-position: center; transition: transform 0.6s ease, filter 0.6s ease; filter: grayscale(20%); }
.gallery-item:hover img { transform: scale(1.05); filter: grayscale(0%); }
.gallery-item { position: relative; overflow: hidden; background: var(--dark); cursor: none; margin-bottom: 4px; break-inside: avoid; }
.gallery-item-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%); opacity: 0; transition: opacity 0.4s; display: flex; align-items: flex-end; padding: 30px; }
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-tag { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.grid-identidad { display: block; column-count: 2; column-gap: 4px; }
.grid-concepto { display: block; column-count: 3; column-gap: 4px; }

/* Footer */
footer { background: #050505; border-top: 1px solid rgba(255, 255, 255, 0.05); padding: 60px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 40px; }
.footer-logo img { height: 56px; filter: invert(1) brightness(2); opacity: 0.9; }
.footer-tagline { font-size: 12px; color: var(--grey); margin-top: 6px; letter-spacing: 0.05em; }
.footer-quote { font-family: 'Cormorant Garant', serif; font-size: 18px; font-style: italic; color: var(--gold-dim); max-width: 300px; line-height: 1.4; margin-top: 15px; }
.footer-links { display: flex; gap: 32px; flex-wrap: wrap; }
.footer-links a { font-family: 'Barlow Condensed', sans-serif; font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey); text-decoration: none; transition: color 0.3s; cursor: none; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 11px; color: rgba(255, 255, 255, 0.2); width: 100%; text-align: center; margin-top: 20px; }

/* Reveal Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.35s; }

/* Cookie Banner */
.cookie-banner { position: fixed; bottom: -100px; left: 0; width: 100%; background: rgba(17, 16, 16, 0.95); backdrop-filter: blur(10px); border-top: 1px solid var(--gold-dim); padding: 20px 40px; display: flex; justify-content: space-between; align-items: center; z-index: 1000; transition: bottom 0.5s ease; box-shadow: 0 -10px 30px rgba(0,0,0,0.5); flex-wrap: wrap; gap: 20px; }
.cookie-banner.show { bottom: 0; }
.cookie-banner p { font-size: 14px; color: var(--light-grey); margin: 0; flex: 1; min-width: 250px; }
.cookie-btn { background: var(--gold); color: var(--black); border: none; padding: 10px 24px; font-family: 'Barlow Condensed', sans-serif; font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; cursor: none; transition: background 0.3s; font-weight: 500; }
.cookie-btn:hover { background: var(--white); }

/* Botón flotante volver */
.btn-floating { position: fixed; bottom: 30px; right: 30px; background: var(--card); border: 1px solid rgba(255,255,255,0.1); width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); text-decoration: none; z-index: 90; opacity: 0; pointer-events: none; transition: opacity 0.3s, background 0.3s, border-color 0.3s; cursor: none; }
.btn-floating.visible { opacity: 1; pointer-events: all; }
.btn-floating:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }

/* Overlay del menú hamburguesa - oculto por defecto */
.nav-links-overlay { display: none; }

/* Responsive */
@media (max-width: 960px) {
  nav { padding: 16px 20px; flex-wrap: wrap; }
  nav.scrolled { padding: 10px 20px; }
  .hamburger { display: flex; order: 3; }
  .nav-cta { display: none; }

  /* Links siempre visibles como barra compacta */
  .nav-links {
    order: 4; width: 100%; gap: 0;
    justify-content: space-between;
    padding-top: 12px; margin-top: 10px;
    border-top: 1px solid rgba(201, 169, 110, 0.15);
    overflow-x: auto; -webkit-overflow-scrolling: touch;
  }
  .nav-links a { font-size: 11px; letter-spacing: 0.12em; white-space: nowrap; padding: 4px 2px; }
  .nav-logo { order: 1; }

  /* Hamburger abre menú premium fullscreen */
  .nav-links-overlay {
    display: none; flex-direction: column; position: fixed; top: 0; left: 0;
    width: 100%; height: 100vh;
    background: rgba(8, 8, 8, 0.97); backdrop-filter: blur(15px);
    justify-content: center; align-items: center; gap: 32px; z-index: 100;
    list-style: none;
  }
  .nav-links-overlay.open { display: flex; }
  .nav-links-overlay li { list-style: none; }
  .nav-links-overlay a {
    font-family: 'Barlow Condensed', sans-serif; font-size: 22px;
    letter-spacing: 0.3em; text-transform: uppercase;
    color: var(--light-grey); text-decoration: none;
    transition: color 0.3s; padding: 8px 0;
  }
  .nav-links-overlay a:hover, .nav-links-overlay a.active { color: var(--gold); }

  .section-title { font-size: 42px; }
  .grid-identidad { grid-template-columns: 1fr 1fr; }
  .grid-concepto { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; align-items: center; gap: 20px; }
  .footer-links a { font-size: 16px; }
  footer { padding: 40px 28px; text-align: center; justify-content: center; }
  .cookie-banner { padding: 20px; flex-direction: column; text-align: center; }
  .btn-floating { bottom: 20px; right: 20px; }
}
