/* Generador de firma de email — estilos propios. Colores y medidas: vg-neutro.css */

:root {
  --estado-ok:         #2F6B3F;
  --estado-bad-tinte:  #F7E2E0;
}

.fm-hero { padding: var(--esp-8) 0 var(--esp-6); max-width: 760px; }
.fm-hero h1 { margin-bottom: var(--esp-5); }

.fm-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--esp-5); align-items: start; }
@media (max-width: 960px) { .fm-layout { grid-template-columns: minmax(0, 1fr); } }

.fm-form { display: grid; gap: var(--esp-4); min-width: 0; }
.fm-block { display: grid; gap: var(--esp-4); }
.fm-block > * { min-width: 0; }
.fm-block:hover, .fm-preview-card:hover, .fm-howto:hover { box-shadow: none; }
.fm-step {
  display: flex; align-items: center; gap: var(--esp-2); margin: 0;
  font-family: var(--font-body); font-size: var(--fs-base); font-weight: 600; letter-spacing: 0;
}
.fm-step span:not(.fm-optional) {
  width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  background: var(--cta-fondo); color: var(--cta-texto); font-size: var(--fs-xs);
}
.fm-optional { font-weight: 400; color: var(--texto-tenue); font-size: var(--fs-sm); }
.fm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--esp-4) var(--esp-3); }
@media (max-width: 520px) { .fm-grid { grid-template-columns: minmax(0, 1fr); } }
.fm-col-2 { grid-column: 1 / -1; }
.fm-field { display: grid; gap: var(--esp-2); align-content: start; min-width: 0; }
.fm-field .vg-label, .fm-field .vg-hint { margin: 0; }
select.vg-field { appearance: auto; }
.fm-msg { margin: 0; font-size: var(--fs-sm); }
.fm-msg:empty { display: none; }
.fm-msg.is-bad { color: var(--peligro); }
.fm-color { display: flex; align-items: center; gap: var(--esp-2); }
.fm-color input[type="color"] { width: 48px; height: 44px; padding: 2px; border: 1px solid var(--borde-fuerte); border-radius: var(--radio); background: var(--superficie); cursor: pointer; }
.fm-color code { font-size: var(--fs-sm); color: var(--texto-medio); }
.fm-check { display: flex; align-items: center; gap: var(--esp-2); font-size: var(--fs-sm); color: var(--texto); cursor: pointer; }
.fm-check input { width: 18px; height: 18px; accent-color: var(--cta-fondo); }

/* --- Vista previa --- */
.fm-side { display: grid; gap: var(--esp-4); min-width: 0; position: sticky; top: 88px; }
@media (max-width: 960px) { .fm-side { position: static; } }
.fm-preview-card { display: grid; gap: var(--esp-4); }
.fm-preview-card > * { min-width: 0; }
.fm-mail { background: var(--n-blanco); border: 1px solid var(--borde); border-radius: var(--radio); padding: var(--esp-4) var(--esp-5) var(--esp-5); }
.fm-mail-head { display: grid; gap: 6px; padding-bottom: var(--esp-4); margin-bottom: var(--esp-4); border-bottom: 1px solid var(--borde); }
.fm-mail-head span { display: block; height: 8px; border-radius: 4px; background: var(--n-100); }
.fm-mail-head span:nth-child(1) { width: 55%; } .fm-mail-head span:nth-child(2) { width: 85%; } .fm-mail-head span:nth-child(3) { width: 70%; }
.fm-mail-greet { margin: 0 0 var(--esp-3); font: 14px Arial, Helvetica, sans-serif; color: #333; }
.fm-mail iframe { display: block; width: 100%; height: 280px; border: 0; background: #fff; }
.fm-empty { margin: 0; color: var(--texto-tenue); }
.fm-actions { display: flex; flex-wrap: wrap; gap: var(--esp-2); }
.fm-actions .vg-btn { flex: 1 1 auto; }
.fm-actions .vg-btn svg { width: 16px; height: 16px; }
.vg-btn.is-copied { background: var(--cta-fondo); color: var(--cta-texto); border-color: var(--cta-fondo); }
.fm-draft { margin: 0; font-size: var(--fs-xs); color: var(--texto-tenue); }
.fm-textbtn { background: none; border: 0; padding: 0; cursor: pointer; font: 600 var(--fs-xs) var(--font-body); color: var(--acento-texto); text-decoration: underline; text-underline-offset: 3px; }

.fm-howto { display: grid; gap: var(--esp-2); }
.fm-howto details { border-top: 1px solid var(--borde); }
.fm-howto summary { cursor: pointer; padding: var(--esp-3) 0; font-weight: 600; color: var(--texto-titulo); font-size: var(--fs-sm); }
.fm-howto ol, .fm-howto p { margin: 0 0 var(--esp-3); font-size: var(--fs-sm); color: var(--texto); }
.fm-howto ol { padding-left: 1.2em; display: grid; gap: 4px; }

/* --- FAQ y CTA --- */
.fm-faq { margin: var(--esp-8) 0 0; max-width: 760px; }
.fm-faq details { border-top: 1px solid var(--borde); }
.fm-faq details:last-of-type { border-bottom: 1px solid var(--borde); }
.fm-faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--esp-4);
  padding: var(--esp-4) 0; font-weight: 600; color: var(--texto-titulo);
}
.fm-faq summary::-webkit-details-marker { display: none; }
.fm-faq summary::after { content: "+"; font-weight: 400; font-size: 1.4rem; line-height: 1; color: var(--acento-texto); transition: transform .15s ease; }
.fm-faq details[open] summary::after { transform: rotate(45deg); }
.fm-faq details p { margin: 0 0 var(--esp-4); color: var(--texto); max-width: 62ch; }

.fm-cta {
  margin: var(--esp-8) 0 var(--esp-7);
  display: flex; justify-content: space-between; align-items: center; gap: var(--esp-5); flex-wrap: wrap;
  padding: var(--esp-6); border-radius: var(--radio-card); background: var(--fondo-barra); border: 1px solid var(--borde);
}
.fm-cta h2 { margin-bottom: var(--esp-2); }
.fm-cta > div { flex: 1 1 360px; }
.fm-alert { margin: 0 0 var(--esp-4); padding: var(--esp-2) var(--esp-3); border-radius: var(--radio); font-size: var(--fs-sm); }
.fm-alert.is-bad { background: var(--estado-bad-tinte); color: var(--peligro); }

@media (max-width: 576px) {
  .vg-wrap { padding: 0 var(--esp-4); }
  .fm-hero { padding: var(--esp-7) 0 var(--esp-5); }
  .fm-cta { padding: var(--esp-5); }
}
