/* ============================================================
   17.02.09 — Tequila | Estilo global (minimal, full-bleed)
   ============================================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: 'Inter', sans-serif;
  background: var(--ink);
  color: var(--cream);
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

:root {
  --ink: #0b0c0e;
  --ink-2: #111316;
  --gold: #c9a227;
  --cream: #f4efe6;
  --cream-dim: #c9c3b8;
  --gray: #8a8a8a;
  --glass-border: rgba(255, 255, 255, 0.09);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== NAV (flotante, glassmorphism) ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.4rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.45s var(--ease);
}
.nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 110px;
  background: linear-gradient(180deg, rgba(11, 12, 14, 0.6), transparent);
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}
.nav.scrolled {
  background: rgba(11, 12, 14, 0.82);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.85rem 2rem;
}
.nav.scrolled::before {
  opacity: 0;
}
.nav-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 1;
}
.nav-logo img {
  height: 32px;
  width: auto;
  display: block;
  transition: height 0.45s var(--ease);
}
.nav.scrolled .nav-logo img {
  height: 28px;
}
@media (max-width: 860px) {
  .nav-logo img,
  .nav.scrolled .nav-logo img {
    height: 26px;
  }
}
.nav-links {
  position: relative;
  display: flex;
  gap: 2.2rem;
  align-items: center;
  z-index: 1;
}
.nav-links a {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-dim);
  transition: color 0.3s;
  position: relative;
  padding: 0.3rem 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--cream);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.4rem;
  z-index: 110;
  position: relative;
}
.nav-toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--cream);
  transition: all 0.35s var(--ease);
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 105;
  background: rgba(11, 12, 14, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.nav-mobile.open {
  opacity: 1;
  pointer-events: auto;
}
.nav-mobile a {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-dim);
  transition: color 0.3s;
}
.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--gold);
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
}

/* ===== FRAMES (imágenes a ancho completo, una tras otra) ===== */
.frames {
  padding-top: 0;
}
.frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--ink);
}
.frame img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transform: translateY(6%) scale(1.04);
  transition:
    opacity 1.1s var(--ease),
    transform 1.4s var(--ease);
  will-change: transform, opacity;
}
.frame.reveal img {
  opacity: 1;
  transform: translateY(0) scale(1);
}
/* Separación mínima entre imágenes */
.frame + .frame {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ===== FOOTER mínimo ===== */
.footer {
  background: var(--ink);
  border-top: 1px solid var(--glass-border);
  padding: 3rem 2rem 2rem;
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-links a {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-dim);
  transition: color 0.3s;
}
.footer-links a:hover {
  color: var(--gold);
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--gray);
}
@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== ACCESIBILIDAD ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .frame img {
    opacity: 1;
    transform: none;
  }
}
