/* ============================================
   CASELLA — Joyería · Parallax suave
   Paleta: negro profundo + dorado champagne
   ============================================ */

:root {
  --bg: #14302d;
  --bg-2: #0f2522;
  --bg-3: #1a3a36;
  --navy: #1a2440;
  --ink: #f5efe1;
  --ink-soft: #c9c1ad;
  --muted: #8c9690;
  --gold: #c8a572;
  --gold-2: #e6c98a;
  --gold-3: #8e6f3a;
  --line: rgba(200, 165, 114, 0.22);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --script: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --max: 1200px;
  --r: 4px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-weight: 300;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(var(--max), 92%);
  margin: 0 auto;
}

/* Tipografía */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
h1 { font-size: clamp(3rem, 9vw, 7rem); }
h2 { font-size: clamp(2rem, 5vw, 3.6rem); }
h3 { font-size: 1.5rem; }
em { font-style: italic; color: var(--gold-2); font-weight: 300; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.eyebrow.gold { color: var(--gold); }
.gold { color: var(--gold); }
.muted { color: var(--muted); }
.lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 540px; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed; inset: 0 0 auto 0;
  z-index: 100;
  padding: 1.2rem 0;
  background: linear-gradient(180deg, rgba(11,10,8,.85), rgba(11,10,8,0));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .3s ease, padding .3s ease;
}
.navbar.scrolled {
  background: rgba(11,10,8,.92);
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  width: min(var(--max), 92%);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
}
.brand { display: flex; align-items: center; gap: 0.8rem; }
.brand-mark {
  position: relative;
  display: inline-grid; place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--serif); font-size: 1.5rem;
  border-radius: 50%;
  letter-spacing: 0;
}
.brand-mark .star {
  position: absolute;
  top: 6px; right: 4px;
  font-style: normal;
  font-size: 0.55rem;
  color: var(--gold);
  opacity: 0.85;
}
.brand-mark.big { width: 64px; height: 64px; font-size: 2.2rem; }
.brand-mark.big .star { top: 10px; right: 8px; font-size: 0.85rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--serif); font-size: 1.4rem;
  letter-spacing: 0.32em;
  color: var(--ink);
  font-weight: 500;
}
.brand-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.18em;
  margin-top: 0.2rem;
  opacity: 0.95;
}
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-size: 0.85rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-soft);
  position: relative; padding: 0.3rem 0;
  transition: color .3s ease;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width .35s ease;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.65rem 1.3rem;
  font-size: 0.78rem; letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all .3s ease;
  border-radius: var(--r);
}
.nav-cta:hover {
  background: var(--gold); color: var(--bg);
}

