/* puntoTECH — estilo tech oscuro */

:root {
  --bg: #0a0e14;
  --bg-alt: #0f1620;
  --bg-card: #121a26;
  --border: #1e2937;
  --text: #e6edf3;
  --text-muted: #8b98a9;
  --accent: #22d3ee;
  --accent-2: #3b82f6;
  --accent-soft: rgba(34, 211, 238, 0.12);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html.preloading,
html.preloading body {
  overflow: hidden;
  height: 100%;
}

/* ---------- Preloader ---------- */

#preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 20% -10%, rgba(34, 211, 238, 0.08), transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(59, 130, 246, 0.10), transparent 45%),
    var(--bg);
  transition: opacity .5s ease, visibility .5s ease;
}

#preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: preloader-fade-in .5s ease;
}

.preloader-ring,
.preloader-ring::after {
  position: absolute;
  border-radius: 50%;
}

.preloader-ring {
  inset: 0;
  border: 3px solid rgba(34, 211, 238, 0.15);
  border-top-color: var(--accent);
  border-right-color: var(--accent-2);
  animation: preloader-spin 1.1s linear infinite;
}

.preloader-ring::after {
  content: "";
  inset: 14px;
  border: 2px dashed rgba(59, 130, 246, 0.25);
  animation: preloader-spin-reverse 3s linear infinite;
}

.preloader-logo {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 18px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
  animation: preloader-pulse 1.7s ease-in-out infinite;
}

.preloader-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.preloader-text {
  position: absolute;
  bottom: -38px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.preloader-text .dots span {
  animation: preloader-dots 1.4s infinite;
  animation-delay: calc(var(--i) * .2s);
  opacity: 0;
}

@keyframes preloader-spin {
  to { transform: rotate(360deg); }
}

@keyframes preloader-spin-reverse {
  to { transform: rotate(-360deg); }
}

@keyframes preloader-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}

@keyframes preloader-fade-in {
  from { opacity: 0; transform: scale(.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes preloader-dots {
  0%, 20% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .preloader-logo-wrap,
  .preloader-ring,
  .preloader-ring::after,
  .preloader-logo,
  .preloader-text .dots span {
    animation: none !important;
  }
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at 20% -10%, rgba(34, 211, 238, 0.08), transparent 40%),
              radial-gradient(circle at 90% 10%, rgba(59, 130, 246, 0.10), transparent 45%),
              var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

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

/* ---------- Header ---------- */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.logo .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px 2px var(--accent);
}

.logo span.punto { color: var(--accent); }

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 12px;
  padding: 6px 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform .15s ease;
}

.logo-badge:hover { transform: translateY(-1px) scale(1.02); }

.logo-badge img {
  height: 80px;
  width: auto;
  display: block;
}

footer .logo-badge img { height: 65px; }

/* Full-width white strip with the logo centered, right below the header */
.logo-strip {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-strip img {
  height: 238px;
  width: auto;
  display: block;
}

@media (max-width: 900px) {
  .logo-strip img { height: 175px; }
  .logo-strip { padding: 30px 0; }
}

@media (max-width: 680px) {
  .logo-strip img { height: 125px; }
  .logo-strip { padding: 24px 0; }
}

nav.main-nav {
  display: flex;
  gap: 28px;
}

nav.main-nav a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--text);
  border-color: var(--accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04121a;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(34, 211, 238, 0.25);
  transition: transform .15s ease;
}

.nav-cta:hover { transform: translateY(-1px); }

.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
  color: #fff;
  transition: transform .15s ease;
}

.social-icon-link svg { width: 18px; height: 18px; }

.social-icon-link:hover { transform: translateY(-1px) scale(1.05); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1.4rem;
  padding: 4px 10px;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  padding: 90px 0 70px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(34, 211, 238, 0.35);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  max-width: 640px;
  margin: 0 auto 34px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn[hidden] {
  /* El atributo HTML "hidden" por sí solo no alcanza acá: la regla de
     abajo (.btn { display: inline-flex }) tiene la misma especificidad
     que el [hidden] del navegador y, al venir después en la hoja de
     estilos, gana ella — así que sin esto un botón .btn con "hidden"
     igual se mostraría. */
  display: none !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  /* Un <button class="btn"> (ej: "Eliminar" en un <form>) no hereda la
     tipografía del sitio por defecto como sí lo hace un <a class="btn">
     (ej: "Editar") — usa la fuente del sistema operativo, con métricas
     distintas, y eso hacía que ambos se vieran de tamaño distinto aunque
     el padding/font-size sean iguales. Esto lo iguala. */
  font-family: inherit;
  line-height: 1.15;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}

/* Firefox agrega un borde/padding interno propio a los <button>, aparte
   del que ya definimos acá arriba — sin esto un <button class="btn"> se
   ve levemente más chico que un <a class="btn"> en Firefox. */
button.btn::-moz-focus-inner {
  border: 0;
  padding: 0;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04121a;
  box-shadow: 0 6px 24px rgba(34, 211, 238, 0.3);
}

.btn-primary:hover { transform: translateY(-2px); }

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Sections ---------- */

section { padding: 70px 0; }

section.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}

