/* =====================================================
   productos.css — SOLO PRODUCTOS (Manualidades El Cisne)
   (sin depender de styles.css)
   Todo aislado bajo body.page-products
   ===================================================== */

:root{
  --bg:#fbf7ff;
  --card:rgba(255,255,255,.86);
  --text:#1d1b22;
  --muted:rgba(29,27,34,.72);

  --celeste:#9ad9ff;
  --turquesa:#4fe3d5;
  --lila:#b7a7ff;
  --rosa:#ffb3d9;

  --b1:1px solid rgba(0,0,0,.08);
  --shadow:0 16px 45px rgba(20,10,40,.10);

  --radius:18px;
}

/* ============ Reset mínimo ============ */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body.page-products{
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
.page-products img{ max-width:100%; display:block; }
.page-products a{ color:inherit; }

/* ============ Layout base ============ */
.page-products .container{
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.page-products .section{ padding: 26px 0; }
.page-products h1,h2,h3{ margin:0; line-height:1.12; }
.page-products p{ margin:8px 0 0; color: var(--muted); line-height:1.55; }

/* ============ Botones ============ */
.page-products .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  border: var(--b1);
  background: rgba(255,255,255,.92);
  color: var(--text);
  font-weight: 900;
  text-decoration:none;
  cursor:pointer;
  transition: transform .12s ease, filter .12s ease;
}
.page-products .btn:hover{ transform: translateY(-1px); filter: saturate(1.03); }
.page-products .btn--mini{ padding: 9px 12px; border-radius: 12px; font-weight: 900; }
.page-products .btn--ghost{ background: transparent; }
.page-products .btn--wa,
.page-products button[data-wa],
.page-products a[href*="wa.me"],
.page-products #quoteWa{
  background: linear-gradient(135deg, #10b981, #059669) !important;
  border: 1px solid rgba(255,255,255,.35) !important;
  color: #052f22 !important;
  box-shadow: 0 14px 34px rgba(16,185,129,.22) !important;
}

/* ============ Topbar ============ */
.page-products .topbar{
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.page-products .topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 0;
}
.page-products .topbar__msg{ font-weight: 900; opacity: .9; }

/* ============ Header/Nav ============ */
.page-products .header{
  position: sticky;
  top: 46px; /* debajo de topbar */
  z-index: 9998;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.page-products .header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 12px 0;
}

.page-products .brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
}
.page-products .brand__logo{
  width:42px;
  height:42px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,.06);
}
.page-products .brand__text strong{ display:block; font-weight: 950; }
.page-products .brand__text span{ display:block; font-weight: 800; opacity: .75; margin-top:2px; font-size: 13px; }

.page-products .nav{
  display:flex;
  align-items:center;
  gap: 14px;
  flex-wrap: wrap;
}
.page-products .nav__link{
  text-decoration:none;
  font-weight: 900;
  color: rgba(29,27,34,.72);
}
.page-products .nav__link.is-active{
  color: rgba(29,27,34,1);
  position: relative;
}
.page-products .nav__link.is-active::after{
  content:"";
  display:block;
  height:4px;
  border-radius:999px;
  margin-top: 6px;
  background: linear-gradient(135deg, rgba(79,227,213,.55), rgba(183,167,255,.45), rgba(255,179,217,.40));
}

.page-products .nav__toggle{
  display:none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: var(--b1);
  background: rgba(255,255,255,.9);
  font-size: 18px;
  font-weight: 950;
}

@media (max-width: 860px){
  .page-products .nav__toggle{ display:inline-flex; align-items:center; justify-content:center; }
  .page-products .nav{
    display:none;
    width: 100%;
    padding: 10px 0 14px;
    gap: 10px;
  }
  .page-products .nav.is-open{ display:flex; }
  .page-products .header__inner{ flex-wrap: wrap; }
}

/* ============ MobileBar ============ */
.page-products .mobileBar{
  display:none;
  gap: 10px;
  padding: 10px 0 12px;
}
.page-products .mobileBar__btn{
  flex: 1 1 auto;
  border-radius: 14px;
  border: var(--b1);
  background: rgba(255,255,255,.92);
  padding: 10px 12px;
  font-weight: 900;
}
@media (max-width: 899px){
  .page-products .mobileBar{ display:flex; }
}

/* ============ HERO ============ */
.page-products .productsHero{ padding-top: 10px; }
.page-products .productsHero__title{ font-size: clamp(28px, 3.2vw, 42px); font-weight: 1000; }
.page-products .productsHero__sub{ margin-top: 10px; max-width: 760px; }
.page-products .productsHero__cta{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 14px; }

