/* ==========================================================================
   ESTILOS PERSONALIZADOS - INICIATIVA CIUDADANA Y MEMORIAL DE TUTELA
   Radicado N° 11001-2203-000-2026-03364-00
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Merriweather:ital,wght@0,300;0,400;0,700;1,300;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-navy: #091326;
  --secondary-navy: #0f1f3d;
  --accent-gold: #c68a2c;
  --accent-gold-light: #f59e0b;
  --alert-red: #b91c1c;
  --alert-red-light: #ef4444;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Merriweather', Georgia, Cambria, 'Times New Roman', Times, serif;
  --font-display: 'Cinzel', serif;
}

body {
  font-family: var(--font-sans);
  color: #1e293b;
  background-color: #f8fafc;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.font-serif-legal {
  font-family: var(--font-serif);
}

.font-display-title {
  font-family: var(--font-display);
}

/* Gradientes y Fondos */
.bg-hero-pattern {
  background: radial-gradient(circle at 10% 20%, rgba(198, 138, 44, 0.12) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(185, 28, 28, 0.12) 0%, transparent 40%),
              linear-gradient(180deg, #070e1c 0%, #0c1830 50%, #0f1f3d 100%);
}

.bg-subtle-mesh {
  background-color: #f8fafc;
  background-image: radial-gradient(#cbd5e1 0.75px, transparent 0.75px), radial-gradient(#cbd5e1 0.75px, #f8fafc 0.75px);
  background-size: 30px 30px;
  background-position: 0 0, 15px 15px;
}

.gold-gradient-text {
  background: linear-gradient(135deg, #fef08a 0%, #f59e0b 50%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tricolor-bar {
  height: 4px;
  background: linear-gradient(90deg, #fcd34d 0%, #fcd34d 50%, #1d4ed8 50%, #1d4ed8 75%, #dc2626 75%, #dc2626 100%);
}

/* Sombras y Tarjetas */
.legal-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.legal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(15, 31, 61, 0.08), 0 10px 10px -5px rgba(15, 31, 61, 0.04);
  border-color: rgba(198, 138, 44, 0.4);
}

.glowing-badge {
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.35);
}

.glowing-btn {
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.glowing-btn:hover {
  box-shadow: 0 6px 25px rgba(220, 38, 38, 0.6);
  transform: translateY(-2px);
}

/* Acordeón Jurídico */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
}

.accordion-item.active .accordion-content {
  max-height: 2500px;
  transition: max-height 0.45s ease-in-out;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-icon {
  transition: transform 0.3s ease;
}

/* Efecto de documento legal */
.legal-paper {
  background: #ffffff;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  position: relative;
}

.legal-paper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 3rem;
  bottom: 0;
  width: 1px;
  background: rgba(239, 68, 68, 0.15);
  display: block;
}

@media (max-width: 768px) {
  .legal-paper::before {
    display: none;
  }
}

/* Barra de progreso de lectura */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s;
}

/* Modal */
.modal-backdrop {
  backdrop-filter: blur(8px);
  background: rgba(9, 19, 38, 0.85);
}

/* Toast Notification */
#toast-notification {
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* Estilos de Impresión Judicial */
@media print {
  nav, #reading-progress, .no-print, header, footer, .btn-action, #share-section, .modal-backdrop, #toast-notification {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
    font-size: 11pt !important;
    line-height: 1.5 !important;
  }

  .print-only {
    display: block !important;
  }

  #memorial-reader, .legal-document-container {
    display: block !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
  }

  .accordion-content {
    max-height: none !important;
    display: block !important;
  }

  @page {
    margin: 2.5cm 2cm 2.5cm 2cm;
  }
}
