/* ================================================================
   IBB SISTEMA — Components CSS
   Componentes adicionales y overrides de página específica
   ================================================================ */

/* ── Tag / Badge ─────────────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .65rem;
  border-radius: 20px;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.tag-blue   { background: rgba(43,71,152,.2);  color: var(--ibb-blue-lt);  border: 1px solid rgba(43,71,152,.3); }
.tag-gold   { background: rgba(153,122,43,.2); color: var(--ibb-gold-lt);  border: 1px solid rgba(153,122,43,.3); }
.tag-green  { background: rgba(58,158,111,.2); color: #6de0b0;              border: 1px solid rgba(58,158,111,.3); }
.tag-red    { background: rgba(201,64,64,.2);  color: #e88888;              border: 1px solid rgba(201,64,64,.3); }
.tag-gray   { background: rgba(74,95,136,.15); color: var(--text3);         border: 1px solid var(--border); }

/* ── Pagination ──────────────────────────────────────────────── */
.pagination {
  display: flex; gap: .4rem; align-items: center;
  justify-content: center; margin-top: 2.5rem;
}
.page-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .82rem; font-weight: 600;
  color: var(--text2);
  transition: all var(--transition);
}
.page-btn:hover { background: var(--surface2); border-color: var(--border-blue); color: var(--text); }
.page-btn.active { background: var(--ibb-blue); border-color: var(--ibb-blue); color: #fff; }

/* ── Loading spinner ─────────────────────────────────────────── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--ibb-blue-lt);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Empty state ─────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text3);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 1rem; opacity: .5; }
.empty-state-title { font-size: 1rem; font-weight: 700; color: var(--text2); margin-bottom: .5rem; }
.empty-state-desc  { font-size: .88rem; }

/* ── Breadcrumb ──────────────────────────────────────────────── */
.breadcrumb {
  display: flex; gap: .5rem; align-items: center;
  font-size: .78rem; color: var(--text3);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--text2); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--ibb-blue-lt); }
.breadcrumb-sep { color: var(--text3); }
.breadcrumb-current { color: var(--text); }

