/* ============ DESIGN TOKENS ============ */
:root {
  --negro: #0a0a10;
  --negro-soft: rgba(10, 10, 16, .72);
  --negro-deep: rgba(10, 10, 16, .88);
  --mate: #e8e4dc;
  --mate-soft: #b8b3a8;
  --mate-mute: #7a7569;
  --dorado: #cfc8b8;
  --dorado-soft: rgba(207, 200, 184, .38);
  --dorado-line: rgba(207, 200, 184, .20);
  --wa: #1faa56;
  --nav-h: 98px;
  --max-w: 1240px;
  --font-display: 'Bodoni Moda', Georgia, serif;
  --font-body: 'Montserrat', system-ui, -apple-system, sans-serif;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input { font: inherit; color: inherit; }

/* ============ BODY ============ */
body {
  background-color: var(--negro);
  color: var(--mate);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: var(--nav-h);
  letter-spacing: .01em;
}
body::before {
  content: '';
  position: fixed;
  inset: -40px;
  background: url('fondonegro.webp') center top / cover no-repeat;
  filter: blur(4px) saturate(95%);
  transform: scale(1.08);
  z-index: -2;
  pointer-events: none;
  will-change: transform;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,16,.32) 0%, rgba(10,10,16,.58) 100%);
  z-index: -1;
  pointer-events: none;
}

/* ============ TYPOGRAPHY ============ */
h1, h2, .display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: .02em;
}
h3, h4 {
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: .02em;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  padding: 10px 18px;
  background: var(--dorado); color: var(--negro);
  font-weight: 500; z-index: 10000;
}
.skip-link:focus { left: 12px; top: 12px; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(10, 10, 16, .82);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--dorado-line);
  z-index: 1000;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav-brand {
  display: flex; align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-circle {
  width: 86px; height: 86px;
  border-radius: 50%;
  background: #000;
  border: 1.5px solid var(--dorado);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px;
  padding: 12px 14px;
  transition: border-color .25s ease, transform .25s ease;
}
.nav-brand:hover .logo-circle { transform: scale(1.04); border-color: var(--mate); }
.logo-bamay {
  font-family: var(--font-display);
  font-size: 15.5px;
  letter-spacing: .09em;
  color: var(--mate);
  line-height: 1;
  font-weight: 400;
}
.logo-line {
  width: 34px; height: 1px;
  background: var(--dorado);
}
.logo-frag {
  font-family: var(--font-body);
  font-size: 7.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mate-soft);
  line-height: 1;
  font-weight: 400;
}

.nav-links {
  display: flex; align-items: center; gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: .9rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mate);
  font-weight: 400;
  position: relative;
  padding: 10px 0;
  transition: color .25s ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--dorado); }
.nav-links a.active { color: var(--dorado); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 1px;
  background: var(--dorado);
  transition: width .3s ease, left .3s ease;
}
.nav-links a:hover::after, .nav-links a:focus-visible::after, .nav-links a.active::after { width: 100%; left: 0; }

/* Nav dropdown (Catálogo → género) */
.nav-links .has-dropdown { position: relative; }
.nav-links .nav-drop-trigger {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .9rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--mate); font-weight: 400; padding: 10px 0;
  background: none; border: none; cursor: pointer; font-family: var(--font-body);
}
.nav-links .nav-drop-trigger:hover,
.nav-links .has-dropdown.open .nav-drop-trigger { color: var(--dorado); }
.nav-links .nav-drop-trigger .caret {
  width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 1.6;
  transition: transform .25s ease;
}
.nav-links .has-dropdown.open .nav-drop-trigger .caret { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: rgba(10, 10, 16, .97);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--dorado-line);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 18px 44px rgba(0,0,0,.55);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  z-index: 1002;
}
.nav-links .has-dropdown.open .nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown::before {
  content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px;
}
.nav-dropdown a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 6px;
  font-size: .82rem; letter-spacing: .1em; text-transform: none;
  color: var(--mate-soft); font-weight: 400;
  transition: background .15s ease, color .15s ease;
}
.nav-dropdown a:hover { background: rgba(207,200,184,.08); color: var(--mate); }
.nav-dropdown a .dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.nav-dropdown a .dot-f,
.nav-dropdown a .dot-m,
.nav-dropdown a .dot-u { background: var(--dorado); }
.nav-dropdown a::after { display: none; }

/* Mobile: gender sublinks inside overlay menu */
.nav-mobile-sub {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  margin: 2px 0 6px;
}
.nav-mobile-sub a {
  font-size: .82rem !important; letter-spacing: .14em !important;
  color: var(--mate-soft); padding: 10px 18px !important;
}

.nav-actions { display: flex; align-items: center; gap: 12px; }

.social-btn {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
  position: relative;
  overflow: hidden;
}
.social-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.social-btn svg { width: 22px; height: 22px; position: relative; z-index: 1; }

.social-ig {
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  box-shadow: 0 2px 10px rgba(214, 36, 159, .35);
}
.social-ig:hover { box-shadow: 0 6px 18px rgba(214, 36, 159, .5); }

.social-wa {
  background: #25D366;
  box-shadow: 0 2px 10px rgba(37, 211, 102, .35);
}
.social-wa:hover { box-shadow: 0 6px 18px rgba(37, 211, 102, .55); }