.page-products .productsHero__boxes{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
  align-items:start;
}
@media (max-width: 980px){
  .page-products .productsHero__boxes{ grid-template-columns: 1fr; }
}

.page-products #contactCard,
.page-products .tipsCard{
  border-radius: var(--radius);
  border: var(--b1);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 14px;
}
.page-products .tipsCard__title{ font-weight: 950; margin-bottom: 8px; }
.page-products .tipsCard__list{ margin:0; padding-left: 18px; color: var(--muted); line-height: 1.55; }
.page-products .tipsCard__hint{ margin-top: 10px; opacity: .9; font-weight: 900; }

/* Tarjetita de contacto que armas en JS */
.page-products .contactNice__name{ font-weight: 1000; font-size: 18px; }
.page-products .contactNice__row{ margin-top: 6px; color: var(--muted); font-weight: 700; }

/* ============ Encabezado sección catálogo ============ */
.page-products .section__head--row{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.page-products .miniHelp{
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.80);
  border: var(--b1);
  font-weight: 900;
}

/* ============ Filtros ============ */
.page-products .filtersBar{
  display:flex;
  gap: 12px;
  align-items:center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 12px 0 14px;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.78);
  border: var(--b1);
  box-shadow: 0 12px 28px rgba(0,0,0,.06);
}
.page-products .searchField{
  flex: 1 1 360px;
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.92);
  border: var(--b1);
}
.page-products .searchField input{
  border:0;
  outline:0;
  width:100%;
  background:transparent;
  font-size: 15px;
}
.page-products .pillFilters{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items:center;
}
.page-products #filters button{
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255,255,255,.86);
  border: var(--b1);
  font-weight: 900;
  cursor:pointer;
  transition: transform .12s ease, filter .12s ease;
}
.page-products #filters button:hover{
  transform: translateY(-1px);
  filter: saturate(1.03);
}
.page-products #filters button.is-active{
  background: linear-gradient(135deg, rgba(79,227,213,.22), rgba(183,167,255,.20), rgba(255,179,217,.18));
  border-color: rgba(79,227,213,.38);
}

/* ============ Grid catálogo (IMPORTANTE) ============ */
.page-products #productGrid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 980px){
  .page-products #productGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px){
  .page-products #productGrid{ grid-template-columns: 1fr; }
}

/* ============ Card producto ============ */
.page-products #productGrid > .product{
  background: rgba(255,255,255,.84);
  border: var(--b1);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow:hidden;
  padding: 14px;
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.page-products #productGrid .product__img{
  display:block !important;
  height:170px !important;
  min-height:170px !important;
  width:100% !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border-radius: 16px !important;
  border: 1px solid rgba(0,0,0,.06);
  background-color: rgba(0,0,0,.03);
}

.page-products .pickRow{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}
.page-products .pick{
  display:flex;
  align-items:center;
  gap: 8px;
  font-weight: 950;
}
.page-products .pick__chk{ transform: scale(1.12); }
.page-products .pick__qty{
  width: 120px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.94);
  outline: none;
}

.page-products .tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.78);
  font-weight: 900;
  font-size: 12px;
}
.page-products .tag--alt{
  background: linear-gradient(135deg, rgba(79,227,213,.22), rgba(183,167,255,.20), rgba(255,179,217,.18));
  border-color: rgba(79,227,213,.35);
}

.page-products .product__body h3{ margin:0; font-size: 18px; }
.page-products .product__body p{ margin: 6px 0 0; color: var(--muted); line-height: 1.5; }

.page-products .product__footer{
  margin-top: 10px;
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
}

/* ============ Paginación ============ */
.page-products .pagination--fresh{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 12px;
  margin-top: 16px;
}
.page-products .pageInfo{ opacity: .85; font-weight: 900; }

/* ============ CTA inferior ============ */
.page-products .cta--new{
  padding: 26px 0 6px;
}
.page-products .cta__inner{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px;
  border-radius: 20px;
  border: var(--b1);
  background: var(--card);
  box-shadow: var(--shadow);
}

/* ============ Footer ============ */
.page-products .footer{
  padding: 22px 0 110px; /* deja espacio por barra flotante */
}
.page-products .footer__inner{
  display:flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,.06);
}
.page-products .footer__links{ display:flex; gap: 12px; flex-wrap:wrap; }
.page-products .footer__links a{ text-decoration:none; color: rgba(29,27,34,.75); font-weight: 900; }

/* ============ QuoteBar (cotización) ============ */
.page-products{ padding-bottom: 170px; }
@media (max-width: 899px){ .page-products{ padding-bottom: 220px; } }

