/* =========================================================
   JORSUAR JOYEROS LUXURY — styles.css
   1. Variables · 2. Base · 3. Navegación · 4. Hero
   5. Secciones · 6. Componentes · 7. Footer/Flotantes
   8. Animaciones · 9. Responsive (mobile)
   ========================================================= */

/* 1. VARIABLES */
:root {
  --bg: #0b0a08;
  --bg-2: #14120e;
  --line: #2a251a;
  --gold: #d4af37;
  --gold-2: #f3e2a0;
  --text: #f5efe2;
  --muted: #a79f8c;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --pad: 6vw;
}

/* 2. BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-weight: 300; line-height: 1.7; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; }
.gold { background: linear-gradient(120deg, var(--gold), var(--gold-2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { letter-spacing: .3em; text-transform: uppercase; font-size: .72rem; color: var(--gold); margin-bottom: 14px; }
.center { text-align: center; margin-top: 40px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 30px; border: 1px solid var(--gold); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; transition: .3s; }
.btn i { font-size: 1.2rem; }
.btn.fill { background: var(--gold); color: #111; font-weight: 500; }
.btn:hover { background: var(--gold-2); color: #111; transform: translateY(-2px); }

/* 3. NAVEGACIÓN */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; justify-content: space-between; align-items: center; padding: 18px var(--pad); transition: .3s; background: linear-gradient(#0b0a08cc, transparent); }
.nav.solid { background: #0b0a08ee; backdrop-filter: blur(10px); padding-block: 12px; border-bottom: 1px solid var(--line); }
.logo { font-family: var(--serif); font-size: 1.4rem; letter-spacing: .14em; color: var(--gold); }
.menu a { margin-left: 28px; font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); transition: .3s; }
.menu a:hover { color: var(--gold); }
.burger { display: none; background: none; border: 0; color: var(--gold); font-size: 2rem; cursor: pointer; line-height: 1; }

/* 4. HERO */
.hero { height: 260vh; position: relative; }
.stick {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 50% calc(50% + var(--p, 0) * 20%), rgba(212,175,55,calc(.12 + var(--p, 0) * .22)), transparent 60%), var(--bg);
}
.gem { position: absolute; width: min(70vmin, 560px); aspect-ratio: 1; opacity: calc(.25 + var(--p, 0) * .5); transform: scale(calc(.8 + var(--p, 0) * 1.6)) rotate(calc(var(--p, 0) * 180deg)); filter: drop-shadow(0 0 40px #d4af3766); }
.hero-text { position: relative; padding: 0 var(--pad); max-width: 900px; transform: translateY(calc(var(--p, 0) * -60px)); opacity: calc(1 - var(--p, 0) * 1.6); }
.hero-text small { letter-spacing: .35em; text-transform: uppercase; color: var(--gold); font-size: .75rem; }
.hero-text h1 { font-size: clamp(2.6rem, 7vw, 5.5rem); margin: 18px 0; }
.hero-text h2 { font-family: var(--sans); font-weight: 300; font-size: clamp(1rem, 2vw, 1.25rem); color: var(--muted); margin-bottom: 18px; }
.hero-text p { max-width: 600px; margin: 0 auto 34px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-reveal { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 0 8vw; opacity: calc((var(--p, 0) - .55) * 3.5); transform: translateY(calc((1 - var(--p, 0)) * 50px)); pointer-events: none; }
.hero-reveal h2 { font-size: clamp(2rem, 5vw, 4rem); }
.hint { position: absolute; bottom: 28px; font-size: .7rem; letter-spacing: .3em; color: var(--muted); opacity: calc(1 - var(--p, 0) * 5); }
.hint::after { content: ""; display: block; width: 1px; height: 40px; margin: 8px auto 0; background: linear-gradient(var(--gold), transparent); animation: line 1.6s infinite; }

/* 5. SECCIONES */
.section { padding: 110px var(--pad); max-width: 1200px; margin: auto; }
.section h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 26px; }
.band { background: var(--bg-2); }
.lead { color: var(--muted); max-width: 640px; }

/* Nosotros */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: center; }
.about p + p { margin-top: 16px; }
.stats { display: grid; gap: 22px; }
.stats div { border-left: 1px solid var(--gold); padding-left: 20px; }
.stats b { font-family: var(--serif); font-size: 2.6rem; color: var(--gold); display: block; line-height: 1; }
.stats span { color: var(--muted); font-size: .85rem; }

/* 6. COMPONENTES */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.card { background: var(--bg); border: 1px solid var(--line); padding: 34px 28px; transition: .4s; }
.card:hover { border-color: var(--gold); transform: translateY(-6px); box-shadow: 0 14px 40px #d4af3718; }
.card i { font-size: 2.2rem; color: var(--gold); display: block; margin-bottom: 16px; }
.card h3 { font-size: 1.4rem; margin-bottom: 10px; color: var(--gold-2); }
.card p { color: var(--muted); font-size: .92rem; }

.collection { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 34px; }
.tile { display: block; padding: 28px; min-height: 260px; border: 1px solid var(--line); background: linear-gradient(160deg, #1d1a12, #0d0c09); position: relative; overflow: hidden; transition: .4s; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, #d4af3730 50%, transparent 60%); transform: translateX(-100%); transition: .8s; }
.tile:hover { border-color: var(--gold); }
.tile:hover::after { transform: translateX(100%); }
.tile i { font-size: 1.8rem; color: var(--gold); display: block; margin-bottom: 14px; }
.tile h3 { font-size: 1.3rem; color: var(--gold-2); margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: .88rem; }

.sedes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; margin-top: 30px; }
.sede { border: 1px solid var(--line); padding: 36px; background: var(--bg-2); }
.sede h3 { font-size: 1.6rem; color: var(--gold); }
.sede em { display: block; color: var(--muted); font-style: normal; font-size: .8rem; margin: 4px 0 18px; }
.sede li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; font-size: .92rem; }
.sede li i { color: var(--gold); font-size: 1.25rem; margin-top: 2px; }
.sede .btn { margin-top: 14px; }

/* 7. FOOTER Y FLOTANTES */
.footer { border-top: 1px solid var(--line); padding: 50px var(--pad); text-align: center; color: var(--muted); font-size: .85rem; }
.social { display: flex; justify-content: center; gap: 14px; margin-bottom: 20px; }
.social a { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); font-size: 1.4rem; transition: .3s; }
.social a:hover { border-color: var(--gold); background: #d4af3715; }
.wa { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; color: #fff; font-size: 2rem; box-shadow: 0 6px 24px #0008; transition: .3s; }
.wa:hover { transform: scale(1.1); }
.dock { display: none; }

/* 8. ANIMACIONES */
.rv { opacity: 0; transform: translateY(34px); transition: 1s cubic-bezier(.2, .7, .2, 1); }
.rv.on { opacity: 1; transform: none; }
@keyframes line { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; }
  .hero { height: auto; }
  .stick { position: relative; }
  .gem { transform: none; }
}

/* 9. RESPONSIVE */
@media (max-width: 760px) {
  :root { --pad: 22px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

  /* Menú fullscreen */
  .burger { display: block; position: relative; z-index: 70; width: 44px; height: 44px; }
  .menu { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; background: #0b0a08f5; backdrop-filter: blur(14px); opacity: 0; pointer-events: none; transition: .4s; }
  .menu.open { opacity: 1; pointer-events: auto; }
  .menu a { margin: 0; padding: 12px; font-family: var(--serif); font-size: 2.2rem; letter-spacing: .05em; text-transform: none; color: var(--text); transform: translateY(20px); opacity: 0; transition: .5s; }
  .menu.open a { transform: none; opacity: 1; }
  .menu.open a:nth-child(2) { transition-delay: .06s; }
  .menu.open a:nth-child(3) { transition-delay: .12s; }
  .menu.open a:nth-child(4) { transition-delay: .18s; }

  /* Hero */
  .hero { height: 230vh; }
  .hero-text h1 { font-size: 2.5rem; }
  .hero-text p { font-size: .95rem; margin-bottom: 26px; }
  .hero-cta { flex-direction: column; padding: 0 6px; }
  .hero-cta .btn { width: 100%; padding: 16px; }
  .gem { width: 120vw; }

  /* Secciones */
  .section { padding: 72px var(--pad); }
  .about { grid-template-columns: 1fr; gap: 36px; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stats div { border-left: 0; border-top: 1px solid var(--gold); padding: 14px 0 0; }
  .stats b { font-size: 1.8rem; }
  .stats span { font-size: .72rem; display: block; line-height: 1.3; margin-top: 4px; }

  /* Servicios: tarjetas compactas en horizontal */
  .card { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; padding: 22px 20px; }
  .card i { grid-row: span 2; font-size: 2rem; margin: 0; }
  .card h3 { font-size: 1.25rem; margin-bottom: 4px; }
  .cards { gap: 12px; }

  /* Colecciones: carrusel con snap */
  .collection { columns: auto; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 28px calc(var(--pad) * -1) 0; padding: 0 var(--pad) 10px; scrollbar-width: none; }
  .collection::-webkit-scrollbar { display: none; }
  .tile { flex: 0 0 82%; scroll-snap-align: center; min-height: 240px; margin: 0; }

  .sede { padding: 26px 22px; }
  .sede .btn { width: 100%; }
  .center .btn { width: 100%; }

  /* Barra de acciones inferior */
  .wa { display: none; }
  .dock { position: fixed; z-index: 55; left: 14px; right: 14px; bottom: calc(12px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 8px; padding: 8px; background: #14120eee; backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 30px #000a; }
  .dock a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 12px; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  .dock a i { font-size: 1.4rem; color: var(--gold); }
  .dock a.main { background: var(--gold); color: #111; font-weight: 500; }
  .dock a.main i { color: #111; }
}
