/* ============================================================
   BIOPEPTIX — Global Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Custom Properties ─────────────────────────────── */
:root {
  --primary:       #1B3A5C;
  --primary-dark:  #122840;
  --secondary:     #1A8FA0;
  --accent:        #0D6E80;
  --teal-light:    #E8F7FA;
  --teal-mid:      #B3E4ED;
  --white:         #FFFFFF;
  --gray-soft:     #F4F8FB;
  --gray-100:      #EEF2F7;
  --gray-200:      #D0DCE8;
  --gray-400:      #8FA3B8;
  --gray-700:      #3D5166;
  --text-main:     #1B3A5C;
  --text-sub:      #4A6580;
  --danger:        #D94F4F;
  --success:       #22A06B;

  --font:          'DM Sans', sans-serif;
  --radius:        12px;
  --radius-lg:     20px;
  --radius-pill:   999px;
  --shadow-sm:     0 2px 8px rgba(27,58,92,0.08);
  --shadow-md:     0 6px 24px rgba(27,58,92,0.12);
  --shadow-lg:     0 16px 48px rgba(27,58,92,0.16);
  --transition:    all 0.25s cubic-bezier(0.4,0,0.2,1);
  --header-h:      85px;
}

/* ── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text-main);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }

/* ── Typography ────────────────────────────────────────── */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p  { color: var(--text-sub); }

.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--primary);
}
.section-sub {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
  color: var(--text-sub);
  font-size: 1.05rem;
}
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  background: var(--teal-light);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

/* ── Layout ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 5rem 0; }
.section--alt { background: var(--gray-soft); }
.section--teal { background: var(--teal-light); }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(26,143,160,0.35);
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,143,160,0.45);
}
.btn-outline {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}
.btn-outline:hover {
  background: var(--secondary);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}
.btn-danger {
  background: var(--danger);
  color: var(--white);
}
.btn-danger:hover { background: #b83c3c; }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }

/* ── Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-teal { background: var(--teal-light); color: var(--accent); }
.badge-primary { background: var(--primary); color: var(--white); }

/* ── Cards ─────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* ── HEADER ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: auto;
  padding-top: 10px;
  padding-bottom: 10px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 768px) {
  .site-header {
    padding-top: 8px;
    padding-bottom: 8px;
  }
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.header-logo img { width: 200px; height: auto; transition: var(--transition); }
@media (max-width: 768px) {
  .header-logo img { width: 150px; }
}
.header-logo span {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.header-logo span em {
  color: var(--secondary);
  font-style: normal;
}
.header-nav { display: flex; align-items: center; gap: 2rem; }
.header-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-sub);
  position: relative;
  padding-bottom: 2px;
  transition: var(--transition);
}
.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--secondary);
  border-radius: 2px;
  transition: var(--transition);
}
.header-nav a:hover, .header-nav a.active {
  color: var(--primary);
}
.header-nav a:hover::after, .header-nav a.active::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--secondary);
  transition: var(--transition);
  font-size: 1.2rem;
}
.cart-btn:hover { background: var(--secondary); color: var(--white); }
.cart-count {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--danger);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  transition: var(--transition);
}
.cart-count.hidden { display: none; }
.cart-count.bump { animation: bump 0.3s ease; }

/* ── Language Toggle Button ─────────────────────────────── */
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.03em;
}
.lang-btn:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  background: var(--teal-light);
}
@keyframes bump {
  0%  { transform: scale(1); }
  50% { transform: scale(1.5); }
  100%{ transform: scale(1); }
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── MOBILE NAV ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .header-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow-md);
  }
  .header-nav.open { display: flex; }
  .hamburger { display: flex; }
}

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.footer-brand .logo-text em { color: var(--secondary); font-style: normal; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 260px; }
.footer-col h5 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--secondary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--secondary); }

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 6px 20px rgba(37,211,102,0.45);
  transition: var(--transition);
  animation: pulse-wa 2.5s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(37,211,102,0.55);
}
@keyframes pulse-wa {
  0%,100% { box-shadow: 0 6px 20px rgba(37,211,102,0.45); }
  50%      { box-shadow: 0 6px 32px rgba(37,211,102,0.7); }
}

/* ── FOOTER RESPONSIVE ──────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── Utility ─────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-white  { color: var(--white); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.w-full { width: 100%; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* Toast notification */
.toast-container {
  position: fixed;
  top: calc(var(--header-h) + 1rem);
  right: 1rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toast {
  background: var(--primary);
  color: var(--white);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
  max-width: 320px;
}
.toast.success { background: var(--success); }
.toast.error   { background: var(--danger); }
@keyframes slideInRight {
  from { transform: translateX(110%); opacity: 0; }
  to   { transform: translateX(0);   opacity: 1; }
}
@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; transform: translateX(20px); }
}
