/* ============================================
   Somos Hijos del Sol Renacer — Aportes
   Estilo link-in-bio (Linktree)
   ============================================ */

:root {
  /* Paleta oficial — somoshijosdelsolrenacer.org */
  --verde-fondo: #0d2105;     /* verde muy oscuro */
  --verde-primario: #0F3000;  /* verde footer */
  --verde-medio: #1c4a12;
  --verde-claro: #a3f5a3;     /* verde botón del sitio */
  --dorado: #d4af37;          /* oro principal */
  --dorado-suave: #C5A059;    /* oro acento */
  --crema: #f3efe2;
  --crema-2: #e8e3d2;
  --whatsapp: #25d366;
  --texto: #1f2a18;
  --texto-suave: #6c7563;
  --tarjeta: #ffffff;
  --radio: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', system-ui, sans-serif;
  color: var(--texto);
  line-height: 1.55;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -5%, rgba(212, 175, 55, 0.45) 0%, transparent 45%),
    linear-gradient(180deg, #1c4a12 0%, #0F3000 45%, #0d2105 100%);
  padding: 40px 18px 60px;
}

.bio {
  max-width: 540px;
  margin: 0 auto;
}

.oculto { display: none !important; }

/* ====== PERFIL ====== */
.perfil { text-align: center; color: var(--crema); }

.avatar {
  width: 130px;
  height: 130px;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 3px var(--dorado), 0 0 0 8px rgba(212, 175, 55, 0.2), 0 12px 30px rgba(0, 0, 0, 0.35);
}

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

.nombre {
  font-family: 'Roboto', system-ui, sans-serif;
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 6px;
}

.verificado {
  font-size: 0.8rem;
  color: var(--dorado);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.bio-texto {
  font-size: 1.2rem;
  line-height: 1.6;
  color: rgba(253, 246, 233, 0.88);
  max-width: 440px;
  margin: 0 auto;
  text-align: left;
}

.bio-texto-2 {
  margin-top: 10px;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(253, 246, 233, 0.72);
}

/* ====== FOTO NIÑOS ====== */
.foto-ninos {
  margin: 26px 0 0;
  padding: 7px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--dorado), var(--dorado-suave));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

.foto-ninos img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 3px solid #fff;
}

/* ====== RADIO (emotivo) ====== */
.radio {
  position: relative;
  overflow: hidden;
  margin: 26px 0 0;
  padding: 26px 22px 22px;
  border-radius: 22px;
  text-align: center;
  color: var(--crema);
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.22), transparent 60%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

/* Aura dorada que respira detrás del botón */
.radio-aura {
  position: absolute;
  top: 78px;
  left: 50%;
  width: 220px;
  height: 220px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(246, 203, 91, 0.35) 0%, transparent 65%);
  pointer-events: none;
  opacity: 0.5;
}

.radio.sonando .radio-aura { animation: respirar 3s ease-in-out infinite; }

@keyframes respirar {
  0%, 100% { opacity: 0.35; transform: translateX(-50%) scale(0.9); }
  50% { opacity: 0.7; transform: translateX(-50%) scale(1.1); }
}

/* Cabecera: EN VIVO + marca */
.radio-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.radio-vivo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
  background: #e0322b;
  padding: 4px 10px;
  border-radius: 999px;
}

.radio-vivo .punto {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: latir 1.2s ease-in-out infinite;
}

@keyframes latir {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}

.radio-marca {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dorado);
}

/* Botón central con ondas */
.radio-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 8px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--verde-fondo);
  background: linear-gradient(145deg, #f6cb5b, var(--dorado-suave));
  box-shadow: 0 8px 22px rgba(212, 175, 55, 0.5), inset 0 2px 6px rgba(255, 255, 255, 0.6);
  transition: transform 0.18s ease;
  z-index: 1;
}

.radio-btn:hover { transform: scale(1.07); }
.radio-btn:active { transform: scale(0.97); }
.radio-btn svg { width: 34px; height: 34px; }
.ico-play { margin-left: 4px; } /* centrar ópticamente el triángulo */

/* Ondas expansivas (solo al sonar) */
.radio-ondas {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}

.radio-ondas i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(246, 203, 91, 0.6);
  opacity: 0;
}

.radio.sonando .radio-ondas i { animation: onda 2.4s ease-out infinite; }
.radio.sonando .radio-ondas i:nth-child(2) { animation-delay: 0.8s; }
.radio.sonando .radio-ondas i:nth-child(3) { animation-delay: 1.6s; }

