* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Inter Placeholder', system-ui, -apple-system, sans-serif;
  color: #000;
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}

.navbar-logo {
  display: flex;
  align-items: center;
}

.navbar-logo img {
  height: 40px;
  width: auto;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.navbar-links a {
  text-decoration: none;
  color: #343434;
  font-family: 'Roboto', 'Roboto Placeholder', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  transition: color 0.2s;
  position: relative;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: #000;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #333;
  transition: width 0.3s;
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
  width: 100%;
}

.donate-btn {
  background: #94C6F8 !important;
  color: #393939 !important;
  padding: 8px 16px !important;
  border-radius: 20px !important;
  font-weight: 400 !important;
  font-family: 'Roboto', 'Roboto Placeholder', sans-serif !important;
  transition: background 0.2s, transform 0.2s !important;
}

.donate-btn::after {
  display: none !important;
}

.donate-btn:hover {
  background: #7ab5f0 !important;
  transform: scale(1.02);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 58px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1187px;
  width: 100%;
  margin: 0 auto;
  padding: 0 85px;
  color: #fff;
}

.hero-content-inner {
  max-width: 640px;
}

.hero-content h1 {
  font-size: 60px;
  font-weight: 700;
  line-height: 60px;
  letter-spacing: normal;
}

.hero-content p {
  font-size: 22px;
  font-weight: 400;
  line-height: 26.4px;
  margin-top: 24px;
  opacity: 0.9;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 80px;
  margin-top: 30px;
  align-items: center;
}

.hero-link {
  font-family: 'Roboto', 'Roboto Placeholder', sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  background: #71b6fb;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 10px;
  transition: background 0.2s, transform 0.2s;
  display: inline-block;
}

.hero-link:hover {
  background: #5a9ee0;
  transform: translateY(-2px);
}

.hero-link-light {
  font-family: 'Roboto', 'Roboto Placeholder', sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  background: #71b6fb;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 10px;
  transition: background 0.2s, transform 0.2s;
  display: inline-block;
}

.hero-link-light:hover {
  background: #5a9ee0;
  transform: translateY(-2px);
}

/* ========== SECTION COMMON ========== */
.section {
  padding: 100px 85px;
}

.section-inner {
  max-width: 1187px;
  margin: 0 auto;
}

.section-header {
  text-align: left;
  margin-bottom: 50px;
}

.section-header h1,
.section-header h2 {
  font-size: 65px;
  font-weight: 600;
  letter-spacing: normal;
  color: #000;
  line-height: 65px;
}

.section-header p {
  font-size: 20px;
  font-weight: 400;
  color: #000;
  margin-top: 16px;
  max-width: 600px;
  line-height: 26px;
}

/* ========== REUNIONES ========== */
.reuniones {
  background: #fff;
}

.reuniones-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.reuniones-text {
  flex: 0 0 475px;
  max-width: 475px;
}

.reuniones-text .section-header {
  margin-bottom: 0;
}

.reuniones-cards {
  flex: 1;
  min-width: 0;
}

.reuniones-grid {
  display: flex;
  gap: 10px;
  align-items: stretch;
  height: 310px;
}

.reunion-card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.reunion-card.expanded {
  flex: 3 1 0;
}

.reunion-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reunion-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.1) 100%);
  transition: opacity 0.4s ease;
}

.reunion-card:not(.expanded) .reunion-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(113,182,251,0.75) 50%, rgba(113,182,251,0.6) 100%);
}

.reunion-card.expanded .reunion-card-overlay {
  opacity: 0;
}

.reunion-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 24px 20px;
  color: #fff;
}

.reunion-card-content h3 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: normal;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  align-self: center;
  transition: font-size 0.3s ease;
}

.reunion-card.expanded .reunion-card-content h3 {
  writing-mode: horizontal-tb;
  align-self: flex-start;
}

.reunion-card-content .day {
  font-size: 18px;
  font-weight: 500;
  opacity: 0.8;
  margin-top: 4px;
  letter-spacing: normal;
}

.reunion-card-content .times {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
}

.reunion-card-content .times span {
  font-size: 18px;
  font-weight: 500;
  opacity: 0.9;
}

/* Accordion behavior */
.reunion-card-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.reunion-card:not(.expanded) .reunion-card-content {
  justify-content: center;
  align-items: center;
  padding: 12px 8px;
}

.reunion-card .day,
.reunion-card .times {
  display: none;
}

.reunion-card.expanded .day,
.reunion-card.expanded .times {
  display: block;
}

.reunion-card.expanded .times {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ========== PASTORES ========== */
.pastores {
  background: #f8faff;
}

.pastores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 32px;
}

