/* ═══════════════════ PAPISALENORMAND ═══════════════════ */

/* Fuentes alojadas en /fonts (variables: un archivo cubre todos los pesos) */
@font-face {
  font-family: "Cinzel";
  src: url("../fonts/cinzel.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #070707;
  --bg-alt: #0d0c0a;
  --gold: #c9a961;
  --gold-light: #e8cf9a;
  --gold-dark: #9a7b3f;
  --ink: #171308;          /* texto sobre fondos dorados */
  --text: #e9e4d8;
  --text-dim: #b3ab99;
  --text-faint: #8f8878;   /* texto secundario del footer (contraste ≥ 4.5:1) */
  --border: rgba(201, 169, 97, 0.28);
  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Cormorant Garamond", Georgia, serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; margin-top: 48px; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

/* ─────────── Botones ─────────── */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 3px;
  transition: filter 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-dark));
  color: var(--ink);
  font-weight: 600;
  border: 1px solid var(--gold);
}
.btn-gold:hover { filter: brightness(1.12); box-shadow: 0 4px 28px rgba(201, 169, 97, 0.35); }
.btn-outline {
  border: 1px solid var(--border);
  color: var(--gold);
}
.btn-outline:hover { border-color: var(--gold); background: rgba(201, 169, 97, 0.08); }
.btn-lg { padding: 17px 44px; font-size: 1.05rem; }
.btn-nav { padding: 9px 20px; font-size: 0.8rem; }

/* ─────────── Nav ─────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 7, 7, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 169, 97, 0.14);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-brand { display: flex; align-items: center; text-decoration: none; }
/* 50 px de alto = el PNG de 400 px se ve nítido en pantallas 2x */
.nav-brand img { height: 50px; width: auto; display: block; }
.nav-toggle { display: none; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--gold-light); }

/* ─────────── Hero ─────────── */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 50px 24px 90px;
  background:
    radial-gradient(ellipse 60% 45% at 50% 30%, rgba(201, 169, 97, 0.10), transparent 70%),
    var(--bg);
}
.hero-inner { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; }

/* ── Fondo animado del hero ── */
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }

/* anillos celestes girando tras el logo (centrados en .hero-logo-wrap) */
.hero-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.ring-1 {
  width: 121%;
  aspect-ratio: 1;
  border: 1px dashed rgba(201, 169, 97, 0.16);
  animation: spin 140s linear infinite;
}
.ring-2 {
  width: 139%;
  aspect-ratio: 1;
  border: 1px dotted rgba(201, 169, 97, 0.10);
  animation: spin-rev 200s linear infinite;
}
@keyframes spin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes spin-rev { from { transform: translate(-50%, -50%) rotate(360deg); } to { transform: translate(-50%, -50%) rotate(0deg); } }

/* cartas de tarot flotantes */
.fcard {
  position: absolute;
  width: 64px;
  height: 102px;
  border: 1px solid rgba(201, 169, 97, 0.35);
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: rgba(201, 169, 97, 0.55);
  background: rgba(201, 169, 97, 0.03);
  box-shadow: inset 0 0 18px rgba(201, 169, 97, 0.06);
  animation: wander 22s ease-in-out infinite;
}
.fcard svg { width: 30px; height: 30px; }
/* volteo ocasional, como al revelar una carta */
.fc2 svg, .fc5 svg { animation: cardflip 16s ease-in-out infinite; }
.fc5 svg { animation-delay: -7s; }
.fcard::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(201, 169, 97, 0.18);
  border-radius: 5px;
}
@keyframes wander {
  0%   { transform: translate(0, 0) rotate(calc(var(--r) - 5deg)); }
  25%  { transform: translate(26px, -38px) rotate(var(--r)); }
  50%  { transform: translate(-12px, -64px) rotate(calc(var(--r) + 6deg)); }
  75%  { transform: translate(-32px, -24px) rotate(calc(var(--r) + 2deg)); }
  100% { transform: translate(0, 0) rotate(calc(var(--r) - 5deg)); }
}
@keyframes cardflip {
  0%, 72% { transform: rotateY(0); }
  86%     { transform: rotateY(180deg); }
  100%    { transform: rotateY(360deg); }
}
.fc1 { top: 12%; left: 6%;  opacity: 0.42; animation-duration: 24s; }
.fc2 { top: 55%; left: 12%; opacity: 0.30; animation-duration: 30s; animation-delay: -9s; scale: 0.82; }
.fc3 { top: 26%; left: 21%; opacity: 0.20; animation-duration: 38s; animation-delay: -18s; scale: 0.6; filter: blur(1px); }
.fc4 { top: 14%; right: 7%; opacity: 0.42; animation-duration: 26s; animation-delay: -5s; }
.fc5 { top: 58%; right: 12%; opacity: 0.30; animation-duration: 32s; animation-delay: -14s; scale: 0.82; }
.fc6 { top: 30%; right: 21%; opacity: 0.20; animation-duration: 40s; animation-delay: -26s; scale: 0.6; filter: blur(1px); }

