:root {
  --bg: #0c0c0c;
  --bg-alt: #111111;
  --card: #151514;
  --text: #f2ede4;
  --muted: rgba(242, 237, 228, .65);
  --line: #2a2824;
  --gold: #c9a24e;
  --gold-soft: rgba(201, 162, 78, .25);
  --font-head: "Jost", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 300; line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2.6rem, 7vw, 5rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); max-width: 22ch; }
h3 { font-size: 1.3rem; font-weight: 400; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.container--narrow { width: min(780px, 100% - 2.5rem); }

.eyebrow {
  font-size: .72rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.8rem; border: 1px solid var(--gold); border-radius: 999px;
  background: var(--gold); color: #0c0c0c; font: 500 .95rem var(--font-body);
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .25s, color .25s, transform .25s;
}
.btn:hover { background: transparent; color: var(--gold); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--gold); }
.btn--small { padding: .6rem 1.2rem; font-size: .85rem; }

/* Topbar + header */
.topbar {
  text-align: center; font-size: .75rem; padding: .55rem 1rem;
  border-bottom: 1px solid var(--line); color: var(--muted);
}
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 12, 12, .85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-head); font-weight: 300; font-size: 1.4rem; letter-spacing: .35em; }
.brand__sub { font-size: .55rem; letter-spacing: .5em; color: var(--gold); margin-top: .3rem; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) { text-decoration: none; font-size: .9rem; color: var(--muted); transition: color .2s; }
.nav a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.nav-toggle span { display: block; height: 1px; background: var(--text); margin: 7px 8px; transition: transform .3s; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; inset: 72px 0 auto 0; flex-direction: column; gap: 1.4rem;
    padding: 2rem; background: var(--bg); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); opacity: 0; pointer-events: none; transition: .35s;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

/* Hero */
.hero {
  position: relative; overflow: hidden; min-height: min(88vh, 820px);
  display: grid; place-items: center; text-align: center; padding: 6rem 0;
  background: radial-gradient(ellipse at center, #1a1712 0%, var(--bg) 70%);
}
.hero__rings {
  position: absolute; width: min(900px, 140vw); left: 50%; top: 50%;
  transform: translate(-50%, -50%); fill: none; stroke: var(--line); stroke-width: 1;
  animation: spin 120s linear infinite;
}
.hero__dot {
  position: absolute; width: 70px; height: 70px; border-radius: 50%;
  left: 62%; top: 34%; background: radial-gradient(circle, rgba(201,162,78,.75), rgba(201,162,78,.15) 60%, transparent 70%);
  filter: blur(1px); animation: pulse 5s ease-in-out infinite;
}
.hero__content { position: relative; }
.hero__lead { max-width: 560px; margin: 0 auto 2.2rem; color: var(--muted); font-size: 1.05rem; }
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
@media (max-width: 600px) { .hero__dot { left: 78%; top: 16%; width: 50px; height: 50px; } }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(1.15); opacity: .7; } }

/* Secciones */
.section { padding: clamp(4rem, 9vw, 7rem) 0; border-top: 1px solid var(--line); }
.section--alt { background: var(--bg-alt); }
.section__lead { color: var(--muted); max-width: 60ch; font-size: 1.05rem; }

