/* ====== GENERAL ====== */
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #f4f7fb;
  color: #333;
  line-height: 1.6;
}

h1, h2, h3 {
  margin: 0 0 1rem;
  font-weight: 700;
}

/* ====== HEADER ====== */
header {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(to bottom, rgba(44,117,201,0.85), rgba(63,169,245,0.9)),
              url('../img/logo.jpg') center/cover no-repeat;
  background-color: #3fa9f5;
  color: white;
  animation: fadeInDown 1.2s ease-in-out;
}

header .logo {
  width: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  padding: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  animation: zoomIn 1.5s ease-in-out;
}
header h1 {
  animation: fadeIn 1.5s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
header h1 span {
  color: #1a4d8f;
}

header p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

header h1, header p {
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.btn-live {
  display: inline-block;
  margin-top: 1.5rem;
  background: #e63946;
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  transition: background 0.3s;
}
.btn-live:hover {
  background: #b71c1c;
}
.video-live-banner {
  background: #e63946;
  color: white;
  text-align: center;
  padding: 0.5rem;
  border-radius: 8px;
  font-weight: bold;
  animation: pulse 1s infinite;
}
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Animaciones */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}

form {
  background: #f9fbff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* ====== NAVBAR ====== */
.navbar {
  background: rgba(44, 117, 201, 0.95);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0.8rem;
}

.nav-menu li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-menu li a:hover {
  color: #ffd700;
}

/* ====== HAMBURGUESA ====== */
.hamburger {
  display: none;
  background: #2c75c9;
  border: 2px solid #fff;
  font-size: 1.2rem;
  color: white;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: bold;
  align-items: center;
  gap: 5px;
}

.hamburger .menu-text {
  font-size: 1rem;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
    position: absolute;
    right: 15px;
    top: 12px;
  }

  .nav-menu {
    position: absolute;
    top: 55px;
    right: 10px;
    background: #2c75c9;
    flex-direction: column;
    width: 220px;
    display: none;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    animation: slideDown 0.3s ease-in-out;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    margin: 0.5rem 0;
  }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ====== SECCIONES ====== */
section {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

section h2 {
  color: #333;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

blockquote {
  font-size: 1.2rem;
  font-style: italic;
  color: #2c75c9;
  margin: 1rem 0;
}

/* ====== EVENTOS ====== */
.eventos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.event-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.event-card i {
  font-size: 2rem;
  color: #2c75c9;
  margin-bottom: 0.5rem;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
.event-card:hover i {
  color: #1a4d8f;
}

/* ====== FORMULARIOS ====== */
form {
  display: flex;
  flex-direction: column;
}

input, textarea {
  margin-bottom: 1rem;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

button {
  background-color: #2c75c9;
  color: white;
  border: none;
  padding: 0.75rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}
button:hover {
  background-color: #1a4d8f;
}
button, .btn-live {
  background: linear-gradient(135deg, #2c75c9, #1a4d8f);
  transition: transform 0.2s, box-shadow 0.2s;
}
button:hover, .btn-live:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ====== IFRAME ====== */
iframe {
  width: 100%;
  border: none;
  border-radius: 10px;
  height: 300px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* ====== FOOTER ====== */
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  background: #2c75c9;
  color: white;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  header {
    padding: 2rem 1rem;
  }
  header .logo {
    width: 100px;
  }
  header h1 {
    font-size: 1.4rem;
    line-height: 1.3;
  }
  header p {
    font-size: 1rem;
  }
  section {
    padding: 1rem;
  }
  iframe {
    height: 200px;
  }
}

/* ====== VIDEO ====== */
.video {
  text-align: center;
}

.video-live-banner {
  background: #e63946;
  color: #fff;
  font-weight: bold;
  padding: 0.6rem 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  animation: pulse 1s infinite;
}

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* ====== Reflexión ====== */
.reflexion-texto {
  max-height: 300px;
  overflow: hidden;
  transition: max-height 0.6s ease;
  position: relative;
}
.reflexion-texto.expanded {
  max-height: 2000px;
}
.btn-leer {
  margin-top: 1rem;
  background: #2c75c9;
  color: #fff;
  border: none;
  padding: 0.7rem 1.3rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}
.btn-leer:hover {
  background: #1a4d8f;
}

/* ====== SECCIÓN SÍGUENOS ====== */
.redes {
  background: linear-gradient(135deg, #1a4d8f, #2c75c9);
  color: white;
  text-align: center;
  padding: 2.5rem 1rem;
  border-radius: 12px;
  margin: 2rem auto;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  max-width: 900px;
}

.redes h2 {
  font-size: 1.6rem;
  margin-bottom: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
}

.redes-botones {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.redes-botones a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  font-size: 1rem;
  transition: all 0.3s ease;
  min-width: 150px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  border: none;
  position: relative;
  overflow: hidden;
}

.redes-botones a i {
  font-size: 1.3rem;
}

/* ===== COLORES POR RED ===== */
.btn-youtube { background-color: #ff0000 !important; }
.btn-facebook { background-color: #1877f2 !important; }
.btn-whatsapp { background-color: #25d366 !important; }

/* ===== EFECTOS HOVER ===== */
.btn-youtube:hover {
  background-color: #cc0000 !important;
  box-shadow: 0 0 10px rgba(255,0,0,0.6);
  transform: translateY(-3px);
}
.btn-facebook:hover {
  background-color: #0f5dd8 !important;
  box-shadow: 0 0 10px rgba(24,119,242,0.6);
  transform: translateY(-3px);
}
.btn-whatsapp:hover {
  background-color: #1ebe5d !important;
  box-shadow: 0 0 10px rgba(37,211,102,0.6);
  transform: translateY(-3px);
}

/* ===== EFECTO DE RESPLANDOR ===== */
.redes-botones a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255,255,255,0.35);
  transform: skewX(-25deg);
  transition: all 0.6s ease;
}
.redes-botones a:hover::before {
  left: 130%;
}

/* Pulso divino (solo YouTube) */
@keyframes pulseLight {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.3); }
  70% { box-shadow: 0 0 0 12px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.btn-youtube {
  animation: pulseLight 2.5s infinite;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .redes-botones {
    flex-direction: column;
    gap: 0.8rem;
  }

  .redes-botones a {
    width: 80%;
    margin: 0 auto;
  }
}
