/* =========================================
   FichasInmo • Botones flotantes de contacto
   Archivo: contacto-float.css
   ========================================= */

:root{
  --fi-fab-primary: var(--color-primario, #4a6fa5);
  --fi-fab-text: #111827;
  --fi-fab-border: rgba(229,231,235,.95);
  --fi-fab-shadow: 0 14px 34px rgba(0,0,0,.18);
}

.fi-fab-stack{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fi-fab-btn{
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--fi-fab-border);
  box-shadow: var(--fi-fab-shadow);
  cursor: pointer;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .12s ease, filter .12s ease;
  padding: 0;
  color: #0f172a;
}

.fi-fab-btn:active{ transform: translateY(1px) scale(.98); }
.fi-fab-btn:hover{ filter: brightness(1.02); }

.fi-fab-btn svg{
  width: 22px;
  height: 22px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fi-fab-btn--wsp{
  background: rgba(37,211,102,0.14);
  border-color: rgba(37,211,102,0.25);
  color: #128C7E;
}

.fi-fab-btn--msg{
  background: rgba(74,111,165,0.14);
  border-color: rgba(74,111,165,0.25);
  color: var(--fi-fab-primary);
}

/* ===== Modal ===== */
.fi-fab-modal{
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
}
.fi-fab-modal.is-open{ display: block; }

.fi-fab-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(2,6,23,.55);
}

.fi-fab-dialog{
  position: relative;
  width: min(520px, calc(100% - 26px));
  margin: 76px auto 18px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(229,231,235,.9);
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0,0,0,.28);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.fi-fab-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(229,231,235,.9);
}
.fi-fab-title{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--fi-fab-text);
}
.fi-fab-title .dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--fi-fab-primary);
  box-shadow: 0 0 0 4px rgba(74,111,165,.12);
}

.fi-fab-close{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(229,231,235,.9);
  background: rgba(255,255,255,.9);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #0f172a;
}

.fi-fab-body{
  padding: 14px;
}
.fi-fab-sub{
  margin: 0 0 10px;
  color: #475569;
  font-size: 13px;
  line-height: 1.35;
}


.fi-fab-btn i{
  font-size: 32px;
  line-height: 1;
}

.fi-fab-btn--wsp i{
  font-size: 28px;
}

.fi-fab-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.fi-fab-field{ display: grid; gap: 6px; }
.fi-fab-field label{
  font-size: 12px;
  font-weight: 800;
  color: #334155;
}
.fi-fab-field input,
.fi-fab-field select,
.fi-fab-field textarea{
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(226,232,240,.95);
  background: rgba(255,255,255,.92);
  outline: none;
  font-size: 13px;
  color: #0f172a;
}
.fi-fab-field textarea{
  min-height: 110px;
  resize: vertical;
}

.fi-fab-actions{
  margin-top: 12px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.fi-fab-action{
  border: 1px solid rgba(226,232,240,.95);
  background: rgba(255,255,255,.92);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 900;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0f172a;
}

.fi-fab-action.primary{
  background: linear-gradient(180deg, rgba(74,111,165,1), rgba(61,95,140,1));
  color: #fff;
  border-color: rgba(74,111,165,.35);
}
.fi-fab-action.ghost{
  background: rgba(15,23,42,.06);
  border-color: rgba(15,23,42,.10);
}

.fi-fab-action svg{
  width: 18px; height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===== Toast ===== */
.fi-fab-toast{
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(10px);
  background: #0b1220;
  color: #fff;
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.25);
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 10001;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 13px;
}
.fi-fab-toast.show{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 520px){
  .fi-fab-dialog{ margin-top: 56px; }
  .fi-fab-grid{ grid-template-columns: 1fr; }
}
