/* Global UI components */

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 30px;
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .06em;
  border-radius: var(--r6);
  transition: all .2s;
}

.btn-hero-primary {
  background: var(--orange);
  color: #fff;
}

.btn-hero-primary:hover {
  background: var(--orange-glow);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(232, 103, 14, .4);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, .08);
  border: 1.5px solid rgba(255, 255, 255, .20);
  color: #fff;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .4);
  transform: translateY(-2px);
}

.btn-hero svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  flex-shrink: 0;
}

.btn-cta-wa {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 26px;
  background: #25D366;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--r8);
  transition: all .2s;
}

.btn-cta-wa:hover {
  background: #1DB954;
  transform: translateY(-2px);
}

.btn-cta-wa svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.btn-cta-cat {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 24px;
  background: rgba(255, 255, 255, .08);
  border: 1.5px solid rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--r8);
  transition: all .2s;
}

.btn-cta-cat:hover {
  background: rgba(255, 255, 255, .15);
  border-color: rgba(255, 255, 255, .35);
}

.btn-cta-cat svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Toast */

.toast {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 900;
  background: var(--navy);
  border: 1px solid var(--navy-light);
  border-radius: var(--r12);
  padding: 14px 18px;
  box-shadow: var(--sh-xl);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  max-width: 320px;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform .3s, opacity .3s;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.toast-icon {
  width: 34px;
  height: 34px;
  background: rgba(214, 59, 59, .15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--red);
  fill: none;
  stroke-width: 2;
}

.toast-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.toast-sub {
  font-size: 11px;
  color: var(--slate-light);
  margin-top: 2px;
}

.toast-x {
  color: var(--slate-light);
  font-size: 18px;
  cursor: pointer;
  margin-left: auto;
}

.toast-x:hover {
  color: #fff;
}

/* ═══════════════════════════════════════════════════
   WA FLOAT + MODAL
═══════════════════════════════════════════════════ */

.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  transition: bottom .2s ease, opacity .2s ease, transform .2s ease;
}

.wa-float.wa-fab--raised {
  bottom: calc(24px + 44px + 22px);
}

.wa-float.wa-fab--hidden {
  opacity: 0;
  transform: scale(.8);
  pointer-events: none;
}

.wa-float.is-panel-open .wa-btn {
  transform: scale(.98);
  box-shadow: 0 18px 36px rgba(8, 23, 43, .2);
}

.wa-float.is-panel-open .wa-btn svg {
  transform: rotate(90deg) scale(.92);
}

.wa-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 14px 30px rgba(37, 211, 102, .28);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.wa-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(37, 211, 102, .34);
}

.wa-btn svg {
  width: 28px;
  height: 28px;
  fill: #fff;
  transition: transform .2s ease;
}

.wa-tooltip {
  position: absolute;
  right: 68px;
  bottom: 8px;
  background: #1a1a1a;
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
  padding: 7px 12px;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(10, 18, 32, .22);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.wa-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right: none;
  border-left-color: #1a1a1a;
}

.wa-tooltip.show {
  opacity: 1;
}

.wa-area-panel {
  position: fixed;
  right: 24px;
  bottom: calc(56px + 24px + 12px);
  width: min(280px, calc(100vw - 32px));
  max-width: 280px;
  background: var(--white);
  border: .5px solid rgba(8, 23, 43, .12);
  border-radius: 16px;
  box-shadow: 0 20px 54px rgba(8, 23, 43, .18);
  overflow: hidden;
  z-index: 901;
  transform-origin: bottom right;
  transition: opacity .2s ease, transform .2s ease;
}

.wa-area-panel--hidden {
  opacity: 0;
  transform: scale(.9);
  pointer-events: none;
}

.wa-area-panel__arrow {
  position: absolute;
  right: 18px;
  bottom: -7px;
  width: 14px;
  height: 14px;
  background: var(--white);
  border-right: .5px solid rgba(8, 23, 43, .12);
  border-bottom: .5px solid rgba(8, 23, 43, .12);
  transform: rotate(45deg);
}

.wa-area-panel__header {
  position: relative;
  padding: 14px 44px 10px 16px;
  border-bottom: .5px solid rgba(8, 23, 43, .08);
  text-align: center;
  font-size: 12px;
  color: var(--slate);
}

