/* ============================================================
   CAPRICHO N8 — SHARED.CSS
   Variables, reset, navbar, footer, utilidades globales
   ============================================================ */

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

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

:root {
  --cream:       #F5F0E8;
  --cream-dark:  #EDE6D7;
  --cream-deep:  #E3D9C6;
  --gold:        #C9A96E;
  --gold-light:  #E2C898;
  --gold-pale:   #F0E3C4;
  --charcoal:    #1C1A17;
  --ink:         #2E2B26;
  --ash:         #7A7470;
  --ash-light:   #A09890;
  --white:       #FFFFFF;
  --terracotta:  #C06B45;
  --sand:        #D4C5A9;
  --sand-light:  #EAE2D3;
  --green-herb:  #4A5E44;

  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-body:    'Jost', 'Helvetica Neue', sans-serif;

  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:    cubic-bezier(0.0, 0, 0.2, 1);

  --nav-h: 72px;
  --max-w: 1300px;
  --radius: 6px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-body);
  background: var(--cream);
  color: var(--charcoal);
  overflow-x: hidden;
  cursor: none;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: none; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: var(--ff-body); }

/* ---- CURSOR ---- */
.cursor, .cursor-follower {
  position: fixed; border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
}
.cursor { width: 8px; height: 8px; background: var(--gold); }
.cursor-follower {
  width: 36px; height: 36px;
  border: 1px solid var(--gold);
  opacity: 0.5;
  transition: transform 0.12s var(--ease-smooth), opacity 0.3s, width 0.3s, height 0.3s;
}
body.cursor-hover .cursor-follower {
  transform: translate(-50%,-50%) scale(2.2); opacity: 0.15;
}
@media (pointer: coarse) {
  .cursor, .cursor-follower { display: none; }
  body { cursor: auto; }
  button, a { cursor: pointer; }
}

/* ---- PRELOADER ---- */
.preloader {
  position: fixed; inset: 0;
  background: var(--charcoal); z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.9s var(--ease-smooth), visibility 0.9s;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-logo {
  font-family: var(--ff-display);
  font-size: 5rem; font-weight: 300;
  color: var(--cream); letter-spacing: -0.02em;
  animation: preReveal 1s var(--ease-smooth) both;
}
.preloader-logo sup { font-size: 2rem; color: var(--gold); }
.preloader-line {
  width: 0; height: 1px; background: var(--gold);
  margin: 12px auto 0;
  animation: lineGrow 1.2s var(--ease-smooth) 0.4s both;
}
@keyframes preReveal { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:none; } }
@keyframes lineGrow { to { width: 64px; } }

