/* ===== Guía page background (matches site identity) ===== */
body {
  background-color: var(--bg);
  background-image: url('/public/hero-citadel.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5,13,24,0.94) 0%, rgba(5,13,24,0.90) 40%, rgba(8,20,32,0.92) 70%, rgba(5,13,24,0.96) 100%);
}

/* ===== Guía page content ===== */
.guia-page-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 8rem 1.5rem 4rem;
  position: relative;
  z-index: 1;
}
.guia-page-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.guia-page-title {
  font-family: 'Cinzel Decorative','Cinzel',Georgia,serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  background: linear-gradient(180deg, #fff 0%, #d4f0ff 20%, #8dd6f5 50%, #4bbde8 80%, #1a9fd4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 24px rgba(77,189,232,0.2);
  letter-spacing: 0.02em;
}
.guia-page-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Cinzel',Georgia,serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ice-300);
  text-decoration: none;
  padding: 0.5rem 1.25rem;
  border: 1px solid #4bbde844;
  border-radius: 9999px;
  background: rgba(77,189,232,0.06);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  margin-top: 1.5rem;
}
.guia-page-back:hover {
  border-color: #4bbde888;
  box-shadow: 0 0 14px rgba(77,189,232,0.2);
  transform: translateY(-2px);
}
.guia-page-body {
  background: linear-gradient(180deg, rgba(8,18,30,0.95) 0%, rgba(4,10,20,0.98) 100%);
  border: 1px solid #4bbde844;
  border-radius: 14px;
  padding: 2rem 2.25rem 2.5rem;
  box-shadow: 0 0 20px rgba(77,189,232,0.1), 0 12px 40px rgba(0,0,0,0.5);
}

/* ===== Guía content (shared with modal styles) ===== */
.guia-intro {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(77,189,232,0.12);
}
.guia-intro p {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.88rem; line-height: 1.8; color: #b8d4e8;
}
.guia-step-title {
  font-family: 'Cinzel Decorative','Cinzel',Georgia,serif;
  font-weight: 700; font-size: 0.95rem;
  color: var(--ice-100);
  letter-spacing: 0.03em;
  margin: 1.5rem 0 0.75rem;
  text-shadow: 0 0 8px rgba(77,189,232,0.15);
}
.guia-step {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.85rem; line-height: 1.8; color: #a8c4d8;
  margin-bottom: 0.5rem;
}
.guia-section {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.85rem; line-height: 1.8; color: #a8c4d8;
  margin-bottom: 0.5rem;
}
.guia-section > p { margin: 0.3rem 0; }
.guia-section > p:first-of-type { margin-top: 0.5rem; }
.guia-substep {
  margin: 0.35rem 0;
  padding-left: 1rem;
  border-left: 2px solid rgba(77,189,232,0.2);
}
.guia-note {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: #6a8a98;
  font-style: italic;
}
.guia-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0;
}
.guia-list li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  font-size: 0.83rem;
  line-height: 1.7;
  color: #a8c4d8;
}
.guia-list li::before {
  content: '\2744';
  position: absolute; left: 0; top: 0.55rem;
  font-size: 0.7rem; color: var(--ice-400);
}
.guia-link {
  color: var(--ice-300);
  text-decoration: underline;
  transition: color 0.3s ease;
}
.guia-link:hover {
  color: var(--frost);
  text-shadow: 0 0 8px rgba(77,189,232,0.4);
}
.guia-table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
  border-radius: 10px;
  border: 1px solid rgba(77,189,232,0.18);
}
.guia-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.78rem;
  line-height: 1.6;
}
.guia-table thead {
  background: linear-gradient(180deg, rgba(77,189,232,0.15) 0%, rgba(4,12,22,0.5) 100%);
}
.guia-table th,
.guia-table td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid rgba(77,189,232,0.1);
}
.guia-table thead th {
  color: var(--ice-100);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
}
.guia-table tbody th {
  color: var(--frost);
  font-weight: 700;
  white-space: nowrap;
}
.guia-table tbody td { color: #a8c4d8; }
.guia-table tbody tr:nth-child(even) { background: rgba(8,22,36,0.3); }
.guia-table tbody tr:hover { background: rgba(77,189,232,0.06); }
.guia-footer {
  font-family: 'Cinzel Decorative','Cinzel',Georgia,serif;
  font-size: 0.9rem;
  color: var(--frost);
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(77,189,232,0.12);
  text-shadow: 0 0 10px rgba(77,189,232,0.2);
}
.guia-code-block {
  background: linear-gradient(180deg, rgba(4,10,20,0.95) 0%, rgba(2,6,14,0.98) 100%);
  border: 1px solid rgba(77,189,232,0.25);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 0.75rem 0 1rem;
  overflow-x: auto;
  box-shadow: inset 0 0 16px rgba(77,189,232,0.04), 0 4px 12px rgba(0,0,0,0.3);
}
.guia-code-block code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #8dd6f5;
  white-space: pre;
  display: block;
}
.guia-section code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.82rem;
  color: #8dd6f5;
  background: rgba(77,189,232,0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  border: 1px solid rgba(77,189,232,0.15);
}
.guia-section .guia-code-block code {
  background: none;
  border: none;
  padding: 0;
}

