/* ============================================================
   SFE Pacientes — Tienda en línea — Estilos personalizados
   ============================================================ */

@import url('./tokens.css');

* { box-sizing: border-box; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* Scrollbar fino */
.sfe-scroll::-webkit-scrollbar { height: 6px; width: 6px; }
.sfe-scroll::-webkit-scrollbar-track { background: transparent; }
.sfe-scroll::-webkit-scrollbar-thumb { background: var(--border-soft); border-radius: 999px; }
.sfe-scroll { scrollbar-width: thin; scrollbar-color: var(--border-soft) transparent; }

/* Rail carruseles */
.sfe-rail { scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.sfe-rail::-webkit-scrollbar { display: none; }
.sfe-rail { scrollbar-width: none; }
.sfe-rail > * { scroll-snap-align: start; }

/* Animaciones */
@keyframes sfe-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sfe-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sfe-slide-in-right { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes sfe-pop { 0% { transform: scale(0.6) translateX(-50%); opacity: 0; } 60% { transform: scale(1.06) translateX(-50%); } 100% { transform: scale(1) translateX(-50%); opacity: 1; } }
@keyframes sfe-slide-up { from { transform: translateY(100%); } to { transform: translateY(0); } }

.sfe-anim-fade    { animation: sfe-fade var(--dur-slow) var(--ease-out) both; }
.sfe-anim-fade-in { animation: sfe-fade-in var(--dur-med) var(--ease-out) both; }

/* Headings */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); color: var(--fg-1); margin: 0; }

/* ── BOTONES ───────────────────────────────────────────────── */
.sfe-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 12px 22px;
  font-weight: 700; font-size: 15px;
  transition: all var(--dur-med) var(--ease-out);
  border: 1.5px solid transparent;
  white-space: nowrap; background: transparent; color: var(--fg-1);
  font-family: var(--font-sans);
}
.sfe-btn:focus-visible { outline: 2px solid var(--sfe-orange); outline-offset: 2px; }

