/* ========================================
   INVESTIR EN SCPI - Premium Dark/Gold Theme
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary: #0f1419;
  --bg-card: #1a1f2e;
  --bg-card-hover: #212738;
  --gold: #c9a84c;
  --gold-light: #e8d5a3;
  --gold-dark: #a88a3a;
  --text-primary: #e8e6e3;
  --text-muted: #9ca3af;
  --text-heading: #f5f5f5;
  --green: #10b981;
  --red: #ef4444;
  --border: rgba(201,168,76,0.15);
  --border-gold: rgba(201,168,76,0.3);
  --glow-gold: rgba(201,168,76,0.08);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--gold) var(--bg-primary); }
html::-webkit-scrollbar { width: 8px; }
html::-webkit-scrollbar-track { background: var(--bg-primary); }
html::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 4px; }
html::-webkit-scrollbar-thumb:hover { background: var(--gold); }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

/* --- Progress Bar --- */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  z-index: 10000;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(201,168,76,0.5);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(15,20,25,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  transition: background var(--transition);
}

.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.navbar-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.5px;
}
.navbar-logo span { color: var(--text-primary); font-weight: 400; }

.navbar-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.navbar-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}
.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.navbar-links a:hover { color: var(--gold-light); }
.navbar-links a:hover::after { width: 100%; }
.navbar-links a.active { color: var(--gold); }
.navbar-links a.active::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
  display: block;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 2rem 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201,168,76,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(201,168,76,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(26,31,46,0.8) 0%, transparent 50%),
    var(--bg-primary);
  z-index: 0;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 8s infinite;
}

@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  10% { opacity: 0.6; }
  90% { opacity: 0.1; }
  100% { opacity: 0; transform: translateY(-20vh) scale(1); }
}

.hero-content { position: relative; z-index: 2; max-width: 850px; }

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: rgba(201,168,76,0.1);
  border: 1px solid var(--border-gold);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.hero h1 .gold { color: var(--gold); }

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}
.hero-stat .number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
}
.hero-stat .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  display: block;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-primary);
  box-shadow: 0 4px 20px rgba(201,168,76,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(201,168,76,0.45);
  color: var(--bg-primary);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border-gold);
}
.btn-outline:hover {
  background: rgba(201,168,76,0.1);
  border-color: var(--gold);
  color: var(--gold-light);
}

.btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --- Sections --- */
section {
  padding: 5rem 2rem;
}

.section-dark { background: var(--bg-primary); }
.section-darker { background: #0a0e13; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.section-header .gold-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 0 auto 1rem;
  border-radius: 2px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* --- Content Layout with TOC --- */
.content-with-toc {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: start;
}

.toc {
  position: sticky;
  top: 90px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.toc h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.toc ul { list-style: none; }
.toc li { margin-bottom: 0.4rem; }
.toc a {
  color: var(--text-muted);
  font-size: 0.85rem;
  display: block;
  padding: 0.35rem 0.75rem;
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
  transition: all var(--transition);
}
.toc a:hover { color: var(--gold-light); background: rgba(201,168,76,0.05); }
.toc a.active {
  color: var(--gold);
  border-left-color: var(--gold);
  background: rgba(201,168,76,0.08);
  font-weight: 600;
}

.content-main { min-width: 0; }

.content-section {
  margin-bottom: 3.5rem;
  scroll-margin-top: 90px;
}

.content-section h2 {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  color: var(--text-heading);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.content-section h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--gold-light);
  margin: 2rem 0 1rem;
}

.content-section p {
  margin-bottom: 1.2rem;
  color: var(--text-primary);
  line-height: 1.8;
}

.content-section ul, .content-section ol {
  margin-bottom: 1.2rem;
  padding-left: 1.5rem;
}
.content-section li {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

/* --- Cards --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(201,168,76,0.1);
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 56px;
  height: 56px;
  background: rgba(201,168,76,0.1);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
}

.card p { color: var(--text-muted); font-size: 0.95rem; }

/* --- Icon Cards (Types SCPI) --- */
.icon-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* --- Advantages / Risks --- */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.pros-col, .cons-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}

.pros-col { border-top: 3px solid var(--green); }
.cons-col { border-top: 3px solid var(--red); }

.pros-col h3 { color: var(--green); }
.cons-col h3 { color: var(--red); }

.pros-col li::marker { color: var(--green); }
.cons-col li::marker { color: var(--red); }

/* --- Simulator --- */
.simulator-section {
  background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 50%, #0f1419 100%);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 3rem;
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
}

.simulator-section::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.simulator-section h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--text-heading);
  text-align: center;
  margin-bottom: 0.5rem;
}

.simulator-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.simulator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.simulator-inputs { display: flex; flex-direction: column; gap: 1.8rem; }

.input-group label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.input-group .value {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
  font-family: var(--font-heading);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--bg-primary);
  border-radius: 3px;
  outline: none;
  border: 1px solid var(--border);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  cursor: pointer;
  border: 3px solid var(--bg-primary);
  box-shadow: 0 2px 8px rgba(201,168,76,0.4);
  transition: transform 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  cursor: pointer;
  border: 3px solid var(--bg-primary);
  box-shadow: 0 2px 8px rgba(201,168,76,0.4);
}