.wa-area-panel__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #f2f5f8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.wa-area-panel__close svg {
  width: 14px;
  height: 14px;
  stroke: var(--navy);
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.wa-area-panel__list {
  display: grid;
}

.wa-area-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: transparent;
  border: 0;
  border-bottom: .5px solid rgba(8, 23, 43, .08);
  text-align: left;
  cursor: pointer;
  transition: background .16s ease;
}

.wa-area-item:last-child {
  border-bottom: 0;
}

.wa-area-item:hover {
  background: #f7fafc;
}

.wa-area-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wa-area-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wa-area-info {
  flex: 1;
  min-width: 0;
}

.wa-area-name {
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
}

.wa-area-desc {
  display: block;
  font-size: 12px;
  color: var(--slate);
  line-height: 1.4;
}

.wa-area-arrow {
  color: #9aa9bc;
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.wa-overlay {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(5, 14, 26, .58);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.wa-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.wa-modal {
  background: var(--white);
  border-radius: 20px;
  width: min(100%, 460px);
  padding: 26px 24px;
  transform: translateY(18px);
  transition: transform .25s cubic-bezier(.22, 1, .36, 1);
  box-shadow: 0 28px 80px rgba(4, 11, 23, .28);
}

.wa-overlay.active .wa-modal {
  transform: translateY(0);
}

.wa-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.wa-modal-title {
  font-family: var(--f-display);
  font-size: clamp(22px, 2.3vw, 28px);
  line-height: .98;
  font-weight: 900;
  color: var(--navy);
}

.wa-modal-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #eef3f8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.wa-modal-close svg {
  width: 16px;
  height: 16px;
  stroke: var(--navy);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.wa-form {
  display: grid;
  gap: 16px;
}

.wa-client-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(37, 211, 102, .18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(37, 211, 102, .10), rgba(255,255,255,.96));
}

.wa-client-summary[hidden],
.wa-client-fields[hidden] {
  display: none !important;
}

.wa-client-summary span,
.wa-message-preview {
  color: rgba(8, 23, 43, .62);
  font-size: 12px;
  line-height: 1.35;
}

.wa-client-summary strong {
  display: block;
  margin-top: 3px;
  color: var(--navy);
  font-weight: 900;
}

.wa-client-summary button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(8, 23, 43, .12);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
}

.wa-client-fields {
  display: grid;
  gap: 14px;
}

.wa-message-preview {
  padding: 12px 14px;
  border: 1px solid rgba(213, 223, 236, .78);
  border-radius: 14px;
  background: #f7fafc;
}

.wa-field {
  display: grid;
  gap: 8px;
}

.wa-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.wa-input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(8, 23, 43, .12);
  border-radius: 14px;
  background: #fff;
  color: var(--navy);
  padding: 14px 16px;
  font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.wa-input:focus {
  outline: none;
  border-color: rgba(37, 211, 102, .72);
  box-shadow: 0 0 0 4px rgba(37, 211, 102, .12);
}

.wa-field.is-error .wa-input {
  border-color: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, .10);
}

.wa-textarea {
  min-height: 132px;
  resize: vertical;
}

.wa-field-error {
  display: none;
  font-size: 12px;
  color: #dc2626;
}

.wa-field.is-error .wa-field-error {
  display: block;
}

.wa-field-meta {
  font-size: 11px;
  color: rgba(8, 23, 43, .58);
}

.wa-send-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  width: 100%;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease;
}

.wa-send-btn:hover {
  transform: translateY(-1px);
  background: #112541;
}

.wa-send-btn svg {
  width: 16px;
  height: 16px;
  fill: #25D366;
  flex-shrink: 0;
}

.wa-privacy-copy {
  margin-top: -8px;
  font-size: 11px;
  color: rgba(8, 23, 43, .48);
  text-align: center;
}

.btn-cta-wa {
  height: 56px;
  padding: 0 28px;
  background: #25D366;
  color: #fff;
  border-radius: var(--r8);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all .2s;
}

.btn-cta-wa:hover {
  background: #1DB954;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(37, 211, 102, .3);
}