/* polvo dorado ascendente */
.dust {
  position: absolute;
  bottom: -6px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold-light);
  opacity: 0;
  animation: rise 11s linear infinite;
}
@keyframes rise {
  0%   { opacity: 0; transform: translateY(0) translateX(0); }
  12%  { opacity: 0.7; }
  60%  { opacity: 0.35; }
  100% { opacity: 0; transform: translateY(-540px) translateX(26px); }
}
.d1 { left: 8%;  animation-delay: 0s;    animation-duration: 12s; }
.d2 { left: 22%; animation-delay: -3s;   animation-duration: 15s; width: 2px; height: 2px; }
.d3 { left: 34%; animation-delay: -7s;   animation-duration: 11s; }
.d4 { left: 47%; animation-delay: -1.5s; animation-duration: 17s; width: 2px; height: 2px; }
.d5 { left: 60%; animation-delay: -9s;   animation-duration: 13s; }
.d6 { left: 72%; animation-delay: -5s;   animation-duration: 16s; width: 2px; height: 2px; }
.d7 { left: 84%; animation-delay: -11s;  animation-duration: 12s; }
.d8 { left: 93%; animation-delay: -2.5s; animation-duration: 14s; width: 2px; height: 2px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.hero-logo-wrap { position: relative; width: min(560px, 100%); margin: 0 auto 30px; }
.hero-logo {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 30px rgba(201, 169, 97, 0.25));
}

/* estrellitas del fondo */
.hero-stars, .hero-stars::before, .hero-stars::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 30%, rgba(232, 207, 154, 0.8), transparent),
    radial-gradient(1px 1px at 85% 20%, rgba(232, 207, 154, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 75% 65%, rgba(232, 207, 154, 0.5), transparent),
    radial-gradient(1px 1px at 25% 75%, rgba(232, 207, 154, 0.6), transparent),
    radial-gradient(2px 2px at 90% 80%, rgba(232, 207, 154, 0.4), transparent),
    radial-gradient(1px 1px at 8% 55%, rgba(232, 207, 154, 0.5), transparent);
  animation: twinkle 5s ease-in-out infinite alternate;
}
.hero-stars::before { transform: translate(30px, 40px) scale(1.1); animation-delay: 1.6s; }
.hero-stars::after { transform: translate(-40px, 20px) scale(0.9); animation-delay: 3.2s; }
@keyframes twinkle { from { opacity: 0.35; } to { opacity: 1; } }

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 22px auto;
  max-width: 420px;
}
.divider span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.divider span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }

.hero-services {
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-services span { display: block; }
.hero-services span + span { margin-top: 6px; }
.hero-tagline { font-size: 1.55rem; margin-top: 26px; color: var(--text); }
.hero-sub { font-size: 1.2rem; color: var(--text-dim); margin-top: 8px; }
.hero-cta { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }

/* ─────────── Secciones ─────────── */
.section { padding: 96px 0; }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid rgba(201, 169, 97, 0.12);
  border-bottom: 1px solid rgba(201, 169, 97, 0.12);
}
.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dark);
  text-align: center;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  text-align: center;
  margin-top: 10px;
}
.section-lead {
  text-align: center;
  max-width: 620px;
  margin: 18px auto 0;
  color: var(--text-dim);
  font-size: 1.3rem;
}
.section-lead strong { color: var(--gold-light); font-weight: 600; }