.sfe-btn-primary {
  background: var(--sfe-orange); color: #fff;
  box-shadow: 0 4px 14px rgba(255,125,0,0.25);
}
.sfe-btn-primary:hover { background: #E66F00; box-shadow: var(--shadow-orange); transform: translateY(-1px); }
.sfe-btn-primary:active { transform: scale(0.98); }
.sfe-btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

.sfe-btn-ghost { background: #fff; color: var(--fg-1); border-color: var(--border-strong); }
.sfe-btn-ghost:hover { border-color: var(--sfe-orange); color: var(--sfe-orange); }

.sfe-btn-secondary { background: #fff; color: var(--sfe-orange); border-color: var(--sfe-orange); }
.sfe-btn-secondary:hover { background: #FFF7EE; }

.sfe-btn-cyan { background: var(--sfe-cyan); color: #fff; box-shadow: 0 4px 14px rgba(63,184,205,0.25); }
.sfe-btn-cyan:hover { background: #2FA9BE; transform: translateY(-1px); }

.sfe-btn-sm { padding: 8px 16px; font-size: 13px; }
.sfe-btn-lg { padding: 16px 28px; font-size: 16px; }
.sfe-btn-block { width: 100%; }

/* ── CHIPS ─────────────────────────────────────────────────── */
.sfe-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border-soft);
  font-size: 13px; font-weight: 600; color: var(--fg-1);
  transition: all var(--dur-fast) var(--ease-out);
  cursor: pointer; font-family: var(--font-sans);
}
.sfe-chip:hover { border-color: var(--sfe-orange); color: var(--sfe-orange); }
.sfe-chip.active { background: var(--sfe-orange); color: #fff; border-color: var(--sfe-orange); }

/* ── BADGES ────────────────────────────────────────────────── */
.sfe-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.sfe-badge-rx      { background: #FFEFE5; color: #C44C00; }
.sfe-badge-cold    { background: #E8F7FA; color: #1A8FA2; }
.sfe-badge-promo   { background: var(--sfe-orange); color: #fff; }
.sfe-badge-out     { background: #F5F5F5; color: #666; }
.sfe-badge-program { background: #F5ECFF; color: #5B2A99; }

/* ── LOGO ──────────────────────────────────────────────────── */
.sfe-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); text-decoration: none; cursor: pointer;
}
.sfe-logo-mark {
  width: 44px; height: 44px;
  background: url('../assets/logos/molecula.png') center/contain no-repeat;
}
.sfe-logo-text { display: flex; flex-direction: column; line-height: 1; }
.sfe-logo-text strong { font-size: 22px; font-weight: 900; color: var(--fg-1); letter-spacing: -0.02em; }
.sfe-logo-text span { font-size: 10px; font-weight: 700; color: var(--sfe-orange); text-transform: uppercase; letter-spacing: 0.18em; margin-top: 3px; }

/* ── TEXT HELPERS ──────────────────────────────────────────── */
.sfe-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.sfe-clamp-1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── PRODUCT IMAGE ─────────────────────────────────────────── */
.sfe-product-img {
  position: relative; background: #FFFFFF; overflow: hidden;
}
/* .sfe-product-img::before {
  content: ''; position: absolute; right: -30px; bottom: -30px;
  width: 140px; height: 140px;
  background: url('../assets/logos/molecula.png') center/contain no-repeat;
  opacity: 0.04; pointer-events: none; z-index: 1;
} */
.sfe-product-img > img { position: relative; z-index: 2; }
.sfe-product-badges { position: absolute; z-index: 5; }

.item-buy-option.selected .radio {
    margin-top: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}
/* ── PROMO CARD ────────────────────────────────────────────── */
.sfe-promo-card, .item-buy-option {
  border: 1.5px solid var(--border-soft); border-radius: 16px;
  padding: 14px 16px; background: #fff; cursor: pointer;
  transition: all var(--dur-med) var(--ease-out);
  display: flex; align-items: center; gap: 12px;
}
    .sfe-promo-card:hover, .item-buy-option:hover{
        border-color: var(--sfe-orange);
        background: #FFF7EE;
    }
.sfe-promo-card.selected, .item-buy-option.selected { border-color: var(--sfe-orange); background: #FFF7EE; box-shadow: 0 0 0 3px rgba(255,125,0,0.10); }
.sfe-promo-icon {
  width: 40px; height: 40px; flex: none; border-radius: 12px;
  background: var(--sfe-orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 13px;
}
.item-buy-option .ctnTarjetaSFE{
  max-height: 0;
  overflow-y: hidden;
  transition: all 0.3s ease-in-out;
}
.item-buy-option.selected .ctnTarjetaSFE{
  max-height: 500px;
  overflow-y: auto;
}
/* ── BANNER CONTROLS ───────────────────────────────────────── */
.sfe-banner-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: rgba(16,31,59,0.20); transition: all var(--dur-fast) var(--ease-out);
  border: none; cursor: pointer; padding: 0;
}
.sfe-banner-dot.active { width: 28px; background: var(--sfe-orange); }

.sfe-arrow {
  width: 44px; height: 44px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-2); transition: all var(--dur-fast) var(--ease-out);
  cursor: pointer; color: var(--fg-1);
}
.sfe-arrow:hover { color: var(--sfe-orange); border-color: var(--sfe-orange); transform: scale(1.06); }
.sfe-arrow:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ── INPUT ─────────────────────────────────────────────────── */
.sfe-input {
  width: 100%; background: var(--bg-surface);
  border: 1.5px solid transparent; border-radius: 999px;
  padding: 12px 18px; font: inherit; font-size: 14px;
  color: var(--fg-1); transition: all var(--dur-fast) var(--ease-out);
}
.sfe-input:focus {
  outline: none; background: #fff;
  border-color: var(--sfe-orange); box-shadow: 0 0 0 4px rgba(255,125,0,0.10);
}

/* ── CARD ──────────────────────────────────────────────────── */
.sfe-card {
  background: #fff; border: 1px solid var(--border-soft);
  border-radius: 24px; transition: all var(--dur-med) var(--ease-out);
}

/* ── CART DRAWER ───────────────────────────────────────────── */
.sfe-backdrop {
  position: fixed; inset: 0; background: rgba(16,31,59,0.55);
  z-index: 80; animation: sfe-fade-in var(--dur-med) var(--ease-out);
}
.sfe-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 440px; max-width: 100vw; background: #fff; z-index: 90;
  display: flex; flex-direction: column;
  animation: sfe-slide-in-right var(--dur-slow) var(--ease-out);
  box-shadow: -20px 0 60px rgba(16,31,59,0.20);
}
.sfe-drawer.sfe-hidden { display: none; }

/* ── CAT MENU ──────────────────────────────────────────────── */
.sfe-cat-menu {
  position: absolute; top: calc(100% + 4px); left: 0;
  background: #fff; border-radius: 20px;
  box-shadow: var(--shadow-3); border: 1px solid var(--border-soft);
  padding: 16px; min-width: 480px;
  max-height: calc(100vh - 200px); overflow-y: auto;
  animation: sfe-fade var(--dur-med) var(--ease-out); z-index: 40;
}
.sfe-cat-menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.sfe-cat-menu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; border-radius: 10px;
  color: var(--fg-2); font-size: 13px; font-weight: 600;
  text-decoration: none; transition: background var(--dur-fast) var(--ease-out);
  cursor: pointer;
}
.sfe-cat-menu a:hover { background: #FFF7EE; color: var(--sfe-orange); }
.sfe-cat-menu a small { color: var(--fg-3); font-weight: 500; font-size: 12px; }

/* ── NAV DROPDOWN ──────────────────────────────────────────── */
.sfe-nav-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0;
  background: #fff; border-radius: 20px;
  box-shadow: var(--shadow-3); border: 1px solid var(--border-soft);
  padding: 16px; min-width: 440px;
  animation: sfe-fade 220ms var(--ease-out); z-index: 40;
}

/* ── SECTION TITLES ────────────────────────────────────────── */
.sfe-section-title {
  font-size: 30px; font-weight: 800; color: var(--fg-1); letter-spacing: -0.015em; margin: 0;
}
.sfe-section-eyebrow {
  font-size: 12px; font-weight: 800; letter-spacing: 0.10em;
  text-transform: uppercase; color: #3599AB; margin: 0 0 6px;
}
.sfe-section-subTitle{
  color: #B3B2B2;
  font-weight:700;
  font-size:15px;
  line-height: normal;
  
}
/* ── FILTER SIDEBAR ────────────────────────────────────────── */
.sfe-filter-group { padding: 18px 0; border-bottom: 1px solid var(--border-soft); }
.sfe-filter-group:first-child { padding-top: 0; }
.sfe-filter-group:last-child { border-bottom: none; }
.sfe-filter-title { font-size: 14px; font-weight: 800; color: var(--fg-1); margin: 0 0 12px; display: flex; align-items: center; justify-content: space-between; }
.sfe-filter-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; color: var(--fg-2); cursor: pointer; }
.sfe-filter-row input[type="checkbox"] {
  appearance: none; width: 18px; height: 18px;
  border: 1.5px solid var(--border-strong); border-radius: 5px;
  background: #fff; cursor: pointer; position: relative; flex: none;
}
.sfe-filter-row input[type="checkbox"]:checked { background: var(--sfe-orange); border-color: var(--sfe-orange); }
.sfe-filter-row input[type="checkbox"]:checked::after {
  content: ''; position: absolute; left: 5px; top: 1px;
  width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.sfe-filter-row .count { margin-left: auto; color: var(--fg-3); font-size: 12px; }

/* ── RANGE SLIDER ──────────────────────────────────────────── */
.sfe-range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px;
  background: var(--border-soft); border-radius: 999px; outline: none;
}
.sfe-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--sfe-orange); cursor: pointer; border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(255,125,0,0.4);
}

/* ── BREADCRUMB ────────────────────────────────────────────── */
.sfe-crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-3); }
.sfe-crumb a { color: var(--sfe-orange); font-weight: 700; text-decoration: none; cursor: pointer; }
.sfe-crumb a:hover { color: #E66F00; }
.sfe-crumb .sep { opacity: 0.5; }
.sfe-crumb .current { color: var(--fg-2); font-weight: 700; }

/* ── SPEC TABLE ────────────────────────────────────────────── */
.sfe-spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid #F0F0F0; font-size: 14px; }
.sfe-spec-row:last-child { border-bottom: none; }
.sfe-spec-row dt { color: var(--fg-3); font-weight: 400; }
.sfe-spec-row dd { margin: 0; color: var(--fg-1); font-weight: 700; text-align: right; }

/* ── TOAST ─────────────────────────────────────────────────── */
.sfe-toast {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
  background: var(--sfe-night); color: #fff;
  padding: 14px 22px; border-radius: 999px; box-shadow: var(--shadow-3);
  z-index: 100; font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 10px;
  animation: sfe-pop var(--dur-slow) var(--ease-out);
  white-space: nowrap;
}
.sfe-toast.sfe-hidden { display: none; }

/* ── STICKY BUY BAR ────────────────────────────────────────── */
.sfe-sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: #fff; border-top: 1px solid var(--border-soft);
  box-shadow: 0 -8px 24px rgba(16,31,59,0.10); z-index: 70;
  animation: sfe-slide-up var(--dur-med) var(--ease-out);
}
.sfe-sticky-buy.sfe-hidden { display: none; }

/* ── UTIL BAR ──────────────────────────────────────────────── */
.sfe-util-bar { background: var(--sfe-night); color: rgba(255,255,255,0.8); font-size: 12px; }
.sfe-util-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px; padding: 8px 24px; height: 36px;
}
.sfe-util-bar .right { margin-left: auto; display: flex; gap: 16px; }
.sfe-util-bar a { color: rgba(255,255,255,0.85); text-decoration: none; font-weight: 600; cursor: pointer; }
.sfe-util-bar a:hover { color: var(--sfe-orange); }

/* ── LAB CARD ──────────────────────────────────────────────── */
.sfe-lab-card {
  background: #fff; border: 1px solid var(--border-soft);
  border-radius: 18px; padding: 18px;
  display: flex; flex-direction: column; gap: 8px;
  flex-wrap: wrap;
  transition: all var(--dur-med) var(--ease-out);
  cursor: pointer; 
  width: 100%;
}
.sfe-lab-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--sfe-orange); }

/* ── IMG FALLBACK ──────────────────────────────────────────── */
.sfe-img-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: #FFFFFF; color: var(--fg-3); font-weight: 800; font-size: 14px; z-index: 2;
}

/* ── QUICK STAT ────────────────────────────────────────────── */
.sfe-quick-stat {
  background: var(--bg-elevated); border-radius: 16px; padding: 12px; text-align: center;
}