.section-head .eyebrow { margin-bottom: 14px; }

.section-head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.section-head p { color: var(--text-muted); margin: 0; }

/* ---------- Grid / Cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: var(--shadow);
}

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 700;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.card ul li { margin-bottom: 6px; }

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 10px;
}

.stat {
  text-align: center;
  padding: 26px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat .num {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat .label {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 6px;
}

/* ---------- CTA banner ---------- */

.cta-banner {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(59, 130, 246, 0.12));
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 20px;
  padding: 46px 40px;
  text-align: center;
}

.cta-banner h2 {
  margin: 0 0 12px;
  font-size: 1.7rem;
  font-weight: 800;
}

.cta-banner p {
  color: var(--text-muted);
  margin: 0 0 26px;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-item {
  display: flex;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  align-items: flex-start;
}

.contact-item .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item h4 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.contact-item p, .contact-item a {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.contact-item a:hover { color: var(--accent); }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 320px;
}

.map-embed iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

form.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

form.contact-form label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: block;
}

form.contact-form input,
form.contact-form textarea,
form.contact-form select {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

form.contact-form input:focus,
form.contact-form textarea:focus,
form.contact-form select:focus {
  outline: none;
  border-color: var(--accent);
}

form.contact-form textarea { resize: vertical; min-height: 110px; }

/* ---------- Footer ---------- */

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 26px;
  background: var(--bg-alt);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 30px;
}

.footer-grid h4 {
  margin: 0 0 14px;
  font-size: 0.95rem;
}

.footer-grid p, .footer-grid a {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 8px;
}

.footer-grid a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- WhatsApp float button ---------- */

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 60;
  background: #25d366;
  color: #fff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform .2s ease;
}

.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- Instagram float button ---------- */

.instagram-float {
  position: fixed;
  bottom: 92px;
  right: 24px;
  z-index: 60;
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
  color: #fff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(221, 42, 123, 0.35);
  transition: transform .2s ease;
}

.instagram-float svg { width: 28px; height: 28px; }

.instagram-float:hover { transform: scale(1.08); }

/* ---------- Breadcrumb / page header ---------- */

.page-header {
  padding: 56px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.page-header h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.page-header p { color: var(--text-muted); margin: 0; max-width: 560px; margin: 0 auto; }

/* ---------- Misc utility ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(34, 211, 238, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  margin: 4px 6px 0 0;
}

.badge-list { margin-top: 18px; }

.price {
  font-weight: 800;
  color: var(--accent);
  font-size: 1.1rem;
}

/* ---------- Cart toggle (header) ---------- */

.cart-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, transform .15s ease;
  flex-shrink: 0;
}

.cart-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04121a;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* ---------- Cart drawer ---------- */

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(4, 8, 14, 0.6);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 420px;
  height: 100%;
  z-index: 301;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  transition: right .35s ease;
}

.cart-drawer.open { right: 0; }

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}

.cart-drawer-head h3 { margin: 0; font-size: 1.1rem; }

.cart-close {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  transition: color .15s ease, border-color .15s ease;
}

.cart-close:hover { color: var(--accent); border-color: var(--accent); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 10px 24px;
  display: flex;
  flex-direction: column;
}

.cart-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 60px 10px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-name {
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 4px;
  overflow-wrap: break-word;
}