/* ─────────── Cards de servicios ─────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 56px;
}
@media (max-width: 900px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .cards-grid { grid-template-columns: 1fr; }
}
.card {
  background: linear-gradient(180deg, rgba(201, 169, 97, 0.05), rgba(201, 169, 97, 0.015));
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px 26px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 12px 40px rgba(201, 169, 97, 0.12);
}
.card-icon { width: 52px; height: 52px; margin: 0 auto 18px; color: var(--gold); }
.card-icon svg { width: 100%; height: 100%; }
.card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  margin-bottom: 12px;
}
.card p { font-size: 1.08rem; color: var(--text-dim); }

/* ─────────── Precios ─────────── */
.pricing-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 26px;
  max-width: 760px;
  margin: 56px auto 0;
}
.pricing-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
  max-width: 820px;
  margin: 56px auto 0;
}
.price-card {
  position: relative;
  background: linear-gradient(180deg, rgba(201, 169, 97, 0.06), rgba(201, 169, 97, 0.015));
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 42px 30px 36px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.price-card:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 12px 40px rgba(201, 169, 97, 0.12); }
.price-featured { border-color: var(--gold); box-shadow: 0 0 44px rgba(201, 169, 97, 0.13) inset; }
.price-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-name {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.price-amount {
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1.1;
  margin: 14px 0 6px;
}
.price-amount span { font-size: 1.8rem; margin-left: 2px; }
.price-card ul { list-style: none; margin: 18px 0 28px; }
.price-card li { padding: 7px 0; color: var(--text-dim); font-size: 1.1rem; border-bottom: 1px solid rgba(201, 169, 97, 0.1); }
.price-card li:last-child { border-bottom: none; }
.price-card.mini { padding: 34px 22px 30px; }
.price-card.mini .price-amount { margin-bottom: 20px; }
.price-card .btn { width: 100%; }

/* ─────────── Pasos ─────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-top: 56px;
  text-align: center;
}
.step-num {
  display: grid;
  place-items: center;
  width: 62px; height: 62px;
  margin: 0 auto 20px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  margin-bottom: 10px;
}
.step p { color: var(--text-dim); font-size: 1.1rem; max-width: 300px; margin: 0 auto; }

/* ─────────── Footer ─────────── */
.footer {
  padding: 70px 0 44px;
  text-align: center;
  border-top: 1px solid rgba(201, 169, 97, 0.14);
  background: var(--bg-alt);
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 18px;
}
.footer-services {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-top: 10px;
}
.footer-note { color: var(--text-dim); font-style: italic; margin-top: 14px; }
.footer-contact { margin-top: 14px; }
.footer-contact a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--border); transition: color 0.25s, border-color 0.25s; }
.footer-contact a:hover { color: var(--gold-light); border-color: var(--gold); }
.footer-legal {
  max-width: 560px;
  margin: 26px auto 0;
  font-size: 0.98rem;
  color: var(--text-faint);
}
.footer-copy { margin-top: 26px; font-size: 0.95rem; color: var(--text-faint); }

/* ─────────── Animación de aparición ─────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-stars, .hero-stars::before, .hero-stars::after { animation: none; }
  .hero-ring, .fcard, .fcard svg { animation: none; }
  .fcard { transform: rotate(var(--r)); }
  .dust { display: none; }
  html { scroll-behavior: auto; }
}

/* ─────────── Responsive ─────────── */
@media (max-width: 720px) {
  .nav-inner { padding: 12px 16px; gap: 10px; }
  .nav-brand img { height: 36px; }
  .btn-nav { margin-left: auto; padding: 8px 14px; font-size: 0.72rem; }

  /* menú desplegable */
  .nav-toggle {
    display: grid;
    place-content: center;
    gap: 5px;
    width: 42px;
    height: 36px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 3px;
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--gold);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 6px 20px 14px;
    background: rgba(7, 7, 7, 0.97);
    border-bottom: 1px solid rgba(201, 169, 97, 0.14);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 2px; font-size: 1.2rem; border-bottom: 1px solid rgba(201, 169, 97, 0.1); }
  .nav-links a:last-child { border-bottom: none; }

  .section { padding: 70px 0; }
  .hero { padding: 40px 20px 70px; }
  .fc3, .fc6 { display: none; }
  .fc1, .fc4 { scale: 0.7; opacity: 0.3; }
  .fc2, .fc5 { scale: 0.55; opacity: 0.22; }
  .fc2 { left: 4%; }
  .fc5 { right: 4%; }
}
