/* ================================================================
   CÁCERES SEMIJOIAS — Design System
   Paleta: Marfim · Dourado · Nude  |  Playfair Display + Lato
================================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Lato:wght@300;400;700&display=swap');

/* ── Tokens ── */
:root {
  --bg:          #F7F1E7;
  --surface:     #FEFBF6;
  --surface-2:   #EEE5D3;
  --nude:        #C4A882;

  --gold:        #9A6B1E;
  --gold-mid:    #C9A055;
  --gold-lt:     #E2C47E;
  --gold-dk:     #6B4A10;
  --gold-grad:   linear-gradient(135deg, #B8860B 0%, #EDD078 18%, #C9A055 45%, #A07020 72%, #C5922A 100%);
  --gold-grad-v: linear-gradient(180deg, #EDD078 0%, #C9A055 42%, #9A6B1E 78%, #C5922A 100%);
  --gold-glow:   radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201,160,85,.18) 0%, transparent 60%);

  --text:        #1A0900;
  --text-2:      #4A2E14;
  --text-3:      #8B6040;
  --muted:       rgba(26,9,0,.40);

  --border:      rgba(201,160,85,.18);
  --border-2:    rgba(201,160,85,.38);
  --border-3:    rgba(201,160,85,.60);

  --shadow-sm:   0 2px 14px rgba(26,9,0,.05);
  --shadow:      0 6px 32px rgba(26,9,0,.08);
  --shadow-lg:   0 16px 64px rgba(26,9,0,.11);
  --shadow-gold: 0 8px 36px rgba(185,138,50,.38);

  --r:    8px;
  --r-lg: 14px;
  --r-xl: 20px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Lato', sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ── Logo CC Monogram — text (nav/footer) ── */
.logo-cc {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: .85;
  letter-spacing: -.20em;
  background: var(--gold-grad-v);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(160,112,32,.20));
  user-select: none;
}

/* ── Logo CC Monogram — large (hero/bio) — two mirrored Cs ── */
.cc-mono {
  display: inline-flex;
  align-items: flex-start;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: .82;
  filter: drop-shadow(0 6px 24px rgba(160,112,32,.28));
  user-select: none;
}
.cc-mono .c {
  display: inline-block;
  background: var(--gold-grad-v);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cc-mono .c-r {
  display: inline-block;
  transform: scaleX(-1);
  margin-left: -0.27em;
  background: var(--gold-grad-v);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Brand Name ── */
.brand-name {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  letter-spacing: .30em;
  text-transform: uppercase;
  color: var(--text);
}
.brand-sub {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  letter-spacing: .60em;
  text-transform: uppercase;
  color: var(--gold);
}
.brand-rule {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
}
.brand-rule::before,
.brand-rule::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, var(--border-2));
}
.brand-rule::after {
  background: linear-gradient(to left, transparent, var(--border-2));
}
.brand-rule-diamond::before,
.brand-rule-diamond::after {
  background: var(--border-2);
}
.brand-tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--text-3);
  letter-spacing: .01em;
}

/* ── Section labels ── */
.sec-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Lato', sans-serif;
  font-size: 9px; font-weight: 700;
  letter-spacing: 5.5px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.sec-label::before, .sec-label::after {
  content: '◆'; font-size: 5px; opacity: .7;
}
.sec-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 600; line-height: 1.18;
  color: var(--text);
}
.sec-title em { color: var(--gold-mid); font-style: italic; }
.sec-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 20px 0 30px;
}
.sec-divider::before {
  content: ''; width: 40px; height: 1.5px;
  background: var(--gold-grad); border-radius: 2px;
}
.sec-divider::after {
  content: '◆'; color: var(--gold-mid); font-size: 7px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 32px; border-radius: var(--r);
  font-family: 'Lato', sans-serif;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 2.8px; text-transform: uppercase;
  transition: all .28s cubic-bezier(.25,.46,.45,.94);
  position: relative; overflow: hidden;
  border: none; cursor: pointer;
}

.btn-primary {
  background: var(--gold-grad);
  color: #fff;
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(185,138,50,.50);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary::before {
  content: ''; position: absolute;
  top: 0; left: -40%; width: 32%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.26), transparent);
  animation: shimmer 4s infinite ease-in-out;
  border-radius: 50%;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-2);
  color: var(--text-2);
}
.btn-outline:hover {
  border-color: var(--gold-mid);
  color: var(--gold);
  background: rgba(201,160,85,.05);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn:disabled, .btn[aria-disabled="true"] {
  opacity: .35; pointer-events: none;
}

/* ── Form Fields ── */
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 9.5px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--text-2); margin-bottom: 8px;
}
.field label .req { color: var(--gold-mid); margin-left: 3px; }

.field input,
.field select,
.field textarea {
  width: 100%; padding: 13px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border-2);
  border-radius: var(--r);
  color: var(--text);
  font-family: 'Lato', sans-serif; font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-mid);
  box-shadow: 0 0 0 3px rgba(201,160,85,.14);
}
.field input::placeholder { color: var(--muted); }
.field .err-msg {
  font-size: 11px; color: #C0392B;
  margin-top: 5px; display: none;
}
.field.invalid input,
.field.invalid select { border-color: #C0392B; }
.field.invalid .err-msg { display: block; }

.prefix-wrap { position: relative; }
.prefix {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 14px; pointer-events: none;
}
.has-prefix { padding-left: 34px; }

.select-wrap { position: relative; }
.select-wrap::after {
  content: '▾'; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); pointer-events: none; font-size: 12px;
}

/* ── Privacy Checkbox ── */
.privacy {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 4px;
}
.privacy input[type="checkbox"] {
  width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px;
  accent-color: var(--gold-mid); cursor: pointer;
  border-radius: 4px;
}
.privacy label { font-size: 12px; color: var(--muted); cursor: pointer; line-height: 1.6; }
.privacy a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }

/* ── Submit button loading ── */
.btn-submit-wrap { position: relative; }
.btn-spinner {
  display: none; width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.3); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite;
  margin: 0 auto;
}
.is-loading .btn-label { display: none; }
.is-loading .btn-spinner { display: block; }

/* ── Back link ── */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 32px;
  transition: color .2s;
}
.back-link:hover { color: var(--gold); }
.back-link svg { width: 14px; height: 14px; transition: transform .2s; }
.back-link:hover svg { transform: translateX(-3px); }

/* ── Card ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

/* Card com moldura interna dourada */
.card-frame {
  position: relative;
}
.card-frame::after {
  content: ''; position: absolute;
  inset: 6px; border-radius: calc(var(--r-lg) - 4px);
  border: 1px solid var(--border);
  pointer-events: none; transition: border-color .3s;
}
.card-frame:hover::after {
  border-color: var(--border-2);
}

/* ── Nav ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 44px;
  background: rgba(247,241,231,.95);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  transition: padding .3s ease, box-shadow .3s ease;
}
.site-nav.scrolled {
  padding: 13px 44px;
  box-shadow: 0 2px 20px rgba(26,9,0,.06);
  border-bottom-color: var(--border-2);
}
.nav-brand {
  display: flex; align-items: center; gap: 8px;
}
.nav-cc {
  font-family: 'Playfair Display', serif;
  font-size: 26px; font-weight: 700;
  letter-spacing: -.18em;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.nav-name {
  font-family: 'Playfair Display', serif;
  font-size: 14px; font-weight: 600;
  letter-spacing: .12em; color: var(--text);
}
.nav-name span {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 8.5px; font-weight: 300;
  letter-spacing: .5em; text-transform: uppercase;
  color: var(--gold); margin-top: -1px;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--text-3); transition: color .2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  padding: 9px 22px;
  border: 1.5px solid var(--border-2); border-radius: 6px;
  font-family: 'Lato', sans-serif;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); transition: all .22s;
}
.nav-cta:hover {
  background: var(--gold-grad); color: #fff;
  border-color: transparent; box-shadow: var(--shadow-gold);
}
.nav-toggle {
  display: none; background: none; border: none; padding: 4px;
}
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--text-2); fill: none; stroke-width: 1.8; }

/* ── Footer ── */
.site-footer {
  background: var(--text);
  padding: 56px 24px 36px;
  text-align: center;
}
.foot-cc {
  font-family: 'Playfair Display', serif;
  font-size: 48px; font-weight: 700; line-height: .85; letter-spacing: -.18em;
  background: var(--gold-grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 6px;
}
.foot-name {
  font-family: 'Playfair Display', serif;
  font-size: 14px; font-weight: 400; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(246,240,230,.85); margin-bottom: 2px;
}
.foot-sub {
  font-size: 9px; font-weight: 300; letter-spacing: .55em; text-transform: uppercase;
  color: var(--gold-lt); margin-bottom: 28px;
}
.foot-links {
  display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px;
}
.foot-links a {
  font-size: 10px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(246,240,230,.45); transition: color .2s;
}
.foot-links a:hover { color: var(--gold-lt); }
.foot-copy {
  font-size: 10.5px; color: rgba(246,240,230,.22);
  border-top: 1px solid rgba(246,240,230,.08); padding-top: 20px;
}

/* ── Animations ── */
@keyframes shimmer {
  0%   { transform: translateX(-200%) skewX(-20deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateX(350%) skewX(-20deg); opacity: 0; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(201,160,85,.38); }
  70%  { box-shadow: 0 0 0 14px rgba(201,160,85,.0); }
  100% { box-shadow: 0 0 0 0 rgba(201,160,85,.0); }
}
@keyframes rise {
  0%   { transform: translateY(0) scale(1); opacity: 0; }
  8%   { opacity: 1; }
  85%  { opacity: .4; }
  100% { transform: translateY(-110vh) scale(.2); opacity: 0; }
}
@keyframes subtle-pulse {
  0%, 100% { opacity: .6; }
  50%       { opacity: 1; }
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ── Ornament ── */
.ornament {
  display: flex; align-items: center; gap: 12px;
  font-size: 9.5px; font-weight: 700; letter-spacing: 4.5px; text-transform: uppercase;
  color: var(--gold);
}
.ornament::before, .ornament::after {
  content: ''; flex: 1; height: 1px; background: var(--border-2);
}

/* Particle float */
.hero-particle {
  position: absolute;
  background: radial-gradient(circle, var(--gold-mid) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: rise linear infinite;
  will-change: transform, opacity;
}

/* Stat row */
.stat-row {
  display: flex; align-items: center; gap: 0;
  flex-wrap: wrap; justify-content: center;
}
.stat-item {
  display: flex; flex-direction: column; align-items: center; padding: 0 24px;
  border-right: 1px solid var(--border-2);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 600;
  color: var(--gold); line-height: 1.1;
}
.stat-label {
  font-size: 9px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--muted); margin-top: 2px;
}

/* Inner border accent on hover */
.inner-border {
  position: relative;
}
.inner-border::before {
  content: ''; position: absolute;
  inset: 8px; border-radius: calc(var(--r-lg) - 3px);
  border: 1px solid transparent;
  transition: border-color .3s ease;
  pointer-events: none; z-index: 1;
}
.inner-border:hover::before {
  border-color: var(--border-2);
}

/* ── Responsive base ── */
@media (max-width: 768px) {
  .site-nav { padding: 14px 20px; }
  .site-nav.scrolled { padding: 11px 20px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
}