/* Tarjetas de servicios */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.card {
  display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color .3s, transform .3s;
}
.card:hover { border-color: var(--gold-soft); transform: translateY(-4px); }
.card__art {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; padding: 1.4rem;
  background: radial-gradient(ellipse at 80% 90%, #221d13, #0e0e0d 70%);
  border-bottom: 1px solid var(--line);
}
.card__tag { display: block; font-size: .6rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.card__name { display: block; font-family: var(--font-head); font-weight: 300; font-size: 1.7rem; margin-top: .9rem; }
.card__ring {
  position: absolute; right: -40px; bottom: -60px; width: 190px; height: 190px;
  border: 1px solid rgba(201,162,78,.45); border-radius: 50%;
}
.card__ring::before {
  content: ""; position: absolute; inset: 55px; border: 1px solid rgba(201,162,78,.6); border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,78,.8) 0 12px, transparent 13px);
}
.card__ring::after {
  content: ""; position: absolute; left: -40px; top: 50%; width: 270px; height: 1px; background: rgba(201,162,78,.35);
}
.card__body { display: flex; flex-direction: column; flex: 1; padding: 1.6rem; }
.card__body > p { color: var(--muted); font-size: .95rem; }
.card ul { list-style: none; padding: 0; margin: 0 0 1rem; font-size: .9rem; }
.card li { padding: .35rem 0 .35rem 1.3rem; position: relative; border-bottom: 1px solid #1f1f1d; }
.card li::before { content: ""; position: absolute; left: 0; top: .85rem; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--gold); }
.card__note { font-size: .8rem; color: var(--muted); }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; }
.price { font-family: var(--font-head); font-size: 1.6rem; color: var(--gold); }
.price small { font-size: .9rem; color: var(--muted); }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.steps li { border-top: 1px solid var(--gold-soft); padding-top: 1.4rem; }
.steps__n { font-family: var(--font-head); color: var(--gold); font-size: 2rem; font-weight: 300; display: block; margin-bottom: .6rem; }
.steps p { color: var(--muted); font-size: .95rem; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.feature { padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

/* FAQ */
.faq { margin-top: 2.5rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.3rem 2.5rem 1.3rem 0; position: relative;
  font-family: var(--font-head); font-size: 1.15rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: 1.1rem; color: var(--gold); font-size: 1.5rem; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 1.2rem; margin: 0; }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 2rem 0 0; }
.contact__list li { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.contact__list a { text-decoration: none; transition: color .2s; }
.contact__list a:hover { color: var(--gold); }
.form { display: grid; gap: 1.1rem; padding: 2rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.form label { display: grid; gap: .4rem; font-size: .85rem; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; padding: .85rem 1rem; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius); font: inherit; font-size: .95rem;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); }
.form .check { display: flex; align-items: flex-start; gap: .6rem; }
.form .check input { width: auto; margin-top: .25rem; accent-color: var(--gold); }
.form .check a { color: var(--gold); }
.form .hp { position: absolute; left: -9999px; }
.form__status { margin: 0; font-size: .9rem; color: var(--gold); min-height: 1.2em; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; gap: 2.5rem; } }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 3rem 0 6rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer__links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer__links a, .footer__copy { color: var(--muted); font-size: .85rem; text-decoration: none; margin: 0; }
.footer__links a:hover { color: var(--gold); }
.brand--footer .brand__name { font-size: 1.1rem; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 60; width: 58px; height: 58px;
  display: grid; place-items: center; border-radius: 50%; background: #25d366; color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.4); transition: transform .25s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* Páginas legales */
.legal { padding: 4rem 0 6rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal h2 { font-size: 1.4rem; margin-top: 2.2rem; max-width: none; }
.legal p, .legal li { color: var(--muted); }
.legal a { color: var(--gold); }
.fill { background: rgba(201,162,78,.2); color: var(--gold); padding: 0 .3em; border-radius: 3px; font-weight: 500; }

/* Animaciones al hacer scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__rings, .hero__dot { animation: none; }
}

/* Quiénes somos */
.story { max-width: 68ch; }
.story .section__lead { margin-bottom: 1.2em; }

/* Botones de llamada */
.btn svg { width: 1.05em; height: 1.05em; }
.contact__actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.8rem; }
.call-float {
  position: fixed; right: 1.2rem; bottom: calc(1.2rem + 70px); z-index: 60; width: 58px; height: 58px;
  display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: #0c0c0c;
  box-shadow: 0 8px 24px rgba(0,0,0,.4); transition: transform .25s;
}
.call-float:hover { transform: scale(1.08); }
.call-float svg { width: 26px; height: 26px; }

/* Ventana de llamada */
.call-modal {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1.2rem;
  background: rgba(0,0,0,.7); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s;
}
.call-modal.open { opacity: 1; }
.call-modal[hidden] { display: none; }
.call-modal__box {
  position: relative; width: min(440px, 100%); padding: 2.4rem 2rem 2rem; text-align: center;
  background: var(--card); border: 1px solid var(--gold-soft); border-radius: 12px;
  transform: translateY(16px) scale(.97); transition: transform .25s;
}
.call-modal.open .call-modal__box { transform: none; }
.call-modal__box h2 { font-size: clamp(2rem, 7vw, 2.6rem); max-width: none; margin-bottom: .4rem; letter-spacing: .03em; }
.call-modal__text { color: var(--muted); font-size: .95rem; }
.call-modal__close {
  position: absolute; top: .6rem; right: .8rem; background: none; border: 0; color: var(--muted);
  font-size: 1.8rem; line-height: 1; cursor: pointer; padding: .3rem;
}
.call-modal__close:hover { color: var(--gold); }
.call-modal__actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin: 1.4rem 0; }
.call-modal__qr[hidden] { display: none; }
.call-modal__qr { display: flex; align-items: center; gap: 1rem; text-align: left; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.call-modal__qr p { margin: 0; font-size: .85rem; color: var(--muted); }
#call-qr { flex: none; padding: 6px; background: #f2ede4; border-radius: 6px; }
#call-qr img, #call-qr canvas { display: block; width: 110px; height: 110px; }
@media (max-width: 520px) { .call-modal__qr { display: none; } }
