/* Backdrop */
.fp-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0); z-index: 900; pointer-events: none; transition: background 0.35s ease; }
.fp-backdropVisible { background: rgba(0,0,0,0.35); pointer-events: all; }

/* Panel */
.fp-panel {
  position: fixed; bottom: 0; left: 0; right: 0; background: #fff; z-index: 901;
  padding: 40px 64px 48px; transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  max-height: 85vh; overflow-y: auto; box-shadow: 0 -8px 40px rgba(0,0,0,0.12);
}
.fp-panelOpen { transform: translateY(0); }

/* Header */
.fp-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.fp-brand { display: flex; align-items: center; gap: 16px; }
.fp-brandName { font-size: 26px; font-weight: 800; color: #12203a; letter-spacing: -0.5px; }
.fp-brandDivider { display: block; width: 1px; height: 24px; background: #009bdb; }
.fp-brandSince { font-size: 14px; color: #7a8899; font-weight: 400; }
.fp-closeBtn {
  background: none; border: none; cursor: pointer; color: #009bdb;
  display: flex; align-items: center; justify-content: center;
  padding: 6px; border-radius: 6px; transition: background 0.15s, color 0.15s;
}
.fp-closeBtn:hover { background: #f0f2f4; color: #12203a; }

/* Product row */
.fp-productRow { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; gap: 24px; }
.fp-productLabel { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #5b88a8; margin-bottom: 6px; }
.fp-productName { font-size: 28px; font-weight: 800; color: #12203a; line-height: 1.15; }

.fp-comparadosBtn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px;
  border: 1.5px solid #d4dbe3; background: transparent; color: #12203a;
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: border-color 0.2s, background 0.2s;
}
.fp-comparadosBtn:hover { border-color: #12203a; background: #f7f9fb; }
.fp-comparadosBtn.fp-comparadosBtnActive { border-color: #12203a; background: #12203a; color: #fff; }
.fp-comparadosBtn.fp-comparadosBtnActive:hover { background: #1e3a5f; }
.fp-comparadosBtn.fp-comparadosBtnActive .fp-comparadosBadge { background: #fff; color: #12203a; }
.fp-comparadosBadge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%; background: #12203a; color: #fff; font-size: 10px; font-weight: 700;
}

.fp-divider { border: none; border-top: 1px solid #e8ecf0; margin-bottom: 32px; }

/* Room selector */
.fp-roomSelector { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.fp-roomChips { display: flex; flex-wrap: wrap; gap: 10px; }
.fp-roomChip {
  display: flex; align-items: center; gap: 10px; padding: 12px 18px;
  border: 1.5px solid #e0e5ea; border-radius: 8px; background: #f9fafb;
  cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.fp-roomChip:hover { border-color: #c0c8d0; background: #f4f6f8; }
.fp-roomChip.fp-roomChipSelected { border-color: var(--chip-accent, #5b88a8); }
.fp-roomChipCheck {
  width: 18px; height: 18px; border-radius: 4px; border: 2px solid #c8d0d8;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}
.fp-roomChipLabel { font-size: 13px; font-weight: 700; color: #12203a; letter-spacing: 0.2px; }
.fp-roomChipProduct { font-size: 11px; color: #7a8899; font-weight: 500; }

/* Form */
.fp-form { display: flex; flex-direction: column; gap: 24px; }
.fp-fieldsGrid { display: grid; grid-template-columns: 2fr 1.5fr 1fr; gap: 20px; }
.fp-fieldGroup { display: flex; flex-direction: column; gap: 8px; }
.fp-label { font-size: 11px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: #7a8899; }
.fp-required { color: #c0392b; }
.fp-input {
  padding: 14px 16px; border: 1.5px solid #e0e5ea; border-radius: 0; background: #f9fafb;
  font-size: 14px; color: #12203a; outline: none; transition: border-color 0.15s, background 0.15s;
  width: 100%; box-sizing: border-box;
}
.fp-input::placeholder { color: #b0bbc5; }
.fp-input:focus { border-color: #12203a; background: #fff; }
.fp-textarea {
  padding: 14px 16px; border: 1.5px solid #e0e5ea; border-radius: 0; background: #f9fafb;
  font-size: 14px; color: #12203a; outline: none; resize: vertical; min-height: 180px;
  font-family: inherit; transition: border-color 0.15s, background 0.15s;
  width: 100%; box-sizing: border-box;
}
.fp-textarea::placeholder { color: #b0bbc5; }
.fp-textarea:focus { border-color: #12203a; background: #fff; }


.fp-talleres { border: 1.5px solid #e0e5ea; background: #f9fafb; padding: 12px; }
.fp-talleresHint { margin: 0; padding: 10px 4px; font-size: 13px; color: #7a8899; }
.fp-talleresCount { font-size: 11px; font-weight: 700; letter-spacing: 0.5px; color: #12203a; margin-bottom: 10px; }
.fp-talleresList {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px; max-height: 260px; overflow-y: auto; padding-right: 4px;
}
.fp-tallerCard {
  display: flex; flex-direction: column; gap: 3px; text-align: left;
  padding: 10px 12px; border: 1.5px solid #e0e5ea; background: #fff;
  cursor: pointer; transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.fp-tallerCard:hover { border-color: #b0bbc5; }
.fp-tallerCard strong { font-size: 13px; color: #12203a; font-weight: 700; line-height: 1.25; }
.fp-tallerCard span { font-size: 12px; color: #7a8899; }
.fp-tallerCard.selected { border-color: #12203a; background: #eef3f8; box-shadow: inset 0 0 0 1px #12203a; }

.fp-formFooter { display: flex; justify-content: flex-end; }
.fp-submitBtn {
  padding: 14px 40px; border: none; background: #12203a; color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s;
}
.fp-submitBtn:hover { background: #1e3a5f; }
.fp-submitBtn:disabled { opacity: 0.8; cursor: not-allowed; min-width: 160px; display: inline-flex; align-items: center; justify-content: center; }

@keyframes fp-spin { to { transform: rotate(360deg); } }
.fp-spinner {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff;
  border-radius: 50%; animation: fp-spin 0.7s linear infinite;
}

/* Success */
.fp-successWrapper {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 40px; text-align: center; min-height: 380px;
}
.fp-successIcon { width: 72px; height: 72px; margin-bottom: 28px; }
.fp-successIcon svg { width: 100%; height: 100%; }

@keyframes fp-drawCircle { from { stroke-dashoffset: 160; } to { stroke-dashoffset: 0; } }
@keyframes fp-drawCheck { from { stroke-dashoffset: 50; } to { stroke-dashoffset: 0; } }
.fp-successCircle { stroke-dasharray: 160; stroke-dashoffset: 160; animation: fp-drawCircle 0.5s ease forwards; }
.fp-successCheck { stroke-dasharray: 50; stroke-dashoffset: 50; animation: fp-drawCheck 0.4s ease 0.45s forwards; }
.fp-successTitle { font-size: 26px; font-weight: 800; color: #12203a; margin-bottom: 14px; }
.fp-successText { font-size: 14px; color: #7a8899; line-height: 1.65; max-width: 420px; margin-bottom: 10px; }
.fp-successCloseBtn {
  padding: 12px 40px; border: 1.5px solid #12203a; background: transparent; color: #12203a;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s, color 0.2s;
}
.fp-successCloseBtn:hover { background: #12203a; color: #fff; }

@media (max-width: 768px) {
  .fp-panel { padding: 28px 24px 36px; }
  .fp-fieldsGrid { grid-template-columns: 1fr; }
  .fp-productRow { flex-direction: column; align-items: flex-start; }
}
