/* ============================================
   Iglesia Evangelica Maranata - Style Sheet
   Compiled following CSS_CLASSES.md specification
   ============================================ */

/* ============================================
   CSS Variables - Color Palette
   ============================================ */
:root {
  --color-primary: #1E3A8A;      /* Azul profundo */
  --color-secondary: #FFFFFF;     /* Blanco */
  --color-accent: #F97316;        /* Naranja vibrante */
  --color-text: #1F2937;          /* Gris oscuro para texto */
  --color-text-light: #6B7280;    /* Gris claro para texto secundario */
  --color-bg-light: #F9FAFB;      /* Fondo claro para secciones alternas */
}

/* ============================================
   Global Styles
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--color-text);
  line-height: 1.6;
}

/* ============================================
   Modern List Styles
   ============================================ */
ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
  background: rgba(249, 115, 22, 0.03);
  border-left: 3px solid var(--color-accent);
  border-radius: 6px;
  padding: 15px 20px;
  margin-bottom: 20px;
}

ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  line-height: 1.7;
  list-style: none;
}

ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  transition: transform 0.2s ease;
}

ul li:hover::before {
  transform: scale(1.3);
  background: var(--color-primary);
}

/* Nested lists */
ul ul {
  margin-top: 8px;
  margin-bottom: 8px;
  background: transparent;
  border-left: 2px solid var(--color-primary);
  padding: 8px 15px;
  margin-left: 10px;
}

ul ul li::before {
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  top: 11px;
}

/* Exception for lists with specific functionality */
.nav-menu,
.schedule-list,
.pastor-list,
.social-links,
.ministerio-ambientes {
  background: transparent;
  border-left: none;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-menu li,
.schedule-list li,
.pastor-list li,
.social-links li,
.ministerio-ambientes li {
  list-style: none;
  padding-left: 0;
}

.nav-menu li::before,
.schedule-list li::before,
.pastor-list li::before,
.social-links li::before,
.ministerio-ambientes li::before {
  content: none;
  display: none;
}

/* ============================================
   Custom Scrollbar
   ============================================ */
/* Para navegadores Webkit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 24px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-light);
  border-left: 1px solid #E5E7EB;
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 6px;
  border: 2px solid var(--color-bg-light);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* Para Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) var(--color-bg-light);
}

/* Offset para navbar fija */
section {
  scroll-margin-top: 80px;
}

/* ============================================
   Layout General
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.section {
  padding: 52px 0 68px 0;
  min-height: auto;
}

/* Backgrounds alternos para secciones */
.section-home {
  background: white;
}

.section-historia {
  background: var(--color-bg-light);
  padding: 44px 0 58px 0;
}

.section-ministerios {
  background: white;
  padding: 44px 0 58px 0;
}

.section-eventos {
  background: var(--color-bg-light);
  padding: 44px 0 58px 0;
}

.section-misiones {
  background: white;
  padding: 44px 0 58px 0;
}

.section-galeria {
  background: var(--color-bg-light);
  padding: 44px 0 58px 0;
}

.section-kilo-amor {
  background: white;
  padding: 44px 0 58px 0;
}

.section-contactos {
  background: var(--color-bg-light);
  padding: 44px 0 58px 0;
}

/* ============================================
   Navegaci�n
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--color-primary);
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo {
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-img {
  height: 40px;
  width: auto;
  max-height: 40px;
  object-fit: contain;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.nav-logo h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.9rem, 3.2vw, 1.2rem);
  margin: 0;
}

.nav-motto {
  font-size: 0.75rem;
  color: var(--color-accent);
  margin: 0;
  font-weight: bold;
}

.nav-toggle {
  display: block;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: white;
  margin: 5px 0;
  transition: all 0.3s;
}

.nav-menu {
  position: absolute;
  top: 70px;
  left: 0;
  width: 100%;
  background: var(--color-primary);
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
}

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

.nav-menu li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 15px 20px;
  display: block;
  font-family: 'Open Sans', sans-serif;
  transition: all 0.3s;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  color: var(--color-accent);
  font-weight: bold;
}

/* ============================================
   T�tulos de Secci�n
   ============================================ */
.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.subsection-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  color: var(--color-primary);
  text-align: center;
  margin: 20px 0;
  font-weight: 600;
}

/* ============================================
   Secci�n Home
   ============================================ */
.hero {
  text-align: center;
  margin-bottom: 60px;
  padding-top: 40px;
}

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  color: var(--color-primary);
  margin: 0 0 10px 0;
  font-weight: 700;
}

.hero-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  color: var(--color-accent);
  margin: 0 0 30px 0;
  font-weight: 600;
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: 20px;
  font-weight: 600;
}

.hero-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  max-width: 800px;
  margin: 0 auto;
}

.daily-verse {
  background: linear-gradient(135deg, var(--color-primary), #2563EB);
  color: white;
  padding: 30px 20px;
  border-radius: 10px;
  text-align: center;
  margin: 40px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.verse-text {
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 15px;
}

.verse-reference {
  font-size: 1rem;
  color: var(--color-accent);
  font-weight: 600;
  margin: 0;
}

.mission-vision {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin: 40px 0;
}

.card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--color-accent);
}

