/* ==========================================================================
   CODEX MAESTRO LEGAL — ESTILOS EDITORIALES DE LUJO JURÍDICO (SIN DEPENDENCIAS)
   Optimizado para Core Web Vitals (0 CLS, carga instantánea en redes móviles)
   ========================================================================== */

:root {
  --obsidian: #07090e;
  --obsidian-soft: #0c1018;
  --midnight: #0f172a;
  --midnight-elevated: #131e36;
  --burgundy: #5c111e;
  --burgundy-deep: #380811;
  --burgundy-glow: rgba(122, 24, 41, 0.35);
  --gold: #d4af37;
  --gold-light: #f5d986;
  --gold-bright: #fff2c2;
  --gold-dark: #997419;
  --ivory: #f6f3ec;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --emerald: #34d399;
  --yape: #742284;
  --yape-light: #a855f7;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --shadow-card: 0 22px 50px -14px rgba(0, 0, 0, 0.78);
  --shadow-gold: 0 0 38px rgba(212, 175, 55, 0.24);
  --shadow-btn: 0 12px 32px -6px rgba(212, 175, 55, 0.48);
  --font-serif: 'Cinzel', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--obsidian);
  color: var(--ivory);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--obsidian);
  color: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: 84px;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

::selection {
  background: var(--gold);
  color: var(--obsidian);
}

img {
  max-width: 100%;
  display: block;
}

button,
input {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}

@media (min-width: 640px) {
  .container {
    padding: 0 28px;
  }
}

.container-narrow {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 18px;
}

/* Utilidades tipográficas y doradas */
.gold-text {
  background: linear-gradient(180deg, #fff5cf 0%, #f5d986 38%, #d4af37 74%, #9e7818 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 15px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.16);
}

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 44px;
}

.section-heading h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3.6vw, 2.55rem);
  line-height: 1.2;
  font-weight: 800;
  color: #ffffff;
  margin: 12px 0 12px;
}

.section-heading p {
  margin: 0;
  color: var(--slate-300);
  font-size: clamp(0.94rem, 1.6vw, 1.05rem);
}

/* Botones de compra con efecto Shimmer Dorado */
@keyframes goldShimmer {
  0% {
    transform: translateX(-130%) skewX(-20deg);
  }
  100% {
    transform: translateX(230%) skewX(-20deg);
  }
}

@keyframes pulsePing {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  75%, 100% {
    transform: scale(2.3);
    opacity: 0;
  }
}

.btn-gold {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 17px 32px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 245, 205, 0.55);
  background: linear-gradient(135deg, #f7df94 0%, #d4af37 52%, #a67f1e 100%);
  color: var(--obsidian);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-gold:hover {
  transform: translateY(-2px) scale(1.012);
  box-shadow: 0 16px 38px -6px rgba(212, 175, 55, 0.62);
  filter: brightness(1.04);
}

.btn-gold:active {
  transform: translateY(0) scale(0.99);
}

.btn-gold::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 44%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.46), transparent);
  animation: goldShimmer 3.2s infinite ease-in-out;
  pointer-events: none;
}

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 175, 55, 0.48);
  background: rgba(15, 23, 42, 0.75);
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-outline-gold:hover {
  background: rgba(212, 175, 55, 0.14);
  border-color: var(--gold-light);
  transform: translateY(-1px);
}