/* ================================================================
   NAVBAR
================================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  z-index: 1000;
  transition: background 0.5s, box-shadow 0.5s, border-color 0.5s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(245,240,232,0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  border-color: var(--sand-light);
}
.nav-logo a {
  font-family: var(--ff-display);
  font-size: 1.55rem; font-weight: 400;
  color: var(--white); letter-spacing: 0.03em;
  transition: color 0.4s;
}
.navbar.scrolled .nav-logo a { color: var(--charcoal); }
.nav-logo a span { color: var(--gold); }
.nav-tagline {
  font-size: 0.65rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,255,255,0.5);
  transition: color 0.4s;
}
.navbar.scrolled .nav-tagline { color: var(--ash); }
.nav-links {
  display: flex; align-items: center; gap: 32px;
}
.nav-links a {
  font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.65);
  transition: color 0.3s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transition: transform 0.3s var(--ease-smooth);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.navbar.scrolled .nav-links a { color: var(--ash); }
.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active { color: var(--gold); }
.nav-cta {
  font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold);
  border: 1px solid var(--gold); padding: 8px 22px;
  border-radius: 40px; transition: background 0.3s, color 0.3s;
}
.nav-cta:hover { background: var(--gold); color: var(--charcoal); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 28px; padding: 4px 0;
}
.hamburger span {
  display: block; height: 1px; background: var(--white);
  transition: background 0.4s, transform 0.35s;
}
.navbar.scrolled .hamburger span { background: var(--charcoal); }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .navbar { padding: 0 20px; }
  .nav-cta { display: none; }
}

/* ---- MOBILE MENU ---- */
.mobile-menu {
  position: fixed; inset: 0;
  background: var(--charcoal); z-index: 999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(-16px);
  transition: opacity 0.4s, visibility 0.4s, transform 0.4s var(--ease-smooth);
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
.mobile-nav { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.mobile-nav a {
  font-family: var(--ff-display);
  font-size: 2.6rem; font-weight: 300;
  color: var(--cream); transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--gold); }
.mobile-menu-bottom {
  position: absolute; bottom: 40px;
  text-align: center; font-size: 0.75rem;
  letter-spacing: 0.08em; color: var(--ash);
}
.mobile-menu-bottom a { color: var(--gold); display: block; margin-top: 4px; }

/* ================================================================
   FOOTER
================================================================ */
.site-footer {
  background: var(--charcoal);
  padding: 80px 48px 40px;
  border-top: 1px solid rgba(201,169,110,0.15);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  max-width: var(--max-w); margin: 0 auto;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand-logo {
  font-family: var(--ff-display);
  font-size: 2.8rem; font-weight: 300;
  color: var(--cream); line-height: 1;
  margin-bottom: 12px;
}
.footer-brand-logo span { color: var(--gold); }
.footer-brand-tag {
  font-size: 0.68rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ash);
  margin-bottom: 24px;
}
.footer-brand-desc {
  font-size: 0.85rem; line-height: 1.7;
  color: rgba(122,116,112,0.7);
  max-width: 280px;
}
.footer-col h4 {
  font-size: 0.65rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a, .footer-col ul li span {
  font-size: 0.82rem; color: rgba(122,116,112,0.7);
  transition: color 0.3s; line-height: 1.5;
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  max-width: var(--max-w); margin: 0 auto;
  padding-top: 32px;
  font-size: 0.7rem; color: rgba(122,116,112,0.4);
  flex-wrap: wrap; gap: 8px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .site-footer { padding: 60px 20px 32px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   SHARED UTILITIES
================================================================ */
.section-label {
  font-size: 0.68rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
  display: block; margin-bottom: 12px;
}
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 300; line-height: 1.05; color: var(--charcoal);
}
.section-title em { font-style: italic; color: var(--ash); }
.section-title.on-dark { color: var(--cream); }
.section-title.on-dark em { color: rgba(201,169,110,0.7); }

/* Reveal */
.reveal-up, .reveal-left, .reveal-right, .reveal-fade {
  opacity: 0;
  transition: opacity 0.85s var(--ease-smooth), transform 0.85s var(--ease-smooth);
}
.reveal-up    { transform: translateY(44px); }
.reveal-left  { transform: translateX(-44px); }
.reveal-right { transform: translateX(44px); }
.reveal-fade  { transform: none; }
.reveal-up.visible, .reveal-left.visible,
.reveal-right.visible, .reveal-fade.visible { opacity: 1; transform: none; }

/* Buttons */
.btn-gold {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  background: var(--gold); color: var(--charcoal);
  font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 600;
  border-radius: 40px; border: none;
  transition: background 0.3s, transform 0.25s var(--ease-bounce), box-shadow 0.3s;
  cursor: none;
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(201,169,110,0.3);
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px;
  border: 1px solid var(--gold); color: var(--gold);
  font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 500;
  border-radius: 40px;
  transition: background 0.3s, color 0.3s, transform 0.25s var(--ease-bounce);
  cursor: none;
}
.btn-outline:hover {
  background: var(--gold); color: var(--charcoal);
  transform: translateY(-2px);
}
.btn-dark {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  background: var(--charcoal); color: var(--cream);
  font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 500;
  border-radius: 40px;
  transition: background 0.3s, transform 0.25s var(--ease-bounce);
  cursor: none;
}
.btn-dark:hover { background: var(--ink); transform: translateY(-2px); }

/* Marquee strip */
.marquee-strip {
  background: var(--charcoal); overflow: hidden;
  padding: 14px 0;
  border-top: 1px solid rgba(201,169,110,0.15);
  border-bottom: 1px solid rgba(201,169,110,0.15);
}
.marquee-inner {
  display: flex; gap: 48px; align-items: center;
  white-space: nowrap; width: max-content;
  animation: marqueeRoll 35s linear infinite;
}
.marquee-inner span {
  font-size: 0.68rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(245,240,232,0.45);
}
.marquee-inner .mdot { color: var(--gold) !important; font-size: 0.5rem !important; }
@keyframes marqueeRoll { to { transform: translateX(-50%); } }