.btn-cta-wa svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.btn-cta-cat {
  height: 56px;
  padding: 0 28px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .2);
  border-radius: var(--r8);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all .2s;
}

.btn-cta-cat:hover {
  background: rgba(255, 255, 255, .15);
  border-color: rgba(255, 255, 255, .4);
  transform: translateY(-3px);
}

.btn-cta-cat svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
}

.wa-step2,
.wa-step2-title,
.wa-step2-desc,
.wa-name-input,
.wa-back {
  display: none !important;
}

/* Scroll top */

.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 400;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: var(--sh-md);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  cursor: pointer;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: all;
}

.scroll-top svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
}

/* Fade up */

.fade-up {
  transition: opacity .65s, transform .65s;
}

.js-ready .fade-up {
  opacity: 0;
  transform: translateY(28px);
}

.fade-up.in,
.js-ready .fade-up.in {
  opacity: 1;
  transform: none;
}

.wa-dept-btn {
  appearance: none;
  width: 100%;
  text-align: left;
}

.wa-overlay {
  z-index: 9997 !important;
}

.btn-primary-premium,
.btn-secondary-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.btn-primary-premium {
  background: var(--orange);
  color: #fff;
  border: 1px solid var(--orange);
  box-shadow: 0 12px 28px rgba(232, 130, 12, .24);
}

.btn-primary-premium:hover {
  transform: translateY(-2px);
  background: #d97309;
  border-color: #d97309;
}

.btn-secondary-premium {
  background: var(--navy);
  color: #fff;
  border: 1px solid rgba(8, 23, 43, .12);
}

.btn-secondary-premium:hover {
  transform: translateY(-2px);
  background: #10284a;
}

.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1500;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity .24s ease, transform .24s ease;
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-banner-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  background: rgba(8, 23, 43, .96);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 24px;
  padding: 20px 22px;
  box-shadow: 0 24px 60px rgba(8, 23, 43, .28);
}

.cookie-banner-copy strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
}

.cookie-banner-copy p {
  color: rgba(255, 255, 255, .74);
  line-height: 1.7;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-link {
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-weight: 700;
  padding: 0 4px;
}

.cookie-btn {
  min-height: 46px;
}

@media (max-width: 720px) {
  .cookie-banner {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .cookie-banner-inner {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
  }

  .cookie-banner-copy strong {
    font-size: 18px;
    line-height: 1.15;
  }

  .cookie-banner-copy p {
    font-size: 13px;
    line-height: 1.55;
  }

  .cookie-banner-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cookie-link,
  .cookie-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Float Hider Utility */
.wa-btn,
.fav-float-btn,
.scroll-top,
#scrollTopBtn {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s !important;
}

.floats-hidden .wa-btn,
.floats-hidden .fav-float-btn,
.floats-hidden .scroll-top,
.floats-hidden #scrollTopBtn {
  transform: translateY(100px) scale(0.8) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Mobile favorites floating action */
.fav-float-mobile {
  display: none;
}

.fav-float-btn {
  appearance: none;
  border: 0;
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(145deg, #071421, #0b1e34);
  color: #fff;
  box-shadow: 0 18px 38px rgba(8, 23, 43, .24), inset 0 0 0 1px rgba(255, 255, 255, .1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.fav-float-btn svg {
  width: 27px;
  height: 27px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}

.fav-float-mobile.has-favorites .fav-float-btn {
  background: linear-gradient(145deg, #ffffff, #f6f9fd);
  color: #d63b3b;
  box-shadow: 0 18px 38px rgba(8, 23, 43, .18), inset 0 0 0 1px rgba(214, 59, 59, .12);
}

.fav-float-mobile.has-favorites .fav-float-btn svg {
  fill: currentColor;
}

.fav-float-count {
  position: absolute;
  top: -4px;
  right: -5px;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  border: 2px solid #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  transform: scale(.72);
  transition: opacity .2s ease, transform .2s ease;
}

.fav-float-mobile.has-favorites .fav-float-count {
  opacity: 1;
  transform: scale(1);
}

.favorite-fly-heart {
  position: fixed;
  z-index: 1400;
  width: 30px;
  height: 30px;
  color: #d63b3b;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(.65);
  filter: drop-shadow(0 12px 20px rgba(8, 23, 43, .22));
}

.favorite-fly-heart svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  stroke: currentColor;
}

.favorite-fly-heart.is-flying {
  animation: favFlyToFloat .72s cubic-bezier(.22, 1, .36, 1) forwards;
}

.fav-float-btn.fav-float-pulse {
  animation: favFloatPulse .62s ease;
}

@keyframes favFlyToFloat {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(.65) rotate(-10deg);
  }
  15% {
    opacity: 1;
  }
  72% {
    opacity: 1;
    transform: translate3d(var(--fav-fly-x), calc(var(--fav-fly-y) - 18px), 0) scale(1.05) rotate(8deg);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--fav-fly-x), var(--fav-fly-y), 0) scale(.38) rotate(0);
  }
}

@keyframes favFloatPulse {
  0%, 100% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.12);
  }
}