/* ==========================================================================
   1. CABECERA FIJA: BARRA DE URGENCIA + NAVEGACIÓN EDITORIAL
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.urgency-bar {
  background: linear-gradient(90deg, var(--burgundy-deep) 0%, var(--burgundy) 50%, var(--burgundy-deep) 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  padding: 8px 12px;
}

.urgency-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  text-align: center;
}

@media (min-width: 768px) {
  .urgency-inner {
    justify-content: space-between;
  }
}

.urgency-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
}

@media (min-width: 640px) {
  .urgency-copy {
    font-size: 0.85rem;
  }
}

.live-dot {
  position: relative;
  display: inline-flex;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-light);
}

.live-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--gold-light);
  animation: pulsePing 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.strike-muted {
  text-decoration: line-through;
  color: rgba(246, 243, 236, 0.65);
}

.discount-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.22);
  border: 1px solid rgba(212, 175, 55, 0.55);
  color: var(--gold-light);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.timer-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(7, 9, 14, 0.78);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 9px;
  padding: 3px 10px;
  font-size: 0.78rem;
}

.timer-digits {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--gold-light);
  letter-spacing: 0.06em;
}

/* Barra de Navegación Secundaria */
.nav-wrap {
  background: rgba(7, 9, 14, 0.88);
  border-bottom: 1px solid rgba(212, 175, 55, 0.16);
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-emblem {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.22), rgba(92, 17, 30, 0.35));
  border: 1px solid rgba(212, 175, 55, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  flex-shrink: 0;
}

.brand-title {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: #ffffff;
}

.brand-sub {
  display: block;
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: -2px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 22px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--slate-300);
}

.nav-links a:hover {
  color: var(--gold-light);
}

@media (min-width: 960px) {
  .nav-links {
    display: flex;
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-cta {
  padding: 9px 16px;
  border-radius: 11px;
  font-size: 0.8rem;
  gap: 6px;
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--ivory);
  cursor: pointer;
}

@media (min-width: 960px) {
  .menu-btn {
    display: none;
  }
}

.mobile-drawer {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 14px 18px 18px;
  background: rgba(10, 14, 23, 0.98);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.mobile-drawer.is-open {
  display: flex;
}

.mobile-drawer a {
  padding: 8px 4px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--slate-200);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

/* ==========================================================================
   2. HERO SECTION DE ALTO IMPACTO + MOCKUP 3D + BLOQUE YAPE / SOLES
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 42px 0 68px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(92, 17, 30, 0.34) 0%, rgba(15, 23, 42, 0.5) 48%, var(--obsidian) 85%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.16);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -110px;
  left: 50%;
  transform: translateX(-50%);
  width: 820px;
  height: 420px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.14) 0%, transparent 70%);
  pointer-events: none;
}

.hero-header {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4.6vw, 3.35rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin: 20px 0 18px;
}

.hero-title .brand-line {
  display: block;
  margin-bottom: 6px;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.85vw, 1.2rem);
  color: var(--slate-300);
  max-width: 780px;
  margin: 0 auto 26px;
  line-height: 1.65;
}

.hero-subtitle strong {
  color: #ffffff;
}

.hero-subtitle .hl-gold {
  color: var(--gold-light);
  font-weight: 700;
}

/* 4 Píldoras de métricas clave en el Hero */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 780px;
  margin: 0 auto 30px;
}

@media (min-width: 640px) {
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
}

.hero-stat-pill {
  background: linear-gradient(180deg, rgba(19, 30, 54, 0.85), rgba(10, 15, 27, 0.92));
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
}

.hero-stat-pill strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1.15;
}

.hero-stat-pill span {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--slate-300);
  margin-top: 3px;
}

/* Escaparate 3D Fotorrealista de Lujo */
.hero-showcase-card {
  position: relative;
  z-index: 2;
  max-width: 1020px;
  margin: 0 auto 32px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #10192e 0%, #090d16 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  box-shadow: var(--shadow-card), var(--shadow-gold);
  overflow: hidden;
}

.showcase-top-ribbon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 11px 20px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(56, 8, 17, 0.75), rgba(15, 23, 42, 0.95));
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  font-size: 0.76rem;
  color: var(--slate-200);
}

.showcase-top-ribbon .ribbon-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.showcase-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at 50% 45%, rgba(212, 175, 55, 0.14), #07090e 72%);
  overflow: hidden;
}

.showcase-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Sombreado inferior sutil para fundir el mockup con la barra de valor */
.showcase-image-wrap::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 76px;
  background: linear-gradient(to top, #090d16 4%, transparent 100%);
  pointer-events: none;
}

