/* =========================================================
   VARIABLES GLOBALES (colores, sombras, bordes, radios)
   ========================================================= */
:root {
  --brand: #003060;     /* Azul profundo */     /* Azul principal (fondos y secciones) */
  --brand-2: #0080A0;   /* Azul turquesa */   /* Azul secundario (variaciones) */
  --accent: #902020;    /* Rojo acento */    /* Naranja acento (botones/énfasis) */
  --text: #0f172a;      /* Color principal de texto */
  --muted: #64748b;     /* Texto secundario / descripciones */
  --bg: #ffffff;        /* Fondo general */
  --card: #ffffff;      /* Fondo tarjetas */
  --border: #e5e7eb;    /* Color borde estándar */
  --shadow: 0 10px 25px rgba(15, 23, 42, .08); /* Sombra suave */
  --radius: 14px;       /* Radio base */
  --radius-sm: 10px;    /* Radio pequeño */
}

/* =========================================================
   RESET / BASE (normaliza box model y tipografía)
   ========================================================= */
* { box-sizing: border-box }

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  color: var(--text);
  background: var(--bg)
}

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

/* =========================================================
   UTILIDADES (contenedor, márgenes, texto)
   ========================================================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px
}

.mt-12 { margin-top: 12px }
.mt-24 { margin-top: 24px }

.muted { color: var(--muted) }

/* =========================================================
   HEADER / NAV (barra superior fija + buscador + menú)
   ========================================================= */
.topbar {
  position: sticky;      /* queda fijo al hacer scroll */
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  z-index: 50
}

.topbar-inner {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 14px 0
}

/* Branding (logo/título + subtítulo) */
.brand {
  display: flex;
  flex-direction: column;
  min-width: 165px;
  align-items: center;
}

.brand-title {
  font-weight: 800;
  letter-spacing: .5px
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: -2px
}

.brand-logo{
  height: 48px;
  width: auto;
  display: block;
}

/* Buscador central */
.search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  max-width: 520px
}

.search input {
  border: 0;
  outline: none;
  width: 100%;
  font-size: 14px
}

/* Menú navegación (Inicio/Productos/Servicios/Nosotros) */
.nav {
  display: flex;
  gap: 16px;
  align-items: center
}

.nav a {
  font-size: 14px;
  color: #334155;
  padding: 8px 10px;
  border-radius: 10px
}

.nav a.active,
.nav a:hover {
  background: #eef2ff;
  color: var(--brand)
}

/* Acciones (iconos usuario/carrito) */
.actions {
  display: flex;
  gap: 10px;
  align-items: center
}

.icon-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  position: relative
}

/* Badge de contador (ej: carrito) */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  padding: 0 6px;
  margin-left: 6px
}

/* =========================================================
   HERO (bloque principal azul con título + CTA + imagen)
   ========================================================= */
.hero {
  background: var(--brand);
  color: #fff;
  padding: 64px 0 72px
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: center
}

.hero h1 {
  margin: 0;
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: -.8px
}

.hero h1 .accent { color: var(--accent) }

.hero p {
  margin: 16px 0 0;
  color: #dbeafe;
  max-width: 620px;
  font-size: 16px;
  line-height: 1.5
}

/* Botonera principal (Ver productos / Solicitar servicio) */
.btn-row {
  margin-top: 26px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap
}

/* Estilo base de botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer
}

.btn-primary {
  background: var(--accent);
  color: #fff
}

.btn-outline {
  background: transparent;
  border-color: #93c5fd;
  color: #fff
}

.hero-img {
  position: relative;
  border-radius: 22px;
  padding-right: 25px;  
  padding-bottom: 28px;              
  background: #0b1220;           
  box-shadow: var(--shadow);
}


.hero-img img {
  border-radius: 22px;
  width: 100%;
  height: 100%;
  display: block;       
}

/* =========================================================
   SECCIONES GENERALES (títulos + subtítulos)
   ========================================================= */
.section { padding: 54px 0 }

.section-title {
  font-size: 28px;
  margin: 0 0 10px;
  text-align: center
}

.section-sub {
  margin: 0 0 30px;
  text-align: center;
  color: var(--muted)
}

