/* ==========================================
   LAYOUT, RESET & GLOBAL VARS
   ========================================== */
:root {
  --ink: #121212;
  --science: #EC5598;
  --science-2: #C6397C;
  --mist: #F7C6DC;
  --foam: #F8F8F8;
  --teal: #121212;
  --teal-dark: #000000;
  --sand: #F2E5DA;
  --white: #FFFFFF;
  --line: rgba(18,18,18,0.10);
  --shadow: 0 20px 50px -20px rgba(18,18,18,0.25);
  --display: 'Jost', sans-serif;
  --body: 'Jost', sans-serif;
  --mono: 'Jost', sans-serif;
  --ease: cubic-bezier(.16, .8, .28, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
body { font-family: var(--body); color: var(--ink); background: var(--foam); overflow-x: hidden; width: 100%; position: relative; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 768px) { .wrap { padding: 0 20px; } }


/* ==========================================
   MARQUEE STRIP
   ========================================== */
.trust-strip { background: var(--ink); color: #fff; overflow: hidden; padding: 11px 0; }
.marquee { display: flex; white-space: nowrap; animation: scroll-x 26s linear infinite; }
.marquee span {
  font-family: var(--display); font-size: 15px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
  padding: 0 28px; display: inline-flex; align-items: center; gap: 14px; color: #fff;
}
.marquee span::before { content: '✦'; color: #fff; font-size: 15px; }
@media (max-width: 640px) { .marquee span { font-size: 12.5px; padding: 0 18px; gap: 10px; } .marquee span::before { font-size: 12.5px; } }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* el ticker de confianza se mantiene en movimiento aunque el visitante tenga
   "reducir movimiento" activado (común en iOS) — sin esto, components.v2.css
   lo congela por completo junto con el resto de animaciones del sitio */
.marquee { animation-duration: 26s !important; animation-iteration-count: infinite !important; }


/* Utility Bar */
.utility-bar { background: var(--ink); color: rgba(255,255,255,0.75); font-family: var(--mono); font-size: 12px; letter-spacing: .02em; }
.utility-bar .wrap { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.utility-bar a { color: rgba(255,255,255,0.75); transition: color .2s; }
.utility-bar a:hover { color: var(--mist); }
.utility-bar .socials { display: flex; gap: 16px; }

/* Header & Nav */
header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
header.scrolled { box-shadow: 0 8px 30px -12px rgba(18,18,18,0.15); }
nav { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo svg { height: 38px; width: auto; }
.logo-text { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; color: var(--science); }
.logo-tag { display: block; font-family: var(--mono); font-size: 9px; color: var(--teal); letter-spacing: .08em; text-transform: uppercase; margin-top: -2px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-item { position: static; }
.nav-item > a {
  position: relative; display: flex; align-items: center; gap: 6px; padding: 14px 16px;
  font-weight: 600; font-size: 13.5px; letter-spacing: .03em; text-transform: uppercase;
  color: var(--ink); border-radius: 8px; transition: color .2s, background .2s;
}
.nav-item > a:hover, .nav-item > a.active { color: var(--science); background: rgba(236,85,152,0.08); }
.nav-item > a.active::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--science); }
.nav-item .caret{width:8px;height:8px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:rotate(45deg);margin-top:-3px;opacity:.55;transition:transform .25s;}
.nav-item:hover .caret{transform:rotate(225deg);margin-top:3px;}

/* ---- mega menu ancho, multi-columna (estilo cathydoll.in) ---- */
.mega{
  position:absolute;top:calc(100% + 1px);left:0;right:0;
  background:var(--white);border-top:1px solid var(--line);
  box-shadow:var(--shadow);
  padding:36px 0;
  opacity:0;visibility:hidden;transform:translateY(-6px);
  transition:opacity .2s var(--ease),transform .2s var(--ease),visibility .2s;
  z-index:50;
}
.nav-item:hover .mega{opacity:1;visibility:visible;transform:translateY(0);}
.mega-inner{ max-width:1280px; margin:0 auto; padding:0 40px; display:flex; gap:48px; }
.mega-cols{ display:flex; gap:48px; flex:1 1 auto; }
.mega-col{ min-width:140px; }
.mega-col h5{
  font-family:var(--display); font-size:12.5px; font-weight:700; letter-spacing:.06em;
  text-transform:uppercase; color:var(--ink); margin-bottom:14px;
}
.mega-col a{
  display:block; padding:6px 0; font-size:14px; color:rgba(18,18,18,.65);
  transition:color .2s, padding-left .2s;
}
.mega-col a:hover{ color:var(--science); padding-left:4px; }
.mega-promo{ display:flex; gap:14px; flex:0 0 auto; }
.mega-promo a{ position:relative; width:150px; aspect-ratio:3/4; border-radius:10px; overflow:hidden; display:block; }
.mega-promo img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .5s var(--ease); }
.mega-promo a:hover img{ transform:scale(1.06); }
@media (max-width: 1100px){ .mega-promo{ display:none; } }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: transparent; transition: background .2s; color: var(--ink); position: relative; }
.icon-btn:hover { background: rgba(236,85,152,0.10); }
.icon-btn svg { width: 19px; height: 19px; }
.cart-count, .wishlist-count { position: absolute; top: 2px; right: 2px; background: var(--teal); color: #fff; font-size: 9px; font-weight: 700; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--mono); }
.btn-primary { background: var(--science); color: #fff; padding: 12px 24px; border-radius: 100px; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; transition: background .25s, transform .25s, box-shadow .25s; box-shadow: 0 8px 20px -8px rgba(18,18,18,0.35); }
.btn-primary:hover { background: var(--science-2); transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(18,18,18,0.4); }
.burger { display: none; width: 42px; height: 42px; border-radius: 50%; align-items: center; justify-content: center; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; }
.burger span::before, .burger span::after { content: ''; position: absolute; width: 20px; height: 2px; background: var(--ink); left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
@media (max-width: 1024px) { .nav-links { display: none; } .burger { display: flex; } }

/* Footer */
footer { background: var(--ink); color: rgba(255,255,255,0.7); padding-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand p { font-size: 13.5px; line-height: 1.65; margin-top: 16px; max-width: 260px; opacity: .75; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; transition: background .2s; }
.footer-social a:hover { background: var(--teal); }
.footer-social svg { width: 16px; height: 16px; color: #fff; }
.footer-col h5 { font-family: var(--display); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer-col a { display: block; font-size: 13.5px; margin-bottom: 12px; transition: color .2s, padding-left .2s; }
.footer-col a:hover { color: var(--mist); padding-left: 4px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 26px 0; font-size: 12.5px; flex-wrap: wrap; gap: 10px; }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Floating WhatsApp Button */
.wa-float { position: fixed; bottom: 26px; right: 26px; z-index: 200; width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 28px -8px rgba(37,211,102,0.55); animation: wa-pulse 2.4s infinite; }
.wa-float svg { width: 28px; height: 28px; color: #fff; }
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
/* ==========================================
   MENÚ MÓVIL DESPLEGABLE & ANIMACIÓN BURGER
   ========================================== */
/* ==========================================
   OFF-CANVAS MOBILE DRAWER (UI MODERNA)
   ========================================== */

/* Desactivado en Desktop por defecto */
.mobile-drawer,
.mobile-drawer-overlay {
  display: none;
}

@media (max-width: 1024px) {
  
  /* Overlay oscuro con desenfoque de fondo */
  .mobile-drawer-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(18, 18, 18, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
    z-index: 998;
  }

  .mobile-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Drawer Lateral deslizante */
  .mobile-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0; /* Entra suavemente desde la derecha */
    width: 82%;
    max-width: 360px;
    height: 100vh;
    height: 100dvh; /* Soporte para Safari en iOS */
    background: var(--white);
    z-index: 999;
    box-shadow: -10px 0 40px rgba(18, 18, 18, 0.2);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    will-change: transform;
  }

  .mobile-drawer.active {
    transform: translateX(0);
  }

  /* Cabecera del Drawer */
  .mobile-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
  }

  .drawer-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--foam);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    transition: background 0.2s;
  }
  .drawer-close-btn svg { width: 18px; height: 18px; }

  /* Cuerpos / Enlaces */
  .mobile-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
  }

  .drawer-section-title {
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--teal-dark);
    display: block;
    margin-bottom: 16px;
  }

  .mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .mobile-nav-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 12px;
    font-family: var(--display);
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    transition: background 0.2s, color 0.2s;
  }

  .mobile-nav-links a .arrow {
    font-size: 14px;
    opacity: 0.3;
    transition: transform 0.2s, opacity 0.2s;
  }

  .mobile-nav-links a:hover,
  .mobile-nav-links a:active,
  .mobile-nav-links a.active {
    background: var(--foam);
    color: var(--science);
  }

  .mobile-nav-links a.active {
    border-left: 3px solid var(--science);
  }

  .mobile-nav-links a:hover .arrow {
    opacity: 1;
    transform: translateX(3px);
  }

  /* Pie del Drawer */
  .mobile-drawer-footer {
    padding: 20px 24px 30px;
    border-top: 1px solid var(--line);
    background: var(--foam);
  }

  .drawer-wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    border-radius: 100px;
    background: #25D366;
    color: #fff;
    font-weight: 600;
    font-size: 13.5px;
  }
}