.showcase-bottom-bar {
  position: relative;
  z-index: 3;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid rgba(212, 175, 55, 0.24);
  background: rgba(9, 12, 20, 0.95);
}

@media (min-width: 768px) {
  .showcase-bottom-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.seal-offer-group {
  display: flex;
  align-items: center;
  gap: 15px;
}

.gold-round-seal {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.35);
  flex-shrink: 0;
}

.gold-round-seal-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--obsidian);
  border: 1px solid rgba(212, 175, 55, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.05;
}

.gold-round-seal-inner .seal-top {
  font-size: 0.56rem;
  font-weight: 700;
  color: var(--slate-300);
  text-transform: uppercase;
}

.gold-round-seal-inner .seal-price {
  font-size: 1.16rem;
  font-weight: 800;
  color: var(--gold-light);
  margin: 2px 0;
}

.gold-round-seal-inner .seal-pen {
  font-size: 0.58rem;
  font-weight: 800;
  color: var(--emerald);
}

.seal-copy h3 {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold-light);
}

.seal-copy p {
  margin: 3px 0 0;
  font-size: 0.84rem;
  color: var(--slate-300);
}

.showcase-badges-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.yape-highlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(116, 34, 132, 0.38), rgba(76, 18, 92, 0.55));
  border: 1px solid rgba(192, 132, 252, 0.55);
  color: #f3e8ff;
  font-size: 0.8rem;
  font-weight: 700;
}

.yape-dot {
  padding: 2px 7px;
  border-radius: 6px;
  background: #8b2fc9;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.hotmart-mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.hotmart-flame {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(240, 78, 35, 0.18);
  border: 1px solid rgba(240, 78, 35, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f04e23;
}

/* Caja de Conversión en el Hero (Precio USD + Soles + Botones) */
.hero-cta-box {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero-currency-strip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  padding: 10px 18px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(212, 175, 55, 0.34);
  margin-bottom: 18px;
  font-size: 0.88rem;
}

.hero-currency-strip .pen-pill {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #6ee7b7;
  font-weight: 800;
  font-size: 0.82rem;
}

.hero-btn-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
}

@media (min-width: 640px) {
  .hero-btn-group {
    flex-direction: row;
    align-items: center;
  }
}

.trust-micro-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 20px;
  font-size: 0.82rem;
  color: var(--slate-300);
  font-weight: 500;
}

.trust-micro-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Cinta Editorial Animada */
@keyframes marqueeSlide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.gold-marquee {
  background: linear-gradient(90deg, #0b111e, #151f38, #0b111e);
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
  overflow: hidden;
  padding: 11px 0;
}

.gold-marquee-track {
  display: flex;
  width: max-content;
  gap: 36px;
  animation: marqueeSlide 36s linear infinite;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ==========================================================================
   3. SECCIÓN "¿PARA QUIÉN ES CODEX MAESTRO LEGAL?"
   ========================================================================== */
.section-block {
  padding: 72px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.14);
}

.section-alt {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, var(--obsidian) 100%);
}

.audience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

@media (min-width: 820px) {
  .audience-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.audience-card {
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--midnight) 0%, #090e1a 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.audience-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.6);
}

.audience-card.featured {
  background: linear-gradient(180deg, rgba(92, 17, 30, 0.52) 0%, var(--midnight) 48%, #090e1a 100%);
  border-color: rgba(212, 175, 55, 0.5);
}

.audience-icon {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  margin-bottom: 20px;
}

.audience-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
}

.audience-card.featured h3 {
  color: var(--gold-light);
}