/* =========================================================
   STATS (3 indicadores: clientes, productos, experiencia)
   ========================================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px
}

.stat {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  text-align: center
}

.stat .icon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #dbeafe;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--brand);
  margin-bottom: 10px
}

.stat .num {
  font-weight: 900;
  font-size: 26px
}

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

/* =========================================================
   GRID DE TARJETAS (categorías, tarjetas genéricas)
   ========================================================= */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .03)
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block
}

.card.image-fill {
  max-height: 420px;      /* ajusta si quieres */
  overflow: hidden;
}

.card.image-fill img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


@media (max-width: 980px){
  .card.image-fill { min-height: 220px; }
}

.card-body { padding: 14px }

.card-title {
  font-weight: 800;
  margin: 0 0 6px;
  font-size: 14px
}

.card-desc {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35
}

/* =========================================================
   PRODUCTOS DESTACADOS (grid + tarjetas de producto)
   ========================================================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px
}

.product-card { border-radius: 18px }
.product-card img {
   height: 165px;
   cursor:pointer;
 }

/* ====== ALINEAR BOTONES EN TARJETAS DE PRODUCTO ====== */

/* La tarjeta completa como columna */
.product-card{
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Imagen fija arriba */
.product-card > img{
  flex: 0 0 auto;
}

/* Cuerpo: columna y ocupa el alto disponible */
.product-card .card-body{
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

/* Permite que la descripción crezca sin romper */
.product-card .card-desc{
  flex: 0 0 auto;
}

/* Empuja precio y botón hacia abajo consistentemente */
.product-card .price{
  margin-top: auto;     /* 👈 clave: baja el precio cuando hay poco texto */
}

/* Botón siempre abajo */
.product-card .add{
  margin-top: 12px;     /* espacio fijo */
}


.price {
  font-weight: 900;
  margin: 10px 0 12px
}

.price.variable,
.price.quote {
  font-weight: 800;
}

/* Botón "Agregar al carrito" */
.add {
  width: 100%;
  gap: 10px;
  background: var(--brand-2);
  color: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  border: 0;
  cursor: pointer;
  font-weight: 800
}

.add:disabled {
  opacity: .55;
  cursor: not-allowed
}

.center {
  display: flex;
  justify-content: center
}

/* Botón tipo link para "Ver todos los productos" */
.link-btn {
  margin-top: 22px;
  background: var(--brand-2);
  color: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 800;
  display: inline-flex;
  gap: 10px
}

/* =========================================================
   CTA (bloque azul invitando a solicitar asesoría)
   ========================================================= */
.cta {
  background: var(--brand);
  color: #fff;
  padding: 54px 0
}

.cta h2 {
  margin: 0;
  text-align: center;
  font-size: 28px
}

.cta p {
  margin: 12px auto 0;
  max-width: 720px;
  text-align: center;
  color: #dbeafe
}

.cta .btn-row { justify-content: center }

/* =========================================================
   FOOTER (4 columnas con enlaces + contacto)
   ========================================================= */
.footer {
  background: #0b1220;
  color: #cbd5e1;
  padding: 44px 0
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 22px
}

.footer a {
  display: block;
  color: #cbd5e1;
  margin-top: 10px;
  font-size: 13px
}

.footer-title {
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px
}

.footer-brand {
  font-weight: 900;
  color: #fff;
  letter-spacing: .4px
}

.footer-sub {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 3px
}

/* =========================================================
   LAYOUT PÁGINA DE PRODUCTOS (filtros + listado)
   ========================================================= */
.page-header { padding: 26px 0 }

.page-header h1 {
  margin: 0;
  font-size: 26px
}

.page-header p {
  margin: 8px 0 0;
  color: var(--muted)
}

/* grid: panel filtros + contenido */
.catalog {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  padding-bottom: 60px
}

/* Panel de filtros */
.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px
}

.panel h3 {
  margin: 0 0 14px;
  font-size: 14px
}

/* Campos de formulario */
.field { margin-top: 12px }

.field label {
  display: block;
  font-size: 12px;
  color: #334155;
  margin-bottom: 6px;
  font-weight: 700
}

.input,
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none
}

