:root {
  --navy: #142238;
  --navy-deep: #0d1726;
  --navy-soft: #213650;
  --gold: #d4a343;
  --gold-light: #f3cc78;
  --orange: #f28b22;
  --paper: #f4f6f8;
  --ink: #172132;
  --muted: #b9c5d6;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--navy);
  color: #fff;
  font-family: "Poppins", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(212, 163, 67, 0.32);
  color: #fff;
}

.premium-bg {
  background:
    linear-gradient(180deg, rgba(13, 23, 38, 0.18), rgba(20, 34, 56, 0.96)),
    radial-gradient(ellipse at 72% 18%, rgba(80, 112, 151, 0.28), transparent 42%),
    linear-gradient(135deg, #142238 0%, #172941 48%, #101a2b 100%);
}

.paper-bg {
  background:
    radial-gradient(ellipse at 25% 88%, rgba(38, 71, 107, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 243, 248, 0.99)),
    var(--paper);
}

.gold-divider {
  border-top: 1px solid rgba(212, 163, 67, 0.72);
  box-shadow: 0 -1px 0 rgba(243, 204, 120, 0.12);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(212, 163, 67, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.48rem 0.78rem;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(212, 163, 67, 0.72);
}

.btn-primary,
.btn-secondary {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  overflow: hidden;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease, border-color 220ms ease;
}

.btn-primary {
  background: linear-gradient(135deg, #f49a2c 0%, #df7d19 48%, #c9650d 100%);
  color: #fff;
  box-shadow: 0 18px 34px rgba(242, 139, 34, 0.24);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: translateX(-120%);
  transition: transform 650ms ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(242, 139, 34, 0.34);
}

.btn-primary:hover::after {
  transform: translateX(120%);
}

.btn-secondary {
  border: 1px solid rgba(212, 163, 67, 0.42);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.btn-secondary:hover {
  border-color: rgba(243, 204, 120, 0.76);
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-2px);
}

.glass-card {
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.055));
  box-shadow: 0 22px 60px rgba(3, 11, 22, 0.22);
  backdrop-filter: blur(16px);
}

.product-card {
  border: 1px solid rgba(212, 163, 67, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    rgba(13, 23, 38, 0.48);
  box-shadow: 0 24px 56px rgba(2, 8, 17, 0.24);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.product-card:hover,
.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(243, 204, 120, 0.5);
  box-shadow: 0 30px 70px rgba(4, 12, 25, 0.34);
}

.product-card.featured {
  border-color: rgba(243, 204, 120, 0.62);
  background:
    linear-gradient(180deg, rgba(212, 163, 67, 0.16), rgba(255, 255, 255, 0.045)),
    rgba(13, 23, 38, 0.62);
}

.author-stage {
  position: relative;
}

.author-stage::before {
  content: "";
  position: absolute;
  inset: 12% 5% 0;
  background: radial-gradient(ellipse at 50% 42%, rgba(94, 129, 169, 0.34), rgba(20, 34, 56, 0.08) 52%, transparent 74%);
  filter: blur(2px);
}

.author-portrait {
  position: relative;
  isolation: isolate;
  margin-bottom: 0;
  transform: translateY(0);
}

.author-portrait::before {
  content: "";
  position: absolute;
  inset: 10% 8% 8%;
  z-index: -2;
  border-radius: 999px;
  background: radial-gradient(ellipse at 50% 58%, rgba(32, 67, 105, 0.24), rgba(32, 67, 105, 0.08) 48%, transparent 72%);
  filter: blur(14px);
}

.author-portrait::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -0.1rem;
  z-index: -1;
  height: 4.8rem;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(17, 31, 50, 0.26), rgba(17, 31, 50, 0.1) 45%, transparent 72%);
  filter: blur(16px);
}

.author-portrait img {
  filter: drop-shadow(0 24px 34px rgba(20, 34, 56, 0.16));
}

#inicio h1 {
  text-wrap: balance;
}

.icon-tile {
  display: grid;
  width: 2.85rem;
  height: 2.85rem;
  place-items: center;
  border: 1px solid rgba(212, 163, 67, 0.34);
  border-radius: 0.9rem;
  background: rgba(212, 163, 67, 0.09);
  color: var(--gold-light);
}

.icon-tile svg {
  width: 1.55rem;
  height: 1.55rem;
  stroke-width: 1.8;
  color: var(--gold-light);
}

.icon-tile svg * {
  vector-effect: non-scaling-stroke;
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 260ms ease;
}

.faq-icon {
  transition: transform 220ms ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.legal-content h2 {
  color: #fff;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 700;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}

.legal-content p,
.legal-content li {
  color: rgba(229, 236, 246, 0.78);
  line-height: 1.8;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.3rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  #inicio h1 {
    font-size: clamp(2.35rem, 10vw, 2.8rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  #inicio p {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .author-portrait {
    margin-bottom: 0;
    transform: translateY(0);
  }

  .author-portrait::before {
    inset: 16% 6% 10%;
    filter: blur(12px);
  }

  .author-portrait::after {
    bottom: -0.05rem;
    height: 3rem;
  }
}