@keyframes onda {
  0% { opacity: 0.8; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.1); }
}

/* Lema */
.radio-lema {
  position: relative;
  font-size: 1.02rem;
  font-style: italic;
  color: rgba(253, 246, 233, 0.85);
  margin: 8px auto 14px;
  max-width: 300px;
}

/* Estado + ecualizador */
.radio-estado {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  color: rgba(253, 246, 233, 0.7);
}

.radio-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 16px;
}

.radio-eq i {
  width: 3px;
  height: 4px;
  background: var(--verde-claro);
  border-radius: 2px;
  opacity: 0.4;
}

.radio.sonando .radio-eq i {
  opacity: 1;
  animation: eq 1s ease-in-out infinite;
}

.radio.sonando .radio-eq i:nth-child(2) { animation-delay: 0.2s; }
.radio.sonando .radio-eq i:nth-child(3) { animation-delay: 0.5s; }
.radio.sonando .radio-eq i:nth-child(4) { animation-delay: 0.3s; }
.radio.sonando .radio-eq i:nth-child(5) { animation-delay: 0.6s; }

@keyframes eq {
  0%, 100% { height: 4px; }
  50% { height: 16px; }
}

/* Volumen */
.radio-vol {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  color: rgba(253, 246, 233, 0.6);
}

.radio-vol input[type="range"] {
  width: 130px;
  height: 5px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 5px;
  cursor: pointer;
}

.radio-vol input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--dorado);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
  cursor: pointer;
}

.radio-vol input[type="range"]::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border: none;
  border-radius: 50%;
  background: var(--dorado);
  cursor: pointer;
}

/* ====== CAUSA ====== */
.causa {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(246, 203, 91, 0.3);
  border-radius: var(--radio);
  padding: 22px 22px;
  margin: 28px 0 18px;
  text-align: left;
  color: rgba(253, 246, 233, 0.9);
}

.causa-etiqueta {
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: var(--dorado);
  margin-bottom: 12px;
  text-align: center;
}

.causa p { font-size: 1.12rem; line-height: 1.6; }
.causa strong { color: var(--dorado); }
.causa-cierre {
  margin-top: 10px;
  font-style: italic;
  color: rgba(253, 246, 233, 0.78);
  font-size: 1rem !important;
}

/* ====== MONTOS ====== */
.montos-card {
  background: var(--tarjeta);
  border-radius: var(--radio);
  padding: 22px 20px;
  margin-bottom: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.montos-titulo {
  text-align: center;
  font-weight: 700;
  color: var(--verde-primario);
  margin-bottom: 14px;
  font-size: 1.12rem;
}

.montos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 14px;
}

.monto {
  padding: 14px 6px;
  border: 2px solid var(--crema-2);
  border-radius: 12px;
  background: var(--crema);
  font-family: inherit;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--texto);
  cursor: pointer;
  transition: all 0.15s ease;
}

.monto:hover { border-color: var(--dorado); }

.monto.activo {
  background: linear-gradient(135deg, var(--dorado), var(--dorado-suave));
  border-color: var(--dorado);
  color: var(--verde-fondo);
  box-shadow: 0 4px 14px rgba(224, 165, 40, 0.4);
}

.campo-libre { margin-bottom: 12px; }

.campo-libre input,
.input-nombre {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--crema-2);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--crema);
  color: var(--texto);
}

.input-nombre { margin-bottom: 10px; }
.datos-aportante .input-nombre:last-child { margin-bottom: 0; }

.datos-aportante { margin-bottom: 14px; }

.datos-titulo {
  font-weight: 700;
  color: var(--verde-primario);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.datos-aviso {
  margin-top: 10px;
  text-align: center;
  font-size: 0.92rem;
  color: #c0392b;
  font-weight: 600;
}

.enlace-destacado.deshabilitado {
  opacity: 0.55;
  filter: grayscale(0.3);
  cursor: not-allowed;
}

.campo-libre input:focus,
.input-nombre:focus {
  outline: none;
  border-color: var(--dorado);
}

.resumen {
  background: var(--crema);
  border: 2px dashed var(--dorado);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  font-size: 1.08rem;
  color: var(--texto-suave);
}

.resumen strong { color: var(--verde-primario); font-size: 1.3rem; display: inline-block; }

/* ====== CÓDIGO QR DE NEQUI ====== */
.qr-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: var(--tarjeta);
  border-radius: var(--radio);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  animation: qrAparece 0.25s ease;
}