.page-products .quoteBar{
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 92px;
  z-index: 100000;
  display:none;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.page-products .quoteBar[aria-hidden="false"]{ display:block; }

.page-products .quoteBar__inner{
  width: min(1100px, 100%);
  margin: 0 auto;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  border: var(--b1);
  box-shadow: 0 20px 60px rgba(10,10,30,.18);
  backdrop-filter: blur(10px);
  flex-wrap: nowrap;
}

.page-products .quoteBar__left{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
  flex-wrap: nowrap;
}
.page-products .quoteBar__right{
  display:flex;
  align-items:center;
  gap: 10px;
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

.page-products .quoteBar__count{
  display:flex;
  align-items:baseline;
  gap: 8px;
  font-weight: 950;
}
.page-products #quoteCount{ font-size: 18px; }

.page-products .quoteMini{
  min-width: 320px;
  max-width: 520px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 12px 28px rgba(0,0,0,.06);
}
.page-products .quoteMini__head{
  display:flex;
  justify-content: space-between;
  align-items:center;
  font-weight: 950;
  margin-bottom: 8px;
}
.page-products .quoteMini__list{
  display:flex;
  flex-direction: row;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
}
.page-products .quoteMiniItem{
  flex: 0 0 auto;
  min-width: 230px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.92);
}
.page-products .quoteMiniItem__qty{ font-weight: 950; white-space: nowrap; }

.page-products .quoteBar__close{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: var(--b1);
  background: rgba(255,255,255,.95);
  box-shadow: 0 12px 26px rgba(0,0,0,.10);
  font-weight: 950;
  cursor:pointer;
}

@media (max-width: 860px){
  .page-products .quoteBar__inner{
    flex-direction: column;
    align-items: stretch;
    flex-wrap: wrap;
  }
  .page-products .quoteBar__left,
  .page-products .quoteBar__right{
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .page-products .quoteMini{ display:none; }
}

/* ============ WhatsApp flotante ============ */
.page-products .wa-float{
  position: fixed;
  right: 14px;
  bottom: 18px;
  z-index: 100001;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  border: 1px solid rgba(255,255,255,.35);
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 16px 40px rgba(16,185,129,.25);
  font-weight: 950;
  color:#052f22;
}
/* =====================================================
   RESPONSIVE MOBILE (solo productos)
   ===================================================== */

/* 1) Ajuste general mobile */
@media (max-width: 720px){
  .page-products .container{
    width: min(1100px, calc(100% - 22px));
  }
  .page-products .section{ padding: 18px 0; }
  .page-products h1{ font-size: 30px; line-height: 1.1; }
  .page-products h2{ font-size: 22px; }
}

/* 2) HERO: mejor respiro en móvil */
@media (max-width: 720px){
  .page-products .productsHero{ padding-top: 12px; }
  .page-products .productsHero__cta{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
  }
  .page-products .productsHero__cta .btn{
    width: 100%;
    justify-content:center;
  }
}

/* 3) FiltersBar: en móvil = columna */
@media (max-width: 720px){
  .page-products .filtersBar{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .page-products .searchField{
    flex: 1 1 auto;
    width: 100%;
  }
  .page-products .pillFilters{
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .page-products #filters button,
  .page-products .pillFilters .filterPill{
    white-space: nowrap;
  }
}

/* 4) Cards: imagen + texto no gigantes */
@media (max-width: 720px){
  .page-products #productGrid .product__img{
    height: 150px !important;
    min-height: 150px !important;
  }
  .page-products .product__body h3{
    font-size: 16px;
  }
  .page-products .product__body p{
    font-size: 13.5px;
  }
  .page-products .pick__qty{
    width: 110px;
  }
}

/* 5) NAV móvil real: menú colapsable (CSS) */
@media (max-width: 860px){
  .page-products .nav__toggle{ display:inline-flex; }

  .page-products .nav{
    display:none;            /* se oculta por default */
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 0;
  }
  .page-products .nav.is-open{
    display:flex;            /* se muestra cuando JS agrega is-open */
  }

  .page-products .nav__link{
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.08);
    background: rgba(255,255,255,.82);
  }
}
.page-products #waFloat,
.page-courses #waFloat{
  display:none !important;
}

/* 6) MobileBar fija abajo (si quieres) */
@media (max-width: 860px){
  .page-products .mobileBar{
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 9999;
    gap: 10px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 18px 40px rgba(20,10,40,.12);
    backdrop-filter: blur(10px);
  }
  .page-products{ padding-bottom: 230px; } /* deja espacio abajo */
}
/* =========================
   NAVBAR con color (PRODUCTOS)
   ========================= */

/* Topbar pastel */
.page-products .topbar{
  background: linear-gradient(135deg,
    rgba(183,167,255,.35),
    rgba(154,217,255,.30),
    rgba(255,179,217,.22)
  ) !important;
  border-bottom: 1px solid rgba(120,80,180,.14) !important;
  backdrop-filter: blur(10px);
}

.page-products .topbar__msg{
  font-weight: 950;
  color: rgba(29,27,34,.92);
}

/* Header “glass” con color */
.page-products .header{
  background: rgba(255,255,255,.70) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(120,80,180,.14) !important;
  box-shadow: 0 12px 28px rgba(20,10,40,.06);
}

/* Links nav */
.page-products .nav__link{
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 900;
  transition: transform .12s ease, background .12s ease, color .12s ease;
}

/* Hover suave */
.page-products .nav__link:hover{
  background: rgba(154,217,255,.18);
  transform: translateY(-1px);
}

/* Activo tipo “pill” */
.page-products .nav__link.is-active{
  background: rgba(183,167,255,.22) !important;
  border: 1px solid rgba(120,80,180,.18);
  color: rgba(29,27,34,1) !important;
}

/* Botón del header (Pedir por WhatsApp) más pro */
.page-products #waHeader.btn--wa{
  border-radius: 16px !important;
  padding: 11px 16px !important;
  box-shadow: 0 16px 38px rgba(16,185,129,.22) !important;
}

