@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;0,9..144,800;0,9..144,900;1,9..144,300;1,9..144,400;1,9..144,600;1,9..144,700;1,9..144,800;1,9..144,900&family=Outfit:wght@300;400;500;600;700&family=DM+Mono:wght@400;500&display=swap');

/* ── DESIGN TOKENS ────────────────────────────────── */
:root {
  --ink:      #0A0906;
  --ink2:     #141210;
  --ink3:     #1C1A17;
  --ink4:     #252220;
  --border:   rgba(240,235,225,0.08);
  --border2:  rgba(240,235,225,0.16);
  --gold:     #D4882A;
  --gold2:    #E8A040;
  --gold3:    #F2B855;
  --cream:    #F0EBE1;
  --cream2:   #D4CFC6;
  --muted:    #7A756C;
  --muted2:   #9E9890;
  --white:    #FFFFFF;
  --red:      #C0392B;

  --ff-display: 'Fraunces', Georgia, serif;
  --ff-body:    'Outfit', system-ui, sans-serif;
  --ff-mono:    'DM Mono', monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --r: 2px;
}

/* ── RESET ───────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-body);
  background: var(--ink);
  color: var(--cream);
  overflow-x: hidden;
  cursor: none;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── GRAIN TEXTURE ───────────────────────────────── */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9997;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* ── CURSOR ──────────────────────────────────────── */
#cursor {
  position: fixed; top: -20px; left: -20px;
  width: 8px; height: 8px;
  background: var(--gold2);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: width .2s, height .2s, background .2s;
  will-change: left, top;
}
#cursorRing {
  position: fixed; top: -20px; left: -20px;
  width: 28px; height: 28px;
  border: 1px solid rgba(232,160,64,0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: width .22s, height .22s, border-color .2s;
  will-change: left, top;
}
#cursor.on-link { background: var(--gold3); width: 5px; height: 5px; }
#cursorRing.on-link { width: 44px; height: 44px; border-color: rgba(232,160,64,0.6); }

/* ── NAV ─────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  background: rgba(10,9,6,0.92);
  backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex; align-items: center;
  text-decoration: none; gap: 10px;
}
.logo img { height: 34px; width: auto; }
.logo-text {
  font-family: var(--ff-display);
  font-size: 1.15rem; font-weight: 700;
  color: var(--cream); letter-spacing: -0.01em;
}
.logo-text em { font-style: italic; color: var(--gold2); }

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  font-family: var(--ff-mono);
  font-size: 0.7rem; font-weight: 400;
  color: var(--muted2); text-decoration: none;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: color .25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--cream); }

.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 3px; }
.nav-dropdown > a::after { content: '↓'; font-size: 0.6rem; transition: transform .2s; }
.nav-dropdown:hover > a::after { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: calc(100% + 16px); left: 50%;
  transform: translateX(-50%);
  background: var(--ink3);
  border: 1px solid var(--border2);
  padding: 8px; min-width: 240px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, top .2s;
  box-shadow: 0 24px 48px rgba(0,0,0,0.5);
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; pointer-events: all; top: calc(100% + 8px); }
.dropdown-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; font-size: 0.78rem;
  color: var(--muted2); text-transform: none; letter-spacing: 0;
  border-left: 2px solid transparent; transition: all .2s;
}
.dropdown-menu a::after { display: none; }
.dropdown-menu a:hover { color: var(--gold2); border-left-color: var(--gold2); background: rgba(212,136,42,0.06); }
.dropdown-menu a span { font-size: 0.9rem; }

/* Hover bridge */
.nav-dropdown::before { content: ''; position: absolute; top: 100%; left: -20px; right: -20px; height: 20px; }

.nav-cta {
  padding: 9px 20px !important;
  background: var(--gold) !important;
  color: var(--ink) !important;
  font-family: var(--ff-display) !important;
  font-weight: 700 !important; font-size: 0.82rem !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  border-radius: var(--r) !important;
  transition: background .25s, transform .2s !important;
}
.nav-cta:hover { background: var(--gold2) !important; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-toggle span { width: 22px; height: 1.5px; background: var(--cream2); transition: all .3s; }

/* ── TYPOGRAPHY ──────────────────────────────────── */
.label {
  font-family: var(--ff-mono);
  font-size: 0.65rem; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold2);
  display: inline-flex; align-items: center; gap: 8px;
}
.label::before { content: '—'; color: var(--gold); opacity: 0.6; }

