/* ==========================================================================
   DICTAMEN ESTRATÉGICO & PROPUESTA DE FUSIÓN - ADUR & IRENE
   Estilo: Luxury Private Dossier & High-End Editorial (Dark Mode & Gold Leaf)
   ========================================================================== */

:root {
  --bg-deep: #060911;
  --bg-card: rgba(13, 20, 36, 0.82);
  --bg-card-hover: rgba(18, 28, 50, 0.92);
  
  --gold-primary: #d4af37;
  --gold-light: #f5e2a3;
  --gold-dim: rgba(212, 175, 55, 0.22);
  --gold-border: rgba(212, 175, 55, 0.35);
  --gold-metallic: linear-gradient(135deg, #f9e5a8 0%, #d4af37 50%, #997519 100%);
  --gold-glow: 0 0 25px rgba(212, 175, 55, 0.3);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-display: 'Cinzel', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.65;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-image: 
    radial-gradient(ellipse at 15% 15%, rgba(26, 43, 76, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 85%, rgba(212, 175, 55, 0.08) 0%, transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(10, 16, 29, 0.5) 0%, transparent 100%);
  background-attachment: fixed;
}

/* Stars / Fine Grain Overlay */
.stars-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 1;
}

/* Ambient Glow Orbs */
.ambient-glow {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
  z-index: 0;
}
.glow-top {
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.18) 0%, transparent 70%);
}
.glow-bottom {
  bottom: -120px;
  left: -80px;
  background: radial-gradient(circle, rgba(46, 91, 255, 0.16) 0%, transparent 70%);
}

/* Luxury Border & Corner Ornaments */
.luxury-border {
  position: relative;
  border: 1px solid var(--gold-border);
}

.corner-ornament {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--gold-primary);
  pointer-events: none;
}
.corner-ornament.top-left {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--gold-primary);
  border-left: 2px solid var(--gold-primary);
}
.corner-ornament.top-right {
  top: -1px;
  right: -1px;
  border-top: 2px solid var(--gold-primary);
  border-right: 2px solid var(--gold-primary);
}
.corner-ornament.bottom-left {
  bottom: -1px;
  left: -1px;
  border-bottom: 2px solid var(--gold-primary);
  border-left: 2px solid var(--gold-primary);
}
.corner-ornament.bottom-right {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--gold-primary);
  border-right: 2px solid var(--gold-primary);
}

/* ==========================================================================
   COVER / INTRO SCREEN
   ========================================================================== */
.intro-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 18px;
  position: relative;
  z-index: 10;
  text-align: center;
}

.intro-container {
  max-width: 490px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInLuxury 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.seal-container {
  width: 136px;
  height: 136px;
  margin-bottom: 24px;
  position: relative;
}

.seal-ring {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(212, 175, 55, 0.4);
  animation: rotateRing 30s linear infinite;
}

.intro-seal-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), var(--gold-glow);
  border: 2px solid var(--gold-primary);
}

.classification-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 2.2px;
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--gold-border);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--gold-primary);
  box-shadow: 0 0 8px var(--gold-primary);
}

.intro-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 1.2px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 10px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.6);
}

.intro-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 26px;
  letter-spacing: 0.6px;
}

.dossier-card {
  width: 100%;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: left;
  margin-bottom: 28px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
}

.dossier-row {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
}
.dossier-row:last-child {
  margin-bottom: 0;
}

.dossier-label {
  font-size: 0.66rem;
  letter-spacing: 1.6px;
  font-weight: 700;
  color: var(--gold-primary);
  font-family: var(--font-display);
  margin-bottom: 3px;
}

.dossier-value {
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 400;
  line-height: 1.45;
}

.dossier-value.highlight {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
}

.badge-legal {
  display: inline-block;
  align-self: flex-start;
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(212, 175, 55, 0.14);
  color: var(--gold-light);
  border: 1px solid var(--gold-border);
  padding: 3px 12px;
  border-radius: 6px;
}

.intro-footnote {
  margin-top: 20px;
  font-size: 0.78rem;
  color: var(--text-dim);
  font-style: italic;
  max-width: 380px;
}

/* ==========================================================================
   BUTTONS & ACTIONS
   ========================================================================== */
.btn-luxury {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 30px;
  background: var(--gold-metallic);
  color: #0b0f19;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.32);
}

.btn-luxury:active {
  transform: scale(0.97);
}

.gold-shine {
  position: relative;
  overflow: hidden;
}
.gold-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transform: rotate(30deg);
  animation: shineSweep 4.5s infinite;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.25);
}