/* En móvil: que no se vea “plano” */
@media (max-width: 899px){
  .page-products .header{
    background: linear-gradient(180deg,
      rgba(255,255,255,.82),
      rgba(255,255,255,.70)
    ) !important;
  }
}
/* =========================
   Cliente Gate Modal
========================= */
.noScroll{ overflow:hidden; }

.clienteGate{ position:fixed; inset:0; display:none; z-index:9999; }
.clienteGate.is-open{ display:block; }

.clienteGate__backdrop{
  position:absolute; inset:0;
  background: rgba(7,10,20,.55);
  backdrop-filter: blur(10px);
}

.clienteGate__card{
  position:relative;
  width:min(640px, calc(100% - 28px));
  margin: 7vh auto;
  background: rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.18);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  padding: 18px;
  color: #fff;
}

.clienteGate__head h2{ margin:0 0 6px; font-size: 1.25rem; }
.clienteGate__head p{ margin:0 0 14px; opacity:.85; }
.clienteGate__head span{ color: #22c55e; }

.clienteGate__form{ display:grid; gap:10px; margin: 10px 0; }
.clienteGate__form--hidden{ display:none; }

.clienteGate__form label{ font-size:.92rem; opacity:.9; }
.clienteGate__form input, .clienteGate__form textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(10,14,28,.55);
  color:#fff;
  outline:none;
}

.clienteGate__msg{ font-size:.95rem; opacity:.92; min-height: 18px; }

.clienteGate__divider{
  display:flex; align-items:center; gap:12px;
  margin: 14px 0;
  opacity:.75;
}
.clienteGate__divider:before, .clienteGate__divider:after{
  content:""; flex:1;
  height:1px; background: rgba(255,255,255,.18);
}
.clienteGate__divider span{ font-size:.85rem; }

.grid2{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
@media (max-width:560px){ .grid2{ grid-template-columns:1fr; } }

/* 🔒 Bloqueo total hasta validar cliente */
html.cliente-locked body {
  overflow: hidden;
}

html.cliente-locked .page,
html.cliente-locked main,
html.cliente-locked header,
html.cliente-locked .productsWrap,
html.cliente-locked .productGrid,
html.cliente-locked #productGrid,
html.cliente-locked #quoteBar,
html.cliente-locked .quoteBar {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}

html.cliente-locked .clienteGate {
  pointer-events: auto;
  filter: none;
}
/* ✅ Gate: permitir scroll del formulario registro */
.clienteGate{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}
.clienteGate.is-open{ display:block; }

.clienteGate__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
}

/* el card debe poder scrollear */
.clienteGate__card{
  position: relative;
  z-index: 100000;

  /* centrar y limitar alto */
  max-width: 720px;
  width: calc(100% - 24px);
  margin: 60px auto;

  max-height: calc(100vh - 120px);
  overflow: auto;               /* ✅ aquí está la clave */
  -webkit-overflow-scrolling: touch;

  /* si tu card ya tiene estilos, esto no los rompe */
}

/* opcional: que el scroll se vea bonito */
.clienteGate__card::-webkit-scrollbar{ width: 10px; }
.clienteGate__card::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.25);
  border-radius: 999px;
}
@media (max-width: 520px){
  .clienteGate__card{
    margin: 18px auto;
    max-height: calc(100vh - 36px);
  }
}