.qr-panel img {
  width: 240px;
  max-width: 85%;
  height: auto;
  border-radius: 14px;
  background: #fff;
  padding: 10px;
}

.qr-ayuda {
  text-align: center;
  font-size: 0.9rem;
  color: var(--texto-suave);
  line-height: 1.4;
}

@keyframes qrAparece {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ====== ENLACES (botones tipo Linktree) ====== */
.enlaces {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.enlace {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: var(--tarjeta);
  border: none;
  border-radius: var(--radio);
  padding: 15px 18px;
  text-decoration: none;
  color: var(--texto);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.enlace:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.enlace-ico {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--crema);
  border-radius: 12px;
}

.enlace-ico-img { background: #fff; padding: 4px; overflow: hidden; }
.enlace-ico-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }

.enlace-texto { display: flex; flex-direction: column; flex: 1; min-width: 0; }

.enlace-nombre { font-weight: 700; font-size: 1.12rem; }

.enlace-sub {
  font-size: 0.9rem;
  color: var(--texto-suave);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.enlace-accion {
  font-weight: 700;
  color: var(--dorado);
  font-size: 1rem;
  flex-shrink: 0;
}

/* Destacado WhatsApp */
.enlace-destacado {
  background: linear-gradient(135deg, var(--whatsapp), #1eb456);
  color: #fff;
}
.enlace-destacado .enlace-ico { background: rgba(255, 255, 255, 0.2); color: #fff; }
.enlace-destacado .enlace-sub { color: rgba(255, 255, 255, 0.85); }
.enlace-destacado .enlace-accion { color: #fff; }

/* Estado copiado */
.enlace-copiar.copiado {
  background: linear-gradient(135deg, var(--dorado), var(--dorado-suave));
}
.enlace-copiar.copiado .enlace-accion { color: var(--verde-fondo); }

/* ====== REDES ====== */
.redes {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 28px 0 18px;
}

.redes a {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--crema);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(246, 203, 91, 0.3);
  transition: all 0.15s ease;
}

.redes a:hover {
  background: var(--dorado);
  color: var(--verde-fondo);
  transform: translateY(-2px);
}

/* ====== FOOTER ====== */
.pie {
  text-align: center;
  color: rgba(253, 246, 233, 0.7);
  font-size: 0.85rem;
}

.pie-nit { font-size: 0.78rem; color: rgba(253, 246, 233, 0.55); margin-top: 6px; letter-spacing: .2px; }
.pie-copy { font-size: 0.75rem; color: rgba(253, 246, 233, 0.45); margin-top: 4px; }
.pie-legal { font-size: 0.78rem; margin-top: 8px; }
.pie-legal a { color: rgba(253, 246, 233, 0.7); text-decoration: underline; text-underline-offset: 2px; }
.pie-legal a:hover { color: rgba(253, 246, 233, 0.95); }
.pie-legal span { margin: 0 6px; color: rgba(253, 246, 233, 0.4); }

/* ====== TOAST ====== */
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--verde-fondo);
  color: var(--crema);
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 100;
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ====== LEGIBILIDAD EN MÓVIL ====== */
@media (max-width: 600px) {
  .nombre { font-size: 1.8rem; }
  .verificado { font-size: 0.95rem; }
  .bio-texto { font-size: 1.4rem; line-height: 1.6; }
  .bio-texto-2 { font-size: 1.2rem; line-height: 1.55; }

  .radio-titulo { font-size: 1.1rem; }
  .radio-estado { font-size: 0.95rem; }
  .radio-lema { font-size: 1.08rem; max-width: 320px; }

  .causa-etiqueta { font-size: 1.75rem; }
  .causa p { font-size: 1.32rem; line-height: 1.58; }
  .causa-cierre { font-size: 1.18rem !important; }

  .montos-titulo { font-size: 1.2rem; }
  .monto { font-size: 1.15rem; padding: 16px 6px; }
  .campo-libre input,
  .input-nombre { font-size: 1.1rem; }
  .resumen { font-size: 1.15rem; }
  .resumen strong { font-size: 1.4rem; }

  .enlace-nombre { font-size: 1.2rem; }
  .enlace-sub { font-size: 1.02rem; }
  .enlace { padding: 18px 18px; }

  .pie-titulo { font-size: 1rem; }
  .pie-texto { font-size: 1.08rem; }
  .pie-logo { font-size: 1.25rem; }
}

@media (max-width: 420px) {
  .montos { grid-template-columns: repeat(2, 1fr); }
  .nombre { font-size: 1.7rem; }
}