/* ============ HAMBURGER ============ */
.nav-hamburger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--mate);
  position: relative;
  transition: background .2s ease;
}
.nav-hamburger span::before,
.nav-hamburger span::after {
  content: '';
  position: absolute; left: 0;
  width: 100%; height: 1.5px;
  background: var(--mate);
  transition: transform .3s ease;
}
.nav-hamburger span::before { transform: translateY(-7px); }
.nav-hamburger span::after { transform: translateY(7px); }
.nav-hamburger[aria-expanded="true"] span { background: transparent; }
.nav-hamburger[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span::after { transform: rotate(-45deg); }

.nav-overlay {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: rgba(10, 10, 16, .96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1001;
  opacity: 0;
  transition: opacity .3s ease;
}
.nav-overlay.open { opacity: 1; }
.nav-mobile-menu {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 100%;
  gap: 8px;
  padding: 40px 20px;
}
.nav-mobile-menu a {
  font-size: 1.1rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--mate);
  font-weight: 400;
  padding: 16px 20px;
  transition: color .2s ease;
}
.nav-mobile-menu a:hover,
.nav-mobile-menu a.active { color: var(--dorado); }
.nav-mobile-menu .mobile-social {
  display: flex; gap: 16px;
  margin-top: 24px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 34px;
  font-size: .76rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all .25s ease;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
}
.btn-primary {
  background: var(--dorado);
  color: var(--negro);
  border: 1px solid var(--dorado);
}
.btn-primary:hover {
  background: transparent;
  color: var(--dorado);
}
.btn-ghost {
  background: transparent;
  color: var(--mate);
  border: 1px solid var(--dorado-line);
}
.btn-ghost:hover {
  border-color: var(--dorado);
  color: var(--dorado);
}

/* ============ SECTION HEADERS ============ */
section { padding: 110px 0; position: relative; contain: layout style; }
.section-head { text-align: center; margin-bottom: 72px; }
.section-eyebrow {
  font-size: .68rem;
  letter-spacing: .45em;
  color: var(--dorado);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.section-head h2 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: var(--mate);
}
.section-head p {
  max-width: 600px;
  margin: 22px auto 0;
  color: var(--mate-soft);
  font-weight: 300;
}
.divider {
  width: 60px; height: 1px;
  background: var(--dorado);
  margin: 24px auto 0;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--negro-deep);
  border-top: 1px solid var(--dorado-line);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 44px;
}
.logo-circle-footer {
  width: 110px; height: 110px;
  padding: 16px 18px;
  gap: 8px;
  margin-bottom: 22px;
}
.logo-circle-footer .logo-bamay { font-size: 20px; letter-spacing: .10em; }
.logo-circle-footer .logo-line { width: 46px; }
.logo-circle-footer .logo-frag { font-size: 9.5px; letter-spacing: .20em; }
a.logo-circle-footer:hover { border-color: var(--mate); transform: scale(1.03); }
.footer-brand p {
  color: var(--mate-soft);
  font-size: .88rem;
  max-width: 340px;
  font-weight: 300;
}
.footer-col h4 {
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-weight: 500;
}
.footer-col ul {
  list-style: none;
  display: flex; flex-direction: column; gap: 12px;
}
.footer-col a {
  color: var(--mate-soft);
  font-size: .88rem;
  font-weight: 300;
  transition: color .2s ease;
}
.footer-col a:hover { color: var(--mate); }
.footer-bottom {
  padding-top: 26px;
  border-top: 1px solid var(--dorado-line);
  text-align: center;
  color: var(--mate-mute);
  font-size: .78rem;
  font-weight: 300;
}

/* ============ FLOATING WHATSAPP ============ */
.wa-fab {
  position: fixed; bottom: 26px; right: 26px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px 14px 18px;
  background: #25D366;
  color: white;
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(37, 211, 102, .45);
  z-index: 900;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.wa-fab:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 12px 32px rgba(37, 211, 102, .6); }
.wa-fab svg { width: 24px; height: 24px; }

/* ============ FOCUS STATES ============ */
:focus-visible {
  outline: 2px solid var(--dorado);
  outline-offset: 3px;
}
.nav-links a:focus-visible {
  outline-offset: 2px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  :root { --nav-h: 72px; }
  .nav { height: var(--nav-h); }
  .nav-inner { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-overlay { display: block; pointer-events: none; }
  .nav-overlay.open { pointer-events: auto; }
  .nav-actions { gap: 10px; }
  .footer-grid { gap: 32px; }
  section { padding: 80px 0; }
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  :root { --nav-h: 64px; }
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 16px; }
  .logo-circle { width: 48px; height: 48px; gap: 3px; padding: 6px 8px; }
  .logo-bamay { font-size: 10px; letter-spacing: .07em; }
  .logo-line { width: 20px; }
  .logo-frag { font-size: 5.5px; }
  .nav-actions { gap: 8px; }
  .social-btn { width: 38px; height: 38px; }
  .social-btn svg { width: 18px; height: 18px; }
  .logo-circle-footer { width: 92px; height: 92px; padding: 12px 14px; gap: 6px; }
  .logo-circle-footer .logo-bamay { font-size: 16px; letter-spacing: .09em; }
  .logo-circle-footer .logo-line { width: 34px; }
  .logo-circle-footer .logo-frag { font-size: 8px; letter-spacing: .18em; }
  .btn { padding: 12px 26px; font-size: .72rem; }
  .section-head { margin-bottom: 48px; }
  .wa-fab {
    bottom: 18px; right: 18px;
    padding: 0;
    width: 58px; height: 58px;
    justify-content: center; gap: 0;
  }
  .wa-fab-label { display: none; }
}
@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .section-head h2 { font-size: 2.1rem; }
  .nav-mobile-menu a { font-size: 1rem; letter-spacing: .2em; }
}

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