/* ============================================================
   Mi Granito de Arena — San Quintín
   Hoja de Estilos Cálida, Comunitaria y Mobile-First
   ============================================================ */

:root {
  /* Paleta Cálida y Comunitaria */
  --fondo-arena: #FAF7F2;
  --fondo-tarjeta: #FFFFFF;
  --fondo-tarjeta-suave: #F5EFE6;
  --borde-suave: #E7E0D8;
  --borde-fuerte: #D6CABA;

  /* Verde Esperanza (Acción, Donación y Éxito) */
  --verde-esperanza: #15803D;
  --verde-hover: #166534;
  --verde-claro: #DCFCE7;
  --verde-borde: #86EFAC;

  /* Terracota y Tierra Cálida */
  --terracota: #C25E38;
  --terracota-claro: #FFEDD5;
  --dorado-calido: #D97706;
  --dorado-fondo: #FEF3C7;

  /* Tipografía y Textos de Alto Contraste */
  --texto-principal: #1C1917;
  --texto-secundario: #57534E;
  --texto-suave: #78716C;

  /* WhatsApp */
  --wa-verde: #25D366;
  --wa-oscuro: #128C7E;

  /* Sombras y Radios */
  --radio-sm: 8px;
  --radio-md: 14px;
  --radio-lg: 20px;
  --sombra-tarjeta: 0 4px 15px -2px rgba(87, 83, 78, 0.08), 0 2px 6px -2px rgba(87, 83, 78, 0.04);
  --sombra-elevada: 0 12px 28px -4px rgba(87, 83, 78, 0.15);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--fondo-arena);
  color: var(--texto-principal);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 80px; /* Espacio para barra flotante móvil */
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

.contenedor {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ==========================================
   HEADER COMUNITARIO
   ========================================== */
.header-comunitario {
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--borde-suave);
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 2px 8px rgba(87, 83, 78, 0.05);
}

.header-contenido {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  gap: 12px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icono-semilla {
  font-size: 1.8rem;
  background-color: var(--verde-claro);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-titulo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--texto-principal);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.logo-subtitulo {
  font-size: 0.78rem;
  color: var(--texto-secundario);
  font-weight: 500;
}

.header-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-estado {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background-color: var(--verde-claro);
  color: var(--verde-esperanza);
  border: 1px solid var(--verde-borde);
  white-space: nowrap;
}

.punto-verde {
  width: 8px;
  height: 8px;
  background-color: var(--verde-esperanza);
  border-radius: 50%;
  animation: pulso 2s infinite;
}

@keyframes pulso {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.btn-refrescar {
  background-color: var(--fondo-tarjeta-suave);
  border: 1px solid var(--borde-suave);
  color: var(--texto-secundario);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-refrescar:hover {
  background-color: #EAE2D7;
  color: var(--texto-principal);
}

@media (max-width: 500px) {
  .texto-btn-refrescar {
    display: none;
  }
}

/* ==========================================
   BANNER DE MODO DEMO / VIVO
   ========================================== */
.banner-modo {
  margin: 16px 0;
  padding: 10px 14px;
  border-radius: var(--radio-sm);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}

.banner-modo.modo-demo {
  background-color: #FEF3C7;
  border: 1px solid #FDE68A;
  color: #92400E;
}

.banner-modo.modo-vivo {
  background-color: #DCFCE7;
  border: 1px solid #86EFAC;
  color: #14532D;
}

.banner-icono {
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ==========================================
   TARJETAS
   ========================================== */
.tarjeta {
  background-color: var(--fondo-tarjeta);
  border: 1px solid var(--borde-suave);
  border-radius: var(--radio-md);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--sombra-tarjeta);
}

@media (min-width: 600px) {
  .tarjeta {
    padding: 28px;
  }
}

.etiqueta-seccion {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--terracota);
  display: block;
  margin-bottom: 4px;
}

.tarjeta-titulo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--texto-principal);
  line-height: 1.25;
}

.tarjeta-descripcion {
  font-size: 0.9rem;
  color: var(--texto-secundario);
  margin-top: 4px;
}

/* ==========================================
   CASO ACTIVO E HISTORIA
   ========================================== */
