/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background: #ffffff;
  color: #1a1a1a;
  line-height: 1.6;
}

/* CONTAINERS */
.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* SECTION BASE */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #0a2a43;
}

.section-text {
  text-align: center;
  max-width: 700px;
  margin: auto;
  font-size: 1.1rem;
  color: #444;
}

/* ===========================
   HEADER AZUL
   =========================== */
.header {
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-blue {
  background: #0a2a43;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: #cfe3f5;
  font-weight: 500;
  transition: 0.2s ease;
}

.nav a:hover {
  color: white;
}

/* BOTÓN DONAR */
.btn-light {
  background: transparent;
  color: white;
  border: 2px solid white;
  padding: 6px 14px;
  font-size: 0.9rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s ease;
}

.btn-light:hover {
  background: white;
  color: #0a2a43;
}

/* MOBILE MENU BUTTON */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: white;
}

/* ===========================
   HERO CON IMAGEN
   =========================== */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 160px 20px;
  text-align: center;
  color: white;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 42, 67, 0.75);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.3rem;
  opacity: 0.9;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* BUTTONS */
.btn {
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: 0.2s ease;
}

.btn-primary {
  background: #1e88e5;
  color: white;
}

.btn-primary:hover {
  background: #166fbb;
}

.btn-secondary {
  background: white;
  color: #0a2a43;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: #e6e6e6;
}

/* ===========================
   SERVICE TIME
   =========================== */
.service-time {
  text-align: center;
}

.service-hour {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: #0a2a43;
}

/* ===========================
   SERMON
   =========================== */
.sermon-video {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.sermon video {
  width: 100%;
  max-width: 700px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* ===========================
   MINISTRIES
   =========================== */
.ministries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card {
  background: #f7f9fc;
  padding: 30px;
  text-align: center;
  border-radius: 10px;
  font-weight: 600;
  color: #0a2a43;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: 0.2s ease;
}

.card:hover {
  background: #eaf3ff;
}

/* ===========================
   EVENTS
   =========================== */
.events-list {
  list-style: none;
  max-width: 600px;
  margin: auto;
  margin-top: 20px;
}

.events-list li {
  background: #f7f9fc;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 10px;
  color: #0a2a43;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: #0a2a43;
  color: white;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.footer-col h4,
.footer-col h3 {
  margin-bottom: 15px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col a {
  color: #cfe3f5;
  text-decoration: none;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  opacity: 0.7;
}

/* ===========================
   RESPONSIVE SYSTEM
   =========================== */

/* TABLET – max-width 900px */
@media (max-width: 900px) {
  .ministries-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* MOBILE – max-width 600px */
@media (max-width: 600px) {

  /* HEADER MOBILE */
  .nav {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    background: #0a2a43;
    width: 100%;
    padding: 20px 0;
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .nav a {
    color: white;
    font-size: 1.2rem;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav.active {
    display: flex;
  }

  /* HERO */
  .hero {
    padding: 100px 20px;
    background-position: top;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  /* GRID */
  .ministries-grid {
    grid-template-columns: 1fr;
  }

  /* FOOTER */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* SMALL MOBILE – max-width 420px */
@media (max-width: 420px) {
  .hero h1 {
    font-size: 1.7rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .card {
    padding: 20px;
  }
}