.audience-card p {
  margin: 0;
  color: var(--slate-300);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* ==========================================================================
   4. MEGA BIBLIOTECA JURÍDICA: 20 ESPECIALIDADES + BUSCADOR
   ========================================================================== */
.filter-toolbar {
  max-width: 1040px;
  margin: 0 auto 28px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.26);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (min-width: 920px) {
  .filter-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  padding: 9px 15px;
  border-radius: 11px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(7, 9, 14, 0.72);
  color: var(--slate-300);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: rgba(212, 175, 55, 0.55);
  color: #ffffff;
}

.filter-btn.is-active {
  background: linear-gradient(135deg, #f5d986 0%, #d4af37 55%, #a67f1e 100%);
  color: var(--obsidian);
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.3);
}

.search-input-wrap {
  position: relative;
  width: 100%;
}

@media (min-width: 920px) {
  .search-input-wrap {
    width: 300px;
  }
}

.search-input-wrap svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 10px 36px 10px 38px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: var(--obsidian);
  color: #ffffff;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  border-color: var(--gold);
}

.search-clear-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(148, 163, 184, 0.2);
  color: var(--ivory);
  font-size: 0.9rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}

.search-clear-btn.is-visible {
  display: inline-flex;
}

.specialties-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 600px) {
  .specialties-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .specialties-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.specialty-card {
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, #090e19 100%);
  border: 1px solid rgba(212, 175, 55, 0.22);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.specialty-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.62);
}

.specialty-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(212, 175, 55, 0.11);
  border: 1px solid rgba(212, 175, 55, 0.36);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  flex-shrink: 0;
}

.specialty-meta {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
}

.specialty-card h3 {
  margin: 3px 0 4px;
  font-size: 0.94rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.specialty-desc {
  margin: 0;
  font-size: 0.76rem;
  color: var(--slate-400);
  line-height: 1.4;
}

.empty-state {
  display: none;
  text-align: center;
  padding: 36px 20px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.6);
  border: 1px dashed rgba(212, 175, 55, 0.35);
}

.empty-state.is-visible {
  display: block;
}

/* ==========================================================================
   4.5 VISTA PREVIA INTERACTIVA: BÓVEDA EN LA NUBE + ESCRITO WORD REAL
   ========================================================================== */
.vault-preview-wrapper {
  margin-top: 46px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #10192d 0%, #090d16 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.vault-header {
  padding: 16px 22px;
  background: rgba(7, 9, 14, 0.78);
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.window-dots {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ivory);
}

.window-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.preview-switch {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 11px;
  padding: 3px;
  gap: 4px;
}

.preview-tab-btn {
  padding: 7px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--slate-300);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preview-tab-btn.is-active {
  background: linear-gradient(135deg, #f5d986, #d4af37);
  color: var(--obsidian);
}

.vault-body {
  padding: 22px;
}

.preview-pane {
  display: none;
}

.preview-pane.is-active {
  display: block;
}

.drive-folder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 600px) {
  .drive-folder-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .drive-folder-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.drive-folder-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ivory);
}

.drive-folder-item.bonus-folder {
  background: rgba(92, 17, 30, 0.35);
  border-color: rgba(212, 175, 55, 0.38);
  color: var(--gold-light);
}

/* Hoja de vista previa de Escrito Word (.DOCX) */
.word-doc-sheet {
  max-width: 780px;
  margin: 0 auto;
  border-radius: 14px;
  background: #fbfaf7;
  color: #1e293b;
  border: 1px solid rgba(212, 175, 55, 0.5);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

.word-toolbar {
  background: #1e3a8a;
  color: #ffffff;
  padding: 9px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
}

.word-paper-body {
  padding: 20px 24px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.86rem;
  line-height: 1.55;
}

.word-sumilla-box {
  margin-left: auto;
  max-width: 390px;
  background: #f1f5f9;
  border-left: 3px solid #1e3a8a;
  padding: 10px 14px;
  font-size: 0.78rem;
  margin-bottom: 16px;
}

.word-sumilla-box p {
  margin: 2px 0;
}

.word-editable-tag {
  background: #fef08a;
  color: #854d0e;
  padding: 1px 5px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
}

/* ==========================================================================
   5. LOS 4 BONOS EXCLUSIVOS INCLUIDOS GRATIS HOY
   ========================================================================== */
.bonuses-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.bonus-card {
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--midnight) 0%, #0b1222 55%, var(--obsidian) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.bonus-card-main {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 900px) {
  .bonus-card-main {
    padding: 30px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.bonus-info-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.bonus-num-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bonus-num-box span {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gold);
}

.bonus-num-box strong {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--gold-light);
  line-height: 1;
}

