/* conversion pack styles — see assets/convert.js */

/* 1. sticky mobile CTA */
.sf-sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000;
  display: flex; align-items: center; gap: 10px;
  background: #1c1c1c; color: #fff; padding: 10px 12px;
  box-shadow: 0 -4px 18px rgba(0,0,0,.25);
  font-size: 14px;
}
.sf-sticky-cta > div { flex: 1; line-height: 1.2; }
.sf-sticky-cta > div b { color: #ffad12; }
.sf-sticky-cta > a {
  background: #ffad12; color: #1c1c1c; font-weight: 800; font-size: 14px;
  padding: 10px 16px; border-radius: 999px; text-decoration: none;
  white-space: nowrap;
}
.sf-sticky-cta > button {
  background: none; border: 0; color: #9ca3af; font-size: 22px;
  line-height: 1; padding: 4px 6px; cursor: pointer;
}
/* keep the original cookie banner above the bar visually */
.new-home-v4-cookies, [class*="cookie"] { z-index: 9500; }

/* 2. exit-intent popup */
.sf-exit {
  position: fixed; inset: 0; z-index: 9800;
  background: rgba(0,0,0,.55); display: flex;
  align-items: center; justify-content: center; padding: 18px;
  animation: sfExitIn .25s ease-out;
}
@keyframes sfExitIn { from { opacity: 0; } to { opacity: 1; } }
.sf-exit-card {
  position: relative; background: #1c1c1c; color: #fff;
  border-radius: 18px; padding: 26px 22px 22px; max-width: 400px;
  width: 100%; text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.sf-exit-emoji { font-size: 34px; margin-bottom: 4px; }
.sf-exit-card h2 { font-size: 22px; margin: 0 0 8px; }
.sf-exit-card h2 b { color: #ffad12; }
.sf-exit-card p { color: #d1d5db; font-size: 14px; margin: 0 0 16px; }
.sf-exit-cta {
  display: block; background: #ffad12; color: #1c1c1c; font-weight: 800;
  padding: 14px; border-radius: 999px; text-decoration: none; font-size: 16px;
}
.sf-exit-alt {
  display: inline-block; margin-top: 10px; color: #9ca3af; font-size: 13px;
}
.sf-exit-x {
  position: absolute; top: 8px; right: 12px; background: none; border: 0;
  color: #9ca3af; font-size: 26px; cursor: pointer; line-height: 1;
}

/* 3. urgency ribbon */
.sf-ribbon {
  background: linear-gradient(90deg, #1c1c1c, #3f3f46); color: #fff;
  font-size: 13px; text-align: center; padding: 8px 40px 8px 12px;
  position: relative; z-index: 8500;
}
.sf-ribbon b { color: #ffad12; }
.sf-ribbon button {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: #9ca3af; font-size: 18px; cursor: pointer;
}

/* 4. tu sede chip */
.sf-sede-chip {
  display: flex; align-items: center; gap: 6px;
  background: #fffbeb; border: 1px solid #fde68a; color: #713f12;
  border-radius: 12px; padding: 10px 14px; margin: 10px auto;
  max-width: 640px; text-decoration: none; font-size: 14px;
}
.sf-sede-chip span { margin-left: auto; font-weight: 800; color: #1c1c1c; }

/* hero fade slider (assets/sfhome.js) — replaces the stripped vendor swiper */
#default-slider .swiper-wrapper { position: relative; overflow: hidden; }
#default-slider .swiper-wrapper > .swiper-slide {
  position: absolute; inset: 0; width: 100% !important; height: auto;
  transform: none !important; opacity: 0; transition: opacity .55s ease;
}
#default-slider .swiper-wrapper > .swiper-slide.sf-slide-on { position: relative; opacity: 1; }
#default-slider .swiper-wrapper > .swiper-slide .new-home-v4-slider__item,
#default-slider .swiper-wrapper > .swiper-slide a,
#default-slider .swiper-wrapper > .swiper-slide picture { display: block; width: 100%; }
#default-slider .swiper-wrapper > .swiper-slide img { width: 100%; height: auto; display: block; }

/* sedes city filter panel (convert.js) */
.sf-filter-panel {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 9000;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.14); padding: 8px;
  max-height: 320px; overflow-y: auto; min-width: 220px;
}
.sf-filter-city {
  display: flex; justify-content: space-between; gap: 12px; width: 100%;
  background: none; border: 0; padding: 9px 12px; font: inherit; font-size: 14px;
  font-weight: 600; color: #1c1c1c; text-align: left; cursor: pointer;
  border-radius: 8px;
}
.sf-filter-city:hover { background: #fffbeb; }
.sf-filter-city span { color: #9ca3af; font-weight: 500; }
