/* ============================================================
   IFSE - Instituto de Formación en Salud y Emergencias
   Estilos de páginas internas:
   - Aula Virtual
   - Política de Privacidad
   - Términos y Condiciones
   - Libro de Reclamaciones
   Complementa a css/styles.css.
============================================================ */

/* ============================================================
   ESTRUCTURA DE PÁGINA
============================================================ */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
}

.breadcrumb a {
  color: #64748b;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--accent-red);
}

.breadcrumb [aria-current="page"] {
  color: var(--navy);
}

.page-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ============================================================
   DOCUMENTOS LEGALES
============================================================ */
.legal-toc {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background-color: #ffffff;
  padding: 1.1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.legal-toc a {
  display: block;
  border-radius: 0.5rem;
  padding: 0.4rem 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  color: #64748b;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.legal-toc a:hover {
  background-color: var(--clinical);
  color: var(--navy);
}

.legal-meta {
  margin-top: 0.75rem;
  padding: 0 0.5rem;
  font-size: 0.6875rem;
  line-height: 1.5;
  color: #94a3b8;
}

.legal-prose {
  max-width: 52rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #475569;
}

.legal-prose > * + * {
  margin-top: 1rem;
}

.legal-prose h2 {
  margin-top: 2.5rem;
  scroll-margin-top: 7rem;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--navy);
}

.legal-prose h2:first-child {
  margin-top: 0;
}

.legal-prose h3 {
  margin-top: 1.75rem;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

.legal-prose ul,
.legal-prose ol {
  padding-left: 1.35rem;
}

.legal-prose ul {
  list-style: disc;
}

.legal-prose ol {
  list-style: decimal;
}

.legal-prose li + li {
  margin-top: 0.4rem;
}

.legal-prose li::marker {
  color: var(--accent);
}

.legal-prose a {
  font-weight: 600;
  color: var(--accent-red);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(230, 28, 14, 0.3);
}

.legal-prose a:hover {
  text-decoration-color: var(--accent-red);
}

.legal-prose strong {
  font-weight: 700;
  color: var(--navy);
}

.legal-highlight {
  border-left: 4px solid var(--accent);
  border-radius: 0 0.75rem 0.75rem 0;
  background-color: #fff7f1;
  padding: 1rem 1.1rem;
  font-size: 0.875rem;
}

.legal-highlight p + p {
  margin-top: 0.5rem;
}

.legal-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.75rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.legal-contact p {
  font-size: 0.875rem;
  color: #64748b;
}

.legal-contact strong {
  display: block;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 1rem;
  color: var(--navy);
}

/* ============================================================
   AULA VIRTUAL
============================================================ */
.campus-panel {
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background-color: #ffffff;
  padding: 1.5rem;
  box-shadow: 0 24px 60px -28px rgba(27, 30, 50, 0.3);
}

.campus-benefit {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  border: 1px solid #f1f5f9;
  border-radius: 1rem;
  background-color: #ffffff;
  padding: 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease,
    transform 0.25s ease;
}

.campus-benefit:hover {
  transform: translateY(-2px);
  border-color: rgba(242, 92, 5, 0.25);
  box-shadow: 0 18px 32px -26px rgba(27, 30, 50, 0.4);
}

.campus-benefit-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 0.75rem;
  background-color: rgba(242, 92, 5, 0.1);
  color: var(--accent);
}

.campus-benefit-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.campus-step {
  position: relative;
  border: 1px solid #f1f5f9;
  border-radius: 1rem;
  background-color: #ffffff;
  padding: 1.35rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.campus-step-number {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background-color: var(--navy);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
}

.campus-note {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  border: 1px solid rgba(242, 92, 5, 0.22);
  border-radius: 0.85rem;
  background-color: #fff7f1;
  padding: 0.8rem 0.9rem;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--navy);
}

.campus-note svg {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--accent);
}

/* ============================================================
   LIBRO DE RECLAMACIONES
============================================================ */
.claim-radio {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background-color: var(--clinical);
  padding: 0.8rem 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.claim-radio:hover {
  border-color: #cbd5e1;
}

.claim-radio:has(input:checked) {
  border-color: rgba(242, 92, 5, 0.5);
  background-color: #fff7f1;
  box-shadow: 0 0 0 3px rgba(242, 92, 5, 0.08);
}

.claim-radio input {
  margin-top: 0.15rem;
  accent-color: #f25c05;
}

.claim-info-card {
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background-color: #ffffff;
  padding: 1.4rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.claim-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.claim-step + .claim-step {
  margin-top: 0.9rem;
  border-top: 1px dashed var(--border);
  padding-top: 0.9rem;
}

.claim-step-number {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background-color: var(--navy);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
}

.claim-receipt {
  border: 1px solid #cbd5e1;
  border-radius: 0.9rem;
  background-color: #ffffff;
  padding: 1.75rem;
  color: #334155;
}

.claim-receipt-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.claim-receipt-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.claim-receipt-brand-icon {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.6rem;
  background-color: var(--navy);
  color: #ffffff;
}

.claim-receipt-brand-icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

.claim-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--navy);
}

.claim-receipt dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 1.25rem;
  margin-top: 1.25rem;
}

.claim-receipt dl > div {
  min-width: 0;
}

.claim-receipt dt {
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.claim-receipt dd {
  margin-top: 0.15rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #1e293b;
  overflow-wrap: anywhere;
}

.claim-receipt-block {
  margin-top: 1.25rem;
  border-top: 1px dashed #cbd5e1;
  padding-top: 1rem;
}

.claim-receipt-block h4 {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

.claim-receipt-block p {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  white-space: pre-line;
}

.claim-receipt-footer {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 0.9rem;
  font-size: 0.6875rem;
  line-height: 1.55;
  color: #64748b;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 639px) {
  .claim-receipt {
    padding: 1.15rem;
  }

  .claim-receipt dl {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ============================================================
   IMPRESIÓN DE LA CONSTANCIA
============================================================ */
@media print {
  @page {
    margin: 14mm;
  }

  body {
    background: #ffffff !important;
  }

  body * {
    visibility: hidden !important;
  }

  #claim-print-area,
  #claim-print-area * {
    visibility: visible !important;
  }

  #claim-print-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
  }

  .no-print {
    display: none !important;
  }
}
