/* ===============================
   ESTILO GENERAL
   =============================== */
body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: linear-gradient(160deg, #0b2343 0%, #16345f 100%);
  color: #1f2937;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: background 0.4s ease;
}

/* ===============================
   ENCABEZADO FIJO CON DEGRADADO
   =============================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(120deg, #0b2343, #16345f);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  background: linear-gradient(120deg, #091c36, #132d55);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

.header-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  width: 150px;
}

.back-btn {
  background: #caa04d;
  color: #0b2343;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.25s;
  font-size: 0.9rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

.back-btn:hover {
  background: #b48e3e;
  transform: translateY(-1px);
}

/* ===============================
   CONTENEDOR DOCUMENTO
   =============================== */
.doc-container {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  max-width: 950px;
  width: 90%;
  padding: 50px 55px;
  margin-top: 160px;
  margin-bottom: 60px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
}

/* ===============================
   TIPOGRAFÍA
   =============================== */
h1 {
  text-align: center;
  color: #0b2343;
  font-size: 1.9rem;
  margin-bottom: 20px;
  font-weight: 800;
  text-transform: uppercase;
}

h2 {
  color: #16345f;
  font-size: 1.1rem;
  margin-top: 28px;
  border-left: 4px solid #caa04d;
  padding-left: 10px;
  font-weight: 700;
}

p, li {
  font-size: 1rem;
  line-height: 1.7;
  color: #1f2937;
  text-align: justify;
}

ul {
  margin-top: 8px;
  margin-bottom: 16px;
}

a {
  color: #0b2343;
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
}

/* ===============================
   PIE DE PÁGINA
   =============================== */
.footer {
  text-align: center;
  margin-top: 40px;
  font-size: 0.9rem;
  color: #555;
}

/* ===============================
   RESPONSIVE
   =============================== */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 8px;
  }
  .header-logo {
    width: 120px;
  }
  .back-btn {
    font-size: 0.85rem;
    padding: 8px 12px;
  }
  .doc-container {
    padding: 30px 20px;
    margin-top: 140px;
  }
}

/* ===============================
   ELEMENTOS DECORATIVOS HEADER
   =============================== */
.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}

.header-angel {
  width: 70px;
  opacity: 0.9;
  filter: drop-shadow(0 0 6px rgba(202, 160, 77, 0.5));
  animation: floatAngel 6s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.header-angel:hover {
  transform: scale(1.05);
}

@keyframes floatAngel {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
