/* ══════════════════════════════════════════════════════════
   EL MINISTERIO — colores y estructura igual que index.html
   ══════════════════════════════════════════════════════════ */

/* ── HERO ────────────────────────────────────────────────── */
.em-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #0B1724; /* mismo color que .footer (--azul-noche) */
}
.em-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 140px 24px 88px;
}
.em-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(232,184,109,0.2);
  border: 1px solid rgba(232,184,109,0.45);
  color: #C4973A;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 20px;
  font-family: 'Outfit', sans-serif;
}
.em-hero__title {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 900;
  color: #FAFAF8 !important;
  line-height: 1.1;
  margin: 0 0 20px;
  letter-spacing: -0.03em;
  text-shadow: 0 6px 30px rgba(0,0,0,0.35);
}
.em-hero__title em { color: #C4973A; font-style: normal; display: block; }
.em-hero__divider {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, transparent, #D4AB52, transparent);
  margin: 0 auto 24px;
}
.em-hero__versiculo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-style: italic;
  color: rgba(255,255,255,0.85);
  line-height: 1.75;
  margin: 0 0 10px;
}
.em-hero__cita {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #C4973A;
  font-weight: 700;
}

/* ── SECCIONES (fondo claro como el inicio) ──────────────── */
.em-body { background: #F4F0E6; }

.em-seccion {
  padding: 80px 0 56px;
  background: #FAFAF8;
  border-bottom: 1px solid #E0DAD0;
}
.em-seccion:nth-child(even) { background: #F4F0E6; }
.em-seccion:last-child { border-bottom: none; }

.em-seccion__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.em-seccion__cabecera {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 48px;
}
.em-seccion__icono {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(212,171,82,0.15);
  border: 2px solid rgba(212,171,82,0.4);
  display: flex; align-items: center; justify-content: center;
  color: #C4973A;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.em-seccion__titulo {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #1E3550 !important;
  margin: 0;
  font-weight: 700;
}
.em-seccion__titulo span { color: #C4973A; }
.em-seccion__linea {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, #E0DAD0, transparent);
}

/* ── BLOQUE: card + texto ────────────────────────────────── */
.em-bloque {
  display: flex;
  align-items: center;
  gap: 52px;
}

/* ── CARD ────────────────────────────────────────────────── */
.em-foto-card {
  flex-shrink: 0;
  width: 540px;
  height: 460px;
  border: 2px solid #D4AB52;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  background: #F4F0E6;
  touch-action: pan-y;
  box-shadow:
    0 0 0 4px rgba(212,171,82,0.08),
    0 12px 48px rgba(30,53,80,0.18);
}

/* ── SLIDES (fade, no transform) ─────────────────────────── */
.em-foto-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.em-foto-slide.em-active {
  opacity: 1;
  pointer-events: auto;
}
.em-foto-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}
.em-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1E3550, #37506A);
  color: rgba(212,171,82,0.5);
  font-size: 5rem;
}

/* Controles */
.em-foto-prev,
.em-foto-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(11,23,36,0.7);
  border: 1px solid rgba(212,171,82,0.6);
  color: #D4AB52;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s;
  z-index: 10;
  backdrop-filter: blur(4px);
}
.em-foto-prev { left: 10px; }
.em-foto-next { right: 10px; }
.em-foto-prev:hover, .em-foto-next:hover {
  background: #D4AB52;
  color: #0B1724;
  border-color: #D4AB52;
}
.em-foto-prev:disabled, .em-foto-next:disabled {
  opacity: 0; pointer-events: none;
}

/* Dots */
.em-foto-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}
.em-foto-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: all 0.25s;
  border: 1px solid rgba(212,171,82,0.4);
}
.em-foto-dot.active {
  background: #D4AB52;
  width: 18px;
  border-radius: 4px;
  border-color: #D4AB52;
}

/* Número de slide */
.em-foto-counter {
  position: absolute;
  top: 12px;
  right: 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  background: rgba(11,23,36,0.6);
  padding: 3px 9px;
  border-radius: 20px;
  z-index: 10;
  backdrop-filter: blur(4px);
  letter-spacing: 0.05em;
}

/* ── PANEL DE TEXTO ──────────────────────────────────────── */
.em-texto-panel { flex: 1; min-width: 0; }

.em-persona-nombre {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 700;
  color: #1E3550 !important;
  margin: 0 0 6px;
  line-height: 1.15;
}
.em-persona-cargo {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #C4973A;
  margin-bottom: 18px;
}
.em-persona-separador {
  width: 40px; height: 2px;
  background: linear-gradient(90deg, #D4AB52, transparent);
  margin-bottom: 18px;
  border-radius: 2px;
}
.em-persona-desc {
  font-family: 'Outfit', sans-serif;
  font-size: 0.97rem;
  color: #555;
  line-height: 1.8;
  margin: 0;
  transition: opacity 0.25s;
}
.em-texto-fade { opacity: 0; }

/* ── CTA FINAL ───────────────────────────────────────────── */
.em-cta {
  padding: 90px 24px;
  background: linear-gradient(135deg, #1E3550 0%, #0B1724 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.em-cta::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(212,171,82,0.06);
  top: -150px; right: -100px;
  animation: em-flotar 8s ease-in-out infinite;
}
.em-cta h2 {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: #FAFAF8 !important;
  margin: 0 0 14px;
}
.em-cta p {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.75;
}
.em-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #C4973A;
  color: #0B1724;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  padding: 14px 32px;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(196,151,58,0.4);
}
.em-cta__btn:hover {
  background: #D4AB52;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212,171,82,0.45);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 820px) {
  .em-bloque { flex-direction: column; gap: 28px; align-items: flex-start; }
  .em-foto-card { width: 100%; height: 420px; }
  .em-foto-slide img {
    object-fit: cover;
    object-position: center 20%;
  }
  .em-foto-slide.em-autofit {
    position: static;
    display: none;
    opacity: 1;
  }
  .em-foto-slide.em-autofit.em-active {
    display: block;
  }
  .em-foto-slide.em-autofit img {
    width: 100%;
    height: auto;
    object-fit: initial;
  }
  .em-foto-prev,
  .em-foto-next { display: none !important; }
}
@media (max-width: 560px) {
  .em-seccion__linea { display: none; }
  .em-persona-nombre { font-size: 1.6rem; }
}
