/* ==========================================================
   ACCIÓN CATÓLICA NTRA. SRA. DE LUJÁN – estilos compartidos
   Usar este mismo archivo en TODAS las páginas.
   ========================================================== */

:root {
  --azul: #1f3c88;
  --azul-claro: #e8f0ff;
  --verde: #2e7d32;
  --verde-claro: #e6f4e7;
  --dorado: #f2b84b;
  --blanco: #ffffff;
  --texto: #34384a;

  /* >>> COLOR DE LOS GLOBOS DE INFORMACIÓN <<<
     Para más oscuro probá #b9d0f5; para más claro #dbe7fb. */
  --tarjeta: #cddffa;
  --tarjeta-borde: #a6c1ef;

  /* >>> IMAGEN DE FONDO DE TODA LA PÁGINA <<<
     Poné tu imagen en /imagenes/fondo.jpg (o cambiá el nombre acá). */
  --fondo-imagen: url("../imagenes/fondoaca2.png");
  /* Qué tan clara se ve la imagen (0 = solo imagen, 1 = solo color) */
  --fondo-velo: 0.30;

  --pad-x: 10%;
  --pad-y: 70px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Nunito", "Segoe UI", sans-serif;
  background-color: #f1f6fb;
  color: var(--texto);
  line-height: 1.7;
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}

/* Fondo fijo con imagen (funciona bien en celulares, a diferencia de background-attachment) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      rgba(241, 246, 251, var(--fondo-velo)),
      rgba(236, 246, 238, var(--fondo-velo))
    ),
    var(--fondo-imagen) center / cover no-repeat;
}

img { max-width: 100%; }

section[id] { scroll-margin-top: 90px; }

a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible, .menu-toggle:focus-visible + .menu-btn {
  outline: 3px solid var(--dorado);
  outline-offset: 3px;
}

/* ================= HEADER ================= */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 60px;
  background: linear-gradient(90deg, #1f3c88 0%, #1f3c88 50%, #2e7d32 100%);
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  border-radius: 0 0 22px 22px;
}

.logo { display: flex; align-items: center; gap: 14px; min-width: 0; }
.logo img { height: 60px; width: auto; }
.logo h1 { font-size: 24px; line-height: 1.2; font-weight: 800; color: var(--blanco); }

.nav { display: flex; gap: 6px; }

.nav a {
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: white;
  font-weight: 700;
  transition: background 0.25s;
}
.nav a:hover { background: rgba(255, 255, 255, 0.18); }
.nav a[aria-current="page"] { background: white; color: var(--azul); }

/* Botón hamburguesa (solo celular) – funciona sin JavaScript */
.menu-toggle { position: absolute; opacity: 0; pointer-events: none; }
.menu-btn { display: none; }

/* ================= HERO ================= */

.hero {
  min-height: 80vh;
  min-height: 80svh;
  background-image: url("../imagenes/iglesiapordentro.png");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  width: 100%;
  min-height: inherit;
  background: linear-gradient(rgba(15, 40, 90, 0.6), rgba(20, 80, 40, 0.5));
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 22px;
}

.hero-content { color: white; max-width: 700px; }
.hero-content h2 { font-size: clamp(38px, 9vw, 64px); line-height: 1.1; margin-bottom: 18px; font-weight: 800; }
.hero-content p { font-size: clamp(18px, 4.5vw, 22px); margin-bottom: 30px; }

.hero-btn {
  display: inline-block;
  padding: 14px 34px;
  background: var(--dorado);
  color: #2b2b2b;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s;
}
.hero-btn:hover { transform: translateY(-3px); }

/* Encabezados de las subpáginas (misma base, cada una cambia solo la foto) */
.hero-small, .hero-donaciones, .hero-contacto, .hero-galeria {
  min-height: 42vh;
  min-height: 42svh;
  background-size: cover;
  background-position: center;
}
.hero-small     { background-image: url("../imagenes/iglesiapordentro.png"); }
.hero-donaciones{ background-image: url("../imagenes/donaciones.jpg"); }
.hero-contacto  { background-image: url("../imagenes/contacto.jpg"); }
.hero-galeria   { background-image: url("../imagenes/galeria.jpg"); }

.overlay {
  width: 100%;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 22px;
  color: white;
  background: linear-gradient(rgba(15, 40, 90, 0.6), rgba(20, 80, 40, 0.5));
}
.overlay h1, .overlay h2 { font-size: clamp(32px, 8vw, 52px); line-height: 1.15; font-weight: 800; }
.overlay p { font-size: clamp(17px, 4vw, 21px); margin-top: 10px; max-width: 620px; }
.overlay .hero-content p { margin-bottom: 0; }
.overlay .hero-btn { margin-top: 24px; }

