:root {
  /* Paleta tomada de la web del ministerio (css/app.css) */
  --color-fondo-1: #0a3d73;
  --color-fondo-2: #00264d;
  --color-acento: #ebbf41;
  --color-acento-2: #f5d878;
  --color-azul-medio: #0a69c7;
  --color-texto: #f4f4f4;
  --color-texto-tenue: rgba(244, 244, 244, 0.72);
  --color-tarjeta: rgba(255, 255, 255, 0.055);
  --color-tarjeta-borde: rgba(255, 255, 255, 0.1);
  --radio: 18px;
  --sombra-acento: rgba(235, 191, 65, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  height: 100vh;
  height: 100dvh; /* usa la altura real de la pantalla en el celular, sin la barra del navegador */
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(120% 90% at 50% -10%, var(--color-fondo-1), var(--color-fondo-2) 62%);
  color: var(--color-texto);
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.page {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 18px;
  isolation: isolate;
  overflow: hidden;
}

/* --- Luz cálida de fondo, como vitral --- */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: -1;
  pointer-events: none;
}

.glow-a {
  width: 60vw;
  height: 60vw;
  max-width: 520px;
  max-height: 520px;
  top: -18%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--sombra-acento), transparent 70%);
  animation: respirar 7s ease-in-out infinite;
}

.glow-b {
  width: 40vw;
  height: 40vw;
  max-width: 360px;
  max-height: 360px;
  bottom: 4%;
  right: 8%;
  background: radial-gradient(circle, rgba(10, 105, 199, 0.4), transparent 72%);
  animation: respirar 9s ease-in-out infinite 1.5s;
}

@keyframes respirar {
  0%, 100% { opacity: 0.55; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.9; transform: translateX(-50%) scale(1.08); }
}

.glow-b {
  animation-name: respirarB;
}
@keyframes respirarB {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.1); }
}

.card {
  position: relative;
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform-origin: center center;
}

/* --- Placa del logo: sin círculo, flotando sobre un charco de luz --- */
.logo-plate {
  position: relative;
  width: 128px;
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-radius: 30px;
  background: linear-gradient(160deg, #fffdf6, #f2e8ce);
  box-shadow:
    0 20px 40px -14px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(235, 191, 65, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  animation: aparecer 0.7s ease both, flotar 5s ease-in-out 0.7s infinite;
}

.logo-plate::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  width: 70%;
  height: 18px;
  background: radial-gradient(closest-side, rgba(235, 191, 65, 0.45), transparent 75%);
  filter: blur(6px);
  z-index: -1;
}

.avatar {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes flotar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

#nombre {
  margin: 22px 0 6px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: 0.01em;
  animation: aparecer 0.7s ease 0.05s both;
}

.badge-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 26px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--color-tarjeta);
  border: 1px solid var(--color-tarjeta-borde);
  font-size: 0.9rem;
  font-weight: 500;
  animation: aparecer 0.7s ease 0.1s both;
}

.badge-tagline i {
  color: var(--color-acento);
  font-size: 1.05rem;
}

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

/* --- Botón de donar --- */
.donar-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px;
  margin-bottom: 22px;
  background: linear-gradient(135deg, var(--color-acento-2), var(--color-acento));
  border-radius: 24px;
  color: #26200a;
  text-decoration: none;
  box-shadow: 0 10px 30px -8px var(--sombra-acento), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: aparecer 0.7s ease 0.15s both;
}

.donar-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px -6px var(--sombra-acento), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.donar-btn .icon-circle {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fdfbf5;
  font-size: 1.4rem;
  color: var(--color-acento);
}

.donar-btn .text-block {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.text-block-titulo {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.text-block-subtitulo {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.75;
}

.donar-btn .arrow-circle {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(38, 32, 10, 0.85);
  color: var(--color-acento-2);
  font-size: 1.1rem;
}

/* --- Secciones de info (horarios / dirección) --- */
.info-section {
  width: 100%;
  background: var(--color-tarjeta);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-tarjeta-borde);
  border-radius: var(--radio);
  padding: 16px 20px;
  margin-bottom: 16px;
  animation: aparecer 0.7s ease 0.18s both;
}

.info-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-acento-2);
  margin: 0 0 10px;
  font-weight: 600;
}