.cart-item-price {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.cart-item-remove {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.95rem;
  padding: 4px;
  flex-shrink: 0;
  transition: color .15s ease;
}

.cart-item-remove:hover { color: #f87171; }

.cart-shipping {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

.cart-shipping-label {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cart-shipping-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-shipping-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  cursor: pointer;
}

.cart-shipping-option input[type="radio"] {
  width: auto;
  accent-color: var(--accent);
}

.cart-shipping-address {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

/* Mismo motivo que .btn[hidden] más abajo en este archivo: el atributo
   HTML "hidden" no alcanza contra una regla de la misma especificidad
   que ya define "display", así que hace falta esta excepción explícita. */
.cart-shipping-address[hidden] {
  display: none !important;
}

.cart-shipping-address input,
.cart-shipping-address select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.85rem;
  font-family: inherit;
}

.cart-shipping-address input::placeholder { color: var(--text-muted); }

.cart-shipping-address-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 8px;
}

.cart-drawer-foot {
  padding: 20px 24px 26px;
  border-top: 1px solid var(--border);
}

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.cart-total-row span:last-child { color: var(--accent); }

.cart-note {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
  line-height: 1.6;
}

.cart-checkout-error {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fca5a5;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.82rem;
  margin: 0 0 12px;
}

#cart-checkout-mp {
  margin-bottom: 10px;
  background: linear-gradient(135deg, #00b1ea, #0090d9);
}

/* ---------- Quantity stepper ---------- */

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.qty-btn {
  background: transparent;
  border: none;
  color: var(--text);
  width: 32px;
  height: 32px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, color .15s ease;
}

.qty-btn:hover { background: var(--accent-soft); color: var(--accent); }

.qty-input {
  width: 38px;
  height: 32px;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-value {
  min-width: 26px;
  text-align: center;
  font-weight: 700;
  font-size: 0.88rem;
}

.qty-stepper-sm .qty-btn { width: 26px; height: 26px; font-size: 0.9rem; }

/* ---------- Shoppable product cards ---------- */

.product-card { display: flex; flex-direction: column; }

.product-card .cat-tag {
  align-self: flex-start;
  margin-bottom: 12px;
}

.product-photo {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.store-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 60px 20px;
  line-height: 1.7;
}

.store-empty a { color: var(--accent); }

.stock-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.stock-badge-out {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fca5a5;
}

.stock-badge-low {
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.35);
  color: #fde047;
}

.product-card-out {
  opacity: 0.7;
}

.product-card-out .product-photo,
.product-card-out .icon {
  filter: grayscale(60%);
}

.product-price {
  font-weight: 800;
  color: var(--accent);
  font-size: 1.25rem;
  margin: 14px 0 16px;
}

.product-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.85rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- Filtros de la tienda ---------- */

.store-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 32px;
}

.store-filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 150px;
}

.store-filter-search { flex: 1.6; min-width: 200px; }

.store-filter-field label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.store-filter-field input,
.store-filter-field select {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  width: 100%;
}

.store-filter-field input:focus,
.store-filter-field select:focus {
  outline: none;
  border-color: var(--accent);
}

.store-filter-price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.store-filter-price-inputs input { width: 0; flex: 1; }
.store-filter-price-inputs span { color: var(--text-muted); }

.store-filter-clear {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 680px) {
  .store-filters { flex-direction: column; align-items: stretch; }
  .store-filter-field, .store-filter-search { min-width: 0; }
  .store-filter-clear { width: 100%; }
}

/* ---------- Detalle de producto (clic para abrir) ---------- */

.product-clickable { cursor: pointer; }

.view-detail-link {
  display: inline-block;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.view-detail-link:hover { text-decoration: underline; }

/* ---------- Modal de detalle de producto ---------- */

body.modal-open { overflow: hidden; }
body.modal-open .whatsapp-float { display: none; }
body.modal-open .instagram-float { display: none; }

.product-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(4, 8, 14, 0.7);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

.product-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.product-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%);
  width: 100%;
  max-width: 860px;
  max-height: 88vh;
  overflow-y: auto;
  z-index: 401;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
}

.product-modal.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%);
}

.product-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  transition: color .15s ease, border-color .15s ease;
}

.product-modal-close:hover { color: var(--accent); border-color: var(--accent); }

.product-modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
}

.product-modal-main-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-modal-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-modal-icon {
  font-size: 4rem;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-modal-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.product-modal-thumb {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--bg-alt);
  padding: 0;
  cursor: pointer;
  transition: border-color .15s ease;
}

.product-modal-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-modal-thumb.active,
.product-modal-thumb:hover { border-color: var(--accent); }

.product-modal-info { display: flex; flex-direction: column; }

.product-modal-info .cat-tag { align-self: flex-start; margin-bottom: 14px; }

.product-modal-info h2 {
  margin: 0 0 6px;
  font-size: 1.5rem;
}

.product-modal-price {
  font-weight: 800;
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.product-modal-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 22px;
}

.product-modal-cart-area {
  margin-bottom: 16px;
}

.product-modal-cart-area .product-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-modal-whatsapp { align-self: flex-start; }

@media (max-width: 720px) {
  .product-modal { padding: 24px; max-height: 92vh; }
  .product-modal-body { grid-template-columns: 1fr; gap: 22px; }
}

/* ---------- Página de retorno de pago (checkout-retorno.php) ---------- */

.checkout-result {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 34px;
  text-align: center;
  margin: 20px 0 60px;
}

.checkout-result-icon {
  font-size: 3rem;
  margin-bottom: 14px;
}

.checkout-result h1 {
  font-size: 1.4rem;
  margin: 0 0 12px;
}

.checkout-result p {
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 440px;
  margin: 0 auto;
}

.checkout-result-total {
  margin-top: 18px !important;
  font-size: 1.05rem;
  color: var(--text) !important;
}

.checkout-result-total strong { color: var(--accent); }

.checkout-result-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.checkout-result-approved .checkout-result-icon { filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.4)); }
.checkout-result-rejected .checkout-result-total strong { color: #fca5a5; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  nav.main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .grid, .grid.cols-2, .grid.cols-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-cta span.long { display: none; }
  .cart-drawer { max-width: 100%; right: -100%; }
}

nav.main-nav.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  gap: 14px;
}