/* ================= SECCIONES Y TARJETAS ================= */

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: var(--pad-y) var(--pad-x);
  align-items: center;
}

.card, .info-card, .don-card, .content, .faq details, .contact-form, .contact-info {
  background: var(--tarjeta);
  border: 2px solid var(--tarjeta-borde);
  border-radius: 28px;
  box-shadow: 0 8px 22px rgba(31, 60, 136, 0.18);
}

.card { padding: 38px; }
.card h2 { font-size: 32px; line-height: 1.2; margin-bottom: 22px; color: var(--azul); font-weight: 800; }
.card h2::after {
  content: "";
  display: block;
  width: 54px;
  height: 5px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--azul), var(--verde));
}
.card p { font-size: 18px; margin-bottom: 14px; }
.card p:last-child { margin-bottom: 0; }

.image-box {
  overflow: hidden;
  border-radius: 34px 34px 34px 8px;
  box-shadow: 0 10px 30px rgba(31, 60, 136, 0.15);
  border: 5px solid white;
}
.image-box img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.image-box img:hover { transform: scale(1.03); }

.center { text-align: center; }
.center h2::after { margin-left: auto; margin-right: auto; }

#horarios { padding: var(--pad-y) var(--pad-x); }
#horarios ul { list-style: none; margin-top: 10px; }
#horarios li {
  font-size: 19px;
  margin: 12px 0;
  padding: 12px 16px;
  border-radius: 18px;
  background: var(--blanco);
  border-left: 6px solid var(--azul);
}
#horarios li:nth-child(even) { border-left-color: var(--verde); }

.image-banner img { width: 100%; height: 400px; object-fit: cover; display: block; }

/* ================= SUBPÁGINAS ================= */

.cards-grid, .opciones {
  padding: var(--pad-y) var(--pad-x);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.info-card, .don-card { padding: 32px; transition: transform 0.3s; }
.info-card:hover, .don-card:hover { transform: translateY(-6px); }
.info-card h3 { color: var(--azul); margin-bottom: 12px; font-size: 22px; }
.don-card { text-align: center; }
.icon { font-size: 56px; margin-bottom: 14px; }

.timeline, .faq, .cta, .metodos, .ubicacion, .intro { padding: var(--pad-y) var(--pad-x); }
.highlight { padding: 40px var(--pad-x); }

.timeline h2, .faq h2, .metodos h2 { text-align: center; margin-bottom: 36px; color: var(--azul); font-size: 32px; font-weight: 800; }
.timeline-item { display: flex; gap: 20px; margin-bottom: 28px; }
.circle { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--dorado); border: 4px solid var(--azul); margin-top: 8px; }
.content { padding: 24px; flex: 1; }
.content h3 { color: var(--azul); font-size: 21px; line-height: 1.3; margin-bottom: 8px; }

.faq details { margin-bottom: 14px; padding: 18px 22px; border-radius: 20px; }
.faq summary { cursor: pointer; font-weight: 800; color: var(--azul); }
.faq details[open] summary { margin-bottom: 10px; }

