/* =========================================================
   IMPORTADORA GALA — Sitio Web
   Paleta de marca (tomada del logo):
     --brand-green  #2FAE4E
     --brand-blue   #0B7CB0
     --brand-pink   #D6217E
     --brand-orange #F5A623
     --ink          #16213E  (texto fuerte / nav)
     --paper        #F5F6FA  (fondo)
   Tipografía:
     Display : 'Fraunces'      (títulos)
     Body    : 'Inter'         (texto/UI)
     Utility : 'JetBrains Mono'(códigos SKU)
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700;9..144,800&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600&display=swap');

:root{
  --brand-green:#2FAE4E;
  --brand-blue:#0B7CB0;
  --brand-pink:#D6217E;
  --brand-orange:#F5A623;

  --ink:#16213E;
  --ink-2:#202C50;
  --paper:#F5F6FA;
  --card:#FFFFFF;
  --ok:#2FAE4E;
  --line:#E4E7F0;
  --text:#1A1F36;
  --text-soft:#5B6478;

  --radius:16px;
  --radius-sm:10px;
  --shadow: 0 1px 2px rgba(22,33,62,.05), 0 10px 26px -14px rgba(22,33,62,.22);
  --shadow-hover: 0 6px 10px rgba(22,33,62,.07), 0 24px 46px -18px rgba(22,33,62,.30);
  --grad-brand: linear-gradient(115deg, var(--brand-blue) 0%, var(--brand-green) 33%, var(--brand-orange) 66%, var(--brand-pink) 100%);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth; scroll-padding-top:78px;}
body{
  margin:0;
  font-family:'Inter',system-ui,sans-serif;
  background:var(--paper);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%;display:block;}
a{color:inherit;}
button{font-family:inherit;}
section{scroll-margin-top:78px;}
.container{max-width:1280px; margin:0 auto; padding:0 24px;}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:.001ms !important; transition-duration:.001ms !important; scroll-behavior:auto !important;}
}

/* ============ TOP NAV ============ */
.topnav{
  position:sticky; top:0; z-index:100;
  background:rgba(22,33,62,.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.topnav-inner{
  max-width:1280px; margin:0 auto; padding:0 24px;
  height:72px; display:flex; align-items:center; gap:22px;
}
.nav-logo{ display:flex; align-items:center; gap:10px; text-decoration:none; flex-shrink:0; }
.nav-logo img{ height:40px; width:auto; }
.nav-logo-text{ display:none; font-family:'Fraunces',serif; font-weight:700; color:#fff; font-size:15px; line-height:1.1; }
@media(min-width:480px){ .nav-logo-text{display:block;} }

.nav-links{
  display:none;
  list-style:none; margin:0; padding:0;
  gap:6px; align-items:center;
}
@media(min-width:920px){ .nav-links{ display:flex; } }
.nav-links a{
  text-decoration:none; color:#C6CDE3; font-weight:600; font-size:14px;
  padding:9px 14px; border-radius:999px; transition:all .18s ease;
  white-space:nowrap;
}
.nav-links a:hover{ color:#fff; background:rgba(255,255,255,.08); }
.nav-links a.active{ color:var(--ink); background:var(--brand-orange); }

.nav-right{ margin-left:auto; display:flex; align-items:center; gap:10px; }
.cart-btn{
  position:relative; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.16);
  color:#fff; width:42px; height:42px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  transition:background .18s ease;
}
.cart-btn:hover{ background:rgba(255,255,255,.16); }
.cart-count{
  position:absolute; top:-4px; right:-4px;
  background:var(--brand-pink); color:#fff; font-size:11px; font-weight:700;
  min-width:18px; height:18px; border-radius:999px;
  display:flex; align-items:center; justify-content:center; padding:0 4px;
}
.hamburger{
  display:flex; background:none; border:none; width:42px; height:42px; border-radius:10px;
  align-items:center; justify-content:center; cursor:pointer; color:#fff;
}
@media(min-width:920px){ .hamburger{ display:none; } }

.mobile-menu{
  position:fixed; inset:72px 0 0 0; background:var(--ink); z-index:99;
  transform:translateX(100%); transition:transform .25s ease;
  overflow-y:auto; padding:14px 8px 40px;
}
.mobile-menu.open{ transform:translateX(0); }
.mobile-menu a{
  display:block; padding:16px 20px; color:#fff; text-decoration:none;
  font-size:17px; font-weight:600; border-bottom:1px solid rgba(255,255,255,.08);
}

/* ============ HERO ============ */
.hero{
  position:relative; overflow:hidden;
  background:var(--ink);
  color:#fff;
  padding:78px 0 90px;
}
.hero-bg{
  position:absolute; inset:0; opacity:.9;
}
.hero-bg svg{ width:100%; height:100%; }
.hero-inner{
  position:relative; z-index:2;
  max-width:1280px; margin:0 auto; padding:0 24px;
  display:flex; flex-direction:column; align-items:center; text-align:center; gap:22px;
}
.hero-logo{ width:150px; height:auto; filter:drop-shadow(0 10px 30px rgba(0,0,0,.35)); animation:floatY 5s ease-in-out infinite; }
@keyframes floatY{ 0%,100%{transform:translateY(0);} 50%{transform:translateY(-10px);} }
.hero-eyebrow{
  font-size:13px; letter-spacing:.14em; text-transform:uppercase; color:var(--brand-orange); font-weight:700;
  animation:fadeUp .7s ease both;
}
.hero-title{
  font-family:'Fraunces',serif; font-weight:700; font-size:clamp(32px,6vw,58px);
  line-height:1.05; margin:0; max-width:820px;
  animation:fadeUp .7s .05s ease both;
}
.hero-title span{
  background:var(--grad-brand); -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero-sub{
  font-size:clamp(15px,2vw,18px); color:#C6CDE3; max-width:600px; line-height:1.55;
  animation:fadeUp .7s .1s ease both;
}
@keyframes fadeUp{ from{opacity:0; transform:translateY(16px);} to{opacity:1; transform:translateY(0);} }

.hero-actions{
  display:flex; flex-wrap:wrap; gap:12px; justify-content:center; margin-top:6px;
  animation:fadeUp .7s .16s ease both;
}
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:13px 24px; border-radius:999px; font-weight:700; font-size:14.5px;
  cursor:pointer; text-decoration:none; border:none;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover{ transform:translateY(-2px); }
.btn-grad{ background:var(--grad-brand); color:#fff; box-shadow:0 10px 26px -10px rgba(214,33,126,.55); }
.btn-white{ background:#fff; color:var(--ink); }
.btn-outline{ background:transparent; color:#fff; border:1.5px solid rgba(255,255,255,.5); }
.btn-outline:hover{ border-color:#fff; }
.btn-dark{ background:var(--ink); color:#fff; }
.btn-dark:hover{ background:var(--ink-2); }

.hero-stats{
  display:flex; gap:28px; flex-wrap:wrap; justify-content:center; margin-top:28px;
  animation:fadeUp .7s .22s ease both;
}
.hero-stat b{ font-family:'Fraunces',serif; font-size:26px; display:block; }
.hero-stat span{ font-size:12.5px; color:#9AA5C2; }

/* ============ SECTION HEADERS ============ */
.section-pad{ padding:76px 0; }
.section-head{ text-align:center; max-width:640px; margin:0 auto 44px; }
.eyebrow{
  font-size:12.5px; letter-spacing:.12em; text-transform:uppercase; font-weight:700;
  color:var(--brand-pink); margin-bottom:10px; display:block;
}
.section-title{
  font-family:'Fraunces',serif; font-weight:700; font-size:clamp(26px,4vw,38px);
  color:var(--ink); margin:0 0 12px;
}
.section-sub{ color:var(--text-soft); font-size:15.5px; line-height:1.6; }

.reveal{ opacity:0; transform:translateY(22px); transition:opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform:translateY(0); }

/* ============ CATALOG TOOLBAR ============ */
.cat-toolbar{
  background:#fff; border:1px solid var(--line); border-radius:20px;
  padding:18px 20px; box-shadow:var(--shadow);
  display:flex; flex-direction:column; gap:14px; margin-bottom:26px;
}
.search-wrap{ position:relative; }
.search-wrap input{
  width:100%; background:var(--paper); border:1.5px solid var(--line); color:var(--text);
  padding:13px 16px 13px 44px; border-radius:999px; font-size:14.5px;
  transition:border-color .18s ease, background .18s ease;
}
.search-wrap input:focus{ outline:none; border-color:var(--brand-blue); background:#fff; }
.search-icon{ position:absolute; left:16px; top:50%; transform:translateY(-50%); width:17px; height:17px; opacity:.5; pointer-events:none; }

.toolbar-row2{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.chip-scroll{ display:flex; gap:8px; overflow-x:auto; flex:1; padding-bottom:2px; scrollbar-width:none; }
.chip-scroll::-webkit-scrollbar{ display:none; }
.chip{
  flex-shrink:0; border:1.5px solid var(--line); background:#fff; color:var(--text-soft);
  padding:7px 15px; border-radius:999px; font-size:13px; font-weight:600; cursor:pointer;
  transition:all .15s ease; white-space:nowrap;
}
.chip:hover{ border-color:var(--brand-blue); color:var(--ink); }
.chip.active{ background:var(--ink); border-color:var(--ink); color:#fff; }

.sort-select{
  flex-shrink:0; background:var(--paper); border:1.5px solid var(--line); color:var(--ink);
  padding:8px 14px; border-radius:999px; font-size:13px; font-weight:600; cursor:pointer;
}

.status-row{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px;
  padding:0 2px 18px; font-size:13px; color:var(--text-soft);
}
.status-row .active-filter{ color:var(--ink); font-weight:700; }
.clear-btn{ background:none; border:none; color:var(--brand-pink); font-weight:700; font-size:13px; cursor:pointer; padding:0; }
.clear-btn:hover{ text-decoration:underline; }

/* ============ PRODUCT GRID ============ */
.grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
@media(min-width:640px){ .grid{grid-template-columns:repeat(3,1fr); gap:20px;} }
@media(min-width:900px){ .grid{grid-template-columns:repeat(4,1fr);} }
@media(min-width:1180px){ .grid{grid-template-columns:repeat(5,1fr);} }

.card{
  background:var(--card); border-radius:var(--radius); border:1px solid var(--line); overflow:hidden;
  cursor:pointer; box-shadow:var(--shadow);
  transition:transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s ease, border-color .22s ease;
  animation:riseIn .32s cubic-bezier(.2,.7,.3,1) both;
  display:flex; flex-direction:column;
}
@keyframes riseIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.card:hover{ transform:translateY(-5px); box-shadow:var(--shadow-hover); border-color:#D6DCE8; }
.card-media{
  position:relative; aspect-ratio:1/1;
  background:#F6F7FA;
  display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.card-media img{ width:100%; height:100%; object-fit:contain; padding:10px; transition:transform .35s ease; }
.card:hover .card-media img{ transform:scale(1.06); }
.no-image{ font-size:11px; color:var(--text-soft); text-align:center; padding:8px; }
.card-body{ padding:12px 12px 14px; display:flex; flex-direction:column; gap:6px; flex:1; }
.card-cat{ font-size:10.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--brand-pink); font-weight:700; }
.card-name{
  font-size:13.5px; line-height:1.32; font-weight:600; color:var(--ink);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:2.6em;
}
.card-footer{ display:flex; align-items:center; justify-content:space-between; margin-top:auto; padding-top:8px; gap:6px; }
.tag-code{
  font-family:'JetBrains Mono',monospace; font-size:10.5px; font-weight:700; color:var(--ink);
  background:var(--brand-orange); padding:3px 8px 3px 13px; border-radius:4px; position:relative; transform:rotate(-1.5deg);
}
.tag-code::before{
  content:''; position:absolute; left:3px; top:50%; transform:translateY(-50%);
  width:4px; height:4px; border-radius:50%; background:var(--paper); box-shadow:0 0 0 1px rgba(22,33,62,.25) inset;
}
.card-btns{ display:flex; gap:4px; }
.icon-btn{
  border:none; background:none; color:var(--ink); opacity:.55; width:28px; height:28px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; cursor:pointer; transition:background .15s ease, opacity .15s ease, color .15s ease;
}
.icon-btn:hover{ background:var(--paper); opacity:1; }
.icon-btn.add:hover{ color:var(--brand-green); background:#E8F7EC; }

.empty-state{ grid-column:1/-1; text-align:center; padding:70px 20px; color:var(--text-soft); }
.empty-state h3{ font-family:'Fraunces',serif; color:var(--ink); font-size:22px; margin-bottom:8px; }

.load-more-wrap{ display:flex; justify-content:center; padding:34px 0 10px; }
.load-more{ background:var(--ink); color:#fff; border:none; padding:12px 28px; border-radius:999px; font-weight:700; font-size:14px; cursor:pointer; transition:background .18s ease, transform .18s ease; }
.load-more:hover{ background:var(--ink-2); transform:translateY(-1px); }

.skeleton{ border-radius:var(--radius); overflow:hidden; background:#fff; border:1px solid var(--line); }
.skeleton .sk-media{ aspect-ratio:1/1; background:linear-gradient(90deg,#F0F1F4 25%,#F7F8FA 37%,#F0F1F4 63%); background-size:400% 100%; animation:shimmer 1.4s ease infinite; }
.skeleton .sk-line{ height:10px; margin:12px; border-radius:4px; background:linear-gradient(90deg,#F0F1F4 25%,#F7F8FA 37%,#F0F1F4 63%); background-size:400% 100%; animation:shimmer 1.4s ease infinite; }
@keyframes shimmer{ 0%{background-position:100% 0;} 100%{background-position:-100% 0;} }

/* ============ TECNOLOGÍA (empty state ready) ============ */
.tech-section{ background:var(--ink); color:#fff; }
.tech-empty{
  background:rgba(255,255,255,.05); border:1px dashed rgba(255,255,255,.25); border-radius:20px;
  padding:56px 30px; text-align:center; max-width:640px; margin:0 auto;
}
.tech-empty svg{ margin-bottom:16px; opacity:.8; }
.tech-empty h3{ font-family:'Fraunces',serif; font-size:22px; margin:0 0 10px; }
.tech-empty p{ color:#B9C2DC; font-size:14.5px; line-height:1.6; margin:0 0 20px; }
.tech-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:16px; margin-top:36px; }
@media(min-width:640px){ .tech-grid{ grid-template-columns:repeat(4,1fr); } }
.tech-cat-card{
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1); border-radius:16px;
  padding:22px 16px; text-align:center; transition:background .2s ease, transform .2s ease;
}
.tech-cat-card:hover{ background:rgba(255,255,255,.1); transform:translateY(-3px); }
.tech-cat-card svg{ margin-bottom:10px; }
.tech-cat-card span{ font-size:13px; font-weight:600; color:#E3E7F5; }

/* ============ NOSOTROS ============ */
.about-grid{ display:grid; grid-template-columns:1fr; gap:20px; }
@media(min-width:820px){ .about-grid{ grid-template-columns:repeat(2,1fr); } }
.about-card{
  background:#fff; border:1px solid var(--line); border-radius:20px; padding:28px 26px;
  box-shadow:var(--shadow); transition:transform .2s ease, box-shadow .2s ease;
}
.about-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-hover); }
.about-icon{
  width:48px; height:48px; border-radius:14px; display:flex; align-items:center; justify-content:center;
  margin-bottom:16px; color:#fff;
}
.about-card h3{ font-family:'Fraunces',serif; font-size:19px; color:var(--ink); margin:0 0 8px; }
.about-card p{ color:var(--text-soft); font-size:14.5px; line-height:1.65; margin:0; }

.values-row{ display:flex; flex-wrap:wrap; gap:12px; justify-content:center; margin-top:40px; }
.value-pill{
  background:#fff; border:1px solid var(--line); padding:10px 18px; border-radius:999px;
  font-size:13.5px; font-weight:600; color:var(--ink); box-shadow:var(--shadow);
}

/* ============ UBICACIÓN ============ */
.map-wrap{
  display:grid; grid-template-columns:1fr; gap:0; border-radius:22px; overflow:hidden;
  box-shadow:var(--shadow); border:1px solid var(--line);
}
@media(min-width:900px){ .map-wrap{ grid-template-columns:1.15fr 1fr; } }
.map-frame{ width:100%; height:340px; border:0; }
@media(min-width:900px){ .map-frame{ height:100%; min-height:440px; } }
.map-info{ background:#fff; padding:34px 30px; display:flex; flex-direction:column; gap:18px; }
.map-info h3{ font-family:'Fraunces',serif; font-size:22px; color:var(--ink); margin:0; }
.info-line{ display:flex; gap:12px; align-items:flex-start; font-size:14.5px; color:var(--text-soft); }
.info-line svg{ flex-shrink:0; margin-top:2px; color:var(--brand-blue); }
.info-line strong{ color:var(--ink); display:block; margin-bottom:2px; }
.map-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:6px; }

/* ============ HORARIO / ESTADO ABIERTO-CERRADO ============ */
.status-badge{
  display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:700;
  padding:4px 12px; border-radius:999px; margin-left:10px; vertical-align:middle;
  background:var(--line); color:var(--text-soft);
}
.status-badge::before{ content:''; width:7px; height:7px; border-radius:50%; background:currentColor; }
.status-badge.status-open{ background:#E8F7EC; color:#1E7A38; }
.status-badge.status-closed{ background:#FDECEC; color:#B12E2E; }

.schedule-card{
  background:#fff; border:1px solid var(--line); border-radius:22px; padding:28px 30px;
  box-shadow:var(--shadow); margin-top:24px;
}
.schedule-head{ display:flex; align-items:center; gap:10px; margin-bottom:18px; flex-wrap:wrap; }
.schedule-head h3{ font-family:'Fraunces',serif; font-size:19px; color:var(--ink); margin:0; }
.schedule-list{ display:grid; grid-template-columns:1fr; gap:2px; }
@media(min-width:640px){ .schedule-list{ grid-template-columns:1fr 1fr; gap:2px 24px; } }
.schedule-row{
  display:flex; justify-content:space-between; padding:10px 4px; border-bottom:1px solid var(--line);
  font-size:14px; color:var(--text-soft);
}
.schedule-row .day{ font-weight:600; color:var(--ink); }
.schedule-row.today{ color:var(--ink); }
.schedule-row.today .hours{ color:var(--brand-blue); font-weight:700; }

/* ============ STOCK ============ */
.stock-badge{
  font-size:11px; font-weight:700; padding:2px 0; margin-top:-2px;
}
.stock-badge.in{ color:var(--brand-green); }
.stock-badge.out{ color:var(--brand-pink); }
.out-overlay{
  position:absolute; inset:0; background:rgba(22,33,62,.55); color:#fff; font-weight:700; font-size:13px;
  display:flex; align-items:center; justify-content:center; letter-spacing:.05em; text-transform:uppercase;
}
.icon-btn.add.disabled{ opacity:.3; cursor:not-allowed; }
.icon-btn.add.disabled:hover{ background:none; color:var(--ink); }
.modal-avail.out{ color:var(--brand-pink); }
.modal-avail.out::before{ background:var(--brand-pink); }
#modalAddBtn:disabled{ opacity:.5; cursor:not-allowed; transform:none !important; }

/* ============ CONTACTO ============ */
.contact-grid{ display:grid; grid-template-columns:1fr; gap:28px; }
@media(min-width:900px){ .contact-grid{ grid-template-columns:1fr 1fr; } }
.contact-form{
  background:#fff; border:1px solid var(--line); border-radius:22px; padding:30px;
  box-shadow:var(--shadow); display:flex; flex-direction:column; gap:16px;
}
.form-row{ display:flex; flex-direction:column; gap:6px; }
.form-row label{ font-size:13px; font-weight:700; color:var(--ink); }
.form-row input, .form-row textarea, .form-row select{
  border:1.5px solid var(--line); border-radius:12px; padding:12px 14px; font-size:14.5px;
  font-family:inherit; color:var(--text); background:var(--paper); transition:border-color .18s ease;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus{ outline:none; border-color:var(--brand-blue); background:#fff; }
.form-row textarea{ resize:vertical; min-height:100px; }
.form-note{ font-size:12.5px; color:var(--text-soft); line-height:1.5; }
.form-status{ font-size:13.5px; font-weight:600; display:none; padding:10px 14px; border-radius:10px; }
.form-status.ok{ display:block; background:#E8F7EC; color:#1E7A38; }
.form-status.err{ display:block; background:#FDECEC; color:#B12E2E; }

.contact-side{ display:flex; flex-direction:column; gap:14px; }
.contact-tile{
  background:#fff; border:1px solid var(--line); border-radius:18px; padding:20px 22px;
  display:flex; gap:14px; align-items:center; box-shadow:var(--shadow); text-decoration:none;
  transition:transform .18s ease, box-shadow .18s ease;
}
.contact-tile:hover{ transform:translateY(-3px); box-shadow:var(--shadow-hover); }
.contact-tile .ic{
  width:44px; height:44px; border-radius:12px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; color:#fff;
}
.contact-tile strong{ display:block; color:var(--ink); font-size:14.5px; }
.contact-tile span{ font-size:13px; color:var(--text-soft); }
.social-row{ display:flex; gap:10px; margin-top:4px; }
.social-circle{
  width:44px; height:44px; border-radius:50%; background:var(--ink); color:#fff;
  display:flex; align-items:center; justify-content:center; text-decoration:none; transition:background .18s ease, transform .18s ease;
}
.social-circle:hover{ background:var(--brand-pink); transform:translateY(-3px); }

/* ============ CART DRAWER ============ */
.cart-overlay{
  position:fixed; inset:0; background:rgba(22,33,62,.5); z-index:150;
  opacity:0; pointer-events:none; transition:opacity .2s ease;
}
.cart-overlay.open{ opacity:1; pointer-events:auto; }
.cart-drawer{
  position:fixed; top:0; right:0; height:100%; width:100%; max-width:420px;
  background:#fff; z-index:151; transform:translateX(100%); transition:transform .3s cubic-bezier(.2,.7,.3,1);
  display:flex; flex-direction:column; box-shadow:-10px 0 40px rgba(0,0,0,.2);
}
.cart-overlay.open .cart-drawer{ transform:translateX(0); }
.cart-head{
  padding:20px 22px; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between;
}
.cart-head h3{ font-family:'Fraunces',serif; margin:0; color:var(--ink); }
.cart-close{ background:none; border:none; cursor:pointer; color:var(--ink); width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; }
.cart-close:hover{ background:var(--paper); }
.cart-items{ flex:1; overflow-y:auto; padding:14px 18px; display:flex; flex-direction:column; gap:12px; }
.cart-item{ display:flex; gap:12px; border:1px solid var(--line); border-radius:14px; padding:10px; align-items:center; }
.cart-item img{ width:56px; height:56px; object-fit:contain; background:var(--paper); border-radius:8px; flex-shrink:0; }
.cart-item-info{ flex:1; min-width:0; }
.cart-item-info .nm{ font-size:13px; font-weight:600; color:var(--ink); line-height:1.3; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.cart-item-info .cd{ font-family:'JetBrains Mono',monospace; font-size:10.5px; color:var(--text-soft); margin-top:3px; }
.qty-ctl{ display:flex; align-items:center; gap:8px; margin-top:6px; }
.qty-ctl button{ width:22px; height:22px; border-radius:50%; border:1px solid var(--line); background:#fff; cursor:pointer; font-weight:700; color:var(--ink); }
.qty-ctl span{ font-size:13px; font-weight:600; min-width:16px; text-align:center; }
.cart-item .rm{ background:none; border:none; color:var(--brand-pink); cursor:pointer; font-size:12px; font-weight:600; flex-shrink:0; }
.cart-empty{ text-align:center; padding:60px 20px; color:var(--text-soft); }
.cart-foot{ padding:18px 22px 24px; border-top:1px solid var(--line); }
.cart-total-row{ display:flex; justify-content:space-between; font-size:14px; font-weight:600; margin-bottom:14px; color:var(--ink); }
.cart-foot .btn{ width:100%; justify-content:center; }
.cart-note{ font-size:11.5px; color:var(--text-soft); margin-top:10px; line-height:1.5; text-align:center; }

/* ============ ORDER FORM MODAL ============ */
.order-modal .modal{ max-width:560px; grid-template-columns:1fr; }
.order-form{ padding:30px 28px; display:flex; flex-direction:column; gap:14px; }
.order-form h3{ font-family:'Fraunces',serif; color:var(--ink); margin:0 0 4px; }
.order-summary{ background:var(--paper); border-radius:12px; padding:12px 14px; font-size:12.5px; color:var(--text-soft); max-height:110px; overflow-y:auto; }

/* ============ MODAL (Quick view / Product) ============ */
.modal-overlay{
  position:fixed; inset:0; background:rgba(22,33,62,.55); backdrop-filter:blur(2px);
  display:flex; align-items:flex-end; justify-content:center; z-index:160; opacity:0; pointer-events:none; transition:opacity .22s ease;
}
@media(min-width:720px){ .modal-overlay{ align-items:center; } }
.modal-overlay.open{ opacity:1; pointer-events:auto; }
.modal{
  background:#fff; width:100%; max-width:880px; max-height:92vh; overflow-y:auto;
  border-radius:20px 20px 0 0; transform:translateY(24px); transition:transform .28s cubic-bezier(.2,.7,.3,1);
  display:grid; grid-template-columns:1fr;
}
@media(min-width:720px){ .modal{ border-radius:20px; grid-template-columns:1fr 1fr; } }
.modal-overlay.open .modal{ transform:translateY(0); }
.modal-media{ background:#F6F7FA; aspect-ratio:1/1; display:flex; align-items:center; justify-content:center; position:relative; }
.modal-media img{ width:100%; height:100%; object-fit:contain; padding:24px; }
.modal-close{
  position:absolute; top:14px; right:14px; width:34px; height:34px; border-radius:50%;
  background:rgba(255,255,255,.9); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; cursor:pointer; z-index:2;
}
.modal-info{ padding:28px 26px 32px; display:flex; flex-direction:column; gap:14px; }
.modal-cat{ font-size:11px; text-transform:uppercase; letter-spacing:.07em; color:var(--brand-pink); font-weight:700; }
.modal-name{ font-family:'Fraunces',serif; font-weight:600; font-size:24px; line-height:1.2; color:var(--ink); }
.modal-meta{ display:flex; flex-wrap:wrap; gap:8px; margin-top:2px; }
.meta-pill{ font-size:12.5px; padding:6px 12px; border-radius:8px; background:var(--paper); color:var(--text-soft); border:1px solid var(--line); }
.meta-pill strong{ color:var(--text); font-weight:600; }
.modal-code{
  font-family:'JetBrains Mono',monospace; font-weight:700; font-size:15px; color:var(--ink); background:var(--brand-orange);
  display:inline-flex; align-items:center; gap:8px; padding:8px 14px; border-radius:8px; width:fit-content; transform:rotate(-1deg);
}
.modal-avail{ display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:600; color:var(--ok); }
.modal-avail::before{ content:''; width:7px; height:7px; border-radius:50%; background:var(--ok); }
.modal-note{ font-size:13px; color:var(--text-soft); line-height:1.5; border-top:1px dashed var(--line); padding-top:14px; margin-top:4px; }
.modal-actions{ display:flex; gap:10px; margin-top:6px; flex-wrap:wrap; }
.btn-ghost{ background:none; border:1.5px solid var(--line); color:var(--ink); padding:11px 20px; border-radius:999px; font-weight:700; font-size:14px; cursor:pointer; }
.btn-ghost:hover{ border-color:var(--ink); }

/* ============ FOOTER ============ */
.site-footer{ background:var(--ink); color:#B9C2DC; padding-top:56px; }
.footer-grid{ display:grid; grid-template-columns:1fr; gap:34px; padding-bottom:34px; border-bottom:1px solid rgba(255,255,255,.08); }
@media(min-width:760px){ .footer-grid{ grid-template-columns:1.3fr 1fr 1fr; } }
.footer-brand img{ height:44px; margin-bottom:14px; }
.footer-brand p{ font-size:13.5px; line-height:1.65; max-width:320px; color:#9AA5C2; }
.footer-col h4{ color:#fff; font-size:14px; margin:0 0 16px; font-family:'Fraunces',serif; }
.footer-col ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.footer-col a{ color:#B9C2DC; text-decoration:none; font-size:13.5px; }
.footer-col a:hover{ color:#fff; }
.footer-bottom{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px;
  padding:22px 0 30px; font-size:12.5px; color:#8792AD;
}

/* ============ WHATSAPP FLOTANTE ============ */
.whatsapp-float{
  position:fixed; bottom:22px; right:22px; z-index:130;
  width:56px; height:56px; border-radius:50%;
  background:#25D366;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 8px 22px rgba(37,211,102,.45);
  transition:transform .2s ease, box-shadow .2s ease;
  text-decoration:none;
}
.whatsapp-float:hover{ transform:translateY(-3px) scale(1.06); box-shadow:0 12px 28px rgba(37,211,102,.55); }
@media(max-width:480px){ .whatsapp-float{ width:50px; height:50px; bottom:16px; right:16px; } .whatsapp-float svg{ width:24px; height:24px; } }

/* ============ TOAST ============ */
.toast{
  position:fixed; bottom:24px; left:50%; transform:translate(-50%,20px);
  background:var(--ink); color:#fff; padding:13px 22px; border-radius:999px; font-size:13.5px; font-weight:600;
  box-shadow:0 10px 30px rgba(0,0,0,.25); z-index:200; opacity:0; pointer-events:none; transition:all .25s ease;
  display:flex; align-items:center; gap:10px;
}
.toast.show{ opacity:1; transform:translate(-50%,0); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline:2px solid var(--brand-pink); outline-offset:2px;
}
