/* =========================================================
   TartiTec — Catálogo Premium
   ========================================================= */

:root{
  --navy: #262B6E;
  --navy-dark: #14173F;
  --teal: #4FE0C4;
  --teal-dark: #2FBFA6;

  --bg: #FBFBFD;
  --bg-alt: #F4F4F7;
  --card-bg: #FFFFFF;
  --text: #111219;
  --text-muted: #6B6C76;
  --border: #E7E7EC;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;

  --shadow-sm: 0 1px 2px rgba(17,18,25,.04), 0 1px 1px rgba(17,18,25,.03);
  --shadow-md: 0 12px 24px -8px rgba(17,18,25,.12), 0 4px 8px -4px rgba(17,18,25,.06);
  --shadow-lg: 0 30px 60px -15px rgba(17,18,25,.25);

  --ease: cubic-bezier(.16,1,.3,1);
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family: inherit; cursor:pointer; }

.container{
  width:100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography helpers ---------- */
.eyebrow{
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 14px;
}
.eyebrow--light{ color: var(--teal); }

.section-title{
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 12px;
}
.section-subtitle{
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 0 48px;
  line-height: 1.6;
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn--primary{
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(38,43,110,.5);
}
.btn--primary:hover{ transform: translateY(-2px); box-shadow: 0 14px 28px -8px rgba(38,43,110,.55); }
.btn--ghost{
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover{ border-color: var(--navy); color: var(--navy); transform: translateY(-2px); }
.btn--lg{ padding: 17px 34px; font-size: 1.02rem; }
.btn--pill.btn--nav{
  background: var(--navy);
  color:#fff;
  padding: 10px 18px;
  font-size: .85rem;
}
.btn--pill.btn--nav:hover{ background: var(--navy-dark); }

/* =========================================================
   SPLASH
   ========================================================= */
.splash{
  position: fixed; inset: 0;
  z-index: 999;
  background: radial-gradient(120% 120% at 50% 20%, #171B4A 0%, #0B0D2B 55%, #060713 100%);
  display: flex; align-items:center; justify-content:center;
  transition: opacity .8s var(--ease), visibility .8s var(--ease);
}
.splash.is-hidden{ opacity: 0; visibility: hidden; pointer-events: none; }

.splash__glow{
  position:absolute;
  width: 60vw; height: 60vw;
  max-width: 700px; max-height: 700px;
  background: radial-gradient(circle, rgba(79,224,196,.18) 0%, rgba(79,224,196,0) 70%);
  border-radius: 50%;
  animation: pulseGlow 4s ease-in-out infinite;
}
@keyframes pulseGlow{
  0%,100%{ transform: scale(1); opacity:.8; }
  50%{ transform: scale(1.15); opacity: 1; }
}

.splash__content{ position:relative; text-align:center; }
.splash__logo{
  width: 130px; height: auto;
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
  animation: logoIn 1s var(--ease) both;
}
@keyframes logoIn{
  0%{ opacity:0; transform: scale(.7) translateY(10px); }
  100%{ opacity:1; transform: scale(1) translateY(0); }
}
.splash__tagline{
  margin: 22px 0 0;
  color: rgba(255,255,255,.65);
  letter-spacing: .35em;
  font-size: .72rem;
  font-weight: 600;
  animation: fadeUp .8s .3s var(--ease) both;
}
.splash__bar{
  margin: 28px auto 0;
  width: 140px; height: 2px;
  background: rgba(255,255,255,.12);
  border-radius: 2px;
  overflow: hidden;
  animation: fadeUp .8s .4s var(--ease) both;
}
.splash__bar span{
  display:block; height:100%; width: 0%;
  background: linear-gradient(90deg, var(--teal), #fff);
  animation: loadBar 1.6s .3s var(--ease) forwards;
}
@keyframes loadBar{ to{ width: 100%; } }
.splash__hint{
  margin: 18px 0 0;
  color: rgba(255,255,255,.4);
  font-size: .78rem;
  animation: fadeUp .8s .6s var(--ease) both;
}
@keyframes fadeUp{
  0%{ opacity:0; transform: translateY(8px); }
  100%{ opacity:1; transform: translateY(0); }
}

/* =========================================================
   ANUNCIO DE ENVÍOS
   ========================================================= */
.announce{
  background: var(--teal);
  position: relative;
  z-index: 210;
}
.announce__inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 9px 20px 8px;
  text-align: center;
}
.announce__row{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.announce__dot{
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--navy);
  flex-shrink: 0;
  animation: announceDot 1.6s ease-in-out infinite;
}
.announce__text{
  margin: 0;
  color: var(--navy-dark);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.announce__text strong{
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.announce__logo{
  width: 26px; height: 27px;
  border-radius: 50%;
  background: #fff;
  padding: 3px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px -2px rgba(20,23,63,.35);
  animation: heroLogoWave 3.2s ease-in-out infinite;
  transform-origin: 68% 72%;
}
.announce__subtext{
  margin: 0;
  color: rgba(20,23,63,.72);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .01em;
}
@keyframes announceDot{
  0%, 100%{ transform: scale(1); opacity: 1; }
  50%{ transform: scale(1.7); opacity: .35; }
}
@keyframes heroLogoWave{
  0%, 60%, 100% { transform: rotate(0deg); }
  65% { transform: rotate(-14deg); }
  70% { transform: rotate(12deg); }
  75% { transform: rotate(-10deg); }
  80% { transform: rotate(8deg); }
  85% { transform: rotate(-6deg); }
  90% { transform: rotate(0deg); }
}

/* =========================================================
   NAVBAR
   ========================================================= */
.nav{
  position: sticky; top:0; z-index: 200;
  padding: 16px 0;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}
.nav.is-scrolled{
  background: rgba(251,251,253,.78);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 1px 0 var(--border);
  padding: 11px 0;
}
.nav__inner{
  display:flex; align-items:center; justify-content:space-between; gap: 20px;
}
.nav__brand{
  display:flex; align-items:center; gap:12px;
  font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em;
}
.nav__logo{
  border-radius: 10px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  will-change: transform;
}
.nav__brand:hover .nav__logo{
  transform: scale(1.14) rotate(-2deg);
  box-shadow: 0 6px 18px -6px rgba(38,43,110,.35);
}
.nav__links{ display:flex; gap: 32px; }
.nav__links a{
  font-size: .92rem; font-weight: 500; color: var(--text-muted);
  transition: color .2s ease;
}
.nav__links a:hover{ color: var(--navy); }

.nav__right{ display:flex; align-items:center; gap: 12px; }

.nav__social{ display:flex; align-items:center; gap: 8px; padding-right: 6px; border-right: 1px solid var(--border); margin-right: 4px; }
.nav__social .social-icon{ width: 32px; height: 32px; }

.cart-btn{
  position: relative;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  display:flex; align-items:center; justify-content:center;
  color: var(--text);
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.cart-btn:hover{ border-color: var(--navy); color: var(--navy); transform: translateY(-2px); }
.search{
  position: relative;
  display:flex; align-items:center;
}
.search__btn{
  height: 40px; border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  display:flex; align-items:center; justify-content:center;
  gap: 8px;
  padding: 0 18px 0 14px;
  color: var(--text);
  flex-shrink: 0;
  z-index: 2;
  transition: border-color .2s ease, color .2s ease, transform .2s ease, width .3s var(--ease), padding .3s var(--ease);
}
.search__btn svg{ flex-shrink: 0; }
.search__btn-label{
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: .01em;
  transition: color .2s ease;
}
.search__btn:hover{ border-color: var(--navy); color: var(--navy); transform: translateY(-2px); }
.search__btn:hover .search__btn-label{ color: var(--navy); }

.search.is-open .search__btn{
  width: 40px;
  padding: 0;
}
.search.is-open .search__btn-label{ display:none; }
.search__input{
  width: 0;
  opacity: 0;
  padding: 0;
  margin-left: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: .88rem;
  color: var(--text);
  background: var(--bg-alt);
  transition: width .4s var(--ease), opacity .3s ease, padding .4s var(--ease), margin .4s var(--ease), border-color .3s ease;
}
.search.is-open .search__input{
  width: 210px;
  opacity: 1;
  padding: 9px 16px;
  margin-left: -34px;
  padding-left: 40px;
  border-color: var(--border);
}
.search__input::placeholder{ color: var(--text-muted); }
.search__input:focus{ outline: none; border-color: var(--navy); background: #fff; }

.filters{
  display:flex; flex-wrap:wrap; align-items:center; gap: 14px;
  margin-bottom: 36px;
  position: relative;
  z-index: 25;
}
.filters__group{ position: relative; display:flex; align-items:center; gap: 10px; }
.filters__label{ font-size: .85rem; color: var(--text-muted); font-weight: 500; }
.filters__select{
  font-family: inherit;
  font-size: .88rem; font-weight: 600; color: var(--text);
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: #fff;
  cursor: pointer;
  transition: border-color .2s ease;
}
.filters__select:hover, .filters__select:focus{ border-color: var(--navy); outline: none; }

.filters__brandbtn{
  display:flex; align-items:center; gap: 8px;
  font-family: inherit; font-size: .88rem; font-weight: 600; color: var(--text);
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: #fff;
  transition: border-color .2s ease;
}
.filters__brandbtn:hover{ border-color: var(--navy); }
.filters__brand.is-open .filters__brandbtn{ border-color: var(--navy); color: var(--navy); }
.filters__brand.is-active .filters__brandbtn{ background: var(--navy); color:#fff; border-color: var(--navy); }

.filters__brandpanel{
  position:absolute; top: calc(100% + 8px); left:0; z-index: 30;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 14px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s var(--ease);
}
.filters__brand.is-open .filters__brandpanel{ opacity:1; visibility:visible; transform: translateY(0); }

.filters__brandlist{
  display:flex; flex-direction:column; gap: 4px;
  max-height: 260px; overflow-y:auto;
  margin-bottom: 10px;
}
.filters__brandlist label{
  display:flex; align-items:center; gap: 10px;
  font-size: .88rem; color: var(--text);
  padding: 7px 8px; border-radius: 8px;
  cursor:pointer;
  transition: background .15s ease;
}
.filters__brandlist label:hover{ background: var(--bg-alt); }
.filters__brandlist input{ accent-color: var(--navy); width:15px; height:15px; }
.filters__brandclear{
  width:100%; text-align:center;
  background:none; border: 1px solid var(--border); border-radius: 999px;
  padding: 8px; font-size: .8rem; color: var(--text-muted);
  cursor:pointer; transition: border-color .2s ease, color .2s ease;
}
.filters__brandclear:hover{ border-color: var(--navy); color: var(--navy); }

.grid__noresults{
  display:none;
  text-align:center;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 40px 0;
}
.grid__noresults.is-visible{ display:block; }

.cart-btn__badge{
  position:absolute; top:-6px; right:-6px;
  background: var(--navy);
  color:#fff; font-size: .65rem; font-weight: 700;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px;
  display:flex; align-items:center; justify-content:center;
  border: 2px solid var(--bg);
}

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position: relative;
  min-height: 92vh;
  display:flex; align-items:center;
  overflow: hidden;
  background: linear-gradient(180deg, #0B0D2B 0%, #171B4A 55%, #1F235C 100%);
  color: #fff;
  padding: 90px 0 60px;
}
.hero__glow{
  position:absolute; top:-20%; right:-10%;
  width: 55vw; height: 55vw; max-width: 780px; max-height: 780px;
  background: radial-gradient(circle, rgba(79,224,196,.22) 0%, rgba(79,224,196,0) 70%);
  border-radius: 50%;
  pointer-events:none;
}
.hero__inner{ position: relative; z-index: 2; }
.hero .eyebrow{ color: var(--teal); }
.hero__title{
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.05;
  margin: 0 0 24px;
  max-width: 820px;
}
.hero__subtitle{
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: rgba(255,255,255,.7);
  max-width: 560px;
  line-height: 1.65;
  margin: 0 0 40px;
}
.hero__actions{ display:flex; gap:16px; flex-wrap: wrap; margin-bottom: 64px; }
.hero .btn--ghost{ color:#fff; border-color: rgba(255,255,255,.25); }
.hero .btn--ghost:hover{ border-color: #fff; color:#fff; }

.hero__stats{
  display:grid; grid-template-columns: repeat(3,1fr);
  gap: 24px; max-width: 640px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.hero__stats strong{ display:block; font-size: clamp(1.05rem, 1.8vw, 1.4rem); font-weight: 800; color:#fff; white-space: nowrap; }
.hero__stats span{ font-size: .82rem; color: rgba(255,255,255,.55); }

.hero__scroll{
  position:absolute; bottom: 28px; left:50%; transform: translateX(-50%);
  width: 26px; height: 42px; border-radius: 20px;
  border: 2px solid rgba(255,255,255,.35);
  display:flex; justify-content:center; padding-top: 8px;
}
.hero__scroll span{
  width:4px; height:8px; border-radius: 3px; background: var(--teal);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot{
  0%{ opacity:1; transform: translateY(0); }
  70%{ opacity:0; transform: translateY(12px); }
  100%{ opacity:0; transform: translateY(0); }
}

/* =========================================================
   CATALOGO / GRID
   ========================================================= */
.catalogo{ padding: 120px 0; }

.grid{
  display:grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 28px;
}
@media (min-width: 640px){
  .grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px){
  .grid{ grid-template-columns: repeat(3, 1fr); }
}

.card{
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.card:hover, .card:focus-visible{
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
  outline: none;
}
.card__badge{
  position:absolute; top: 16px; left: 16px; z-index: 2;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(6px);
  color: var(--navy);
  font-size: .68rem; font-weight: 700; letter-spacing:.04em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  display:flex; align-items:center; gap:6px;
}
.card__badge::before{
  content:''; width:6px; height:6px; border-radius:50%; background: var(--teal-dark);
}
.card__addbtn{
  position:absolute; top: 16px; right: 16px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  color: var(--navy);
  display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.card__addbtn:hover{ background: var(--navy); color:#fff; transform: scale(1.08); }
.card__addbtn.is-added{ background: var(--teal-dark); color:#fff; border-color: var(--teal-dark); }
.card__media{
  aspect-ratio: 4 / 3.1;
  background: linear-gradient(180deg,#F6F6F9,#EFEFF3);
  display:flex; align-items:center; justify-content:center;
  overflow: hidden;
  padding: 28px;
}
.card__media img{
  width:100%; height:100%; object-fit: contain;
  transition: transform .6s var(--ease);
}
.card:hover .card__media img{ transform: scale(1.06); }

.card__body{ padding: 24px 24px 26px; }
.card__category{
  font-size: .72rem; font-weight: 700; letter-spacing:.08em; text-transform: uppercase;
  color: var(--teal-dark); margin: 0 0 8px;
}
.card__name{
  font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em;
  margin: 0 0 6px; line-height: 1.3;
}
.card__tagline{
  font-size: .88rem; color: var(--text-muted); margin: 0 0 20px;
}
.card__footer{
  display:flex; align-items:center; justify-content:space-between;
  padding-top: 18px; border-top: 1px solid var(--border);
}
.card__price{ font-size: 1.2rem; font-weight: 800; color: var(--navy); }
.card__cta{ font-size: .82rem; font-weight: 600; color: var(--text-muted); transition: color .25s ease, transform .25s ease; }
.card:hover .card__cta{ color: var(--navy); transform: translateX(3px); }

/* =========================================================
   CTA / CONTACTO
   ========================================================= */
.cta{
  background: linear-gradient(135deg, #0B0D2B, #1F235C 60%, #262B6E);
  color: #fff;
  padding: 110px 0;
  text-align: center;
}
.cta__inner{ display:flex; flex-direction:column; align-items:center; }
.cta__title{
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; letter-spacing: -.02em;
  margin: 0 0 16px; max-width: 640px;
}
.cta__subtitle{
  color: rgba(255,255,255,.65);
  max-width: 500px;
  line-height: 1.6;
  margin: 0 0 36px;
}
.cta__phone{
  margin-top: 20px;
  font-size: .88rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .04em;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer{ padding: 40px 0; background: var(--bg-alt); }
.footer__inner{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap: 16px;
}
.footer__copy{ color: var(--text-muted); font-size: .84rem; margin:0; }
.footer__whatsapp{ font-size: .84rem; font-weight: 600; color: var(--navy); }
.footer__right{ display:flex; align-items:center; gap: 18px; }
.social-row{ display:flex; align-items:center; gap: 10px; }
.social-icon{
  width: 36px; height: 36px; border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  background: #fff; border: 1px solid var(--border);
  color: var(--navy);
  transition: transform .25s var(--ease), background .25s ease, color .25s ease, border-color .25s ease;
}
.social-icon:hover{ background: var(--navy); color:#fff; border-color: var(--navy); transform: translateY(-2px); }

/* =========================================================
   WHATSAPP FLOAT
   ========================================================= */
.whatsapp-float{
  position: fixed; right: 22px; bottom: 22px; z-index: 150;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 10px 24px -6px rgba(37,211,102,.55);
  animation: floatPulse 2.6s ease-in-out infinite;
  transition: transform .3s var(--ease);
}
.whatsapp-float:hover{ transform: scale(1.08); }
@keyframes floatPulse{
  0%,100%{ box-shadow: 0 10px 24px -6px rgba(37,211,102,.55); }
  50%{ box-shadow: 0 10px 30px -4px rgba(37,211,102,.8); }
}

/* =========================================================
   MODAL
   ========================================================= */
.modal{
  position: fixed; inset:0; z-index: 500;
  display:flex; align-items:center; justify-content:center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s var(--ease);
}
.modal.is-open{ opacity:1; visibility: visible; }
.modal__backdrop{
  position:absolute; inset:0;
  background: rgba(11,13,43,.6);
  backdrop-filter: blur(6px);
}
.modal__panel{
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%; max-width: 980px;
  max-height: 88vh;
  overflow-y: auto;
  display:grid;
  grid-template-columns: 1fr;
  box-shadow: var(--shadow-lg);
  transform: translateY(24px) scale(.98);
  opacity: 0;
  transition: transform .45s var(--ease), opacity .45s var(--ease);
}
.modal.is-open .modal__panel{ transform: translateY(0) scale(1); opacity: 1; }

@media (min-width: 860px){
  .modal__panel{ grid-template-columns: 1.15fr 1fr; max-height: 82vh; }
}

.modal__close{
  position:absolute; top: 16px; right: 16px; z-index: 5;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  color: var(--text);
  transition: background .2s ease, transform .2s ease;
}
.modal__close:hover{ background: #fff; transform: rotate(90deg); }

.modal__gallery{ background: var(--bg-alt); display:flex; flex-direction:column; }
.modal__mainimg-wrap{
  position: relative;
  aspect-ratio: 1 / 1;
  display:flex; align-items:center; justify-content:center;
  padding: 30px;
}
.modal__mainimg{
  width:100%; height:100%; object-fit: contain;
  animation: fadeImg .35s ease;
}
@keyframes fadeImg{ from{ opacity:.2; } to{ opacity:1; } }

.modal__arrow{
  position:absolute; top:50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--border);
  font-size: 1.4rem; line-height: 1;
  display:flex; align-items:center; justify-content:center;
  color: var(--navy);
  transition: background .2s ease, transform .2s ease;
}
.modal__arrow:hover{ background:#fff; transform: translateY(-50%) scale(1.08); }
.modal__arrow--prev{ left: 14px; }
.modal__arrow--next{ right: 14px; }

.modal__thumbs{
  display:flex; gap: 10px; padding: 0 20px 20px;
  overflow-x: auto;
}
.modal__thumbs img{
  width: 56px; height: 56px; object-fit: contain;
  background: #fff;
  border-radius: 10px;
  border: 2px solid transparent;
  padding: 4px;
  cursor: pointer;
  transition: border-color .2s ease;
  flex-shrink: 0;
}
.modal__thumbs img.is-active{ border-color: var(--navy); }

.modal__info{ padding: 34px 32px 32px; display:flex; flex-direction:column; }
.modal__name{
  font-size: 1.5rem; font-weight: 800; letter-spacing:-.02em;
  margin: 0 0 18px;
}
.modal__specs{ display:flex; flex-direction:column; gap: 12px; margin-bottom: 28px; }
.modal__specs li{
  display:flex; align-items:flex-start; gap: 10px;
  font-size: .93rem; color: var(--text); line-height: 1.5;
}
.modal__specs li::before{
  content:''; flex-shrink:0; margin-top: 6px;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--teal);
}
.modal__pricebar{
  margin-top: auto;
  display:flex; align-items:center; justify-content:space-between; gap: 16px;
  padding-top: 22px; border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.modal__price{ font-size: 1.7rem; font-weight: 800; color: var(--navy); }
.modal__actions{ display:flex; gap: 10px; }
.modal__actions .btn{ padding: 13px 20px; font-size: .9rem; }
#modalAddCart.is-added{ border-color: var(--teal-dark); color: var(--teal-dark); }

/* =========================================================
   CART DRAWER
   ========================================================= */
.cart{
  position: fixed; inset: 0; z-index: 600;
  visibility: hidden;
  pointer-events: none;
}
.cart.is-open{ visibility: visible; pointer-events: auto; }

.cart__backdrop{
  position:absolute; inset:0;
  background: rgba(11,13,43,.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.cart.is-open .cart__backdrop{ opacity: 1; }

.cart__panel{
  position:absolute; top:0; right:0; bottom:0;
  width: 100%; max-width: 420px;
  background: #fff;
  display:flex; flex-direction:column;
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform .45s var(--ease);
}
.cart.is-open .cart__panel{ transform: translateX(0); }

.cart__head{
  display:flex; align-items:center; justify-content:space-between;
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--border);
}
.cart__head h3{ font-size: 1.15rem; font-weight: 800; margin:0; letter-spacing: -.01em; }
.cart__head .modal__close{ position: static; }

.cart__items{
  flex: 1; overflow-y: auto;
  padding: 10px 22px;
}

.cart-item{
  display:flex; gap: 14px; align-items:center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item__img{
  width: 64px; height: 64px; border-radius: 12px;
  background: var(--bg-alt);
  padding: 6px;
  flex-shrink: 0;
}
.cart-item__img img{ width:100%; height:100%; object-fit: contain; }
.cart-item__info{ flex:1; min-width:0; }
.cart-item__name{
  font-size: .88rem; font-weight: 700; margin: 0 0 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cart-item__price{ font-size: .82rem; color: var(--text-muted); }
.cart-item__qty{
  display:flex; align-items:center; gap: 8px;
  margin-top: 8px;
}
.cart-item__qty button{
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--border); background: #fff;
  display:flex; align-items:center; justify-content:center;
  font-size: .9rem; color: var(--navy);
  transition: background .2s ease;
}
.cart-item__qty button:hover{ background: var(--bg-alt); }
.cart-item__qty span{ font-size: .85rem; font-weight: 600; min-width: 16px; text-align:center; }
.cart-item__remove{
  color: var(--text-muted); font-size: .78rem;
  text-decoration: underline; margin-top: 6px; display:inline-block;
  background:none; border:none; cursor:pointer; padding:0;
}
.cart-item__remove:hover{ color: #d64545; }

.cart__empty{
  display:none;
  flex: 1;
  flex-direction: column; align-items:center; justify-content:center;
  gap: 16px; padding: 40px 22px; text-align:center;
  color: var(--text-muted);
}
.cart.is-empty .cart__empty{ display:flex; }
.cart.is-empty .cart__items{ display:none; }
.cart.is-empty .cart__footer{ display:none; }

.cart__footer{ padding: 18px 22px 24px; border-top: 1px solid var(--border); }
.cart__totalrow{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom: 16px; font-size: 1rem;
}
.cart__totalrow strong{ font-size: 1.35rem; color: var(--navy); }
.cart__whatsapp{ width:100%; justify-content:center; margin-bottom: 12px; }
.cart__clear{
  width:100%; text-align:center; background:none; border:none;
  color: var(--text-muted); font-size: .82rem; text-decoration: underline;
  cursor:pointer; padding: 4px;
}
.cart__clear:hover{ color: #d64545; }

@media (max-width: 480px){
  .cart__panel{ max-width: 100%; }
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in-view{ opacity: 1; transform: translateY(0); }

/* stagger inside grid */
.grid .card.reveal{ transition-delay: calc(var(--i, 0) * 60ms); }

/* =========================================================
   BODY LOCK (modal/splash open)
   ========================================================= */
body.no-scroll{ overflow: hidden; }

/* =========================================================
   RESPONSIVE TWEAKS
   ========================================================= */
@media (max-width: 860px){
  .nav__social{ display:none; }
  .search__btn{ width: 40px; padding: 0; }
  .search__btn-label{ display:none; }
  .search.is-open .search__input{ width: 150px; }
}

@media (max-width: 640px){
  .nav__links{ display:none; }
  .nav__social{ display:none; }
  .search__btn{ width: 40px; padding: 0; }
  .search__btn-label{ display:none; }
  .btn--pill.btn--nav span{ display:none; }
  .hero{ min-height: auto; padding: 120px 0 70px; }
  .announce__text{ font-size: .8rem; }
  .hero__stats{ grid-template-columns: 1fr; gap: 18px; }
  .catalogo{ padding: 80px 0; }
  .cta{ padding: 80px 0; }
  .modal__panel{ max-height: 92vh; }
  .modal__info{ padding: 26px 22px 28px; }
  .search.is-open .search__input{ width: 120px; }
}

@media (max-width: 420px){
  .nav__right{ gap: 8px; }
  .btn--pill.btn--nav{ padding: 10px 12px; }
}