.bonus-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.tag-strike {
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(30, 41, 59, 0.9);
  color: var(--slate-300);
  font-size: 0.74rem;
  font-weight: 600;
  text-decoration: line-through;
}

.tag-free {
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.42);
  color: #6ee7b7;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tag-format {
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-light);
  font-size: 0.74rem;
  font-weight: 700;
}

.bonus-card h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px;
}

.bonus-card p {
  margin: 0;
  color: var(--slate-300);
  font-size: 0.93rem;
  max-width: 720px;
}

.bonus-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(7, 9, 14, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.bonus-toggle-btn:hover {
  background: rgba(212, 175, 55, 0.15);
}

.bonus-chevron {
  transition: transform 0.25s ease;
}

.bonus-chevron.is-rotated {
  transform: rotate(180deg);
}

.bonus-drawer {
  display: none;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(7, 9, 14, 0.72);
  padding: 22px 24px;
}

.bonus-drawer.is-open {
  display: block;
}

.bonus-items-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 640px) {
  .bonus-items-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .bonus-items-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .bonus-items-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.bonus-list-item {
  padding: 11px 13px;
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.16);
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.85rem;
  color: var(--ivory);
}

.bonus-list-item.highlight {
  background: rgba(92, 17, 30, 0.35);
  border-color: rgba(212, 175, 55, 0.28);
}

.bonus-list-num {
  color: var(--gold-light);
  font-weight: 800;
  flex-shrink: 0;
}

/* ==========================================================================
   6. CÓMO COMPRAR EN 2 MINUTOS + MÉTODOS DE PAGO EN PERÚ (YAPE / SOLES)
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 28px;
}

@media (min-width: 820px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--midnight) 0%, #090e1a 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.step-number {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.4);
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-card h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 800;
  color: #ffffff;
}

.step-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--slate-300);
}

/* Tarjeta destacada de Pagos Locales Perú */
.peru-payments-card {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(19, 30, 54, 0.95) 0%, rgba(11, 16, 28, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.36);
  padding: 24px 26px;
  box-shadow: var(--shadow-card);
}

.peru-payments-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.peru-payments-head h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #ffffff;
}

.payment-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pay-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 11px;
  background: rgba(7, 9, 14, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--ivory);
}

.pay-chip.yape-featured {
  background: linear-gradient(135deg, rgba(116, 34, 132, 0.55), rgba(88, 28, 135, 0.7));
  border-color: rgba(216, 180, 254, 0.65);
  color: #ffffff;
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.25);
}

.pay-chip.pagoefectivo-featured {
  background: rgba(234, 179, 8, 0.14);
  border-color: rgba(250, 204, 21, 0.45);
  color: #fef08a;
}

.peru-payments-note {
  margin: 16px 0 0;
  font-size: 0.83rem;
  color: var(--slate-300);
}

/* ==========================================================================
   7. CAJA MAESTRA DE OFERTA IRRESISTIBLE (#oferta) + GARANTÍA 7 DÍAS
   ========================================================================== */
.offer-master-card {
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #121d35 0%, #0b1120 55%, var(--obsidian) 100%);
  border: 2px solid rgba(212, 175, 55, 0.68);
  box-shadow: var(--shadow-card), var(--shadow-gold);
  overflow: hidden;
}

.offer-top-banner {
  background: linear-gradient(90deg, var(--burgundy-deep), var(--burgundy), var(--burgundy-deep));
  padding: 12px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.4);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.offer-inner {
  padding: 26px 22px;
}

@media (min-width: 640px) {
  .offer-inner {
    padding: 38px 42px;
  }
}

.value-stack-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
}

.value-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.93rem;
}

.value-row-left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.value-row-price {
  color: var(--slate-400);
  text-decoration: line-through;
  font-weight: 700;
  flex-shrink: 0;
}

.value-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  font-weight: 700;
  color: var(--slate-300);
}

