/*
 * ===============================================
 * SECTION HEADERS V2 - Boulangeri Premium
 * ===============================================
 * Títulos simplificados y elegantes
 * Sin dorado, solo bordó
 * Sin partículas, sin íconos flotantes
 * Elegancia minimalista
 * ===============================================
 */

/* ===================================================
   CONTENEDOR PRINCIPAL DEL HEADER
   =================================================== */

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-12);
  padding: var(--spacing-8) 0;
}

/* ===================================================
   TÍTULO PRINCIPAL
   =================================================== */

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0;
  line-height: var(--line-height-tight);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Palabra destacada con gradiente bordó */
.section-title-highlight {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-lighter) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* ===================================================
   UNDERLINE SIMPLE Y ELEGANTE
   =================================================== */

.section-header__underline {
  width: 0;
  height: 2px;
  background: var(--color-primary);
  margin: var(--spacing-4) auto;
  border-radius: 2px;
  animation: expandLine 0.8s ease-out 0.3s forwards;
}

@keyframes expandLine {
  to {
    width: 60px;
  }
}

@media (max-width: 768px) {
  @keyframes expandLine {
    to {
      width: 50px;
    }
  }
}

/* ===================================================
   SUBTÍTULO
   =================================================== */

.section-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.95rem, 2vw, 1.125rem);
  font-weight: 400;
  color: var(--color-gray-600);
  margin: var(--spacing-4) auto 0;
  max-width: 700px;
  line-height: var(--line-height-relaxed);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

/* ===================================================
   VARIANTE PARA SECCIÓN OSCURA
   =================================================== */

.section-header--dark .section-title {
  color: var(--color-white);
}

.section-header--dark .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

/* ===================================================
   EFECTOS DE SCROLL REVEAL
   =================================================== */

.scroll-reveal .section-title,
.scroll-reveal .section-header__underline,
.scroll-reveal .section-subtitle {
  animation-play-state: paused;
}

.scroll-reveal.revealed .section-title {
  animation-play-state: running;
}

.scroll-reveal.revealed .section-header__underline {
  animation-play-state: running;
}

.scroll-reveal.revealed .section-subtitle {
  animation-play-state: running;
}

/* ===================================================
   ACCESIBILIDAD
   =================================================== */

@media (prefers-reduced-motion: reduce) {
  .section-title,
  .section-header__underline,
  .section-subtitle {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  
  .section-header__underline {
    width: 60px;
  }
}

/* ===================================================
   UTILIDADES DE ALINEACIÓN
   =================================================== */

/* Para centrar el header (default) */
.section-header--center {
  text-align: center;
}

/* Para alinear a la izquierda */
.section-header--left {
  text-align: left;
}

.section-header--left .section-header__underline {
  margin-left: 0;
}

.section-header--left .section-subtitle {
  margin-left: 0;
}