/* css/components.css */

/* --- Header Secundario --- */
.header-secondary {
  position: relative;
  padding: 60px 20px 20px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 120px;
  background-color: #FFC107;
}

.header-secondary .btn-outline-light,
.header-secondary .btn-back,
.header-secondary button,
.header-secondary a {
  position: absolute;
  top: 15px;
  left: 15px;
  transform: none;
  z-index: 10;
}

.header-secondary h1 {
  font-family: 'Great Vibes', cursive !important;
  color: var(--marfil-bg) !important;
  font-size: 2.8rem !important;
  margin: 0;
  font-weight: normal !important;
  padding: 0 85px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  word-wrap: break-word;
  line-height: 1.2;
}

.header-secondary h2 {
  font-family: 'Oswald', sans-serif !important;
  color: var(--marfil-bg) !important;
  margin: 0;
}

.header-secondary .btn-outline-light {
  color: var(--marfil-bg) !important;
  border-color: var(--marfil-bg) !important;
  background-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
}

.header-secondary .btn-outline-light i {
  color: var(--marfil-bg) !important;
}

/* --- Tarjetas (Cards) --- */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  background-color: var(--marfil-bg);
  margin-bottom: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-family: 'Oswald', sans-serif;
  font-weight: bold;
  color: #4a3424;
  font-size: 1.25rem;
}

.card-title i {
  margin-right: 10px;
  color: #4a3424;
}

/* Tarjetas específicas de Pasos / Videos */
.card-step {
  border: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  background-color: #fffdf6;
  margin-bottom: 20px;
}

.card-step .card-title {
  font-weight: bold;
  color: #5d473a;
}

.card-step .card-text {
  color: #5d473a;
}

.badge-step {
  width: 2.5rem;
  height: 2.5rem;
  line-height: 2.5rem;
  font-size: 1rem;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #d8b475;
  color: #fff;
  flex-shrink: 0;
  margin-right: 1rem;
}

/* Tarjetas específicas de Música */
.card-music {
  border: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  background-color: #ffffff;
}

.audio {
  width: 100%;
}

/* Tarjetas específicas de Oraciones */
.oracion {
  background-color: white;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.oracion h2 {
  color: #14532d;
  font-size: 1.2rem;
  margin-top: 0;
}

.oracion p {
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

/* --- Píldoras de tiempo (Badges) --- */
.badges-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}

.badge-hora {
  background-color: #6b4a35;
  color: #ffffff;
  padding: 8px 24px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 500;
  display: inline-block;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.badge-hora:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

.btn-custom {
  color: #4a3424;
  border: 2px solid #4a3424;
  background-color: transparent;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-custom:hover {
  background-color: #4a3424;
  color: var(--marfil-bg);
}

/* --- Botones del Menú Principal --- */
.menu-btn {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  color: white;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
  border: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.2s;
  opacity: 0;
  animation: fadeUp 0.5s forwards;
}

.menu-btn:hover {
  transform: scale(1.05);
}

.btn-misas      { background: linear-gradient(to right, #a044ff, #6a3093); }
.btn-mapa       { background: linear-gradient(to right, #1e3c72, #2a5298); }
.btn-pasos      { background: linear-gradient(to right, #ff5f6d, #ffc371); }
.btn-consejos   { background: linear-gradient(to right, #56ab2f, #a8e063); }
.btn-musica     { background: linear-gradient(to right, #614385, #516395); }
.btn-oraciones  { background: linear-gradient(to right, #4e70a6, #5ed1ff); }
.btn-catequesis { background: linear-gradient(to right, #189768, #075f39); }
.btn-descargas  { background: linear-gradient(to right, #bc7171, #bc1414); }
.btn-videos     { background: linear-gradient(to right, #3a7bd5, #00d2ff); }

/* --- Animaciones de Scroll --- */
.scroll-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Ratio Iframe --- */
.ratio iframe {
  border: none;
}