.offer-price-center {
  padding: 30px 0 8px;
  text-align: center;
}

.giant-price-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin: 8px 0;
}

.giant-price {
  font-size: clamp(3.3rem, 8vw, 4.8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.giant-currency {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold-light);
}

.soles-equivalent-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.13);
  border: 1px solid rgba(52, 211, 153, 0.42);
  color: #6ee7b7;
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.guarantee-box {
  margin-top: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, var(--midnight), #13203a, var(--midnight));
  border: 1px solid rgba(212, 175, 55, 0.42);
  padding: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  box-shadow: var(--shadow-card);
}

@media (min-width: 640px) {
  .guarantee-box {
    flex-direction: row;
    text-align: left;
    padding: 30px 34px;
  }
}

.guarantee-seal {
  width: 94px;
  height: 94px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  flex-shrink: 0;
  box-shadow: var(--shadow-gold);
}

.guarantee-seal-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--obsidian);
  border: 1px solid rgba(212, 175, 55, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   8. TESTIMONIOS DE LA COMUNIDAD JURÍDICA PERUANA
   ========================================================================== */
.community-metrics-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto 32px;
}

@media (min-width: 640px) {
  .community-metrics-bar {
    grid-template-columns: repeat(3, 1fr);
  }
}

.comm-metric {
  border-radius: 15px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.comm-metric strong {
  display: block;
  font-size: 1.15rem;
  color: var(--gold-light);
  line-height: 1.1;
}

.comm-metric span {
  font-size: 0.78rem;
  color: var(--slate-300);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

@media (min-width: 840px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(212, 175, 55, 0.24);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
}

.stars-row {
  color: var(--gold-light);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.testimonial-quote {
  margin: 0;
  color: var(--slate-200);
  font-size: 0.93rem;
  font-style: italic;
  line-height: 1.65;
}

.testimonial-author {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.author-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(92, 17, 30, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--gold-light);
  flex-shrink: 0;
}

.verified-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ==========================================================================
   9. PREGUNTAS FRECUENTES (ACORDEÓN)
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(212, 175, 55, 0.25);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  padding: 19px 22px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 700;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.faq-trigger:hover {
  background: rgba(255, 255, 255, 0.03);
}

.faq-icon {
  color: var(--gold-light);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-icon.is-rotated {
  transform: rotate(180deg);
}

.faq-content {
  display: none;
  padding: 16px 22px 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  color: var(--slate-300);
  font-size: 0.92rem;
  line-height: 1.65;
}

.faq-content.is-open {
  display: block;
}

/* ==========================================================================
   10. FOOTER, BARRA MÓVIL FLOTANTE Y MODAL UNIVERSAL
   ========================================================================== */
.site-footer {
  background: var(--obsidian);
  border-top: 1px solid rgba(212, 175, 55, 0.22);
  padding: 44px 0 38px;
  text-align: center;
}

.footer-links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 24px;
  font-size: 0.8rem;
  color: var(--slate-400);
}

.footer-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--slate-400);
  font-size: 0.8rem;
  cursor: pointer;
}

.footer-link-btn:hover,
.footer-links a:hover {
  color: var(--gold-light);
}

.footer-disclaimer {
  max-width: 780px;
  margin: 22px auto 0;
  font-size: 0.72rem;
  color: var(--slate-500);
  line-height: 1.6;
}

/* Barra Fija Móvil */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  background: rgba(7, 9, 14, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(212, 175, 55, 0.48);
  padding: 10px 16px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.85);
  transform: translateY(105%);
  transition: transform 0.3s ease;
}

.mobile-sticky-bar.is-visible {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .mobile-sticky-bar {
    display: none;
  }
}

.mobile-sticky-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Modal Universal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--midnight) 0%, var(--obsidian) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.55);
  padding: 28px 24px;
  box-shadow: var(--shadow-gold), var(--shadow-card);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(7, 9, 14, 0.85);
  color: var(--slate-300);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: #ffffff;
  border-color: var(--gold);
}