.card h3 {
  color: var(--color-primary);
  font-family: 'Poppins', sans-serif;
  margin-top: 0;
}

.pastor-info {
  text-align: center;
  margin: 40px 0;
}

.pastor-info h3 {
  color: var(--color-primary);
  font-family: 'Poppins', sans-serif;
}

.pastor-names {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 15px 0;
}

.pastor-photo-placeholder {
  background: var(--color-bg-light);
  padding: 60px 20px;
  border: 2px dashed var(--color-text-light);
  border-radius: 10px;
  color: var(--color-text-light);
  text-align: center;
  margin-top: 20px;
}

.pastor-photo {
  margin-top: 20px;
  text-align: center;
}

.pastor-photo img {
  width: 75%;
  max-width: 75%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.schedule {
  margin: 40px 0;
}

.schedule h3 {
  text-align: center;
  color: var(--color-primary);
  font-family: 'Poppins', sans-serif;
}

.schedule-list {
  list-style: none;
  padding: 0;
  max-width: 600px;
  margin: 20px auto;
}

.schedule-list li {
  background: white;
  padding: 15px 20px;
  margin: 10px 0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border-left: 3px solid var(--color-accent);
}

.cta-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin: 60px 0;
}

.btn {
  display: inline-block;
  background: var(--color-accent);
  color: white;
  padding: 12px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  margin-top: 15px;
}

.btn:hover {
  background: #EA580C;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Secci�n Historia
   ============================================ */
.history-content {
  max-width: 800px;
  margin: 0 auto;
}

.history-item {
  background: white;
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.history-item h3 {
  color: var(--color-primary);
  font-family: 'Poppins', sans-serif;
  margin-top: 0;
}

.history-item p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.pastor-list {
  list-style: none;
  padding-left: 0;
}

.pastor-list li {
  padding: 10px 0;
  border-bottom: 1px solid #E5E7EB;
}

.pastor-list li:last-child {
  border-bottom: none;
}

/* ============================================
   Secci�n Ministerios
   ============================================ */
.ministerios-intro {
  max-width: 900px;
  margin: 0 auto 50px auto;
  text-align: center;
  line-height: 1.7;
}

.ministerios-question {
  font-size: 1.3rem;
  color: var(--color-accent);
  margin-top: 30px;
}

.ministerios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

.ministerio-card {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-top: 4px solid var(--color-accent);
  transition: transform 0.3s;
}

.ministerio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.ministerio-card h3 {
  color: var(--color-primary);
  font-family: 'Poppins', sans-serif;
  margin-top: 0;
  font-size: 1.2rem;
}

.ministerio-leader {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin: 10px 0;
  font-style: italic;
}

.ministerio-verse {
  font-size: 0.95rem;
  color: var(--color-accent);
  font-style: italic;
  margin: 15px 0;
  padding: 10px;
  background: rgba(249, 115, 22, 0.05);
  border-left: 3px solid var(--color-accent);
  border-radius: 4px;
}

.ministerio-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text);
}

.ambientes-toggle {
  width: 100%;
  background: var(--color-bg-light);
  border: 1px solid var(--color-accent);
  border-radius: 6px;
  padding: 12px 15px;
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--color-text);
  transition: background-color 0.3s ease;
}

.ambientes-toggle:hover {
  background: #E5E7EB;
}

.ambientes-toggle strong {
  color: var(--color-primary);
}

.toggle-icon {
  transition: transform 0.3s ease;
  color: var(--color-accent);
  font-size: 1rem;
}

.ambientes-toggle[aria-expanded="true"] .toggle-icon {
  transform: rotate(180deg);
}

.ministerio-ambientes {
  list-style: none;
  padding-left: 0;
  margin-top: 15px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}

.ministerio-ambientes.active {
  max-height: 500px;
  opacity: 1;
}

.ministerio-ambientes li {
  padding: 8px 0;
  padding-left: 15px;
  border-left: 2px solid var(--color-accent);
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--color-text);
}

/* ============================================
   Sección Eventos
   ============================================ */
.eventos-content {
  max-width: 900px;
  margin: 0 auto;
}

.evento-item {
  background: white;
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--color-accent);
}

.evento-item h3 {
  color: var(--color-primary);
  font-family: 'Poppins', sans-serif;
  margin-top: 0;
  margin-bottom: 15px;
}

.evento-item ul {
  line-height: 1.8;
  margin: 15px 0;
}

.evento-item li {
  margin-bottom: 8px;
}

.evento-subitem {
  background: rgba(30, 58, 138, 0.03);
  padding: 20px;
  margin: 20px 0;
  border-radius: 8px;
  border-left: 3px solid var(--color-primary);
}

.evento-subitem h4 {
  color: var(--color-primary);
  font-family: 'Poppins', sans-serif;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.evento-verse {
  font-size: 0.95rem;
  color: var(--color-accent);
  font-style: italic;
  margin: 15px 0;
  padding: 12px;
  background: rgba(249, 115, 22, 0.08);
  border-left: 3px solid var(--color-accent);
  border-radius: 4px;
}

.evento-destacado {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.05), rgba(249, 115, 22, 0.05));
  border-left: 4px solid var(--color-primary);
}

