:root {
    --color-primario: #7b4bff;      /* Lila profundo elegante */
    --color-secundario: #f3e7ff;    /* Lila muy claro */
    --color-acento: #f3a952;        /* Dorado suave */
    --color-texto: #1b1433;         /* Morado casi negro */
    --color-hero-degrade-1: #2b1348;
    --color-hero-degrade-2: #7b4bff;
}

/* ===== TIPOGRAFÍAS ===== */
body {
    font-family: 'Inter', sans-serif;
    color: #1E1B4B;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #1E1B4B; /* oscuro elegante */
}


/* ===== COLORES DE MARCA ===== */
:root {
    --lavanda: #A78BFA;
    --lavanda-claro: #F5F3FF;
    --dorado: #FACC15;
    --texto-oscuro: #1E1B4B;
    --gris-suave: #4B5563;
}

/* ===== SUBRAYADO TITULO SECCIONES ===== */
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    width: 60px;
    height: 6px;
    background: linear-gradient(90deg, var(--lavanda), var(--dorado));
    bottom: -12px;
    left: 0;
    border-radius: 4px;
}

html {
    scroll-behavior: smooth;


}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--color-texto);
}

/* Navbar */
.navbar-brand {
    letter-spacing: 0.07em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.brand-accent {
    color: var(--color-primario);
}

.nav-link {
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--color-primario) !important;
}

/* Hero */
.hero-section {
    min-height: 100vh;
    padding-top: 90px;
    padding-bottom: 60px;
    background: linear-gradient(135deg, var(--color-hero-degrade-1), var(--color-hero-degrade-2));
    color: #fff;
   

}

.hero-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-section .lead {
    color: #f5f1ff;
}

.text-light-50 {
    color: rgba(255, 255, 255, 0.6);
}

.text-light-70 {
    color: rgba(255, 255, 255, 0.8);
}

.book-card {
    background-color: rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 18px;
}

/* Secciones generales */
.section-title {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primario), var(--color-acento));
}

/* Fondo sutil para secciones claras */
section {
    scroll-margin-top: 80px;
}

/* Foto de perfil */
.profile-photo {
    max-width: 260px;
    object-fit: cover;
}

/* Pills de info */
.info-pill {
    padding: 10px 14px;
    border-radius: 999px;
    background-color: var(--color-secundario);
    font-size: 0.9rem;
}

/* Timeline agenda */
.timeline {
    list-style: none;
    padding-left: 0;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #ddd;
}

.timeline li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 24px;
}

.timeline-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primario);
    margin-bottom: 4px;
}

.timeline-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 10px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    font-size: 0.95rem;
}

.timeline li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--color-primario);
}

/* Tarjetas */
.card {
    border: none;
    border-radius: 14px;
}

.card-body {
    padding: 18px 18px 20px 18px;
}

/* Caja de contacto */
.contact-box {
    background-color: #faf7ff;
    border-radius: 14px;
    padding: 18px;
}

/* Botones */
.btn-primary {
    background-color: var(--color-primario);
    border-color: var(--color-primario);
}

.btn-primary:hover {
    filter: brightness(0.9);
    border-color: var(--color-primario);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
}

.btn-outline-light:hover {
    background-color: #fff;
    color: var(--color-hero-degrade-1);
}

/* Footer */
footer p {
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 767px) {
    .hero-section {
        text-align: center;
    }
}

.profile-photo {
    width: 100%;
    max-width: 380px;
    border-radius: 50%;
    box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.03);
    box-shadow: 0px 25px 50px rgba(0, 0, 0, 0.18);
}

.hero-title {
    background: linear-gradient(90deg, #F8F7FF, #E9D8FD, #FACC15);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title {
    text-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.hero-title {
    color: #F8F7FF; /* blanco suave */
}

/* =======================
   SECCIÓN DEVOCIONAL DIARIO
   ======================= */

.devocional-section {
    background: radial-gradient(circle at top, rgba(167, 139, 250, 0.25), transparent 55%),
                #f9fafb;
}

.devocional-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 28px 24px;
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.12);
    position: relative;
    overflow: hidden;
}

/* Detalle decorativo */
.devocional-card::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(244, 214, 94, 0.55), transparent 60%);
    opacity: 0.8;
}

.devocional-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6b21a8;
    font-weight: 600;
}

.devocional-text {
    font-size: 0.98rem;
    color: #4b5563;
}

.devocional-form {
    position: relative;
    z-index: 1;
}

.devocional-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #4b5563;
}

.devocional-input {
    border-radius: 999px;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    font-size: 0.95rem;
}

.devocional-input:focus {
    border-color: #a78bfa;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.25);
}

.devocional-btn {
    border-radius: 999px;
    padding-inline: 22px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 767px) {
    .devocional-card {
        padding: 22px 18px;
        border-radius: 18px;
    }
}

/* Fondo oscuro difuminado */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Caja del pop-up */
.popup-box {
  background: white;
  padding: 40px 40px;
  border-radius: 24px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  animation: popup-anim 0.4s ease;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* Animación */
@keyframes popup-anim {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Botón */
.popup-btn {
  margin-top: 25px;
  padding: 12px 26px;
  background: #7f56d9;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s;
}

.popup-btn:hover {
  background: #6b46c1;
}

/* Frase */
.popup-frase {
  font-style: italic;
  color: #7f56d9;
  margin-top: 15px;
  font-weight: 500;
}

/* Ocultar */
.d-none { display: none !important; }

.video-container {
  max-width: 420px;
  margin: 0 auto;
}

.video-portada {
  width: 100%;
  border-radius: 28px;
  display: block;
  object-fit: cover;
}

.video-wrapper {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.video-wrapper video {
  max-width: 100%;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

/* Botón para activar audio */
.btn-audio {
  position: absolute;
  bottom: 16px;
  right: 16px;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: #ffffffdd;
  color: #3b1a8f;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-audio:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

body {
  padding-bottom: 60px; /* Para que el contenido no quede debajo del footer */
}

/* Todas las fotos cuadradas con esquinas redondeadas */
.foto-cuadrada {
  max-width: 150px;
  width: 150%;          /* Se adapta al ancho del contenedor */
  max-width: 450px;     /* Tamaño máximo visual (puedes subir/bajar este valor) */
  border-radius: 18px; /* Esquinas redondeadas */
}

/* Popup Banner Mellky Villegas */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.popup-content {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  animation: fadeInPopup 0.6s ease;
}

.popup-close {
  background: transparent;
  border: none;
  font-size: 32px;
  font-weight: bold;
  position: absolute;
  top: 12px;
  right: 20px;
  cursor: pointer;
  color: #000;
}

@keyframes fadeInPopup {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
