/* =============================================
   GLOBAL.CSS — Más que Magos
   Shared styles: reset, variables, nav, buttons, footer
   ============================================= */

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

/* ─── CSS VARIABLES ─────────────────────────── */
:root {
  --black:      #000000;
  --black-soft: #000000;
  --gold:       #c9a84c;
  --gold-light: #e8c97a;
  --white:      #f5f0e8;
  --white-dim:  rgba(245, 240, 232, 0.85);
  --grey:       #888880;

  --font-display: 'Bebas Neue', sans-serif;
  --font-serif:   'Playfair Display', serif;
  --font-body:    'Cormorant Garamond', serif;

  --nav-height: 64px;
  --section-pad: clamp(80px, 10vw, 140px);
}

/* ─── SEO: H1 visible para Google, oculto visualmente ── */
.seo-h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ─── NAV ────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  padding: 0 clamp(20px, 4vw, 60px);
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, transparent 100%);
  backdrop-filter: blur(0px);
  transition: background 0.4s, backdrop-filter 0.4s;
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.98);
  backdrop-filter: blur(10px);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  width: 100%;
  justify-content: flex-end;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-dim);
  transition: color 0.25s;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav__link:hover,
.nav__link--active {
  color: var(--gold);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav__hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

/* ─── MOBILE MENU ────────────────────────────── */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.99);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

.nav__mobile.open { display: flex; }

.nav__mobile .nav__link {
  font-family: var(--font-serif);
  font-size: clamp(22px, 5vw, 36px);
  letter-spacing: 0.05em;
}

/* ─── BUTTONS ────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 18px 48px;
  border-radius: 100px;
  transition: all 0.3s;
  cursor: pointer;
  white-space: nowrap;
}

.btn--outline {
  border: 1px solid rgba(245, 240, 232, 0.35);
  color: var(--white);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ─── SHARED CTA SECTION ─────────────────────── */
.cta {
  padding: var(--section-pad) clamp(20px, 6vw, 80px);
  text-align: center;
  background: var(--black);
}

.cta__title {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(20px, 3vw, 34px);
  line-height: 1.5;
  color: var(--white);
  margin-bottom: 48px;
  font-style: italic;
}

.cta__info {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.cta__info-item {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.4vw, 17px);
  color: rgba(245, 240, 232, 0.65);
  letter-spacing: 0.06em;
}

.cta__info-item a {
  color: var(--gold-light);
  transition: color 0.25s;
}

.cta__info-item a:hover {
  color: var(--gold);
}

/* ─── FOOTER ─────────────────────────────────── */
.footer {
  padding: 32px clamp(20px, 6vw, 80px);
  border-top: 1px solid rgba(255,255,255,0.07);
  text-align: center;
}

.footer__copy {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--grey);
}

/* ─── RESPONSIVE NAV ─────────────────────────── */
@media (max-width: 768px) {
  .nav__links > li:not(:last-child) { display: none; }
  .nav__hamburger { display: flex; }
}
