/* --- ESTILO PROFESIONAL PARA EL PIE DE PÁGINA --- */

/* Fondo oscuro y texto claro */
.site-footer {
  background-color: #111111 !important;
  color: #ffffff !important;
  padding: 20px 0;
  font-size: 15px;
  text-align: center;
}

/* Enlaces del pie */
.site-footer a {
  color: #d4af37 !important; /* Dorado elegante */
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Efecto al pasar el mouse */
.site-footer a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

/* Línea superior suave */
.site-footer {
  border-top: 2px solid #d4af37;
}

/* Copyright centrado */
.ast-footer-copyright {
  color: #cccccc !important;
  margin-top: 10px;
}

/* Asegura que los menús del pie estén centrados */
.footer-adv-widget,
.footer-adv-widget-area {
  text-align: center !important;
}


/* --- ESTILO PROFESIONAL PARA EL ENCABEZADO (LOGO Y MENÚ SUPERIOR) --- */

/* Fondo blanco y sombra ligera */
.site-header {
  background-color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

/* Logo centrado y elegante */
.site-branding img {
  max-height: 80px !important;
  display: block;
  margin: 0 auto;
}

/* Enlaces del menú principal */
.main-header-menu a {
  color: #111111 !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

/* Efecto al pasar el mouse (dorado elegante) */
.main-header-menu a:hover {
  color: #d4af37 !important;
}

/* Mantiene alineación del logo y menú */
.main-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Ajustes móviles */
@media (max-width: 768px) {
  .main-header-menu a {
    font-size: 14px;
  }
  .site-branding img {
    max-height: 65px !important;
  }
}


/* --- EFECTO PREMIUM DORADO EN LOS ENLACES DEL MENÚ SUPERIOR --- */

.main-header-menu a {
  position: relative;
  color: #111111 !important;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

/* Línea dorada animada */
.main-header-menu a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 50%;
  background-color: #d4af37;
  transition: all 0.3s ease-in-out;
  transform: translateX(-50%);
}

/* Animación al pasar el mouse */
.main-header-menu a:hover::after {
  width: 100%;
}

/* Cambio de color al pasar el mouse */
.main-header-menu a:hover {
  color: #d4af37 !important;
}


/* --- ESTILO PREMIUM PARA BOTONES (MElera.Blog) --- */

button,
input[type="submit"],
.wp-block-button__link,
.ast-button {
  background-color: #d4af37 !important; /* Dorado elegante */
  color: #111111 !important; /* Texto oscuro */
  border: none !important;
  border-radius: 6px;
  padding: 10px 24px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* Efecto al pasar el mouse */
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover,
.ast-button:hover {
  background-color: #111111 !important; /* Negro elegante */
  color: #d4af37 !important; /* Dorado al pasar el mouse */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transform: scale(1.05);
}

/* Ajuste del texto interno */
button span,
.wp-block-button__link span {
  font-size: 15px;
}


/* --- ESTILO PREMIUM PARA LOS TÍTULOS DE LAS ORACIONES DEL DÍA --- */

.entry-title,
h1.entry-title,
h2.entry-title,
h1, h2, h3 {
  color: #d4af37 !important; /* Dorado elegante */
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 25px;
  margin-bottom: 20px;
  font-family: "Playfair Display", serif;
  line-height: 1.4;
}

/* Efecto de brillo suave al pasar el mouse */
.entry-title:hover,
h1:hover,
h2:hover {
  color: #b58b2a !important;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
  transition: all 0.3s ease;
}

/* Línea decorativa debajo del título */
.entry-title::after,
h1::after,
h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #d4af37;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* --- EFECTO DE ENTRADA SUAVE (FADE-IN) PARA TEXTO Y TÍTULOS --- */

/* Animación general de entrada */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Aplica a títulos principales */
.entry-title,
h1.entry-title,
h2.entry-title {
  animation: fadeIn 1.2s ease-out both;
}

/* Aplica a párrafos, oraciones y textos del artículo */
.entry-content p,
.entry-content div,
.entry-content span {
  animation: fadeIn 1.5s ease-out both;
  animation-delay: 0.3s;
}

/* Aplica a las imágenes */
.entry-content img {
  animation: fadeIn 1.8s ease-out both

		document.addEventListener("scroll", function() {
  if (window.scrollY > 60) {
    document.body.classList.add("scrolled");
  } else {
    document.body.classList.remove("scrolled");
  }
});

	/* 🎨 AJUSTE DEL LOGO */
.site-logo img {
    max-height: 110px !important; /* tamaño equilibrado */
    margin-top: 5px;
    margin-bottom: 5px;
}

/* ✍️ ALINEAR EL NOMBRE DEL SITIO (MElera.Blog) */
.site-title, .site-description {
    display: inline-block;
    vertical-align: middle;
    text-align: left;
    margin-left: 10px;
}

/* 🖼️ SOMBREADO EN LAS TARJETAS DE ORACIONES */
.ast-blog-featured-section, 
.entry-content img {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ast-blog-featured-section:hover, 
.entry-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

/* 🕊️ CENTRAR TÍTULOS DE LAS ORACIONES */
.entry-title {
    text-align: center;
    color: #1a1a1a;
    font-weight: 700;
}

/* 📱 OPTIMIZACIÓN PARA MÓVILES */
@media (max-width: 768px) {
    .ast-blog-featured-section {
        display: block;
        width: 100%;
        margin-bottom: 25px;
    }
    .site-logo img {
        max-height: 90px;
    }

	/* 🌅 ANIMACIÓN FADE-IN PARA LAS TARJETAS Y EL CONTENIDO */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 🔹 Aplica la animación a cada tarjeta del blog */
.ast-article-post,
.entry-content,
.ast-blog-featured-section img {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

/* 🔹 Para que las tarjetas no entren todas al mismo tiempo */
.ast-article-post:nth-child(1) { animation-delay: 0.2s; }
.ast-article-post:nth-child(2) { animation-delay: 0.4s; }
.ast-article-post:nth-child(3) { animation-delay: 0.6s; }

/* 🔹 Mejora de rendimiento */
@media (prefers-reduced-motion: reduce) {
  .ast-article-post, .entry-content, .ast-blog-featured-section img {
    animation: none;
    opacity: 1;
  }
}

	/* 🌅 ANIMACIÓN FADE-IN PARA LAS TARJETAS Y EL CONTENIDO */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 🔹 Aplica la animación a cada tarjeta del blog */
.ast-article-post,
.entry-content,
.ast-blog-featured-section img {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

/* 🔹 Para que las tarjetas no entren todas al mismo tiempo */
.ast-article-post:nth-child(1) { animation-delay: 0.2s; }
.ast-article-post:nth-child(2) { animation-delay: 0.4s; }
.ast-article-post:nth-child(3) { animation-delay: 0.6s; }

/* 🔹 Mejora de rendimiento */
@media (prefers-reduced-motion: reduce) {
  .ast-article-post, .entry-content, .ast-blog-featured-section img {
    animation: none;
    opacity: 1;
  }
}

	/* 🌟 ANIMACIÓN SUAVE DEL LOGO Y NOMBRE MELERA.BLOG */
@keyframes logoFadeSlide {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 🔹 Aplica la animación al logo y título */
.site-logo img,
.site-title {
  opacity: 0;
  animation: logoFadeSlide 1s ease forwards;
}

/* 🔹 Ligeras demoras para hacerlo elegante */
.site-logo img {
  animation-delay: 0.2s;
}

.site-title {
  animation-delay: 0.5s;
}

/* 💡 EFECTO DE BRILLO SUAVE EN EL LOGO AL CARGAR */
.site-logo img:hover {
  filter: brightness(1.15);
  transition: filter 0.3s ease;
}

/* ✨ Para móviles y accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .site-logo img, .site-title {
    animation: none;
    opacity: 1;
  }
}

	/* 🌟 ANIMACIÓN SUAVE DEL LOGO Y NOMBRE MELERA.BLOG */
@keyframes logoFadeSlide {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 🔹 Aplica la animación al logo y título */
.site-logo img,
.site-title {
  opacity: 0;
  animation: logoFadeSlide 1s ease forwards;
}

/* 🔹 Ligeras demoras para hacerlo elegante */
.site-logo img {
  animation-delay: 0.2s;
}

.site-title {
  animation-delay: 0.5s;
}

/* 💡 EFECTO DE BRILLO SUAVE EN EL LOGO AL CARGAR */
.site-logo img:hover {
  filter: brightness(1.15);
  transition: filter 0.3s ease;
}

/* ✨ Para móviles y accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .site-logo img, .site-title {
    animation: none;
    opacity: 1;
  }
}

	/* 🌅 FONDO DE CABECERA CON DEGRADADO DORADO SUAVE */
.site-header {
  background: linear-gradient(90deg, #fff8e1 0%, #fff 50%, #fff8e1 100%);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: background 0.5s ease;
}

/* ✨ EFECTO SUAVE AL DESPLAZARSE */
.site-header:h

	/* 🌄 FONDO DORADO SUAVE EN EL PIE DE PÁGINA */
.site-footer {
  background: linear-gradient(180deg, #111111 0%, #2c2c2c 60%, #fff8e1 100%);
  color: #ffffff !important;
  text-align: center;
  padding: 20px 0;
  border-top: 2px solid #d4af37;
  transition: background 0.6s ease;
}

/* ✨ ENLACES DEL PIE */
.site-footer a {
  color: #d4af37 !important;
  text-decoration: none;
  font-weight: 500;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

/* 💎 COPYRIGHT ELEGANTE */
.site-footer:after {
  content: "© 2025 MElera.Blog — Todos los derechos reservados. Con amor y fe. 🙏";
  display: block;
  margin-top: 15px;
  color: #e6c97a;
  font-size: 14px;
  letter-spacing: 0.5px;
}

/* 🌅 EFECTO SUAVE AL PASAR EL MOUSE POR EL PIE */
.site-footer:hover {
  background: linear-gradient(180deg, #1a1a1a 0%, #2e2e2e 70%, #fff6d5 100%);
}

/* 📱 OPTIMIZACIÓN PARA MÓVILES */
@media (max-width: 768px) {
  .site-footer {
    padding: 15px 0;
    background: linear-gradient(180deg, #111111 0%, #fff8e1 100%);
  }
  .site-footer:after {
    font-size: 12px;
  }
}