.full-width {
  width: 100%;
}

/* ==========================================================================
   MAIN CONTENT DOSSIER
   ========================================================================== */
.main-content {
  max-width: 620px;
  margin: 0 auto;
  padding-bottom: 80px;
  position: relative;
  z-index: 10;
  animation: fadeInLuxury 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hidden {
  display: none !important;
}

/* Top Progress Bar & Header */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 9, 17, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gold-border);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.read-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--gold-metallic);
  transition: width 0.1s ease-out;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-primary);
}

.nav-case-id {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 1.2px;
  color: var(--gold-light);
  font-weight: 600;
}

.badge-tag {
  font-size: 0.65rem;
  letter-spacing: 1.2px;
  font-weight: 700;
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-light);
  border: 1px solid var(--gold-border);
  padding: 3px 10px;
  border-radius: 4px;
}

.dossier-body {
  padding: 24px 16px;
}

/* Legal Header Section */
.legal-header-section {
  margin-bottom: 26px;
}

.stamp-box {
  display: inline-flex;
  flex-direction: column;
  border: 1px solid var(--gold-primary);
  background: rgba(212, 175, 55, 0.06);
  padding: 8px 16px;
  border-radius: 4px;
  margin-bottom: 18px;
  transform: rotate(-1deg);
}

.stamp-text {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--gold-primary);
}

.stamp-sub {
  font-size: 0.62rem;
  letter-spacing: 1.2px;
  color: var(--text-muted);
}

.doc-meta {
  background: rgba(255, 255, 255, 0.025);
  border-left: 3px solid var(--gold-primary);
  padding: 14px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 20px;
}

.meta-line {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 5px;
  line-height: 1.45;
}
.meta-line:last-child {
  margin-bottom: 0;
}
.meta-line strong {
  color: var(--gold-light);
  font-weight: 600;
}

.luxury-gold-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-border), transparent);
  margin: 22px 0;
}

/* Badges Carousel */
.badges-carousel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 30px;
}

.pill-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 16px 10px;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.pill-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-border);
}

.pill-icon {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.pill-title {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.pill-desc {
  font-size: 0.65rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Chapter Cards */
.chapter-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  margin-bottom: 28px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.4);
}

.chapter-header {
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
}

.chapter-num {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: var(--gold-primary);
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.chapter-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: #fff;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.section-intro {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-style: italic;
  line-height: 1.55;
}

/* Legal Articles */
.legal-article {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 14px;
}
.legal-article:last-child {
  margin-bottom: 0;
}

.article-num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--gold-light);
  font-weight: 700;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.article-body {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.6;
}

.article-body strong {
  color: var(--gold-light);
  font-weight: 600;
}

/* SWOT Grid */
.swot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.swot-card {
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
}

.swot-tag {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  margin-bottom: 6px;
}

