/* Somos Justicia — Ventana de opiniones
   Mismo formulario que antes iba en la portada, ahora en una ventana
   flotante disponible desde el pie de todas las paginas. */

.fb-abrir { background: none; border: none; padding: 0; cursor: pointer;
  color: rgba(255,255,255,0.6); font-family: 'Montserrat', sans-serif; font-size: 0.72rem;
  letter-spacing: 0.12em; text-transform: uppercase; transition: color 0.25s; }
.fb-abrir:hover, .fb-abrir:focus-visible { color: var(--gold-light); }

/* Fondo oscuro */
.fb-fondo { position: fixed; inset: 0; z-index: 2000; background: rgba(10,16,28,0.72);
  backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s; }
.fb-fondo.abierto { opacity: 1; visibility: visible; }

/* Panel */
.fb-panel { background: var(--white); width: 100%; max-width: 620px; max-height: 90vh;
  overflow-y: auto; padding: 3rem 3rem 2.6rem; position: relative;
  border-top: 3px solid var(--gold); box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  transform: translateY(24px) scale(0.98); transition: transform 0.35s cubic-bezier(0.22,0.61,0.36,1); }
.fb-fondo.abierto .fb-panel { transform: none; }
@media (max-width: 620px) { .fb-panel { padding: 2.2rem 1.4rem 1.8rem; } }

.fb-cerrar { position: absolute; top: 1.1rem; right: 1.1rem; width: 38px; height: 38px;
  background: none; border: 1px solid var(--gray-mid); color: var(--text-mid); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.25s; }
.fb-cerrar:hover, .fb-cerrar:focus-visible { border-color: var(--gold); color: var(--gold); }

.fb-encabezado { text-align: center; margin-bottom: 2rem; }
.fb-encabezado .section-label { font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 0.6rem; }
.fb-encabezado h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  font-weight: 400; color: var(--navy); line-height: 1.15; }
.fb-encabezado .gold-divider { width: 56px; height: 2px; background: var(--gold); margin: 1rem auto; }
.fb-encabezado p { color: var(--text-mid); font-weight: 300; font-size: 0.92rem; line-height: 1.6; }

/* Estrellas */
.fb-estrellas { display: flex; gap: 0.5rem; justify-content: center; margin-bottom: 1.8rem; }
.fb-estrella { background: none; border: none; cursor: pointer; padding: 0.2rem;
  color: var(--gray-mid); transition: color 0.2s, transform 0.2s; line-height: 0; }
.fb-estrella:hover, .fb-estrella:focus-visible { transform: scale(1.15); color: var(--gold-light); }
.fb-estrella.marcada { color: var(--gold); }

/* Campos */
.fb-campo { margin-bottom: 1.1rem; }
.fb-campo label { display: block; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-mid); font-weight: 600; margin-bottom: 0.5rem; }
.fb-campo input, .fb-campo textarea, .fb-campo select { width: 100%; padding: 0.9rem 1.05rem;
  background: var(--white); border: 1px solid var(--gray-mid); color: var(--text-dark);
  font-family: 'Montserrat', sans-serif; font-size: 0.92rem; font-weight: 300; transition: border-color 0.25s; }
.fb-campo input:focus, .fb-campo textarea:focus, .fb-campo select:focus {
  outline: none; border-color: var(--gold); }
.fb-campo textarea { min-height: 110px; resize: vertical; }
.fb-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .fb-fila { grid-template-columns: 1fr; } }

.fb-enviar { width: 100%; justify-content: center; display: inline-flex; align-items: center;
  gap: 0.6rem; padding: 1.05rem 2.5rem; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; background: var(--gold); color: var(--navy-dark); border: none;
  border-radius: 999px; cursor: pointer; box-shadow: 0 6px 20px rgba(184,154,106,0.3); transition: all 0.3s; }
.fb-enviar:hover { background: var(--gold-light); transform: translateY(-2px); }

.fb-nota { font-size: 0.76rem; font-weight: 300; color: var(--text-mid); text-align: center; margin-top: 1.1rem; }
.fb-oculto { position: absolute; left: -9999px; }

/* Mensaje de agradecimiento */
.fb-gracias { display: none; text-align: center; padding: 1.5rem 0; }
.fb-gracias.visible { display: block; }
.fb-gracias .marca { width: 58px; height: 58px; border: 1px solid var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--gold); margin: 0 auto 1.2rem; }
.fb-gracias p { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; color: var(--navy); }
.fb-gracias span { display: block; font-size: 0.9rem; font-weight: 300; color: var(--text-mid);
  margin-top: 0.6rem; line-height: 1.6; }

@media (prefers-reduced-motion: reduce) {
  .fb-fondo, .fb-panel { transition: none; }
  .fb-panel { transform: none; }
}


/* ── Ventana de politicas ──────────────────────────────────────────── */
.lg-panel { max-width: 760px; text-align: left; }
.lg-panel h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.7rem, 3.6vw, 2.3rem);
  font-weight: 400; color: var(--navy); line-height: 1.15; margin-bottom: 0.4rem; }
.lg-panel h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 600;
  color: var(--navy); margin: 2rem 0 0.7rem; }
.lg-panel h3:first-of-type { margin-top: 1.6rem; }
.lg-panel p { font-size: 0.92rem; font-weight: 300; color: var(--text-mid);
  line-height: 1.8; margin-bottom: 0.9rem; }
.lg-panel ul { margin: 0 0 1rem 1.2rem; }
.lg-panel li { font-size: 0.92rem; font-weight: 300; color: var(--text-mid);
  line-height: 1.75; margin-bottom: 0.5rem; }
.lg-panel strong { font-weight: 600; color: var(--text-dark); }
.lg-panel a { color: var(--navy); text-decoration: underline;
  text-decoration-color: var(--gold); text-underline-offset: 3px; }
.lg-fecha { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-mid); padding-top: 1.4rem; margin-top: 1.8rem;
  border-top: 1px solid var(--gray-mid); }
.lg-destacado { background: var(--gray-light); border-left: 2px solid var(--gold);
  padding: 1.1rem 1.4rem; margin: 1.2rem 0; }
.lg-destacado p { margin-bottom: 0; }