/* ── Modal backdrop ──────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  padding: 1rem;
}
.modal {
  background: var(--surface);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius);
  width: 100%; max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title { font-weight: 700; font-size: 1rem; }
.modal-close {
  background: none; border: none; color: var(--text3);
  font-size: 1.2rem; transition: color var(--transition);
}
.modal-close:hover { color: var(--text); }
.modal-body   { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; gap: .75rem; justify-content: flex-end; }

/* ── Ministerio card (sitio público — fondo blanco) ─────────── */
.ministry-card {
  background: #fff;
  border: 1px solid rgba(43,71,152,.12);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  box-shadow: 0 2px 12px rgba(43,71,152,.08);
  display: flex; flex-direction: column; align-items: center;
}
.ministry-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(43,71,152,.14);
  border-color: rgba(43,71,152,.28);
}
.ministry-card-icon {
  width: 60px; height: 60px;
  background: #eef1f9;
  border: 1.5px solid rgba(43,71,152,.15);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 1.1rem;
  transition: background .22s;
}
.ministry-card:hover .ministry-card-icon {
  background: rgba(43,71,152,.1);
}
.ministry-card-name {
  font-size: 1rem; font-weight: 800;
  color: #0e1d4d;
  margin-bottom: .3rem;
  line-height: 1.25;
}
.ministry-card-sub {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: #997A2B;
  margin-bottom: .7rem;
}
.ministry-card-desc {
  font-size: .85rem; color: #6b7280;
  line-height: 1.6; flex: 1;
  margin-bottom: 1.1rem;
}
.ministry-card-link {
  font-size: .78rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: #2B4798;
  transition: color .18s;
  margin-top: auto;
}
.ministry-card-link:hover { color: #4060C8; }

/* ── Activity/Evento card ────────────────────────────────────── */
.event-card {
  display: flex; gap: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: all var(--transition);
}
.event-card:hover { border-color: var(--border-blue); }
.event-date-box {
  flex-shrink: 0;
  width: 56px;
  text-align: center;
  background: var(--ibb-blue);
  border-radius: var(--radius);
  padding: .5rem .25rem;
}
.event-date-day   { font-size: 1.4rem; font-weight: 900; line-height: 1; }
.event-date-month { font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.event-info       { flex: 1; }
.event-title      { font-weight: 700; margin-bottom: .35rem; }
.event-meta       { font-size: .82rem; color: var(--text2); display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── x-cloak (Alpine.js) ─────────────────────────────────────── */
[x-cloak] { display: none !important; }

/* ── Home: Nuevos componentes ─────────────────────────────────── */

/* Cultos schedule grid */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
  margin-bottom: 2rem;
}
.sched-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: .1rem; }

/* Prayer highlight bar */
.prayer-highlight {
  background: linear-gradient(135deg, #eef1f9 0%, #e8ecf8 100%);
  border: 1px solid rgba(43,71,152,.15);
  border-radius: 12px;
  padding: 1.75rem 2rem;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  margin-top: 2rem;
}
.prayer-highlight-icon { font-size: 2.2rem; flex-shrink: 0; }
.prayer-highlight-body { flex: 1; min-width: 200px; }
.prayer-highlight-label {
  font-size: .68rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ibb-gold); margin-bottom: .4rem;
}
.prayer-highlight-title { font-size: 1rem; font-weight: 800; color: var(--txt-dark); margin-bottom: .75rem; }
.prayer-days { display: flex; flex-wrap: wrap; gap: .5rem; }
.prayer-day {
  background: #fff; border: 1px solid rgba(43,71,152,.2);
  border-radius: 6px; padding: .3rem .85rem;
  font-size: .78rem; font-weight: 700; color: var(--ibb-blue);
}
.prayer-day.virtual { border-color: var(--ibb-gold); color: var(--ibb-gold); }
.prayer-day small { font-weight: 400; color: var(--txt-muted); }
.prayer-highlight-cta { flex-shrink: 0; }

/* Act + Oración grid */
.act-oracion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 768px) {
  .act-oracion-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* Event list */
.event-list { display: flex; flex-direction: column; gap: .9rem; }
.event-card {
  display: flex; gap: 1.25rem; align-items: flex-start;
  padding: 1.2rem; background: #fff;
  border: 1px solid rgba(43,71,152,.1); border-radius: 8px;
  box-shadow: 0 2px 10px rgba(43,71,152,.07);
  transition: box-shadow .2s, transform .2s;
}
.event-card:hover { box-shadow: 0 6px 20px rgba(43,71,152,.14); transform: translateY(-2px); }
.event-date-badge {
  flex-shrink: 0; width: 52px; text-align: center;
  background: var(--ibb-blue); border-radius: 6px;
  padding: .4rem .3rem; color: #fff;
}
.event-date-day  { font-size: 1.5rem; font-weight: 900; line-height: 1; }
.event-date-mon  { font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.event-title     { font-size: .92rem; font-weight: 700; color: var(--txt-dark); }
.event-meta      { font-size: .8rem; color: var(--txt-muted); margin-top: .2rem; }

/* Prayer box */
.prayer-box {
  background: var(--bg-light);
  border: 1px solid rgba(43,71,152,.1);
  border-radius: 12px;
  padding: 2.25rem;
}
.prayer-box-title { font-size: 1.4rem; font-weight: 800; color: var(--txt-dark); margin: .5rem 0 .75rem; }
.prayer-box-desc  { font-size: .9rem; color: var(--txt-muted); line-height: 1.7; margin-bottom: 1.5rem; }
.prayer-box .form-group { margin-bottom: 1rem; }

/* Card subtitle */
.card-sub {
  font-size: .75rem; font-weight: 700;
  color: var(--ibb-blue); letter-spacing: .04em;
  margin-bottom: .35rem;
}

/* Instituto section */
.instituto-section {
  background: linear-gradient(135deg, #0a1535 0%, #0E1D4D 55%, #1a2f6a 100%);
  padding: 5.5rem 0;
  position: relative; overflow: hidden;
}
.instituto-section::before {
  content: '';
  position: absolute; top: -40%; right: -8%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,.07) 0%, transparent 70%);
  border-radius: 50%;
}
.instituto-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem;
  align-items: center; position: relative;
}
@media (max-width: 900px) {
  .instituto-grid { grid-template-columns: 1fr; gap: 3rem; }
}
.instituto-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(201,168,76,.12); border: 1px solid rgba(201,168,76,.25);
  color: var(--ibb-gold-lt);
  font-size: .68rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  padding: .35rem .85rem; border-radius: 4px; margin-bottom: 1.25rem;
}
.instituto-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 900;
  color: #fff; line-height: 1.15; margin-bottom: 1rem;
}
.instituto-title span { color: var(--ibb-gold-lt); }
.instituto-desc { color: rgba(255,255,255,.65); line-height: 1.75; margin-bottom: 2rem; font-size: .97rem; }
.instituto-features { list-style: none; display: flex; flex-direction: column; gap: .75rem; margin-bottom: 2rem; }
.instituto-features li { display: flex; align-items: center; gap: .75rem; color: rgba(255,255,255,.8); font-size: .9rem; }
.feature-check {
  width: 22px; height: 22px; flex-shrink: 0;
  background: rgba(201,168,76,.15); border: 1px solid rgba(201,168,76,.3);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--ibb-gold-lt); font-size: .65rem; font-weight: 900;
}
.instituto-cta {
  display: inline-flex; align-items: center; gap: .6rem;
  background: linear-gradient(135deg, var(--ibb-gold-lt), var(--ibb-gold));
  color: #fff; padding: .85rem 1.75rem; border-radius: 8px;
  font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  transition: all .2s;
}
.instituto-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,168,76,.3); }
.instituto-cards { display: flex; flex-direction: column; gap: 1rem; }
.instituto-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; padding: 1.4rem 1.6rem;
  transition: background .2s, border-color .2s;
}
.instituto-card:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.18); }
.ic-icon  { font-size: 1.6rem; margin-bottom: .7rem; }
.ic-title { font-size: .9rem; font-weight: 700; color: #fff; margin-bottom: .35rem; }
.ic-desc  { font-size: .82rem; color: rgba(255,255,255,.55); line-height: 1.6; }

/* CTA section */
.cta-section {
  background: linear-gradient(135deg, var(--ibb-navy) 0%, #1a337a 100%);
  padding: 5rem 0; text-align: center; color: #fff;
}
.cta-section .section-eyebrow { color: var(--ibb-gold-lt); }
.cta-section h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; margin-bottom: 1rem; }
.cta-section p  { color: rgba(255,255,255,.65); max-width: 480px; margin: 0 auto 2rem; line-height: 1.7; }