.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  text-align: left;
  color: var(--color-texto);
  text-decoration: none;
  display: block;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.info-direccion {
  color: var(--color-texto-tenue);
}

/* --- Links principales, en grilla de 2 columnas --- */
.links {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

/* Si queda un número impar de tarjetas, la última ocupa el ancho completo */
.links .link-btn:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.link-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 14px;
  background: var(--color-tarjeta);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-tarjeta-borde);
  border-radius: 22px;
  color: var(--color-texto);
  text-decoration: none;
  text-align: center;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  animation: deslizar 0.6s ease both;
}

.links .link-btn:nth-child(1) { animation-delay: 0.05s; }
.links .link-btn:nth-child(2) { animation-delay: 0.12s; }
.links .link-btn:nth-child(3) { animation-delay: 0.19s; }
.links .link-btn:nth-child(4) { animation-delay: 0.26s; }
.links .link-btn:nth-child(5) { animation-delay: 0.33s; }
.links .link-btn:nth-child(n+6) { animation-delay: 0.4s; }

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

.link-btn:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--color-acento);
  box-shadow: 0 12px 26px -10px rgba(0, 0, 0, 0.45);
}

.link-icono {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid rgba(235, 191, 65, 0.5);
  font-size: 1.3rem;
  color: var(--color-acento-2);
  margin-bottom: 4px;
}

.link-titulo {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.link-subtitulo {
  font-size: 0.76rem;
  opacity: 0.65;
  line-height: 1.3;
}

.link-flecha {
  margin-top: 6px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(235, 191, 65, 0.5);
  color: var(--color-acento-2);
  font-size: 1rem;
}

/* Alterna dorado / azul medio en las tarjetas, como en la web principal */
.links .link-btn:nth-child(even) .link-icono,
.links .link-btn:nth-child(even) .link-flecha {
  border-color: rgba(10, 105, 199, 0.55);
  color: #8fc3f5;
}

/* --- Divisor con etiqueta --- */
.divider-label {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-bottom: 18px;
  color: var(--color-texto-tenue);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  animation: aparecer 0.7s ease 0.35s both;
}

.divider-label::before,
.divider-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-tarjeta-borde);
}

/* --- Redes sociales --- */
.redes {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 26px;
  animation: aparecer 0.7s ease 0.4s both;
}

.red-link {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: var(--color-tarjeta);
  border: 1px solid var(--color-tarjeta-borde);
  color: var(--color-texto);
  text-decoration: none;
  font-size: 1.15rem;
  overflow: hidden;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.red-link:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: 0 10px 22px -8px rgba(0, 0, 0, 0.5);
}

.red-link[data-red="instagram"]:hover { background: #dd2a7b; color: #fff; }
.red-link[data-red="facebook"]:hover { background: #1877f2; color: #fff; }
.red-link[data-red="tiktok"]:hover { background: #000; color: #fff; }
.red-link[data-red="youtube"]:hover { background: #ff0000; color: #fff; }
.red-link[data-red="whatsapp"]:hover { background: #25d366; color: #fff; }
.red-link[data-red="email"]:hover { background: var(--color-acento); color: #26200a; }

/* --- Versículo destacado --- */
.versiculo {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-bottom: 18px;
  padding: 14px 16px;
  background: var(--color-tarjeta);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-tarjeta-borde);
  border-radius: var(--radio);
  animation: aparecer 0.7s ease 0.45s both;
}

.versiculo-icono {
  flex-shrink: 0;
  font-size: 1.2rem;
  color: var(--color-azul-medio);
}

.versiculo-texto {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.versiculo-texto p {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-style: italic;
  font-size: 0.88rem;
  line-height: 1.4;
}

.versiculo-texto span {
  display: block;
  margin-top: 3px;
  font-size: 0.75rem;
  opacity: 0.6;
}

.versiculo-flecha {
  flex-shrink: 0;
  font-size: 1.3rem;
  opacity: 0.5;
}

.footer {
  font-size: 0.75rem;
  opacity: 0.5;
  margin-top: 8px;
}

.footer i {
  color: var(--color-acento);
}

@media (prefers-reduced-motion: reduce) {
  .glow, .logo-plate, #nombre, .badge-tagline, .donar-btn, .info-section, .link-btn, .redes, .divider-label, .versiculo {
    animation: none !important;
  }
}