/* ===== FAQ Accordion ===== */
.guia-faq {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}
.guia-faq-item {
  border: 1px solid rgba(77,189,232,0.18);
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(8,22,36,0.5) 0%, rgba(4,12,22,0.5) 100%);
  transition: border-color 0.3s ease;
}
.guia-faq-item.open { border-color: rgba(77,189,232,0.4); }
.guia-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.85rem 1rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.82rem;
  color: var(--ice-100);
  letter-spacing: 0.03em;
  line-height: 1.4;
  text-align: left;
  transition: color 0.3s ease;
}
.guia-faq-question:hover { color: var(--frost); }
.guia-faq-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--ice-400);
  margin-left: 0.75rem;
  transition: transform 0.3s ease;
  width: 1.2em;
  text-align: center;
}
.guia-faq-item.open .guia-faq-icon { transform: rotate(45deg); }
.guia-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.guia-faq-item.open .guia-faq-answer { max-height: 500px; }
.guia-faq-answer p {
  padding: 0 1rem 0.85rem;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.8rem;
  line-height: 1.75;
  color: #a8c4d8;
}

/* ===== Related Guides ===== */
.guia-related {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(77,189,232,0.12);
}
.guia-related-title {
  font-family: 'Cinzel Decorative','Cinzel',Georgia,serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ice-100);
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  text-shadow: 0 0 8px rgba(77,189,232,0.15);
}
.guia-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
.guia-related-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(77,189,232,0.15);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(8,22,36,0.4) 0%, rgba(4,12,22,0.4) 100%);
  text-decoration: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.guia-related-card:hover {
  border-color: rgba(77,189,232,0.4);
  box-shadow: 0 0 12px rgba(77,189,232,0.12);
  transform: translateY(-2px);
}
.guia-related-card.current {
  border-color: rgba(77,189,232,0.3);
  background: linear-gradient(180deg, rgba(77,189,232,0.08) 0%, rgba(4,12,22,0.4) 100%);
  cursor: default;
  pointer-events: none;
}
.guia-related-icon { font-size: 1.2rem; flex-shrink: 0; }
.guia-related-name {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.78rem;
  color: #a8c4d8;
  line-height: 1.4;
}
.guia-related-card.current .guia-related-name { color: var(--ice-100); }