.evento-subtitulo {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.evento-detalles {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-top: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.evento-detalles p {
  margin: 8px 0;
  line-height: 1.6;
}

/* ============================================
   Secci�n Misiones
   ============================================ */
.mision-item {
  background: white;
  padding: 30px;
  margin-bottom: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mision-item h4 {
  color: var(--color-primary);
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  margin-top: 0;
}

.mision-info {
  margin: 20px 0;
}

.mision-info h5 {
  color: var(--color-accent);
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.mision-info ul {
  line-height: 1.8;
}

.mision-info li {
  margin-bottom: 10px;
}

/* ============================================
   Sección Galería
   ============================================ */
.galeria-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.7;
  color: var(--color-text);
}

.carousel {
  position: relative;
  max-width: 900px;
  margin: 40px auto;
  overflow: hidden;
}

.carousel-container {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: var(--color-bg-light);
}

.carousel-slide img {
  width: 100%;
  height: auto;
  max-height: 600px;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  display: block;
}

.carousel-caption {
  text-align: center;
  padding: 15px 20px;
  background: white;
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 600;
  border-top: 3px solid var(--color-accent);
  width: 100%;
  box-sizing: border-box;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(30, 58, 138, 0.7);
  color: white;
  border: none;
  padding: 15px 20px;
  cursor: pointer;
  font-size: 1.5rem;
  transition: background 0.3s;
  z-index: 10;
  border-radius: 4px;
}

.carousel-btn:hover {
  background: rgba(30, 58, 138, 0.9);
}

.carousel-btn-prev {
  left: 10px;
}

.carousel-btn-next {
  right: 10px;
}

.carousel-indicators {
  display: none;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  background: white;
  cursor: pointer;
  transition: all 0.3s;
}

.carousel-indicator:hover {
  background: rgba(249, 115, 22, 0.3);
}

.carousel-indicator.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

/* ============================================
   Secci�n Kilo de Amor
   ============================================ */
.kilo-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

.kilo-intro {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.kilo-verse {
  text-align: center;
  font-size: 1.2rem;
  color: var(--color-accent);
  margin: 30px 0;
  padding: 20px;
  background: rgba(249, 115, 22, 0.05);
  border-radius: 8px;
}

.kilo-donation {
  background: var(--color-primary);
  color: white;
  padding: 25px;
  border-radius: 10px;
  margin: 30px 0;
  text-align: center;
}

.kilo-photos-placeholder {
  background: var(--color-bg-light);
  padding: 80px 20px;
  border: 2px dashed var(--color-text-light);
  border-radius: 10px;
  color: var(--color-text-light);
  text-align: center;
  margin-top: 40px;
}

/* ============================================
   Secci�n Contactos
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin: 40px 0;
}

.contact-item {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.contact-item h3 {
  color: var(--color-primary);
  font-family: 'Poppins', sans-serif;
  margin-top: 0;
}

.contact-item a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}

.contact-item a:hover {
  text-decoration: underline;
}

.social-links {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.social-links li {
  display: inline-block;
  margin: 0 10px;
}

.credits {
  text-align: center;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #E5E7EB;
  color: var(--color-text-light);
  font-style: italic;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--color-primary);
  color: white;
  padding: 30px 0;
  text-align: center;
}

.footer-motto {
  color: var(--color-accent);
  font-weight: 600;
  margin-top: 10px;
}

/* ============================================
   Responsive Design - Tablet (768px+)
   ============================================ */
@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }

  .nav-container {
    height: 80px;
  }

  .nav-logo-img {
    height: 50px;
    max-height: 50px;
  }

  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    display: flex;
    flex-direction: row;
    width: auto;
    background: transparent;
  }

  .nav-menu li {
    border-bottom: none;
  }

  .nav-link {
    padding: 10px 15px;
  }

  .section {
    padding: 65px 0 85px 0;
  }

  .section-historia,
  .section-ministerios,
  .section-eventos,
  .section-misiones,
  .section-kilo-amor,
  .section-contactos {
    padding: 55px 0 72px 0;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.8rem;
  }

  .hero-tagline {
    font-size: 1.4rem;
  }

  .verse-text {
    font-size: 1.3rem;
  }

  .mission-vision {
    grid-template-columns: 1fr 1fr;
  }

  .cta-section {
    grid-template-columns: 1fr 1fr;
  }

  .ministerios-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pastor-photo img {
    width: 400px;
    max-width: 400px;
  }
}

/* ============================================
   Responsive Design - Desktop (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  .section {
    padding: 78px 0 102px 0;
  }

  .section-historia,
  .section-ministerios,
  .section-eventos,
  .section-misiones,
  .section-kilo-amor,
  .section-contactos {
    padding: 66px 0 87px 0;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-subtitle {
    font-size: 2rem;
  }

  .hero-tagline {
    font-size: 1.5rem;
  }

  .ministerios-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