.caso-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@media (min-width: 720px) {
  .caso-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
  }
}

.caso-imagen-contenedor {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.caso-imagen {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radio-md);
  border: 1px solid var(--borde-suave);
  box-shadow: var(--sombra-tarjeta);
  display: block;
}

.caso-imagen-placeholder {
  background: linear-gradient(145deg, #FDE68A, #F59E0B);
  border-radius: var(--radio-md);
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #78350F;
  text-align: center;
  padding: 16px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.caso-icono-grande {
  font-size: 4rem;
  margin-bottom: 6px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.caso-etiqueta-foto {
  font-size: 0.85rem;
  font-weight: 700;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 4px 10px;
  border-radius: 999px;
  color: #78350F;
}

.meta-rapida-movil {
  background-color: var(--fondo-tarjeta-suave);
  border: 1px solid var(--borde-suave);
  padding: 10px 14px;
  border-radius: var(--radio-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.etiqueta-meta {
  font-size: 0.85rem;
  color: var(--texto-secundario);
  font-weight: 600;
}

.monto-meta-grande {
  font-size: 1.25rem;
  color: var(--verde-esperanza);
  font-weight: 900;
}

.caso-subtitulo-comunidad {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--terracota);
  display: block;
  margin-bottom: 6px;
}

.caso-titulo {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--texto-principal);
  line-height: 1.25;
  margin-bottom: 14px;
}

.caso-historia p {
  margin-bottom: 12px;
  color: #332E2B;
  font-size: 0.96rem;
}

.resaltado-comunidad {
  background-color: var(--fondo-tarjeta-suave);
  border-left: 4px solid var(--terracota);
  padding: 10px 14px;
  border-radius: 4px;
  color: #44403C;
  font-size: 0.92rem;
  margin-top: 14px;
}

.caso-acciones-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

@media (min-width: 500px) {
  .caso-acciones-cta {
    flex-direction: row;
    align-items: center;
  }
}

.enlace-transparencia {
  font-size: 0.85rem;
  color: var(--texto-secundario);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.enlace-transparencia:hover {
  color: var(--verde-esperanza);
}

/* ==========================================
   BARRA DE PROGRESO E HITOS
   ========================================== */
.progreso-cabecera {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.progreso-cifras {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.progreso-cifras .recaudado {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--verde-esperanza);
}

.progreso-cifras .de-la-meta {
  font-size: 1rem;
  color: var(--texto-suave);
}

.progreso-porcentaje-badge {
  background: linear-gradient(135deg, var(--verde-esperanza), #16A34A);
  color: white;
  font-size: 1.15rem;
  font-weight: 900;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(21, 128, 61, 0.25);
}

.barra-contenedor {
  height: 20px;
  background-color: #E7E0D8;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.barra-relleno {
  height: 100%;
  background: linear-gradient(90deg, #15803D, #22C55E);
  border-radius: 999px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.brillo-barra {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0) 100%);
  animation: shine 2.5s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progreso-pie {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--texto-secundario);
  margin-top: 8px;
  font-weight: 600;
  flex-wrap: wrap;
  gap: 6px;
}

/* HITOS (DESBLOQUEOS) */
.hitos-seccion {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed var(--borde-suave);
}

.hitos-titulo {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--texto-principal);
  margin-bottom: 12px;
}

.grid-hitos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 600px) {
  .grid-hitos {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tarjeta-hito {
  padding: 12px 14px;
  border-radius: var(--radio-sm);
  border: 1px solid var(--borde-suave);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background-color: #FAF7F2;
  transition: all 0.2s;
}

.tarjeta-hito.hito-logrado {
  background-color: var(--verde-claro);
  border-color: var(--verde-borde);
  color: #14532D;
}

.tarjeta-hito.hito-progreso {
  background-color: #FEF3C7;
  border-color: #FDE68A;
  color: #92400E;
}

.tarjeta-hito.hito-pendiente {
  opacity: 0.65;
}

.hito-icono {
  font-size: 1.3rem;
  line-height: 1;
}

.hito-info strong {
  display: block;
  font-size: 0.88rem;
  line-height: 1.3;
}

.hito-info span {
  font-size: 0.78rem;
  opacity: 0.9;
  display: block;
  margin-top: 2px;
}

/* ==========================================
   MURO DE GRANITOS (CARRUSEL ROTATIVO)
   ========================================== */
.muro-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.muro-titulo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icono-muro {
  font-size: 1.8rem;
}

.muro-titulo {
  font-size: 1.2rem;
  font-weight: 800;
}

.muro-subtitulo {
  font-size: 0.85rem;
  color: var(--texto-secundario);
}

.muro-tarjeta-rotativa {
  background-color: #FFFDF9;
  border: 2px solid var(--borde-suave);
  border-radius: var(--radio-md);
  padding: 24px;
  position: relative;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: opacity 0.3s ease;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.02);
}

.comilla-adorno {
  position: absolute;
  top: 6px;
  left: 14px;
  font-size: 3.5rem;
  color: var(--terracota-claro);
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}

.mensaje-texto-rotativo {
  font-size: 1.05rem;
  font-style: italic;
  color: #292524;
  line-height: 1.6;
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
}

.mensaje-autor-rotativo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

.mensaje-autor-rotativo strong {
  color: var(--texto-principal);
}

.mensaje-monto-tag {
  background-color: var(--verde-claro);
  color: var(--verde-esperanza);
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
}

.mensaje-fecha-tag {
  color: var(--texto-suave);
  font-size: 0.8rem;
}

.rotativo-controles {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
}

.btn-ctrl {
  background-color: #FFFFFF;
  border: 1px solid var(--borde-suave);
  color: var(--texto-secundario);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.btn-ctrl:hover {
  background-color: var(--fondo-tarjeta-suave);
  color: var(--texto-principal);
  border-color: var(--texto-suave);
}

.indicador-rotativo {
  font-size: 0.8rem;
  color: var(--texto-suave);
  font-weight: 600;
}

/* ==========================================
   TABLA TRANSPARENTE DE DONACIONES
   ========================================== */
.tarjeta-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 16px;
}

.caja-buscador-donaciones {
  width: 100%;
  max-width: 420px;
}

.caja-buscador-donaciones input {
  padding: 10px 16px;
  border-radius: var(--radio-sm);
  border: 1px solid var(--borde-suave);
  font-size: 0.94rem;
  outline: none;
  background-color: #FAF7F2;
  width: 100%;
  transition: all 0.2s;
}

.caja-buscador-donaciones input:focus {
  background-color: #FFFFFF;
  border-color: var(--verde-esperanza);
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.15);
}

.tabla-responsive {
  overflow-x: auto;
  border: 1px solid var(--borde-suave);
  border-radius: var(--radio-sm);
}

.tabla-donaciones {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.tabla-donaciones th {
  background-color: #F5EFE6;
  color: var(--texto-principal);
  padding: 12px 14px;
  font-weight: 700;
  border-bottom: 2px solid var(--borde-suave);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tabla-donaciones td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--borde-suave);
  color: #332E2B;
}

.tabla-donaciones tr:hover {
  background-color: #FCFBF9;
}

.col-monto {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.tag-tipo {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
}

.tag-efectivo {
  background-color: #DCFCE7;
  color: #14532D;
}

.tag-transferencia {
  background-color: #E0F2FE;
  color: #0369A1;
}

.tag-especie {
  background-color: #FEF3C7;
  color: #92400E;
}

.fila-total {
  background-color: #F5EFE6;
  border-top: 2px solid var(--borde-fuerte);
}

.fila-total td {
  font-size: 0.95rem;
  padding: 14px;
}

.texto-derecha {
  text-align: right;
}

.estado-vacio-tabla {
  padding: 24px;
  text-align: center;
  color: var(--texto-suave);
  font-size: 0.9rem;
}

/* ==========================================
   COMPROBANTES Y TICKETS
   ========================================== */
.comprobantes-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.icono-garantia {
  font-size: 2rem;
}

.caja-estado-tickets {
  background-color: #FAF7F2;
  border: 1px dashed var(--borde-fuerte);
  border-radius: var(--radio-sm);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.tickets-icono-espera {
  font-size: 2.2rem;
}

.tickets-texto strong {
  display: block;
  font-size: 1rem;
  color: var(--texto-principal);
  margin-bottom: 4px;
}

.tickets-texto p {
  font-size: 0.88rem;
  color: var(--texto-secundario);
}

.nota-tienda {
  display: block;
  margin-top: 8px;
  color: var(--terracota);
  font-size: 0.8rem;
}

/* ==========================================
   SECCIÓN: NOMINAR UN CASO
   ========================================== */
.seccion-nominar {
  background: linear-gradient(135deg, #FFFDF9 0%, #FAF5EE 100%);
  border: 1px solid #EFE4D6;
  border-left: 6px solid var(--terracota);
  margin-bottom: 24px;
}

.nominar-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 680px) {
  .nominar-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
  }
}

.nominar-contenido {
  flex: 1;
}

.nominar-cabecera {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.icono-nominar {
  font-size: 1.8rem;
}

.nominar-titulo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--texto-principal);
}

.nominar-descripcion {
  font-size: 0.94rem;
  color: var(--texto-secundario);
  line-height: 1.5;
}

.btn-nominar {
  background: linear-gradient(135deg, var(--terracota), #A84926);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(194, 94, 56, 0.28);
  white-space: nowrap;
  padding: 12px 22px;
}

.btn-nominar:hover {
  background: linear-gradient(135deg, #A84926, #8C391B);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(194, 94, 56, 0.38);
}

.footer-botones {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.enlace-nominar-footer {
  background-color: transparent;
  border: 1px solid #78716C;
  color: #E7E5E4;
  padding: 8px 16px;
  border-radius: var(--radio-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-block;
  transition: all 0.2s;
}

.enlace-nominar-footer:hover {
  background-color: var(--terracota);
  border-color: var(--terracota);
  color: #FFFFFF;
}

/* ==========================================
   BOTONES
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radio-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1;
}

.btn-aportar {
  background: linear-gradient(135deg, var(--verde-esperanza), #16A34A);
  color: white;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.3);
}

.btn-aportar:hover {
  background: linear-gradient(135deg, #166534, var(--verde-esperanza));
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(21, 128, 61, 0.4);
}

.btn-lg {
  padding: 14px 24px;
  font-size: 1.05rem;
  border-radius: var(--radio-md);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.82rem;
}

.btn-outline {
  background-color: #FFFFFF;
  color: var(--texto-secundario);
  border: 1px solid var(--borde-suave);
}

.btn-outline:hover {
  background-color: var(--fondo-tarjeta-suave);
  color: var(--texto-principal);
}

.btn-wa {
  background-color: var(--wa-verde);
  color: white;
}

.btn-wa:hover {
  background-color: var(--wa-oscuro);
}

.btn-bloque {
  width: 100%;
}

.btn-copiar {
  background-color: #E0F2FE;
  color: #0369A1;
  border: 1px solid #BAE6FD;
}

.btn-copiar:hover {
  background-color: #BAE6FD;
}

.btn-copiar.copiado {
  background-color: #DCFCE7;
  color: #14532D;
  border-color: #86EFAC;
}

.pulse-anim {
  animation: pulse-shadow 3s infinite;
}

@keyframes pulse-shadow {
  0% { box-shadow: 0 0 0 0 rgba(21, 128, 61, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(21, 128, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(21, 128, 61, 0); }
}

/* ==========================================
   BARRA FLOTANTE MÓVIL (STICKY CTA)
   ========================================== */
.barra-flotante-movil {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background-color: #FFFFFF;
  border-top: 1px solid var(--borde-suave);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 80;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
  .barra-flotante-movil {
    display: none;
  }
}

.progreso-mini-flotante {
  flex: 1;
}

.progreso-mini-flotante span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--texto-secundario);
  display: block;
  margin-bottom: 4px;
}

.barra-mini {
  height: 8px;
  background-color: #E7E0D8;
  border-radius: 999px;
  overflow: hidden;
}

.barra-mini-fill {
  height: 100%;
  background-color: var(--verde-esperanza);
  border-radius: 999px;
  transition: width 0.5s ease;
}

.btn-flotante {
  padding: 10px 18px;
  font-size: 0.95rem;
  white-space: nowrap;
}

/* ==========================================
   PIE DE PÁGINA
   ========================================== */
.footer-comunitario {
  background-color: #292524;
  color: #D6D3D1;
  padding: 32px 16px;
  font-size: 0.88rem;
  margin-top: 40px;
}

.footer-contenido {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-info strong {
  color: #FFFFFF;
  font-size: 0.95rem;
}

.footer-info p {
  margin-top: 4px;
  color: #A8A29E;
}

.footer-costo-cero {
  color: #78716C !important;
  font-size: 0.8rem;
}

.enlace-wa-footer {
  background-color: #44403C;
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: var(--radio-sm);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: background 0.2s;
}

.enlace-wa-footer:hover {
  background-color: var(--wa-oscuro);
}

/* ==========================================
   MODALES
   ========================================== */
.modal-fondo {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(28, 25, 23, 0.65);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.modal-caja {
  background-color: #FFFFFF;
  border-radius: var(--radio-md);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: var(--sombra-elevada);
  position: relative;
  animation: modalEntrada 0.25s ease-out;
}

.modal-caja-amplia {
  max-width: 720px;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--borde-suave);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.modal-titulo-icono {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-titulo-icono span {
  font-size: 1.6rem;
}

.modal-titulo-icono h3 {
  font-size: 1.25rem;
  font-weight: 800;
}

.btn-cerrar-modal {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--texto-suave);
  cursor: pointer;
  line-height: 1;
}

.btn-cerrar-modal:hover {
  color: var(--texto-principal);
}

.modal-intro {
  font-size: 0.95rem;
  color: var(--texto-secundario);
  margin-bottom: 18px;
}

/* OPCIONES DE APOYO EN EL MODAL */
.opciones-apoyo {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tarjeta-opcion-apoyo {
  background-color: #FAF7F2;
  border: 1px solid var(--borde-suave);
  border-radius: var(--radio-sm);
  padding: 16px;
}

.tarjeta-opcion-apoyo.destacado-whatsapp {
  background-color: #F0FDF4;
  border-color: #BBF7D0;
}

.opcion-cabecera {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.opcion-numero {
  background-color: var(--terracota);
  color: white;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.destacado-whatsapp .opcion-numero {
  background-color: var(--wa-oscuro);
}

.opcion-cabecera strong {
  font-size: 0.98rem;
  display: block;
}

.opcion-cabecera p {
  font-size: 0.82rem;
  color: var(--texto-secundario);
}

.datos-bancarios {
  background-color: #FFFFFF;
  border: 1px solid var(--borde-suave);
  border-radius: var(--radio-sm);
  padding: 12px 14px;
}

.dato-fila {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.9rem;
  border-bottom: 1px dashed var(--borde-suave);
}

.dato-fila:last-child {
  border-bottom: none;
}

.dato-clabe-fila {
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
}

@media (min-width: 480px) {
  .dato-clabe-fila {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.codigo-clabe {
  font-family: monospace;
  font-size: 1.05rem;
  font-weight: 800;
  background-color: #F5EFE6;
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--texto-principal);
  letter-spacing: 0.05em;
  display: inline-block;
  margin-top: 4px;
}

.info-diconsa-punto p {
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: #332E2B;
}

.aviso-wa-texto {
  font-size: 0.88rem;
  color: #14532D;
  margin-bottom: 12px;
}

.modal-footer {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--borde-suave);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* LISTA DE TODOS LOS MENSAJES (MODAL) */
.lista-todos-mensajes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 6px;
}

.item-mensaje-modal {
  background-color: #FAF7F2;
  border: 1px solid var(--borde-suave);
  border-radius: var(--radio-sm);
  padding: 14px;
}

.item-mensaje-modal p {
  font-size: 0.92rem;
  font-style: italic;
  margin-bottom: 6px;
}

.item-mensaje-pie {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--texto-suave);
  font-weight: 600;
}

/* ==========================================
   TOAST
   ========================================== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #1C1917;
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: var(--radio-sm);
  box-shadow: var(--sombra-elevada);
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 2000;
  animation: toastIn 0.3s ease;
}

@keyframes toastIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.oculto {
  display: none !important;
}