.row { display: flex; gap: 10px }

.small {
  font-size: 12px;
  color: var(--muted)
}

/* Toolbar del catálogo (encontrados + ordenamiento) */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px
}

.toolbar .found {
  font-size: 12px;
  color: var(--muted)
}

.toolbar select { max-width: 200px }

/* Avisos / mensajes */
.notice {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed var(--border);
  font-size: 12px;
  color: #475569
}

/* Pills (etiquetas pequeñas) */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 12px;
  background: #fff
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px
}

/* =========================================================
   SERVICIOS (cards de servicios, testimonios, proceso)
   ========================================================= */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px
}

.service-card { padding: 16px }

.service-price {
  margin-top: 10px;
  color: var(--brand-2);
  font-weight: 900
}

/* Lista de features dentro de cada servicio */
.list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #334155;
  font-size: 12px
}

.list li { margin: 8px 0 }

/* Footer de card de servicio (precio + botón) */
.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px
}

.mini-btn {
  background: var(--brand-2);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 800;
  cursor: pointer;
  font-size: 12px
}

/* Testimonios */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px
}

.quote { padding: 16px }
.stars { color: #f59e0b; font-size: 14px }

/* Proceso (pasos 1-4) */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 18px
}

.step { text-align: center }

.step .bubble {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: var(--brand-2);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  margin-bottom: 10px
}

/* =========================================================
   ABOUT / NOSOTROS (misión/visión + valores)
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}

/* Grid de valores */
.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 24px
}

.value {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  text-align: center
}

.value .icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #dbeafe;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-size: 20px;
  margin-bottom: 10px
}

.value h4 { margin: 0 0 6px }

.value p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4
}

/* =========================================================
   FORMULARIO (solicitud de servicio)
   ========================================================= */
.form-wrap {
  display: flex;
  justify-content: center;
  padding: 40px 0 70px
}

.form-card {
  width: min(820px, 100%);
  border: 2px solid #60a5fa;
  border-radius: 16px;
  padding: 22px;
  background: #fff
}

.form-title {
  text-align: center;
  margin: 0;
  font-size: 26px
}

.form-sub {
  text-align: center;
  color: var(--muted);
  margin: 10px 0 22px
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px
}

.form-grid .full { grid-column: 1/-1 }

textarea {
  min-height: 140px;
  resize: vertical
}

/* Botón enviar */
.submit {
  margin-top: 16px;
  width: 100%;
  background: var(--brand-2);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 900;
  cursor: pointer
}

/* =========================================================
   RESPONSIVE (adaptaciones para pantallas pequeñas)
   ========================================================= */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr }

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

  .stats { grid-template-columns: 1fr }
  .catalog { grid-template-columns: 1fr }
  .footer-grid { grid-template-columns: 1fr 1fr }

  .service-grid { grid-template-columns: 1fr }
  .testimonials { grid-template-columns: 1fr }
  .process { grid-template-columns: repeat(2, 1fr) }
  .values { grid-template-columns: repeat(2, 1fr) }
  .about-grid { grid-template-columns: 1fr }

  .nav { display: none }
}

/* =========================================================
   ✅ AÑADIDO: ESTILOS DEL CARRITO
   (para carrito.php / lista de productos + cantidades + total)
   ========================================================= */

/* Contenedor principal del carrito */
.cart-wrap{
  padding: 18px 0 60px;
}

/* Tarjeta/área donde vive el carrito */
.cart-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .03);
  overflow: hidden;
}

/* Encabezado tipo tabla (solo escritorio) */
.cart-head{
  display: grid;
  grid-template-columns: 1.4fr .7fr .6fr .4fr;
  gap: 12px;
  padding: 14px 16px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 800;
  color: #334155;
}

