/* =========================================
   1. CONFIGURACIÓN GENERAL Y LAYOUT
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE */
}

/* Scrollbars Globales */
*::-webkit-scrollbar { width: 0px; background: transparent; }
*:hover { scrollbar-width: thin; scrollbar-color: #d4af37 #0a0a0a; }
*:hover::-webkit-scrollbar { width: 8px; }
*:hover::-webkit-scrollbar-track { background: #0a0a0a; }
*:hover::-webkit-scrollbar-thumb { background-color: #d4af37; border-radius: 4px; }
*:hover::-webkit-scrollbar-thumb:hover { background-color: #b8941f; }

@font-face {
  font-family: "Tempus Sans ITC";
  src: local("Tempus Sans ITC");
}

body {
  font-family: "Tempus Sans ITC", "Montserrat", "Segoe UI", "Arial", sans-serif;
  line-height: 1.6;
  color: #ffffff;
  background-color: #0a0a0a;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Tempus Sans ITC", "Poppins", "Segoe UI", "Arial", sans-serif;
  font-weight: 700;
  color: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Botones y Títulos Generales */
.btn-primary {
  display: inline-block;
  background-color: #d4af37;
  color: #000000;
  padding: 12px 30px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.btn-primary:hover {
  background-color: #b8941f;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(212, 175, 55, 0.3);
}

.section-title {
  font-family: "Tempus Sans ITC", "Playfair Display", serif;
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #d4af37;
  position: relative;
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #d4af37;
}

.section-description {
  text-align: center;
  margin-bottom: 2rem;
  color: #cccccc;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================
   2. NAVBAR
   ========================================= */
.navbar {
  background-color: #0a0a0a;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo a {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffffff;
  display: flex;
  align-items: center;
}

.logo a i { margin-right: 10px; font-size: 1.8rem; color: #ffffff; }
.ismac-logo { height: 30px; margin-right: 10px; }

.nav-links { display: flex; }
.nav-links li { margin-left: 2rem; }
.nav-links a { color: #ffffff; font-weight: 500; transition: color 0.3s ease; }
.nav-links a:hover { color: #d4af37; }
.nav-links i { margin-right: 5px; color: #ffffff; }

.burger { display: none; cursor: pointer; }
.burger div {
  width: 25px; height: 3px; background-color: #ffffff; margin: 5px; transition: all 0.3s ease;
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background-color: #0a0a0a;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}

.hero-credits {
  position: absolute; bottom: 20px; left: 20px;
  color: white; font-size: 0.8rem; max-width: 300px; text-align: left;
  z-index: 10; text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  background-color: transparent; padding: 15px; border-radius: 0;
}
.hero-credits p:first-child { font-weight: bold; margin-bottom: 10px; }

.hero-title {
  font-family: "Tempus Sans ITC", "Playfair Display", serif;
  font-size: 4.5rem; letter-spacing: -1px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6); color: #ffffff;
  text-align: center; width: 100%; margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-family: "Tempus Sans ITC", "Montserrat", sans-serif;
  font-size: 1.6rem; font-weight: 300; letter-spacing: 1px; color: #ffffff;
  text-align: center; width: 100%; margin-bottom: 2rem;
}

.hero-content {
  position: relative; z-index: 1; max-width: 900px; padding: 40px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background-color: transparent;
}

@keyframes cambioFondo {
  0% { background-image: url("./img/iglesia.jpg"); }
  33% { background-image: url("./img/iglesia2.jpg"); }
  66% { background-image: url("./img/yaruq.jpg"); }
  100% { background-image: url("./img/iglesia.jpg"); }
}
#inicio.hero {
  height: 90vh;
  animation: cambioFondo 15s infinite;
  color: white; padding: 20px; background-color: #0a0a0a;
}

/* =========================================
   4. SECCIONES: Motivational, About, Contact
   ========================================= */
.motivational { padding: 4rem 0; background-color: #0a0a0a; }
.motivational .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.motivational-card {
  flex: 0 0 calc(33.333% - 20px);
  background-color: #1a1a1a; padding: 2rem; border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); margin-bottom: 20px;
  text-align: center; border: 1px solid #333;
}
.motivational-card i { font-size: 2rem; color: #d4af37; margin-bottom: 1rem; }
.motivational-card h3 { font-family: "Tempus Sans ITC", "Playfair Display", serif; font-size: 1.5rem; margin-bottom: 1rem; color: #ffffff; }
.motivational-card p { font-style: normal; color: #cccccc; }

.about { padding: 4rem 0; background-color: #0a0a0a; }
.about-content { display: flex; flex-wrap: wrap; align-items: center; gap: 30px; }
.about-image {
  flex: 1; min-width: 300px; border-radius: 8px; overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); border: 2px solid #d4af37;
}
.about-image img, .about-image iframe { width: 100%; height: auto; object-fit: cover; }
.about-text { flex: 1; min-width: 300px; }
.about-text p { margin-bottom: 1rem; color: #cccccc; }

.contact {
  padding: 4rem 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  position: relative;
}
.contact::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
  pointer-events: none;
}
.contact .section-title { font-size: 3rem; color: #d4af37; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); }
.contact .section-title::after { width: 100px; background: linear-gradient(90deg, transparent, #d4af37, transparent); }
.contact .section-description { font-size: 1.2rem; margin-bottom: 3rem; font-weight: 300; }
.contact-container { display: flex; flex-wrap: wrap; gap: 40px; position: relative; z-index: 1; }

.contact-info, .contact-form {
  flex: 1; min-width: 300px; background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
  padding: 2.5rem; border-radius: 15px; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  border: 2px solid #d4af37; position: relative; overflow: hidden;
}
/* Efecto Glow contacto */
.contact-info::before {
  content: ""; position: absolute; top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(45deg, #d4af37, #b8941f, #d4af37, #b8941f);
  border-radius: 15px; z-index: -1; animation: borderGlow 3s ease-in-out infinite alternate;
}
@keyframes borderGlow { 0% { opacity: 0.5; } 100% { opacity: 1; } }

.info-item {
  display: flex; align-items: center; margin-bottom: 2rem; padding: 1rem;
  border-radius: 10px; transition: all 0.3s ease;
  background: rgba(212, 175, 55, 0.05); border-left: 4px solid #d4af37;
}
.info-item:hover { background: rgba(212, 175, 55, 0.1); transform: translateX(5px); }
.info-item i { font-size: 1.8rem; color: #d4af37; margin-right: 1.5rem; text-shadow: 0 0 10px rgba(212, 175, 55, 0.5); }
.social-media { display: flex; gap: 20px; margin-top: 2.5rem; flex-wrap: wrap; justify-content: center; }
.social-icon {
  display: flex; align-items: center; justify-content: center; width: 50px; height: 50px;
  background: linear-gradient(145deg, #d4af37, #b8941f); color: #000000;
  border-radius: 50%; transition: all 0.3s ease; font-size: 1.2rem;
}
.social-icon:hover { transform: translateY(-5px) scale(1.1); box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5); }

.contact-form { border: 2px solid #333; }
.form-group { margin-bottom: 1.5rem; }
.form-group input, .form-group textarea {
  width: 100%; padding: 1rem 1.5rem; background: rgba(0, 0, 0, 0.3);
  border: 2px solid #333; border-radius: 10px; color: #ffffff;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: #d4af37; background: rgba(212, 175, 55, 0.05);
}
.contact-form .btn-primary { width: 100%; background: linear-gradient(145deg, #d4af37, #b8941f); }

/* =========================================
   5. FOOTER
   ========================================= */
.footer { background-color: #0a0a0a; color: #fff; padding: 4rem 0 2rem; border-top: 1px solid #333; }
.footer-content { display: flex; flex-wrap: wrap; gap: 30px; margin-bottom: 2rem; }
.footer-logo { flex: 1; min-width: 250px; }
.footer-logo h3, .footer-links h4 { font-size: 1.5rem; margin-bottom: 1rem; color: #d4af37; }
.footer-links { flex: 1; min-width: 250px; }
.footer-links ul li a { color: #cccccc; transition: color 0.3s ease; }
.footer-links ul li a:hover { color: #d4af37; }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid #444; }

/* Clase para mostrar la notificación */
.context-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0); /* Baja a su posición visible */
}

/* ... (El resto de estilos del chat-widget, chat-window, etc. se mantiene igual) ... */

/* Animación para llamar la atención cuando el chat se minimiza */
@keyframes pulseGold {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
    50% { transform: scale(1.15); box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

.chat-toggle.attention {
    animation: pulseGold 2s infinite;
    border: 2px solid #d4af37; /* Borde dorado extra */
}   
.contador-footer {
  font-size: 12px;
  opacity: 0.7;
  text-align: center;
  margin-top: 5px;
}