@media (max-width: 820px) {
  .nav-links { display: none; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  height: 100vh; min-height: 640px;
  display: grid; place-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: -10% -5% -10% -5%;
  background-image: url('https://images.unsplash.com/photo-1573408301185-9146fe634ad0?auto=format&fit=crop&w=1920&q=80');
  background-size: cover; background-position: center;
  filter: brightness(0.55) saturate(1.05);
  will-change: transform;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 50% 40%, rgba(200,165,103,.18), transparent 70%),
    linear-gradient(180deg, rgba(11,10,8,.55) 0%, rgba(11,10,8,.4) 40%, rgba(11,10,8,.95) 100%);
  pointer-events: none;
}
.hero-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.4; mix-blend-mode: overlay; pointer-events: none;
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 0 1.5rem;
}
.hero-title {
  font-weight: 300; letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
}
.hero-title .gold {
  font-style: italic;
  background: linear-gradient(180deg, #f1d99a 0%, #c8a567 60%, #8e6f3a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 560px; margin: 0 auto 2.2rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 0.85rem; letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: var(--r);
  transition: all .35s cubic-bezier(.2,.7,.2,1);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold) 60%, var(--gold-3));
  color: #1a1408;
  font-weight: 500;
  box-shadow: 0 14px 40px -12px rgba(200,165,103,.5);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px -10px rgba(200,165,103,.6);
}
.btn-ghost {
  border-color: var(--ink-soft);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn.big { padding: 1.15rem 2.5rem; font-size: 0.9rem; }

.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: grid; gap: 0.6rem; place-items: center;
  z-index: 2;
}
.scroll-hint span {
  width: 1px; height: 50px;
  background: linear-gradient(180deg, transparent, var(--gold));
  animation: scrollLine 2s ease-in-out infinite;
}
.scroll-hint p {
  font-size: 0.7rem; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--muted);
}
@keyframes scrollLine {
  0%, 100% { opacity: 0.2; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   TICKER
   ============================================ */
.ticker {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.4rem 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex; gap: 3rem;
  animation: tickerMove 38s linear infinite;
}
.ticker-track span {
  font-family: var(--serif);
  font-size: 1.4rem; font-style: italic;
  color: var(--gold);
  letter-spacing: 0.05em;
}
@keyframes tickerMove {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  position: relative;
  padding: 8rem 0;
  overflow: hidden;
}
.section-head { margin-bottom: 4rem; max-width: 720px; }
.section-head.centered { text-align: center; margin-left: auto; margin-right: auto; }

.parallax-img {
  position: absolute; inset: -10% 0;
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  z-index: 0;
  will-change: transform;
}
.parallax-img.dark { opacity: 0.15; }

.two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
  position: relative; z-index: 1;
}
.two-col.reverse .col-card { order: -1; }
@media (max-width: 900px) {
  .two-col, .two-col.reverse { grid-template-columns: 1fr; gap: 3rem; }
  .two-col.reverse .col-card { order: 0; }
  .section { padding: 5rem 0; }
}

/* ABOUT */
.about h2 { margin-bottom: 1.5rem; }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 2.5rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}
.stat .num {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 300; color: var(--gold);
  display: inline-block;
}
.stat .num-suffix {
  font-family: var(--serif); color: var(--gold);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.stat p {
  font-size: 0.78rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
  margin-top: 0.3rem;
}

.card-frame {
  position: relative;
  border: 1px solid var(--line);
  padding: 1rem;
  background: var(--bg-2);
  transition: transform .6s ease;
}
.card-frame::before {
  content: ''; position: absolute;
  inset: -10px;
  border: 1px solid var(--gold);
  opacity: 0.3;
  pointer-events: none;
  transition: inset .5s ease, opacity .5s ease;
}
.card-frame:hover::before { inset: -16px; opacity: 0.6; }
.card-frame img { aspect-ratio: 4/5; object-fit: cover; }
.card-tag {
  position: absolute; bottom: -1px; left: 50%;
  transform: translateX(-50%) translateY(50%);
  background: var(--bg);
  color: var(--gold);
  padding: 0.7rem 1.4rem;
  font-size: 0.72rem; letter-spacing: 0.3em;
  text-transform: uppercase;
  border: 1px solid var(--line);
}
.card-frame.gold-frame::before { border-color: var(--gold); opacity: 0.5; }

/* SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  padding: 2.4rem 2rem;
  background: var(--bg);
  transition: background .35s ease, transform .35s ease;
}
.service-card:hover {
  background: var(--bg-2);
  transform: translateY(-4px);
}
.service-icon {
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 1.2rem;
  display: inline-block;
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
}
.service-card h3 { margin-bottom: 0.7rem; color: var(--ink); }
.service-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* PRODUCTS */
.products .container { position: relative; z-index: 1; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.product-tile {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3/4;
  border: 1px solid var(--line);
  cursor: pointer;
}
.tile-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 1.2s cubic-bezier(.2,.8,.2,1), filter .5s ease;
  filter: brightness(0.7) saturate(1.1);
}
.product-tile:hover .tile-img {
  transform: scale(1.08);
  filter: brightness(0.9) saturate(1.2);
}
.tile-meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1.2rem;
  background: linear-gradient(180deg, transparent, rgba(11,10,8,.95));
  color: var(--ink);
  display: flex; align-items: center; gap: 1rem;
}
.tile-meta span {
  font-family: var(--serif); color: var(--gold);
  font-size: 1.1rem; font-style: italic;
}
.tile-meta h4 {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.2rem;
}
.tile-cta {
  margin-top: 3rem; text-align: center;
  color: var(--ink-soft); font-size: 1.05rem;
}
.tile-cta a {
  color: var(--gold); margin-left: 0.4rem;
  border-bottom: 1px solid var(--gold-3);
  transition: border-color .3s ease;
}
.tile-cta a:hover { border-color: var(--gold); }