@media (max-width: 768px) {
  .fav-float-mobile {
    position: fixed;
    left: 16px;
    bottom: calc(24px + env(safe-area-inset-bottom));
    z-index: 895;
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .favorite-fly-heart {
    display: none !important;
  }

  .fav-float-btn.fav-float-pulse {
    animation: none !important;
  }
}

.btn-doc-primary,
.btn-doc-secondary {
  height: 48px !important;
  padding: 0 24px !important;
  border-radius: 12px !important;
  font-family: var(--f-display) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.2s !important;
  text-decoration: none !important;
}

.btn-doc-primary {
  background: var(--navy) !important;
  color: #fff !important;
  border: none !important;
}

.btn-doc-primary:hover {
  background: var(--orange) !important;
  transform: translateY(-2px) !important;
}

.btn-doc-secondary {
  background: #fff !important;
  color: var(--navy) !important;
  border: 1px solid var(--ice-mid) !important;
}

.btn-doc-secondary:hover {
  border-color: var(--navy) !important;
  background: var(--ice-light) !important;
}

/* FIX: Control de SVGs y Panel de Favoritos */
svg {
  max-width: 100%;
  height: auto;
}

.fav-empty-icon svg,
.fav-empty svg {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  fill: var(--slate);
}

.fav-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: -1;
}

.fav-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 3000;
}

.fav-panel {
  transform: translateX(100%);
  transition: transform 0.35s ease;
}

.fav-overlay.active .fav-panel {
  transform: translateX(0);
}

/* Template sync: favoritos panel from indelco-v2-premium.html */
.fav-overlay {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(5, 14, 26, .65);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.fav-overlay.open,
.fav-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.fav-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 480px;
  max-width: 95vw;
  background: var(--white);
  box-shadow: var(--sh-xl);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}

.fav-overlay.open .fav-panel,
.fav-overlay.active .fav-panel {
  transform: translateX(0);
}

.fav-head {
  flex: 0 0 auto;
  min-height: 96px;
  padding: 24px 30px;
  border-bottom: 1px solid rgba(213, 223, 236, .85);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.fav-head-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.fav-head-title svg {
  width: 24px;
  height: 24px;
  fill: var(--red-warn);
  stroke: var(--red-warn);
  stroke-width: 2;
  flex: 0 0 24px;
}

.fav-head-close {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(213, 223, 236, .9);
  border-radius: 50%;
  background: #f5f8fc;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .18s ease, transform .18s ease;
}

.fav-head-close:hover {
  background: #eef3fa;
  transform: translateY(-1px);
}

.fav-head-close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.4;
  fill: none;
}

.fav-actions {
  flex: 0 0 auto;
  padding: 14px 30px;
  border-bottom: 1px solid rgba(213, 223, 236, .75);
  background: #fff;
  align-items: center;
  justify-content: flex-end;
}

.btn-fav-select-all {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(213, 223, 236, .95);
  border-radius: 999px;
  background: #f7f9fc;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.fav-list {
  flex: 1 1 auto;
  min-height: 0;
  padding: 18px 30px 24px;
  overflow-y: auto;
  background: #f3f6fb;
  display: grid;
  align-content: start;
  gap: 12px;
}