/* ===== DXVK Profile Download Cards ===== */
.dxvk-profiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.dxvk-profile-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(77,189,232,0.2);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(8,22,36,0.6) 0%, rgba(4,12,22,0.7) 100%);
  padding: 1.5rem 1.25rem 1.25rem;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
  position: relative;
  overflow: hidden;
}
.dxvk-profile-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(77,189,232,0.5), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.dxvk-profile-card:hover {
  border-color: rgba(77,189,232,0.45);
  box-shadow: 0 0 24px rgba(77,189,232,0.12), 0 8px 32px rgba(0,0,0,0.4);
  transform: translateY(-4px);
}
.dxvk-profile-card:hover::before { opacity: 1; }
.dxvk-profile-badge {
  display: inline-block;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--frost);
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(77,189,232,0.3);
  border-radius: 9999px;
  background: rgba(77,189,232,0.08);
  margin-bottom: 0.75rem;
  align-self: flex-start;
}
.dxvk-profile-badge.gold {
  color: var(--gold-bright);
  border-color: rgba(212,168,67,0.45);
  background: linear-gradient(180deg, rgba(212,168,67,0.15) 0%, rgba(240,200,80,0.06) 100%);
  text-shadow: 0 0 10px rgba(240,200,80,0.3);
  box-shadow: 0 0 12px rgba(212,168,67,0.15);
}
.dxvk-profile-name {
  font-family: 'Cinzel Decorative','Cinzel',Georgia,serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ice-100);
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
  text-shadow: 0 0 8px rgba(77,189,232,0.15);
}
.dxvk-profile-version {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.72rem;
  color: var(--ice-400);
  margin-bottom: 0.75rem;
}
.dxvk-profile-desc {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.78rem;
  line-height: 1.65;
  color: #8aa4b8;
  margin-bottom: 0.75rem;
}
.dxvk-profile-hw {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  border-top: 1px solid rgba(77,189,232,0.12);
  padding-top: 0.6rem;
}
.dxvk-profile-hw li {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.73rem;
  line-height: 1.6;
  color: #7a94a8;
  padding: 0.15rem 0 0.15rem 0.85rem;
  position: relative;
}
.dxvk-profile-hw li::before {
  content: '\2744';
  position: absolute;
  left: 0;
  top: 0.2rem;
  font-size: 0.6rem;
  color: var(--ice-400);
}
.dxvk-profile-hw li strong {
  color: #a8c4d8;
  font-weight: 700;
}
.dxvk-download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.7rem 1rem;
  font-family: 'Cinzel Decorative','Cinzel',Georgia,serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(77,189,232,0.4);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(77,189,232,0.15) 0%, rgba(77,189,232,0.05) 100%);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
  margin-top: auto;
  cursor: pointer;
}
.dxvk-download-btn:hover {
  background: linear-gradient(180deg, rgba(77,189,232,0.28) 0%, rgba(77,189,232,0.12) 100%);
  border-color: rgba(77,189,232,0.7);
  box-shadow: 0 0 16px rgba(77,189,232,0.25);
  transform: translateY(-2px);
}
.dxvk-download-btn:active {
  transform: translateY(0);
  box-shadow: 0 0 8px rgba(77,189,232,0.15);
}
.dxvk-download-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.dxvk-fallback-card {
  border: 1px dashed rgba(122,148,168,0.3);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(8,22,36,0.4) 0%, rgba(4,12,22,0.5) 100%);
  padding: 1.5rem 1.25rem;
  margin-top: 1.25rem;
}
.dxvk-fallback-card h3 {
  font-family: 'Cinzel Decorative','Cinzel',Georgia,serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ice-200);
  margin-bottom: 0.5rem;
}
.dxvk-fallback-card p {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.78rem;
  line-height: 1.7;
  color: #7a94a8;
}

@media (max-width: 640px) {
  .guia-page-wrap { padding: 6rem 1rem 3rem; }
  .guia-page-body { padding: 1.25rem 1rem 1.75rem; }
  .guia-related-grid { grid-template-columns: 1fr; }
  .dxvk-profiles { grid-template-columns: 1fr; }
}
