/* =====================================================
   RESET & BASE
===================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* =====================================================
   NAVBAR
===================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #4a5568;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
  gap: 1rem;
}

.nav-brand {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
  opacity: 0.9;
  flex-shrink: 0;
}

.nav-brand:hover {
  opacity: 1;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0;
  align-items: center;
}

.nav-links li a {
  display: inline-block;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.85rem;
  transition: color 0.2s;
}

.nav-links li a:hover {
  color: #c8a96e;
}

.btn-envivo {
  border: 2px solid #fff;
  padding: 0.4rem 1rem !important;
  transition: background 0.2s, color 0.2s !important;
}

.btn-envivo:hover {
  background: #fff;
  color: #4a5568 !important;
}

/* =====================================================
   HERO
===================================================== */
.hero {
  position: relative;
  width: 100%;
  height: 90vh;
  min-height: 520px;
  overflow: hidden;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(30%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.50);
  display: flex;
  align-items: center;
  padding: 2rem 3rem;
}

.hero-content {
  max-width: 560px;
  color: #fff;
}

.hero-content h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 1.8rem;
  opacity: 0.92;
}

.btn-llegada {
  display: inline-block;
  background: #fff;
  color: #222;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.07em;
  padding: 0.75rem 1.6rem;
  border: 2px solid #fff;
  transition: background 0.2s, color 0.2s;
}

.btn-llegada:hover {
  background: transparent;
  color: #fff;
}

/* =====================================================
   COMUNIDAD
===================================================== */
.comunidad {
  padding: 5rem 1.5rem;
  background: #fff;
}

.comunidad-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
}

.comunidad-text {
  flex: 1 1 340px;
}

.comunidad-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: #1a1a1a;
}

.comunidad-text p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1rem;
  max-width: 480px;
}

.btn-dark {
  display: inline-block;
  margin-top: 0.8rem;
  background: #1a1a1a;
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.07em;
  padding: 0.75rem 1.6rem;
  transition: background 0.2s;
}

.btn-dark:hover {
  background: #444;
}

.comunidad-img-wrap {
  flex: 1 1 340px;
}

.comunidad-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

/* =====================================================
   PASTOR
===================================================== */
.pastor {
  padding: 5rem 1.5rem;
  background: #fff;
  border-top: 4px solid #c8a96e;
}

.pastor-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3.5rem;
}

.pastor-img-wrap {
  flex: 0 0 280px;
  max-width: 280px;
}

.pastor-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: top;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
}

.pastor-text {
  flex: 1 1 340px;
}

.pastor-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c8a96e;
  margin-bottom: 0.5rem;
}

.pastor-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 1.2rem;
}

.pastor-text p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1rem;
  max-width: 560px;
}

.pastor-mision {
  margin-top: 1.5rem;
  padding: 1.2rem 1.5rem;
  background: #f7f7f7;
  border-left: 4px solid #c8a96e;
  border-radius: 0 4px 4px 0;
}

.pastor-mision h3 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c8a96e;
  margin-bottom: 0.5rem;
}

.pastor-mision p {
  font-size: 0.97rem;
  color: #444;
  font-style: italic;
  margin: 0;
}

/* =====================================================
   OBRAS DE CARIDAD
===================================================== */
.caridad {
  position: relative;
  background: #0a283c;
}