.metodos-grid { display: grid; grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
.metodo-card { text-align: center; display: flex; flex-direction: column; align-items: center; }
.metodo-card h3 { color: var(--azul); font-size: 24px; margin-bottom: 8px; }
.metodo-card .btn-donar { margin-top: 24px; width: 100%; }
.metodo-card img { width: min(220px, 60%); margin: 20px auto; display: block; }

/* Cajitas para datos como alias y CBU */
.dato {
  width: 100%;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 18px;
  background: var(--blanco);
  border-left: 6px solid var(--azul);
}
.dato + .dato { border-left-color: var(--verde); }
.dato span { display: block; font-size: 15px; font-weight: 700; opacity: 0.75; }
.dato strong { display: block; font-size: 19px; color: var(--azul); overflow-wrap: anywhere; }

/* Botones (mismo estilo en todo el sitio) */
.btn, .btn-donar, .btn-mapa {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 30px;
  min-height: 48px;
  border-radius: 999px;
  color: white;
  text-decoration: none;
  font-weight: 800;
  text-align: center;
  transition: transform 0.25s, opacity 0.25s;
}
.btn, .btn-mapa { background: var(--azul); }
.btn-donar { background: #00a650; }
.btn:hover, .btn-donar:hover, .btn-mapa:hover { transform: translateY(-2px); opacity: 0.92; }

/* Contacto */
.contact-container {
  padding: var(--pad-y) var(--pad-x);
  display: grid;
  grid-template-columns: minmax(0, 700px);
  justify-content: center;
}
.contact-info { padding: 34px; }
.contact-info h2 { color: var(--azul); margin-bottom: 22px; }
.info-item { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.info-item:last-child { border: none; margin-bottom: 0; padding-bottom: 0; }
.info-item h3 { color: var(--azul); font-size: 19px; line-height: 1.3; margin-bottom: 4px; }
.info-item a { display: inline-block; padding: 4px 0; color: var(--texto); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.info-item a:hover { color: var(--azul); text-decoration: underline; }

/* Galería */
.gallery {
  padding: var(--pad-y) var(--pad-x);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 24px;
  border: 4px solid white;
  cursor: pointer;
  transition: transform 0.3s;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}
.gallery img:hover { transform: scale(1.03); }
.gallery img:focus-visible { outline: 3px solid var(--dorado); outline-offset: 3px; }
.intro + .gallery, .gallery + .cta { padding-top: 0; }

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  justify-content: center;
  align-items: center;
}
.modal-content { max-width: 92%; max-height: 85%; border-radius: 20px; animation: zoom 0.25s ease; }
.cerrar {
  position: absolute;
  top: 10px;
  right: 18px;
  padding: 6px 14px;
  background: none;
  border: none;
  color: white;
  font-size: 46px;
  line-height: 1;
  cursor: pointer;
}
.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: white;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s;
}
.modal-nav:hover { background: rgba(255, 255, 255, 0.32); }
.modal-prev { left: 18px; }
.modal-next { right: 18px; }
.modal-contador {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  color: white;
  font-weight: 700;
  pointer-events: none;
}

@keyframes zoom {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* ================= FOOTER ================= */

.footer {
  background: linear-gradient(90deg, #1f3c88 0%, #2e7d32 100%);
  color: white;
  padding: 50px 10%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  border-radius: 28px 28px 0 0;
}
.footer-column h3 { margin-bottom: 14px; font-size: 22px; }
.footer-column p { opacity: 0.92; }

.social-icons { display: flex; gap: 16px; margin-top: 12px; }
.social-icons a {
  width: 54px;
  height: 54px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s, background 0.25s;
}
.social-icons a:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.28); }
.social-icons img { width: 28px; height: 28px; object-fit: contain; }

/* ================= CELULARES Y TABLETS ================= */

@media (max-width: 900px) {
  :root { --pad-x: 20px; --pad-y: 40px; }
  body { font-size: 16px; }

  .header { flex-wrap: wrap; padding: 10px 16px; border-radius: 0 0 20px 20px; }
  .logo img { height: 46px; }
  .logo h1 { font-size: 16px; }

  .menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    font-size: 24px;
    cursor: pointer;
  }
  .menu-btn::before { content: "☰"; }
  .menu-toggle:checked + .menu-btn::before { content: "✕"; }

  .nav { display: none; width: 100%; flex-direction: column; gap: 4px; padding: 10px 0 6px; }
  .menu-toggle:checked ~ .nav { display: flex; }
  .nav a { padding: 13px 18px; font-size: 18px; background: rgba(255, 255, 255, 0.1); }

  .hero { min-height: 70vh; min-height: 70svh; }

  .grid { grid-template-columns: 1fr; gap: 24px; }
  .card { padding: 26px 22px; border-radius: 24px; }
  .card h2, .timeline h2, .faq h2, .metodos h2 { font-size: 26px; }
  .card p { font-size: 17px; }
  .image-box img { height: 260px; }
  .image-banner img { height: 260px; }
  #horarios li { font-size: 17px; }

  .metodos-grid, .contact-container { grid-template-columns: 1fr; }
  .contact-info { padding: 26px 20px; }
  .timeline-item { gap: 14px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery img { height: 170px; border-radius: 18px; }
  .modal-nav { width: 44px; height: 44px; font-size: 26px; }
  .modal-prev { left: 6px; }
  .modal-next { right: 6px; }

  .btn, .btn-donar, .btn-mapa { display: block; width: 100%; }

  .footer { grid-template-columns: 1fr; text-align: center; padding: 40px 24px; gap: 28px; }
  .social-icons { justify-content: center; }
}

@media (max-width: 400px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery img { height: 220px; }
}

/* ================= APARICIÓN AL BAJAR (ver js/animaciones.js) ================= */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}