/**
 * Popup «Únete a nuestra comunidad» — ver parts/gf-popup.php.
 *
 * Autónomo: se carga también en el home y en Quiénes Somos, que no traen las
 * hojas del chasis (gf-tienda.css / gf-pagina.css), así que lleva sus propios
 * tokens y reconduce el WPForms con !important (su hoja trae radios y azul).
 */

.gf-popup {
  --gfp-crema: #f5f0e8;
  --gfp-dorado: #c8a96e;
  --gfp-dorado-claro: #dcc394;
  --gfp-oscuro: #171310;
  --gfp-tinta: #3d342b;
  --gfp-suave: #6b6055;
  --gfp-serif: 'Cormorant Garamond', Georgia, serif;
  --gfp-sans: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;

  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; transition: opacity .25s ease;
}
.gf-popup[hidden] { display: none; }
.gf-popup.abierto { opacity: 1; }

.gf-popup__velo { position: absolute; inset: 0; background: rgba(23, 19, 16, .72); }

.gf-popup__caja {
  position: relative;
  width: 100%; max-width: 440px;
  background: var(--gfp-crema);
  color: var(--gfp-tinta);
  padding: 40px 34px 30px;
  font-family: var(--gfp-sans);
  line-height: 1.6;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  transform: translateY(14px); transition: transform .25s ease;
  box-sizing: border-box;
}
.gf-popup.abierto .gf-popup__caja { transform: none; }
.gf-popup__caja * { box-sizing: border-box; }

.gf-popup__cerrar {
  position: absolute; top: 8px; right: 10px;
  width: 40px; height: 40px;
  background: none; border: 0; padding: 0; cursor: pointer;
  font-size: 1.8rem; line-height: 1; color: var(--gfp-suave);
}
.gf-popup__cerrar:hover { color: var(--gfp-oscuro); }

.gf-popup__eyebrow {
  margin: 0 0 10px;
  font-size: .66rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gfp-dorado);
}
.gf-popup__titulo {
  margin: 0 0 10px;
  font-family: var(--gfp-serif); font-weight: 500; font-size: 2rem; line-height: 1.08;
  color: var(--gfp-oscuro);
}
.gf-popup__texto { margin: 0 0 20px; font-size: .95rem; }
.gf-popup__nota { margin: 14px 0 0; font-size: .74rem; color: var(--gfp-suave); }
.gf-popup__nota a { color: inherit; text-decoration: underline; text-decoration-color: var(--gfp-dorado); }

/* WPForms dentro del popup: campo y botón en una fila. */
.gf-popup .wpforms-container { margin: 0 !important; }
.gf-popup .wpforms-form { display: flex !important; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.gf-popup .wpforms-field-container { flex: 1 1 200px; }
.gf-popup .wpforms-field { padding: 0 !important; }
.gf-popup .wpforms-container input[type=email] {
  width: 100% !important; max-width: 100% !important; height: auto !important;
  padding: 13px 14px !important;
  border: 1px solid rgba(61, 52, 43, .24) !important; border-radius: 0 !important;
  background: #fff !important; box-shadow: none !important;
  font-family: var(--gfp-sans) !important; font-size: .92rem !important; color: var(--gfp-tinta) !important;
}
.gf-popup .wpforms-container input[type=email]:focus { border-color: var(--gfp-dorado) !important; outline: none !important; }
.gf-popup .wpforms-submit-container { padding: 0 !important; margin: 0 !important; flex: 0 0 auto; }
.gf-popup .wpforms-container button[type=submit] { margin: 0 !important; }
.gf-popup .wpforms-container button[type=submit] {
  height: auto !important;
  padding: 14px 24px !important;
  border: 1px solid var(--gfp-dorado) !important; border-radius: 0 !important;
  background: var(--gfp-dorado) !important; color: var(--gfp-oscuro) !important;
  box-shadow: none !important;
  font-family: var(--gfp-sans) !important; font-weight: 500 !important; font-size: .74rem !important;
  letter-spacing: .16em; text-transform: uppercase; line-height: 1.2 !important;
  cursor: pointer;
}
.gf-popup .wpforms-container button[type=submit]:hover { background: var(--gfp-dorado-claro) !important; }
.gf-popup .wpforms-container label.wpforms-error,
.gf-popup .wpforms-container em.wpforms-error { color: #b4553f !important; font-size: .78rem !important; }
.gf-popup .wpforms-confirmation-container-full {
  background: #fff !important; border: 1px solid var(--gfp-dorado) !important; border-radius: 0 !important;
  color: var(--gfp-tinta) !important; padding: 16px 18px !important; margin: 0 !important;
}
.gf-popup .wpforms-confirmation-container-full p { margin: 0; }

@media (max-width: 480px) {
  .gf-popup__caja { padding: 36px 22px 24px; }
  .gf-popup__titulo { font-size: 1.7rem; }
  .gf-popup .wpforms-submit-container,
  .gf-popup .wpforms-container button[type=submit] { width: 100% !important; }
}