.caridad-foto {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.caridad-img-top {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.caridad-contenido {
  position: relative;
  z-index: 1;
  background: rgba(10, 40, 60, 0.78);
  padding: 4rem 2rem;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.caridad-inner {
  max-width: 900px;
  margin: 0 auto;
  color: #fff;
  width: 100%;
}

.caridad-content {
  max-width: 900px;
  margin: 0 auto;
  color: #fff;
  width: 100%;
}

.caridad-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c8a96e;
  margin-bottom: 0.6rem;
}

.caridad-inner h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 0.8rem;
  color: #fff;
}

.caridad-inner > p {
  font-size: 1.05rem;
  opacity: 0.88;
  max-width: 620px;
  margin-bottom: 2rem;
}

.caridad-items {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.caridad-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1 1 220px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 1.2rem 1.2rem;
}

.caridad-item i {
  font-size: 1.8rem;
  color: #c8a96e;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.caridad-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #fff;
}

.caridad-item p {
  font-size: 0.88rem;
  opacity: 0.82;
  line-height: 1.55;
  margin: 0;
}

/* =====================================================
   CONÓCENOS
===================================================== */
.conocenos {
  background: #f7f7f7;
  padding: 5rem 1.5rem;
}

.conocenos-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.conocenos-container h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.conocenos-container > p {
  font-size: 1rem;
  color: #555;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.valores {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.valor {
  background: #fff;
  padding: 2rem 1.5rem;
  border-radius: 6px;
  flex: 1 1 200px;
  max-width: 240px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  text-align: center;
}

.valor i {
  font-size: 2rem;
  color: #c8a96e;
  margin-bottom: 0.8rem;
}

.valor h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.valor p {
  font-size: 0.9rem;
  color: #666;
}

/* =====================================================
   UBICACIÓN
===================================================== */
.ubicacion {
  padding: 5rem 1.5rem;
  background: #fff;
}

.ubicacion-titulo {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: 0.12em;
  font-weight: 800;
  margin-bottom: 2rem;
  color: #1a1a1a;
}

.mapa-container {
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

.ubicacion-info {
  max-width: 1100px;
  margin: 1.2rem auto 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.96rem;
  color: #555;
}

.ubicacion-info i {
  color: #c8a96e;
  font-size: 1.1rem;
}

/* =====================================================
   FOOTER
===================================================== */
footer {
  background: #2d2d2d;
  color: #ccc;
}

/* Franja con íconos sociales (teal) */
.footer-social-bar {
  background: linear-gradient(135deg, #2a6b7c, #1e4d5a);
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  padding: 1.6rem;
}

.footer-social-bar a {
  color: #fff;
  font-size: 1.5rem;
  transition: opacity 0.2s;
}

.footer-social-bar a:hover {
  opacity: 0.7;
}

/* Columnas del pie */
.footer-columns {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding: 3rem 1.5rem 2rem;
}

.footer-col {
  flex: 1 1 200px;
}

.footer-col h4 {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-col p {
  font-size: 0.92rem;
  line-height: 1.8;
  color: #aaa;
}

.footer-col a {
  color: #aaa;
  transition: color 0.2s;
}

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

.footer-social-icons {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.5rem;
}

.footer-social-icons a {
  color: #aaa;
  font-size: 1.25rem;
  transition: color 0.2s;
}

.footer-social-icons a:hover {
  color: #c8a96e;
}

/* Botón contacto en footer */
.btn-contacto {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.2rem;
  width: 100%;
  background: linear-gradient(135deg, #c8a96e 0%, #a07840 100%);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 1.2rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(160, 120, 64, 0.40);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  line-height: 1.3;
}

.btn-contacto i {
  font-size: 0.95rem;
}

.btn-contacto:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(160, 120, 64, 0.50);
  filter: brightness(1.08);
}

.btn-contacto:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(160, 120, 64, 0.30);
}

/* =====================================================
   MODAL DE CONTACTO
===================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.activo {
  display: flex;
}

.modal-box {
  background: #fff;
  border-radius: 10px;
  padding: 2.5rem 2rem 2rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalEntrada 0.22s ease;
}

@keyframes modalEntrada {
  from { opacity: 0; transform: scale(0.93) translateY(12px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}

.modal-cerrar {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #888;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.modal-cerrar:hover {
  color: #222;
}

.modal-icono {
  font-size: 2.4rem;
  color: #c8a96e;
  margin-bottom: 0.8rem;
}

.modal-box h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.modal-box p {
  font-size: 0.93rem;
  color: #666;
  margin-bottom: 1.6rem;
}

.modal-opciones {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.modal-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  transition: filter 0.2s, transform 0.15s;
  text-decoration: none;
}

.modal-btn:hover {
  filter: brightness(0.9);
  transform: translateY(-1px);
}

.modal-btn--whatsapp {
  background: #25d366;
  color: #fff;
}

.modal-btn--tel {
  background: #1a1a1a;
  color: #fff;
}

.modal-btn--donar {
  background: linear-gradient(135deg, #009ee3, #007eb5);
  color: #fff;
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 0.9rem 1.2rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
}

.modal-btn--donar:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Icono corazón donar */
.donar-icono i {
  color: #e63946;
}

/* Grilla de montos */
.donar-montos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin: 1.2rem 0;
}

.donar-monto {
  background: #f0f0f0;
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 0.6rem 0.3rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #333;
  cursor: pointer;
  transition: all 0.18s;
  font-family: inherit;
}

.donar-monto:hover {
  border-color: #009ee3;
  color: #009ee3;
}

.donar-monto.activo {
  background: #009ee3;
  border-color: #009ee3;
  color: #fff;
}

/* Input monto personalizado */
.donar-custom {
  margin-bottom: 1.2rem;
  text-align: left;
}

.donar-custom label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
}

.donar-input-wrap {
  display: flex;
  align-items: center;
  border: 2px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.donar-input-wrap:focus-within {
  border-color: #009ee3;
}

.donar-peso {
  padding: 0.6rem 0.8rem;
  background: #f5f5f5;
  color: #555;
  font-weight: 700;
  font-size: 1rem;
  border-right: 2px solid #ddd;
}

.donar-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.6rem 0.8rem;
  font-size: 1rem;
  font-family: inherit;
  color: #222;
}

/* Nota de seguridad */
.donar-nota {
  font-size: 0.78rem !important;
  color: #999 !important;
  margin-top: 0.8rem !important;
  margin-bottom: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.donar-nota i {
  color: #009ee3;
}

/* Copyright */
.footer-copy {
  border-top: 1px solid #444;
  text-align: center;
  padding: 1.2rem 1.5rem;
  font-size: 0.82rem;
  color: #777;
}

/* =====================================================
   NAV HAMBURGUESA
===================================================== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-shrink: 0;
  z-index: 10;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.nav-toggle.abierto span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.abierto span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.abierto span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================
   RESPONSIVE — 900px (tablet / teléfonos grandes)
===================================================== */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #3d4a5c;
    flex-direction: column;
    align-items: stretch;
    padding: 0.4rem 0 1rem;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 99;
  }

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

  .nav-links li a {
    display: block;
    padding: 0.9rem 1.5rem;
    font-size: 0.97rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }

  .btn-envivo {
    margin: 0.6rem 1.5rem 0;
    text-align: center;
    border-width: 1px !important;
  }
}