.mode-selector {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.mode-btn {
  padding: 0.5rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition);
}

.mode-btn.active, .mode-btn:hover {
  background: rgba(201,168,76,0.1);
  border-color: var(--gold);
  color: var(--gold);
}

.simulator-results {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
}

.result-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition);
}

.result-card:hover { border-color: var(--border-gold); }

.result-card .result-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.result-card .result-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  transition: all 0.4s;
}

.result-card .result-value.green { color: var(--green); }

.result-card .result-detail {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* --- Timeline / Steps --- */
.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--border));
}

.timeline-step {
  position: relative;
  margin-bottom: 2.5rem;
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all var(--transition);
}

.timeline-step:hover {
  border-color: var(--border-gold);
  box-shadow: 0 4px 20px var(--glow-gold);
}

.timeline-step::before {
  content: attr(data-step);
  position: absolute;
  left: -3rem;
  top: 1.5rem;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 1;
}

.timeline-step h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.timeline-step p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* --- Tables --- */
.table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 12px;
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

thead th {
  background: rgba(201,168,76,0.08);
  color: var(--gold);
  font-weight: 600;
  text-align: left;
  padding: 1rem 1.2rem;
  border-bottom: 2px solid var(--border-gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

tbody td {
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}

tbody tr { transition: background var(--transition); }
tbody tr:hover { background: rgba(201,168,76,0.03); }
tbody tr:last-child td { border-bottom: none; }

.text-green { color: var(--green); font-weight: 600; }
.text-red { color: var(--red); font-weight: 600; }
.text-gold { color: var(--gold); font-weight: 600; }

/* --- FAQ Accordion --- */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: all var(--transition);
}

.faq-item:hover { border-color: var(--border-gold); }
.faq-item.active { border-color: var(--gold); }

.faq-question {
  width: 100%;
  background: var(--bg-card);
  border: none;
  padding: 1.2rem 1.5rem;
  color: var(--text-heading);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition);
  font-family: var(--font-body);
}

.faq-question:hover { background: var(--bg-card-hover); }

.faq-question .icon {
  font-size: 1.2rem;
  color: var(--gold);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item.active .faq-question .icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 5rem 2rem;
  background: linear-gradient(135deg, rgba(201,168,76,0.05) 0%, var(--bg-primary) 50%, rgba(201,168,76,0.05) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-section h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* --- Footer --- */
.footer {
  background: #0a0e13;
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.75rem; line-height: 1.6; }

.footer h4 {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer ul { list-style: none; }
.footer li { margin-bottom: 0.5rem; }
.footer li a { color: var(--text-muted); font-size: 0.9rem; }
.footer li a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* --- Contact Form --- */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}

.form-group select { cursor: pointer; }
.form-group textarea { resize: vertical; min-height: 120px; }

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 0.5rem; color: var(--border-gold); }

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- 404 Page --- */
.page-404 {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.page-404 .code {
  font-family: var(--font-heading);
  font-size: 8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  opacity: 0.3;
}

.page-404 h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text-heading);
  margin: 1rem 0;
}

.page-404 p { color: var(--text-muted); margin-bottom: 2rem; }

/* --- Page Header (sub-pages) --- */
.page-header {
  padding: 120px 2rem 60px;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-primary) 0%, #1a1f2e 100%);
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Highlight Box --- */
.highlight-box {
  background: rgba(201,168,76,0.06);
  border: 1px solid var(--border-gold);
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
}

.highlight-box p { margin: 0; color: var(--text-primary); }
.highlight-box strong { color: var(--gold); }

/* --- Comparison Table --- */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.comparison-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all var(--transition);
}

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

.comparison-card.featured {
  border-color: var(--gold);
  position: relative;
}

.comparison-card.featured::before {
  content: 'Populaire';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 1rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comparison-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.comparison-card ul {
  list-style: none;
  text-align: left;
  font-size: 0.9rem;
}

.comparison-card li {
  padding: 0.5rem 0;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.comparison-card li:last-child { border-bottom: none; }

/* --- Internal Links Block --- */
.related-links {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.related-links h3 {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.related-links ul { list-style: none; }
.related-links li { margin-bottom: 0.5rem; }
.related-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.related-links a:hover { color: var(--gold-light); }
.related-links a::before { content: '\2192'; color: var(--gold); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .content-with-toc {
    grid-template-columns: 1fr;
  }
  .toc {
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  .navbar-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(15,20,25,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform var(--transition);
  }
  .navbar-links.open { transform: translateY(0); }
  .hamburger { display: flex; }

  .hero { min-height: 80vh; padding: 100px 1.5rem 60px; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { gap: 1.5rem; }
  .hero-stat .number { font-size: 1.8rem; }

  .pros-cons { grid-template-columns: 1fr; }
  .simulator-grid { grid-template-columns: 1fr; }
  .simulator-section { padding: 2rem 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }

  section { padding: 3rem 1.5rem; }
  .contact-form { padding: 2rem 1.5rem; }
  .timeline { padding-left: 2.5rem; }
  .timeline-step::before { left: -2.5rem; }
}

@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .comparison-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .mode-selector { flex-direction: column; }
  .result-card .result-value { font-size: 1.5rem; }
}