/* TRUST */
.check-list { list-style: none; margin-top: 1.5rem; }
.check-list li {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.check-list li span {
  color: var(--gold); font-weight: 600;
  flex-shrink: 0;
}

/* PAYMENTS */
.payments {
  padding: 4rem 0;
  background: var(--bg-2);
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.payments-row {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 0.8rem;
  margin-top: 1.4rem;
}
.pay-pill {
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
  transition: all .3s ease;
}
.pay-pill:hover {
  border-color: var(--gold); color: var(--gold);
}

/* CONTACT */
.contact { padding: 8rem 0; }
.contact .container { position: relative; z-index: 1; }
.contact-card {
  max-width: 820px; margin: 0 auto;
  text-align: center;
  background: linear-gradient(180deg, rgba(20,17,13,.9), rgba(11,10,8,.95));
  border: 1px solid var(--line);
  padding: 4rem 2.5rem;
  position: relative;
  backdrop-filter: blur(6px);
}
.contact-card::before, .contact-card::after {
  content: ''; position: absolute;
  width: 30px; height: 30px;
  border: 1px solid var(--gold);
}
.contact-card::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.contact-card::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.contact-card h2 { margin: 1rem 0 1.5rem; }
.contact-card .lead { margin: 0 auto 2.5rem; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 2.5rem;
}
.contact-item {
  background: var(--bg-2);
  padding: 1.4rem 1rem;
  display: flex; flex-direction: column; gap: 0.4rem;
  transition: background .3s ease;
}
.contact-item:not(.static):hover { background: var(--bg-3); }
.ci-label {
  font-size: 0.7rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--muted);
}
.ci-value {
  font-family: var(--serif); font-size: 1.05rem;
  color: var(--ink);
}

/* FOOTER */
.footer {
  background: #06050410;
  border-top: 1px solid var(--line);
  padding: 4rem 0 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.foot-brand { display: flex; gap: 1.2rem; align-items: flex-start; }
.foot-brand p { color: var(--ink-soft); font-size: 0.92rem; max-width: 280px; }
.foot-links { display: flex; flex-direction: column; gap: 0.6rem; }
.foot-links a {
  font-size: 0.85rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--ink-soft);
  transition: color .3s ease;
}
.foot-links a:hover { color: var(--gold); }
.foot-legal { font-size: 0.85rem; color: var(--ink-soft); text-align: right; }
.foot-legal .muted { font-size: 0.75rem; margin-top: 0.4rem; }
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .foot-legal { text-align: left; }
}

/* WHATSAPP FLOAT */
.whats-float {
  position: fixed; right: 1.5rem; bottom: 1.5rem;
  width: 58px; height: 58px;
  background: #25d366; color: white;
  border-radius: 50%;
  display: grid; place-items: center;
  z-index: 99;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .55);
  transition: transform .3s ease, box-shadow .3s ease;
  animation: pulseW 2.5s ease-in-out infinite;
}
.whats-float:hover {
  transform: scale(1.08);
  box-shadow: 0 18px 40px -8px rgba(37, 211, 102, .7);
}
@keyframes pulseW {
  0%, 100% { box-shadow: 0 12px 30px -8px rgba(37,211,102,.55), 0 0 0 0 rgba(37,211,102,.5); }
  50% { box-shadow: 0 12px 30px -8px rgba(37,211,102,.55), 0 0 0 14px rgba(37,211,102,0); }
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .parallax, .parallax-img, .hero-bg { transform: none !important; }
  .ticker-track { animation: none; }
  .scroll-hint span { animation: none; }
}