.swot-d { border-left: 3px solid #f87171; }
.swot-d .swot-tag { color: #f87171; }

.swot-a { border-left: 3px solid #fbbf24; }
.swot-a .swot-tag { color: #fbbf24; }

.swot-f { border-left: 3px solid #34d399; }
.swot-f .swot-tag { color: #34d399; }

.swot-o { border-left: 3px solid #60a5fa; }
.swot-o .swot-tag { color: #60a5fa; }

.swot-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Strategic Vision Section */
.vision-image-container {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid var(--gold-border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.vision-img {
  width: 100%;
  height: 225px;
  object-fit: cover;
  display: block;
}

.vision-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 9, 17, 0.95) 100%);
  padding: 16px 14px 12px;
}

.vision-badge {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 1.2px;
  color: var(--gold-light);
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--gold-border);
  padding: 4px 10px;
  border-radius: 4px;
}

.vision-features-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vision-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.vision-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.vision-text h4 {
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.vision-text p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.highlight-box {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--gold-border);
}

.highlight-box .vision-text h4 {
  color: var(--gold-light);
}

/* ==========================================================================
   CHAPTER IV: ACCOUNTING LEDGER & FINANCIAL STATEMENTS (PGC)
   ========================================================================== */
.accounting-chapter {
  border-color: var(--gold-border);
}

.ledger-box {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  margin-bottom: 24px;
}

.ledger-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}

.ledger-title-bar span:first-child {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 1.2px;
  color: var(--gold-light);
  font-weight: 700;
}

.ledger-status {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  padding: 2px 8px;
  border-radius: 4px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.accounting-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin-bottom: 12px;
  min-width: 320px;
}

.accounting-table th {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 1.2px;
  color: var(--gold-light);
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid var(--gold-border);
}

.accounting-table td {
  padding: 10px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  line-height: 1.4;
}

.code-cell {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold-primary);
  width: 65px;
}

.amount-cell {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #fff;
  width: 70px;
}

.text-right {
  text-align: right;
}

.totals-row td {
  border-top: 2px solid var(--gold-border);
  border-bottom: 2px solid var(--gold-border);
  padding-top: 10px;
  padding-bottom: 10px;
}

.highlight-total {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold-light);
  font-size: 0.88rem;
}

.ledger-footer-note {
  font-size: 0.74rem;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 8px;
  text-align: center;
}

/* Notes to Financial Statements */
.notes-section {
  margin-bottom: 22px;
}

.notes-header {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 1.4px;
  color: var(--gold-light);
  margin-bottom: 14px;
}

.audit-note {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--gold-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px;
  margin-bottom: 12px;
}

.note-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 1px;
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 6px;
}

.audit-note p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.audit-note p strong {
  color: #fff;
}

/* Audit Opinion Box */
.audit-opinion-box {
  display: flex;
  gap: 14px;
  align-items: center;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.audit-seal-mini {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold-primary);
  border: 1px solid var(--gold-primary);
  padding: 8px 10px;
  border-radius: 6px;
  text-align: center;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.3);
}

.audit-opinion-text h4 {
  font-family: var(--font-display);
  font-size: 0.76rem;
  letter-spacing: 1.2px;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.audit-opinion-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  font-style: italic;
}

.audit-opinion-text strong {
  color: #fff;
}

/* ==========================================================================
   CONTRACT & SIGNATURE PAD
   ========================================================================== */
.contract-chapter {
  border-color: var(--gold-primary);
}

.contract-text {
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.65;
  margin-bottom: 24px;
}

.signature-section {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 24px;
}

.signature-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.signature-title-bar span {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 1.2px;
  color: var(--gold-light);
  font-weight: 700;
}

.btn-clear {
  background: none;
  border: none;
  font-size: 0.74rem;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: underline;
  padding: 2px 4px;
}

.btn-clear:hover {
  color: var(--gold-light);
}

.canvas-wrapper {
  position: relative;
  background: #080d1a;
  border: 1px dashed var(--gold-border);
  border-radius: var(--radius-sm);
  width: 100%;
  height: 140px;
  touch-action: none;
}

#signature-pad {
  width: 100%;
  height: 100%;
  cursor: crosshair;
  display: block;
}

.canvas-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.28);
  font-size: 0.85rem;
  pointer-events: none;
  font-style: italic;
  transition: opacity 0.2s ease;
}

.signature-date {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 10px;
  text-align: right;
}

.contract-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================================
   SUCCESS RESOLUTION SCREEN
   ========================================================================== */
.success-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(6, 9, 17, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: fadeInModal 0.35s ease-out;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.success-card {
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  margin: auto;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), var(--gold-glow);
  animation: scaleInModal 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleInModal {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.success-seal {
  width: 105px;
  height: 105px;
  margin: 0 auto 20px;
}

.success-seal-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-primary);
}

.success-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: #fff;
  letter-spacing: 1.2px;
  margin-bottom: 6px;
}

.success-badge {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 1.6px;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold-border);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.success-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 26px;
}

.success-desc strong {
  color: #fff;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 20px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease;
}

.btn-whatsapp:active {
  transform: scale(0.97);
}

.success-note {
  font-size: 0.74rem;
  color: var(--text-dim);
  margin-top: 14px;
  font-style: italic;
}

/* ==========================================================================
   APPEAL / REVISIÓN MODAL
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInLuxury 0.25s ease-out;
}

.modal-card {
  max-width: 430px;
  width: 100%;
  background: #0c1220;
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.modal-icon {
  font-size: 1.4rem;
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 1px;
  color: var(--gold-light);
}

.modal-body {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 22px;
}

.modal-quote {
  background: rgba(255, 255, 255, 0.035);
  border-left: 3px solid var(--gold-primary);
  padding: 14px 16px;
  border-radius: 0 6px 6px 0;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: #fff;
  margin-top: 12px;
  line-height: 1.6;
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes fadeInLuxury {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes shineSweep {
  0% { transform: translate(-100%, -100%) rotate(30deg); }
  20%, 100% { transform: translate(100%, 100%) rotate(30deg); }
}

/* Responsive adjust */
@media (min-width: 480px) {
  .swot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