/* =====================================================
   RESPONSIVE — 768px (teléfonos)
===================================================== */
@media (max-width: 768px) {
  /* Hero */
  .hero {
    height: 75vh;
    min-height: 400px;
  }
  .hero-overlay {
    padding: 1.5rem;
    align-items: flex-end;
    padding-bottom: 2.5rem;
  }
  .hero-content h1 {
    font-size: 1.45rem;
  }
  .hero-subtitle {
    font-size: 0.97rem;
    margin-bottom: 1.4rem;
  }
  .btn-llegada {
    font-size: 0.84rem;
    padding: 0.65rem 1.3rem;
  }

  /* Comunidad */
  .comunidad {
    padding: 3rem 1.2rem;
  }
  .comunidad-container {
    flex-direction: column;
    gap: 2rem;
  }
  .comunidad-img {
    height: 240px;
  }

  /* Pastor */
  .pastor {
    padding: 3rem 1.2rem;
  }
  .pastor-container {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  .pastor-img-wrap {
    flex: none;
    max-width: 100%;
    width: 100%;
  }
  .pastor-img {
    height: 280px;
  }

  /* Conócenos */
  .conocenos {
    padding: 3rem 1.2rem;
  }
  .valor {
    flex: 1 1 140px;
    max-width: none;
  }

  /* Caridad — en móvil la foto vuelve al flujo normal encima del contenido */
  .caridad-foto {
    position: static;
    max-height: 280px;
    overflow: hidden;
    display: flex;
    justify-content: center;
  }
  .caridad-img-top {
    width: 100%;
    height: 280px;
    object-fit: contain;
    object-position: center;
  }
  .caridad-contenido {
    position: static;
    min-height: 0;
    padding: 2.5rem 1.2rem;
    background: rgba(10, 40, 60, 0.97);
    display: block;
  }
  .caridad-items {
    flex-direction: column;
    gap: 1rem;
  }
  .caridad-item {
    flex: none;
    width: 100%;
  }

  /* Ubicación */
  .ubicacion {
    padding: 3rem 1.2rem;
  }
  .mapa-container iframe {
    height: 300px;
  }

  /* Footer */
  .footer-columns {
    flex-direction: column;
    gap: 1.8rem;
    padding: 2rem 1.2rem 1.5rem;
  }
  .footer-col {
    flex: none;
    width: 100%;
  }

  /* Modal */
  .modal-box {
    padding: 2rem 1.2rem 1.5rem;
    border-radius: 8px;
  }
  .modal-opciones {
    flex-direction: column;
  }
  .modal-btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1rem;
  }
}

/* =====================================================
   RESPONSIVE — 480px (teléfonos pequeños)
===================================================== */
@media (max-width: 480px) {
  .hero {
    height: 65vh;
    min-height: 340px;
  }
  .hero-content h1 {
    font-size: 1.2rem;
  }

  .caridad-inner h2 {
    font-size: 1.4rem;
  }
  .caridad-inner > p {
    font-size: 0.92rem;
  }

  .modal-box {
    margin: 0.5rem;
  }
}
