/* =========================================================
   CRISTIAN CASAMITJANA · Sistema de diseño
   Tokens, base, componentes
   ========================================================= */

:root {
  /* Color */
  --navy: #1B2B4B;
  --navy-700: #243657;
  --navy-900: #121E37;
  --gold: #C9A84C;
  --gold-soft: #E3CC85;
  --gold-tint: #F4EBD2;
  --cream: #F9F6F0;
  --cream-deep: #F1ECDF;
  --ink: #1A1A1A;
  --ink-soft: #2D2D2D;
  --gray: #666666;
  --gray-light: #B8B8B8;
  --hairline: #E6DFCF;
  --white: #FFFFFF;
  --success: #5A8F66;
  --danger: #B45151;

  /* Typography */
  --f-display: 'Playfair Display', 'Times New Roman', serif;
  --f-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Sizing */
  --container: 1200px;
  --container-wide: 1320px;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;
  --radius-xl: 28px;

  /* Spacing */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(27, 43, 75, .06), 0 1px 1px rgba(27, 43, 75, .04);
  --shadow: 0 8px 24px rgba(27, 43, 75, .08), 0 2px 6px rgba(27, 43, 75, .05);
  --shadow-lg: 0 24px 48px rgba(27, 43, 75, .12), 0 6px 12px rgba(27, 43, 75, .06);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-family: var(--f-display); font-weight: 600; color: var(--navy); letter-spacing: -0.01em; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.6vw, 64px); font-weight: 600; }
h2 { font-size: clamp(30px, 3.4vw, 44px); }
h3 { font-size: clamp(20px, 1.8vw, 26px); font-family: var(--f-body); font-weight: 600; letter-spacing: 0; }
.eyebrow { font-family: var(--f-body); text-transform: uppercase; letter-spacing: .22em; font-size: 13px; font-weight: 600; color: var(--gold); display: inline-block; margin-bottom: 16px; }
.lead { font-size: 19px; color: var(--ink-soft); line-height: 1.6; }

/* ---- Layout ---- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: 880px; }

section { padding: clamp(64px, 9vw, 120px) 0; }
.section--cream { background: var(--cream); }
.section--cream-deep { background: var(--cream-deep); }
.section--navy { background: var(--navy); color: #EFE9DA; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; font-weight: 600; font-size: 14px; letter-spacing: .13em;
  text-transform: uppercase; border-radius: 4px; transition: all .2s ease;
  border: 1px solid transparent;
}
.btn--primary { background: var(--gold); color: var(--white); }
.btn--primary:hover { background: #B89537; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--secondary { border-color: var(--gold); color: var(--gold); }
.btn--secondary:hover { background: var(--gold); color: var(--white); }
.btn--white { border-color: rgba(255,255,255,.4); color: var(--white); }
.btn--white:hover { background: var(--white); color: var(--navy); }
.btn--ghost { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; padding: 0; text-transform: none; letter-spacing: 0; font-size: 15px; }
.btn--lg { padding: 20px 36px; font-size: 15px; }
.btn .ico { width: 18px; height: 18px; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.nav__inner {
  max-width: var(--container-wide); margin: 0 auto; padding: 16px 28px;
  display: flex; align-items: center; gap: 32px;
}
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 44px; width: auto; }
.nav__menu { display: flex; gap: 28px; margin-left: auto; }
.nav__menu a {
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  letter-spacing: .04em; padding: 6px 0; position: relative;
  transition: color .2s;
}
.nav__menu a:hover, .nav__menu a.is-active { color: var(--navy); }
.nav__menu a.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--gold);
}
.nav__cta { margin-left: 12px; }
.nav__burger { display: none; width: 40px; height: 40px; border: 1px solid var(--hairline); border-radius: 4px; align-items: center; justify-content: center; margin-left: auto; }
.nav__burger span { display: block; width: 18px; height: 1.5px; background: var(--navy); position: relative; }
.nav__burger span::before, .nav__burger span::after { content: ''; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--navy); }
.nav__burger span::before { top: -6px; }
.nav__burger span::after { top: 6px; }

@media (max-width: 980px) {
  .nav__menu, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav.is-open .nav__menu { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--white); padding: 16px 28px; border-bottom: 1px solid var(--hairline); gap: 16px; }
  .nav.is-open .nav__cta { display: inline-flex; position: absolute; top: 100%; right: 28px; transform: translateY(180px); }
}

/* ---- Footer ---- */
.footer {
  background: var(--navy); color: #C9D1E2; padding: 80px 0 32px;
}
.footer__inner { max-width: var(--container-wide); margin: 0 auto; padding: 0 28px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 64px; }
.footer__brand img { height: 56px; width: auto; margin-bottom: 24px; }
.footer__brand p { font-size: 14px; color: #A7B3CA; max-width: 280px; line-height: 1.6; }
.footer h4 { color: var(--white); font-family: var(--f-body); font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 20px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer ul a { font-size: 14px; color: #C9D1E2; }
.footer ul a:hover { color: var(--gold); }
.footer__social { display: flex; gap: 12px; margin-top: 16px; }
.footer__social a {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: #C9D1E2; transition: all .2s;
}
.footer__social a:hover { border-color: var(--gold); color: var(--gold); }
.footer__bottom {
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-size: 13px; color: #8794AE;
}
.footer__bottom a:hover { color: var(--gold); }
@media (max-width: 880px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 520px) {
  .footer__top { grid-template-columns: 1fr; }
}

/* ---- Generic cards ---- */
.card {
  background: var(--white); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-sm); border: 1px solid var(--hairline);
}
.card--bordered-gold { border-left: 4px solid var(--gold); }

/* ---- Pill / tag ---- */
.tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
  background: var(--cream); border: 1px solid var(--hairline); border-radius: 999px;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--navy);
}
.tag--gold { background: var(--gold-tint); border-color: transparent; color: #856820; }

/* ---- Stars ---- */
.stars { color: var(--gold); letter-spacing: 2px; }

/* ---- Decorative ornament ---- */
.ornament {
  display: flex; align-items: center; gap: 12px; color: var(--gold);
}
.ornament::before, .ornament::after { content: ''; height: 1px; flex: 1; max-width: 60px; background: currentColor; opacity: .5; }

/* ---- Image placeholder ---- */
.img-placeholder {
  background:
    repeating-linear-gradient(45deg, rgba(27,43,75,.04) 0 10px, transparent 10px 20px),
    var(--cream);
  border: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: center;
  font-family: ui-monospace, monospace; font-size: 12px; color: var(--gray);
  border-radius: var(--radius);
}

/* ---- Hero shapes ---- */
.shape-arch {
  border-radius: 50% 50% 16px 16px / 60% 60% 16px 16px;
  overflow: hidden;
}

/* ---- Reveal animation ---- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---- Utility ---- */
.text-center { text-align: center; }
.muted { color: var(--gray); }
.gold { color: var(--gold); }
.serif { font-family: var(--f-display); }
.divider-leaf {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 16px 0; color: var(--gold);
}
.divider-leaf::before, .divider-leaf::after { content: ''; height: 1px; width: 60px; background: currentColor; opacity: .5; }
