/* ============================================
   HEADER OPTIMIZADO - Diseño compacto (sin estilos de menú)
   ============================================ */

/* Header más compacto */
header {
  position: relative;
  z-index: 1; /* el nav está por encima con z-index:100 */
  background: linear-gradient(180deg, rgba(15,15,15,0.95), rgba(15,15,15,0.90));
  text-align: center;
  padding: 1.5rem 1rem 1.2rem;
  border-bottom: 1px solid rgba(212,175,55,0.2);
  box-shadow: 0 3px 15px rgba(0,0,0,0.6);
}

header h1 {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  color: #d4af37;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 12px rgba(212,175,55,0.3);
  animation: aparecer 1.5s ease-out forwards;
  letter-spacing: 1.5px;
  line-height: 1.2;
}

header p {
  color: white;
  font-size: clamp(0.9rem, 2vw, 1rem);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.5;
  opacity: 0.9;
}

/* Título de reflexión más compacto */
.titulo-reflexion {
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  color: #d4af37;
  text-align: center;
  margin: 1.5rem 0 1rem;
  padding: 0 1rem;
}

/* ============================================
   MEJORAS VISUALES
   ============================================ */

/* Patrón de fondo sutil */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(212,175,55,0.01) 2px,
      rgba(212,175,55,0.01) 4px
    );
  pointer-events: none;
  z-index: -1;
}

/* Cita más compacta */
.cita,
blockquote {
  position: relative;
  border-left: 3px solid #d4af37;
  padding: 0.8rem 1.2rem;
  font-style: italic;
  color: #ccc;
  max-width: 750px;
  margin: 2rem auto;
  background: rgba(212,175,55,0.05);
  border-radius: 0 8px 8px 0;
  font-size: 1rem;
  line-height: 1.6;
}

/* Comillas decorativas */
.cita::before,
blockquote::before {
  content: '"';
  position: absolute;
  left: -15px;
  top: -5px;
  font-size: 3rem;
  color: rgba(212,175,55,0.2);
  font-family: Georgia, serif;
  line-height: 1;
}

/* Secciones más compactas */
section {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1.2rem;
  text-align: justify;
  animation: aparecer 1.2s ease forwards;
}

.intro {
  background: rgba(255,255,255,0.03);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(212,175,55,0.08);
}

/* Contenido de reflexiones */
.contenido-reflexion {
  max-width: 850px;
  margin: 1.5rem auto;
  padding: 1.5rem 1.2rem;
}

.texto-reflexion {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #ddd;
  text-align: justify;
  max-width: 850px;
  margin: 1.5rem auto;
  padding: 1.5rem 1.2rem;
  background: rgba(255,255,255,0.02);
  border-radius: 10px;
}

@keyframes brillo {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

/* Línea decorativa bajo el título */
header h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
  margin: 0.5rem auto 0;
}

/* Intro con icono */
.intro h2::before {
  content: '🧠';
  margin-right: 0.5rem;
  font-size: 1.2em;
}

/* ============================================
   EFECTO DE PARALLAX SUTIL
   ============================================ */
@media (min-width: 769px) {
  /* Evita repaint costoso en móviles; aplica solo desktop */
  header { background-attachment: fixed; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
  header { padding: 1.2rem 0.8rem 1rem; }

  section {
    margin: 1.5rem auto;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  header { padding: 1rem 0.8rem 0.8rem; }
  header h1 { font-size: 1.3rem; letter-spacing: 1px; }
  header p { font-size: 0.85rem; line-height: 1.4; }

  .cita,
  blockquote {
    padding: 0.6rem 1rem;
    margin: 1.5rem auto;
    font-size: 0.95rem;
  }
}