.fav-item {
  position: relative;
  display: grid;
  grid-template-columns: 28px 92px minmax(0, 1fr) 36px;
  gap: 12px;
  align-items: center;
  min-height: 116px;
  padding: 12px;
  border: 1px solid rgba(213, 223, 236, .9);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(8, 23, 43, .06);
}

.fav-item.is-selected {
  border-color: rgba(232, 103, 14, .38);
  box-shadow: 0 14px 30px rgba(232, 103, 14, .12);
}

.fav-item-selector {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fav-item-check {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.fav-check-box {
  width: 20px;
  height: 20px;
  border: 1.5px solid rgba(132, 150, 176, .9);
  border-radius: 6px;
  background: #fff;
}

.fav-item-check:checked + .fav-check-box {
  border-color: var(--amber);
  background: var(--amber);
  box-shadow: inset 0 0 0 4px #fff;
}

.fav-item-media {
  width: 92px;
  height: 92px;
  border-radius: 12px;
  overflow: hidden;
  background: #eef3fa;
  border: 1px solid rgba(213, 223, 236, .85);
}

.fav-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fav-item-body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.fav-item-brand {
  color: var(--amber);
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.fav-item-name {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.fav-item-price {
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.fav-item-actions {
  margin-top: 4px;
}

.fav-item-wa {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef3fa;
  color: #516987;
  font-size: 12px;
  font-weight: 800;
}

.fav-item-remove {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(213, 223, 236, .95);
  border-radius: 50%;
  background: #fff;
  color: #7c8ca3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fav-item-remove:hover {
  color: var(--red-warn);
  background: rgba(215, 59, 59, .06);
}

.fav-item-remove svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.fav-footer {
  flex: 0 0 auto;
  padding: 16px 30px;
  border-top: 1px solid rgba(213, 223, 236, .85);
  background: #fff;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.fav-quote-summary {
  color: var(--slate);
  font-size: 13px;
  font-weight: 700;
}

.fav-quote-btn {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  background: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.fav-quote-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (max-width: 640px) {
  .fav-panel {
    width: 100vw;
    max-width: 100vw;
  }

  .fav-head {
    min-height: 82px;
    padding: 18px 18px;
  }

  .fav-head-title {
    font-size: 24px;
  }

  .fav-actions,
  .fav-list,
  .fav-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .fav-item {
    grid-template-columns: 24px 78px minmax(0, 1fr);
    gap: 10px;
  }

  .fav-item-media {
    width: 78px;
    height: 78px;
  }

  .fav-item-remove {
    position: absolute;
    top: 10px;
    right: 10px;
  }

  .fav-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .fav-quote-btn {
    width: 100%;
  }
}

.fav-head {
  padding: 26px 24px 20px;
  border-bottom: 1px solid var(--ice-mid);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fav-head-title {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
}

.fav-head-title svg {
  width: 20px;
  height: 20px;
  stroke: var(--red);
  fill: var(--red);
  stroke-width: 2;
}

.fav-head-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ice);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
}

.fav-head-close:hover {
  background: var(--ice-mid);
}

.fav-head-close svg {
  width: 16px;
  height: 16px;
  stroke: var(--navy);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.fav-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

/* Final authority: floating WhatsApp and favorites */
.wa-area-panel__arrow {
  right: 18px;
  bottom: -7px;
  width: 14px;
  height: 14px;
  background: var(--white);
  border-right: .5px solid rgba(8, 23, 43, .12);
  border-bottom: .5px solid rgba(8, 23, 43, .12);
  transform: rotate(45deg);
}

.fav-empty {
  text-align: center;
  padding: 60px 20px;
}

.fav-empty-icon {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 16px;
  color: var(--slate);
}

.fav-empty-icon svg,
.fav-empty svg {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto;
  fill: var(--slate);
}

.fav-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(5, 14, 26, .65);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, visibility .3s ease;
}

.fav-overlay.open,
.fav-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.fav-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 480px;
  max-width: 95vw;
  background: var(--white);
  box-shadow: var(--sh-xl);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}

.fav-overlay.open .fav-panel,
.fav-overlay.active .fav-panel {
  transform: translateX(0);
}