.display {
  font-family: var(--ff-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.0;
  color: var(--cream);
}
.display em { font-style: italic; color: var(--gold2); }

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 14px;
}
.section-title em { font-style: italic; color: var(--gold2); }

.section-sub {
  font-family: var(--ff-body);
  font-size: 1rem; font-weight: 300;
  color: var(--muted2); line-height: 1.8;
  max-width: 520px;
}

/* ── RULE ────────────────────────────────────────── */
.rule { width: 100%; height: 1px; background: var(--border); }
.rule-gold { background: linear-gradient(90deg, var(--gold), transparent); opacity: 0.4; }

/* ── BUTTONS ─────────────────────────────────────── */
.btn-gold {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--ff-display);
  font-weight: 700; font-size: 0.9rem;
  border-radius: var(--r);
  text-decoration: none; border: none; cursor: none;
  transition: background .25s, transform .2s, box-shadow .25s;
}
.btn-gold:hover {
  background: var(--gold2);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(212,136,42,0.28);
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 30px;
  background: transparent;
  color: var(--cream);
  font-family: var(--ff-display);
  font-weight: 600; font-size: 0.9rem;
  border-radius: var(--r);
  text-decoration: none;
  border: 1px solid var(--border2); cursor: none;
  transition: all .25s;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold2); }

/* ── PAGE HERO (inner pages) ─────────────────────── */
.page-hero {
  padding: 140px 5% 80px;
  position: relative; overflow: hidden;
  background: var(--ink2);
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 30% 50%, rgba(212,136,42,0.04), transparent);
}
.page-hero-inner { position: relative; z-index: 1; max-width: 780px; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--ff-mono); font-size: 0.65rem;
  color: var(--muted); letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 20px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--gold2); }
.breadcrumb .sep { color: var(--gold); opacity: 0.5; }

/* ── SECTIONS ────────────────────────────────────── */
section { padding: 88px 5%; }

/* ── CARD ────────────────────────────────────────── */
.card {
  background: var(--ink3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px;
  transition: border-color .3s, transform .3s;
  position: relative; overflow: hidden;
}
.card:hover { border-color: rgba(212,136,42,0.25); transform: translateY(-4px); }
.card::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0; transition: opacity .3s;
}
.card:hover::before { opacity: 1; }