/* Cada fila del carrito */
.cart-row{
  display: grid;
  grid-template-columns: 1.4fr .7fr .6fr .4fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.cart-row:last-child{
  border-bottom: 0;
}

/* Columna “Producto”: imagen + info */
.cart-product{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.cart-img{
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  flex: 0 0 auto;
}

.cart-info{ min-width: 0; }

.cart-name{
  font-weight: 900;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-meta{
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

/* Controles de cantidad (-, input, +) */
.cart-qty{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
}

.btn-qty{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-weight: 900;
}

.btn-qty:hover{
  background: #eef2ff;
  border-color: #c7d2fe;
  color: var(--brand);
}

.qty-input{
  width: 58px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 10px;
  outline: none;
}

.qty-input:focus{
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, .35);
}

/* Columnas de precio/subtotal */
.cart-price,
.cart-subtotal{
  font-weight: 900;
  text-align: right;
}

/* Botón eliminar */
.cart-actions{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-remove{
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 800;
  font-size: 12px;
}

.btn-remove:hover{
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}

/* Resumen (Total) */
.cart-summary{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #fff;
  border-top: 1px solid var(--border);
}

.cart-total-label{
  font-weight: 900;
  color: #334155;
}

.cart-total-amount{
  font-weight: 900;
  font-size: 18px;
}

/* Botonera inferior (vaciar, seguir, checkout) */
.cart-bottom-actions{
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Responsive del carrito: apila todo en móvil */
@media (max-width: 860px){
  .cart-head{ display: none; }

  .cart-row{
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cart-price,
  .cart-subtotal{
    text-align: left;
  }

  .cart-actions{
    justify-content: flex-start;
  }

  .cart-summary{
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .cart-bottom-actions{
    justify-content: flex-start;
  }

  .contact-item i {
    color: #ffffff;      
    margin-right: 8px;
    font-size: 14px;
  }
  
  #add-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #22c55e;
    color: white;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    opacity: 0;
    transition: opacity .3s ease;
    z-index: 9999;
  }

  #add-toast.show {
    opacity: 1;
  }
}

/* ===============================
   CTA CATÁLOGO – HEADER
================================ */

.catalog-cta{
  display: block;
  max-width: 640px;
  margin: 12px auto 0 auto; /* CENTRADO */
  padding: 22px 26px;
  text-align: center;
  text-decoration: none;

  border-radius: 20px;
  border: 1px solid #2563eb;

  background: linear-gradient(
    180deg,
    #f0f6ff 0%,
    #ffffff 100%
  );

  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.18);

  animation: ctaPulse 1.5s ease-in-out infinite;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover: sensación de tarjeta viva */
.catalog-cta:hover{
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 20px 48px rgba(37, 99, 235, 0.30);
}

/* Badge superior */
.catalog-cta .cta-badge{
  display: inline-block;
  padding: 6px 16px;
  margin-bottom: 10px;

  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);

  color: var(--brand-2);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.3px;
}

/* Título principal */
.catalog-cta .cta-title{
  font-size: 18px;
  font-weight: 900;
  color: #1e3a8a;
  margin-bottom: 6px;
}

/* Texto descriptivo */
.catalog-cta .cta-sub{
  font-size: 14px;
  color: #2563eb;
  line-height: 1.5;
  font-weight: 600;
}

/* Link visual */
.catalog-cta .cta-link{
  font-weight: 900;
  color: var(--brand-2);
}

/* Animación sutil de expansión/contracción */
@keyframes ctaPulse{
  0%{
    transform: scale(1);
  }
  50%{
    transform: scale(1.06);
  }
  100%{
    transform: scale(1);
  }
}

/* Mobile fine-tuning */
@media (max-width: 640px){
  .catalog-cta{
    padding: 18px 20px;
    max-width: 92%;
  }

  .catalog-cta .cta-title{
    font-size: 16px;
  }
}

/* ===============================
   HOVER GLOBAL – ACLARAR COLOR
================================ */

:where(
  button,
  input[type="button"],
  input[type="submit"],
  .btn,
  .add,
  .mini-btn,
  .link-btn,
  .submit,
  .btn-qty,
  .btn-remove
){
  transition: filter .15s ease, background-color .15s ease;
}

/* Hover: aclarar el mismo color */
:where(
  button,
  input[type="button"],
  input[type="submit"],
  .btn,
  .add,
  .mini-btn,
  .link-btn,
  .submit,
  .btn-qty,
  .btn-remove
):hover:not(:disabled){
  filter: brightness(1.12);
}

/* Click */
:where(
  button,
  input[type="button"],
  input[type="submit"],
  .btn,
  .add,
  .mini-btn,
  .link-btn,
  .submit,
  .btn-qty,
  .btn-remove
):active:not(:disabled){
  filter: brightness(1.05);
}

/* Focus teclado */
:where(
  button,
  input[type="button"],
  input[type="submit"],
  .btn,
  .add,
  .mini-btn,
  .link-btn,
  .submit,
  .btn-qty,
  .btn-remove
):focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(147,197,253,.45);
}

/* Disabled */
:where(
  button,
  input[type="button"],
  input[type="submit"],
  .btn,
  .add,
  .mini-btn,
  .link-btn,
  .submit,
  .btn-qty,
  .btn-remove
):disabled,
:where(
  button,
  input[type="button"],
  input[type="submit"],
  .btn,
  .add,
  .mini-btn,
  .link-btn,
  .submit,
  .btn-qty,
  .btn-remove
):disabled:hover{
  filter: none;
}
/* ===============================
   MODAL DETALLE PRODUCTO + LUPA
================================ */

.detail-btn{
  margin-top: 10px;
  width: 100%;
  border: 1px solid var(--border);
  background: #f8fafc;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
}

.detail-btn:hover{ filter: brightness(1.06); }

/* Modal base */
.pmodal{ position: fixed; inset: 0; display: none; z-index: 9999; }
.pmodal.is-open{ display: block; }

.pmodal-backdrop{
  position: absolute; inset: 0;
  background: rgba(2, 6, 23, .55);
}

.pmodal-dialog{
  position: relative;
  width: min(980px, 94vw);
  margin: 6vh auto;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 30px 80px rgba(2,6,23,.35);
  overflow: hidden;
}

.pmodal-close{
  position: absolute;
  top: 10px; right: 10px;
  width: 38px; height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-weight: 900;
}

.pmodal-grid{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 0;
}

/* CONTENEDOR DE LA IMAGEN – SIN MARCO */
.pmodal-media{
  padding: 0;              /* 👈 sin espacio alrededor */
  background: #ffffff;     /* 👈 blanco total */
}

/* IMAGEN DEL MODAL */
.pmodal-zoom{
  width: 100%;
  aspect-ratio: 4 / 3;

  border-radius: 18px;
  background-color: #ffffff;

  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;   /* SIN zoom por defecto */

  cursor: zoom-in;
}

/* LUPA: SOLO aquí se amplía */
.pmodal-zoom:hover{
  background-size: 200%;      /* ajusta 180–220 si quieres */
}


.pmodal-hint{
  margin-top: 10px;
  margin-bottom: 10px;
  margin-left: 70px;
  font-size: 14px;
  font-weight: 600;
  color: #1e3a8a;
  opacity: .9;
}

.pmodal-info{
  padding: 22px;
}

.pmodal-badge{
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--brand);
  font-weight: 900;
  font-size: 12px;
  margin-bottom: 10px;
}

.pmodal-title{
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}

.pmodal-desc{
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.pmodal-price{
  margin-top: 14px;
  font-weight: 900;
  font-size: 18px;
  color: #0f172a;
}

.pmodal-qtyrow{
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.pmodal-qtylabel{
  font-weight: 900;
  color: #334155;
}

.qty{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.qty-btn{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-weight: 900;
  font-size: 18px;
}

.qty-input{
  width: 70px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 10px;
  outline: none;
}

.pmodal-actions{
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pmodal-note{
  margin-top: 12px;
}

/* Responsive */
@media (max-width: 860px){
  .pmodal-dialog{ margin: 4vh auto; }
  .pmodal-grid{ grid-template-columns: 1fr; }
  .pmodal-media{ padding: 14px; }
  .pmodal-actions{ grid-template-columns: 1fr; }
}



/* =========================================================
   MARCAS (chips)
   ========================================================= */
.brand-chips{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
  margin-top: 10px;
}
.chip{
  background: #fff;
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 900;
  color: var(--text);
}