.pastor-card {
  background: rgba(113, 182, 251, 0.05);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pastor-card-img {
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.pastor-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pastor-card-body {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

.pastor-card-body h2 {
  font-size: 26px;
  font-weight: 700;
  color: #000;
  line-height: 32px;
  margin-bottom: 12px;
}

.pastor-card-body p {
  font-size: 15px;
  font-weight: 400;
  color: #333;
  line-height: 24px;
}

/* ========== MENSAJE SEMANAL ========== */
.mensaje {
  background: #fff;
}

.video-container {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
}

/* ========== SIGUENOS ========== */
.siguenos {
  background: #fff;
}

.social-grid {
  display: flex;
  gap: 16px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 0;
  background: transparent;
  transition: all 0.3s;
  text-decoration: none;
  color: #000;
}

.social-link svg {
  width: 28px;
  height: 28px;
}

.social-link:hover {
  opacity: 0.7;
}

/* ========== ADORACION GRID ========== */
.adoracion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.adoracion-item {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  display: block;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.adoracion-item:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.adoracion-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.adoracion-item:hover img {
  transform: scale(1.05);
}

/* ========== FOOTER ========== */
.footer {
  background: #f0f0f0;
  padding: 80px 85px 40px;
}

.footer-inner {
  max-width: 1187px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  text-decoration: none;
  color: #000;
  font-size: 14px;
  font-weight: 300;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #111;
}

.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin-top: 48px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 13px;
  color: #999;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  color: #666;
  transition: all 0.2s;
  text-decoration: none;
}

.footer-social a svg {
  width: 16px;
  height: 16px;
}

.footer-social a:hover {
  background: #333;
  color: #fff;
}

/* ========== PAGE HERO (subpages) ========== */
.page-hero {
  padding: 140px 85px 80px;
  background: #fff;
  text-align: left;
}

.page-hero .section-inner {
  max-width: 1187px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: 65px;
  font-weight: 600;
  letter-spacing: normal;
  color: #000;
  line-height: 65px;
}

.page-hero p {
  font-size: 20px;
  font-weight: 400;
  color: #000;
  margin-top: 16px;
  max-width: 600px;
  line-height: 26px;
}

/* ========== HISTORIA ========== */
.historia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.historia-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.historia-text h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: #000;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.historia-text .subtitle {
  font-size: 15px;
  color: #999;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.historia-text p {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ========== MINISTRIES GRID ========== */
.ministries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.ministry-card {
  background: #f8faff;
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.ministry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.ministry-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
}

.ministry-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #000;
}

.ministry-card p {
  font-size: 14px;
  color: #666;
  margin-top: 8px;
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info h3 {
  font-size: 28px;
  font-weight: 700;
  color: #000;
  margin-bottom: 8px;
}

.contact-info .subtitle {
  font-size: 15px;
  color: #999;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 32px;
}

.contact-detail {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.contact-detail .icon {
  width: 44px;
  height: 44px;
  background: #f0f0f0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.contact-detail .label {
  font-size: 13px;
  color: #999;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-detail .value {
  font-size: 16px;
  color: #333;
  font-weight: 500;
  margin-top: 2px;
}

/* ========== FORM ========== */
.contact-form {
  background: #f8faff;
  border-radius: 20px;
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.form-group label .required {
  color: #e44;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s;
  outline: none;
  color: #333;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #333;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.btn-submit {
  width: 100%;
  padding: 16px 32px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  font-family: inherit;
}

.btn-submit:hover {
  background: #555;
  transform: translateY(-2px);
}

/* ========== DONACIONES ========== */
.donaciones-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.donation-method {
  background: #f8faff;
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.donation-method:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.donation-method .icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.donation-method h3 {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  margin-bottom: 12px;
}

.donation-method p {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
}

.donation-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
}

/* ========== FORMACION ========== */
.formation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.formation-card {
  background: #f8faff;
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.formation-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.formation-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 20px;
}

.formation-card-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  margin-bottom: 12px;
}

.formation-card-body p {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  text-align: center;
}

.btn-primary {
  background: #333;
  color: #fff;
  border: 2px solid #333;
}

.btn-primary:hover {
  background: #555;
  border-color: #555;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: #333;
  border: 2px solid #333;
}

.btn-secondary:hover {
  background: #333;
  color: #fff;
  transform: translateY(-2px);
}

.formation-card .icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.formation-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  margin-bottom: 12px;
}

.formation-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
}

/* ========== ANIMATIONS ========== */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.animate-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.animate-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.animate-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }
.animate-stagger.visible > *:nth-child(5) { transition-delay: 0.4s; }
.animate-stagger.visible > *:nth-child(6) { transition-delay: 0.5s; }

.animate-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1079px) {
  .section {
    padding: 60px 40px;
  }

  .reuniones-layout {
    flex-direction: column;
  }

  .reuniones-text {
    flex: none;
    max-width: none;
  }

  .reunion-card {
    flex: 1 1 0;
  }
  .reunion-card.expanded {
    flex: 3 1 0;
  }

  .pastores-grid {
    grid-template-columns: 1fr;
  }

  .historia-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .historia-image {
    order: -1;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content {
    padding: 0 40px;
  }

  .footer {
    padding: 60px 40px 40px;
  }

  .page-hero {
    padding: 130px 40px 60px;
  }
}

@media (max-width: 749px) {
  .navbar-inner {
    height: 58px;
  }

  .navbar-links {
    display: none;
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .navbar-links.open {
    display: flex;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-content {
    padding: 0 24px;
  }

  .hero-content h1 {
    font-size: 40px;
  }

  .hero-content p {
    font-size: 18px;
  }

  .hero-buttons {
    gap: 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding: 60px 24px;
  }

  .section-header h1,
  .section-header h2 {
    font-size: 36px;
  }

  .section-header p {
    font-size: 16px;
  }

  .reuniones-layout {
    flex-direction: column;
  }

  .reuniones-text {
    flex: none;
    max-width: none;
  }

  .reunion-card {
    flex: 1 1 0;
  }
  .reunion-card.expanded {
    flex: 3 1 0;
  }

  .reunion-card.expanded .reunion-card-content h3 {
    font-size: 22px;
  }

  .pastor-card-img {
    height: 220px;
  }

  .pastor-card-body {
    padding: 22px 18px;
  }

  .pastor-card-body h2 {
    font-size: 22px;
  }

  .pastor-card-body p {
    font-size: 14px;
  }

  .pastores-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer {
    padding: 60px 24px 40px;
  }

  .page-hero {
    padding: 120px 24px 50px;
  }

  .page-hero h1 {
    font-size: 36px;
  }

  .page-hero p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .reunion-card {
    flex: 1 1 0;
  }
  .reunion-card.expanded {
    flex: 3 1 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }
}
