@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Rajdhani:wght@300;400;500;600&display=swap');

:root {
  --negro: #0a0a0a;
  --carbon: #111111;
  --grafito: #1a1a1a;
  --naranja: #E87722;
  --naranja-suave: #c4601a;
  --naranja-glow: rgba(232, 119, 34, 0.15);
  --blanco: #f5f0eb;
  --gris: #888;
  --gris-suave: #444;
  --fuente-titulo: 'Cormorant Garamond', serif;
  --fuente-ui: 'Rajdhani', sans-serif;
  --transicion: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--negro);
  color: var(--blanco);
  font-family: var(--fuente-ui);
  font-weight: 300;
  letter-spacing: 0.02em;
  overflow-x: hidden;
  cursor: crosshair;
}

/* ─── CURSOR PERSONALIZADO ─── */
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--naranja);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(232,119,34,0.5);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.3s, height 0.3s, border-color 0.3s;
}
body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring {
  width: 56px; height: 56px;
  border-color: var(--naranja);
}

/* ─── NAVEGACIÓN ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 3rem;
  background: linear-gradient(to bottom, rgba(10,10,10,0.95), transparent);
  border-bottom: 1px solid rgba(232,119,34,0.1);
}
.nav-logo {
  font-family: var(--fuente-titulo);
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--blanco);
  text-decoration: none;
}
.nav-logo span { color: var(--naranja); }

.nav-links {
  display: flex; gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  color: var(--gris);
  text-decoration: none;
  font-family: var(--fuente-ui);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color var(--transicion);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--naranja);
  transition: width var(--transicion);
}
.nav-links a:hover, .nav-links a.activo { color: var(--naranja); }
.nav-links a:hover::after, .nav-links a.activo::after { width: 100%; }

/* ─── PÁGINA GALERÍAS ─── */
.galeria-hero {
  padding: 9rem 3rem 3rem;
  border-bottom: 1px solid rgba(232,119,34,0.1);
  position: relative;
}
.galeria-hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--naranja), transparent);
}
.galeria-categoria {
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--naranja);
  margin-bottom: 0.75rem;
}
.galeria-titulo {
  font-family: var(--fuente-titulo);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1;
  color: var(--blanco);
}
.galeria-contador {
  margin-top: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gris);
}

/* ─── GRID MASONRY ─── */
.galeria-grid {
  padding: 3rem;
  columns: 3;
  column-gap: 1.5rem;
}
@media (max-width: 900px) { .galeria-grid { columns: 2; } }
@media (max-width: 560px) { .galeria-grid { columns: 1; } }

.foto-card {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}
.foto-card img {
  width: 100%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: brightness(0.92) contrast(1.05);
}
.foto-card:hover img { transform: scale(1.03); filter: brightness(1) contrast(1.08); }

.foto-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.85) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transicion);
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}
.foto-card:hover .foto-overlay { opacity: 1; }

.foto-nota {
  font-family: var(--fuente-titulo);
  font-style: italic;
  font-size: 1rem;
  color: var(--blanco);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.foto-acciones {
  display: flex; gap: 0.75rem;
}
.btn-icono {
  background: rgba(232,119,34,0.15);
  border: 1px solid rgba(232,119,34,0.4);
  color: var(--naranja);
  padding: 0.4rem 0.8rem;
  font-family: var(--fuente-ui);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transicion);
  text-decoration: none;
  display: flex; align-items: center; gap: 0.4rem;
}
.btn-icono:hover {
  background: var(--naranja);
  color: var(--negro);
  border-color: var(--naranja);
}

/* ─── LIGHTBOX ─── */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(5,5,5,0.97);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s;
}
.lightbox.activo { opacity: 1; pointer-events: all; }

.lightbox-imagen {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  display: block;
  box-shadow: 0 0 80px rgba(0,0,0,0.8);
}
.lightbox-nota {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  font-family: var(--fuente-titulo);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(245,240,235,0.7);
  text-align: center;
  max-width: 600px;
}
.lightbox-cerrar {
  position: absolute; top: 2rem; right: 2rem;
  background: none; border: 1px solid rgba(232,119,34,0.3);
  color: var(--naranja);
  width: 44px; height: 44px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transicion);
}
.lightbox-cerrar:hover {
  background: var(--naranja);
  color: var(--negro);
}
.lightbox-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: none;
  border: 1px solid rgba(232,119,34,0.2);
  color: var(--naranja);
  width: 48px; height: 80px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transicion);
  display: flex; align-items: center; justify-content: center;
}
.lightbox-nav:hover { background: rgba(232,119,34,0.15); border-color: var(--naranja); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* ─── MENSAJE SIN FOTOS ─── */
.sin-fotos {
  grid-column: 1/-1;
  text-align: center;
  padding: 6rem 2rem;
  color: var(--gris-suave);
}
.sin-fotos p { font-family: var(--fuente-titulo); font-style: italic; font-size: 1.5rem; margin-bottom: 1rem; }
.sin-fotos small { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--naranja); opacity: 0.5; }

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid rgba(232,119,34,0.1);
  padding: 2rem 3rem;
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 4rem;
}
.footer-marca {
  font-family: var(--fuente-titulo);
  font-size: 1rem;
  color: var(--gris);
}
.footer-marca span { color: var(--naranja); }
.footer-camara {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gris-suave);
}

/* ─── ANIMACIÓN ENTRADA ─── */
.foto-card {
  animation: aparece 0.6s ease both;
}
@keyframes aparece {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--negro); }
::-webkit-scrollbar-thumb { background: var(--naranja); border-radius: 2px; }