/* ── FOOTER ──────────────────────────────────────── */
footer {
  background: var(--ink2);
  border-top: 1px solid var(--border);
  padding: 64px 5% 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand p {
  font-size: 0.88rem; color: var(--muted); line-height: 1.75;
  font-weight: 300; margin-top: 14px; max-width: 280px;
}
.footer-col h5 {
  font-family: var(--ff-mono);
  font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold2); margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a {
  font-size: 0.88rem; color: var(--muted);
  text-decoration: none; font-weight: 300;
  transition: color .2s;
}
.footer-col ul li a:hover { color: var(--cream); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid var(--border);
}
.footer-bottom p {
  font-family: var(--ff-mono); font-size: 0.65rem;
  color: var(--muted); letter-spacing: 0.04em;
}
.footer-social { display: flex; gap: 10px; }
.social-link {
  width: 34px; height: 34px;
  border: 1px solid var(--border); border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; color: var(--muted); text-decoration: none;
  transition: all .25s;
}
.social-link:hover { border-color: var(--gold); color: var(--gold2); }

/* ── WHATSAPP ────────────────────────────────────── */
.whatsapp-btn {
  position: fixed; bottom: 28px; right: 28px; z-index: 500;
  width: 50px; height: 50px; background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
  transition: transform .25s, box-shadow .25s;
}
.whatsapp-btn:hover { transform: scale(1.08) translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,0.45); }
.whatsapp-btn svg { width: 26px; height: 26px; fill: white; }
.wa-tooltip {
  position: absolute; right: 58px; top: 50%; transform: translateY(-50%);
  background: var(--ink3); border: 1px solid var(--border2);
  color: var(--cream2); font-family: var(--ff-mono); font-size: 0.65rem;
  padding: 5px 11px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.whatsapp-btn:hover .wa-tooltip { opacity: 1; }

/* ── LIVE CHAT ───────────────────────────────────── */
.livechat-btn {
  position: fixed; bottom: 88px; right: 28px; z-index: 500;
  width: 50px; height: 50px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none;
  box-shadow: 0 4px 16px rgba(212,136,42,0.3);
  transition: transform .25s, box-shadow .25s;
}
.livechat-btn:hover { transform: scale(1.08) translateY(-2px); box-shadow: 0 8px 24px rgba(212,136,42,0.4); }
.livechat-btn svg { width: 22px; height: 22px; fill: var(--ink); }
.chat-badge {
  position: absolute; top: -2px; right: -2px;
  width: 12px; height: 12px; background: var(--red);
  border-radius: 50%; border: 2px solid var(--ink);
}
.chat-window {
  position: fixed; bottom: 152px; right: 28px; z-index: 500;
  width: 308px; background: var(--ink3);
  border: 1px solid var(--border2);
  box-shadow: 0 24px 56px rgba(0,0,0,0.5);
  display: none; flex-direction: column;
}
.chat-window.open { display: flex; animation: chatSlide .28s var(--ease-out); }
@keyframes chatSlide { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
.chat-header {
  background: var(--gold);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 10px;
}
.chat-avatar {
  width: 32px; height: 32px; background: rgba(10,9,6,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
}
.chat-header-info h4 { font-family: var(--ff-display); font-size: 0.85rem; font-weight: 700; color: var(--ink); }
.chat-header-info p { font-family: var(--ff-mono); font-size: 0.6rem; color: rgba(10,9,6,0.6); }
.chat-online { width: 6px; height: 6px; background: #2ECC71; border-radius: 50%; margin-left: auto; }
.chat-close { background: none; border: none; color: var(--ink); opacity: 0.6; font-size: 1rem; cursor: pointer; margin-left: 6px; }
.chat-messages { padding: 14px; flex: 1; min-height: 140px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.chat-msg { max-width: 85%; padding: 9px 13px; font-size: 0.8rem; line-height: 1.5; }
.chat-msg.bot { background: var(--ink4); border: 1px solid var(--border); color: var(--cream2); align-self: flex-start; }
.chat-msg.user { background: var(--gold); color: var(--ink); align-self: flex-end; }
.chat-input-row { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-input {
  flex: 1; background: var(--ink4); border: 1px solid var(--border);
  padding: 8px 12px; color: var(--cream);
  font-family: var(--ff-body); font-size: 0.8rem; outline: none;
  transition: border-color .2s;
}
.chat-input:focus { border-color: var(--gold); }
.chat-send {
  width: 32px; height: 32px; background: var(--gold); border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s; flex-shrink: 0;
}
.chat-send:hover { background: var(--gold2); }
.chat-send svg { width: 14px; height: 14px; fill: var(--ink); }

/* ── REVEAL ANIMATIONS ───────────────────────────── */
.js-ready .reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s var(--ease-out), transform .65s var(--ease-out); }
.js-ready .reveal.visible { opacity: 1; transform: translateY(0); }
.js-ready .reveal-left { opacity: 0; transform: translateX(-24px); transition: opacity .65s var(--ease-out), transform .65s var(--ease-out); }
.js-ready .reveal-left.visible { opacity: 1; transform: translateX(0); }

/* ── FORM ────────────────────────────────────────── */
.fgroup { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.fgroup label { font-family: var(--ff-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold2); }
.fgroup input, .fgroup select, .fgroup textarea {
  background: var(--ink3); border: 1px solid var(--border2);
  padding: 12px 15px; color: var(--cream);
  font-family: var(--ff-body); font-size: 0.9rem; font-weight: 300;
  outline: none; transition: border-color .25s; width: 100%;
}
.fgroup input:focus, .fgroup select:focus, .fgroup textarea:focus { border-color: var(--gold); }
.fgroup input::placeholder, .fgroup textarea::placeholder { color: var(--muted); }
.fgroup select { appearance: none; cursor: pointer; }
.fgroup textarea { resize: vertical; min-height: 116px; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 64px; left: 0; right: 0;
    background: var(--ink2); border-bottom: 1px solid var(--border);
    flex-direction: column; gap: 0; padding: 12px 0; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 5%; width: 100%; }
  .dropdown-menu {
    position: static; opacity: 1; pointer-events: all;
    transform: none; box-shadow: none; border: none;
    background: transparent; padding: 0 0 0 18px;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
