/* =========================================================
   Tienda — estilos públicos (réplica del diseño original)
   ========================================================= */
:root {
  --azul: #14439d;
  --azul-oscuro: #022f80;
  --azul-medio: #0270bb;
  --azul-vivo: #0057ff;
  --rojo: #fe0018;
  --gris-bg: #f4f4f4;
  --celeste-bg: #e7f3f9;
  --texto: #333;
  --container: 1290px;
  --f-head: 'Roboto', Arial, sans-serif;
  --f-body: 'Inter', Arial, sans-serif;
  --f-card: Arial, Helvetica, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); color: var(--texto); background: #fff; font-size: 15px; line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 15px; }
.container-wide { max-width: 1340px; margin: 0 auto; padding: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Barra superior ---------- */
.topbar { background: var(--azul-medio); color: #fff; font-family: var(--f-head); font-weight: 700; font-size: 13px; }
.topbar ul { list-style: none; margin: 0 auto; padding: 6px 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.topbar li { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar a:hover { opacity: .85; }
.topbar svg { width: 13px; height: 13px; }

/* ---------- Cabecera ---------- */
.site-header { background: linear-gradient(180deg, #0033a6 0%, #0043b6 45%, #0056c7 100%); color: #fff; }
.header-inner { display: grid; grid-template-columns: 200px 1fr 250px; align-items: center; min-height: 173px; gap: 10px; }
.logo { display: block; width: 150px; height: 150px; border-radius: 50%; background: #fff; overflow: hidden; }
.logo img { width: 100%; height: 100%; object-fit: contain; }
.header-search { display: flex; align-items: center; gap: 12px; }
.cat-dropdown { position: relative; }
.cat-btn { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px; border: 1px solid #fff; border-radius: 10px; color: #fff; background: transparent; font-family: var(--f-head); font-weight: 700; font-size: 16px; cursor: pointer; white-space: nowrap; }
.cat-btn .fa-caret-down { font-size: 13px; margin-left: 2px; }
.cat-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; background: #fff; border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: 6px 0; z-index: 60; display: none; max-height: 70vh; overflow: auto; }
.cat-dropdown.open .cat-menu { display: block; }
.cat-menu a { display: block; padding: 8px 18px; color: #222; font-size: 14px; }
.cat-menu a:hover { background: #eef3fb; color: var(--azul); }
.cat-menu a.sub { padding-left: 32px; font-size: 13px; color: #555; }
.search-form { flex: 1; display: flex; height: 40px; }
.search-form input { flex: 1; min-width: 0; border: 0; background: #f1f1f1; padding: 0 16px; color: #333; outline: none; border-radius: 2px 0 0 2px; }
.search-form input::placeholder { color: #fff; opacity: .9; }
.search-form button { width: 64px; border: 0; background: var(--azul); color: #fff; font-size: 17px; cursor: pointer; border-radius: 0 4px 4px 0; }
.header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 20px; padding-top: 0; }
.social-icons { display: flex; gap: 20px; font-size: 20px; padding-right: 20px; }
.social-icons a:hover { opacity: .8; }
.cart-btn { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 22px 0 26px; background: var(--azul); border-radius: 3px; color: #fff; font-family: var(--f-head); font-weight: 700; font-size: 15px; margin-right: 35px; cursor: pointer; border: 0; }
.cart-btn .cart-ico { position: relative; font-size: 15px; }
.cart-btn .count { position: absolute; top: -9px; right: -8px; background: #6aa8ea; color: #fff; font-size: 9px; min-width: 15px; height: 15px; line-height: 15px; border-radius: 50%; text-align: center; font-weight: 700; }

/* ---------- Menú principal ---------- */
.main-nav { background: var(--azul-oscuro); }
.main-nav > .container-wide > ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; }
.main-nav li { position: relative; }
.main-nav > .container-wide > ul > li > a { display: flex; align-items: center; gap: 8px; color: #fff; font-family: var(--f-head); font-weight: 700; font-size: 18px; padding: 13px 30px; line-height: 26px; }
.main-nav > .container-wide > ul > li > a:hover { color: #cfe1ff; }
.main-nav .fa-caret-down { font-size: 14px; }
/* Submenús (como en WordPress: lista blanca, tercer nivel hacia la derecha) */
.main-nav .submenu { position: absolute; left: 0; top: 100%; background: #fff; width: 205px; list-style: none; margin: 0; padding: 6px 0; box-shadow: 0 6px 18px rgba(0,0,0,.15); display: none; z-index: 50; }
.main-nav li:hover > .submenu { display: block; }
.main-nav .submenu .submenu { left: 100%; top: -6px; }
.main-nav .submenu a { display: flex; align-items: center; gap: 8px; padding: 13px 28px; color: #333; font-size: 14px; font-family: var(--f-body); line-height: 20px; }
.main-nav .submenu a .fa-caret-right { font-size: 11px; margin-left: 2px; }
.main-nav .submenu a:hover, .main-nav .submenu a.active { color: var(--azul); }
.main-nav .submenu li:hover > a { color: var(--azul); }
.nav-toggle { display: none; }

/* ---------- Banner ---------- */
.hero { position: relative; overflow: hidden; background: #000; }
.hero-slide { display: none; }
.hero-slide.active { display: block; }
.hero-slide img { width: 100%; }
.hero-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; }
.hero-dots button.active { background: #fff; }

/* ---------- Tarjetas de líneas ---------- */
.lines { padding: 20px 0 64px; }
.lines-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.line-card { border-radius: 10px; padding: 40px 30px 50px; text-align: center; color: #fff; display: flex; flex-direction: column; align-items: center; min-height: 535px; }
.line-card.blue { background: linear-gradient(180deg, #14439d 0%, #1e55bc 100%); }
.line-card.red { background: linear-gradient(180deg, #bf1d2c 0%, #fe0018 100%); }
.line-card.gray { background: #adadad; }
.line-card .img { height: 270px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 26px; }
.line-card .img img { max-height: 270px; width: auto; }
.line-card h3 { font-family: var(--f-head); font-size: 32px; font-weight: 700; margin: 0 0 18px; letter-spacing: -1px; line-height: 1.1; }
.line-card p { margin: 0 0 12px; font-size: 16px; line-height: 1.5; max-width: 330px; }
.line-card .btn-white { display: inline-flex; align-items: center; gap: 6px; background: #fff; padding: 12px 29px; border-radius: 3px; font-weight: 600; font-size: 16px; }
.line-card.blue .btn-white { color: var(--azul); }
.line-card.red .btn-white { color: var(--rojo); }
.line-card.gray .btn-white { color: #111; }

/* ---------- Ofertas ---------- */
.offers { padding-bottom: 50px; }
.offers-box { border-radius: 10px; background: linear-gradient(135deg, #12449d 0%, #0d4fd0 55%, #0055ff 100%); padding: 40px 32px 32px; color: #fff; }
.offers-head { display: flex; align-items: center; gap: 34px; padding: 0 18px 38px; }
.offers-head img { width: 56px; height: auto; }
.offers-head h2 { font-family: var(--f-head); font-size: 34px; font-weight: 700; margin: 0; letter-spacing: -1px; }
.typed-cursor { display: inline-block; width: 2px; height: 1.15em; background: #000; vertical-align: -0.2em; margin-left: 2px; animation: blink .9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.offers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.offer-card { border: 1px solid rgba(255,255,255,.75); border-radius: 8px; padding: 16px 16px 16px; display: flex; flex-direction: column; font-family: var(--f-card); }
.offer-card .thumb { position: relative; background: #fff; border-radius: 2px; height: 254px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.offer-card .thumb img { max-height: 100%; width: auto; object-fit: contain; }
.offer-card h3 { font-size: 15px; font-weight: 700; text-transform: uppercase; margin: 14px 0 8px; line-height: 22px; }
.offer-card .price { font-size: 14px; margin-bottom: 22px; }
.offer-card .price del { opacity: .7; margin-right: 6px; }
.offer-card .add-cart { margin-top: auto; align-self: flex-start; background: #0a5cff; color: #fff; border: 0; padding: 11px 14px; font-size: 14px; border-radius: 3px; cursor: pointer; font-family: var(--f-card); }
.offer-card .add-cart:hover { background: #2a73ff; }
.badge-oferta { position: absolute; top: -8px; right: -8px; width: 50px; height: 50px; border-radius: 50%; background: var(--azul); color: #fff; font-family: var(--f-head); font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; white-space: nowrap; letter-spacing: -.3px; z-index: 2; }
.offer-card .thumb-wrap { position: relative; }
.offer-card .badge-oferta { top: -8px; right: -12px; }

/* ---------- Secciones de productos ---------- */
.product-section { padding-bottom: 38px; }
.section-title { font-family: var(--f-head); font-size: 34px; font-weight: 700; color: var(--azul); margin: 0; letter-spacing: -.5px; line-height: 1.2; }
.section-sep { border: 0; border-top: 1px solid #ddd; margin: 22px 0 22px; }
.products-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; }
.products-grid.cols-3 { grid-template-columns: repeat(3, 1fr); gap: 14px; }
.products-grid.cols-4 { grid-template-columns: repeat(4, 1fr); gap: 14px; }

.product-card { position: relative; border: 1px solid var(--azul); border-radius: 8px; padding: 22px 14px 16px; text-align: center; display: flex; flex-direction: column; background: #fff; font-family: var(--f-card); }
.product-card .thumb { position: relative; height: 200px; display: flex; align-items: center; justify-content: center; margin: 0 6px 20px; }
.product-card .thumb img { max-height: 200px; width: auto; object-fit: contain; }
.product-card .badge-oferta { top: -12px; right: -10px; }
.product-card h3 { font-size: 15px; font-weight: 700; color: var(--azul); text-transform: uppercase; margin: 0 0 8px; line-height: 22.5px; letter-spacing: .2px; }
.product-card h3 a:hover { color: #0a5cff; }
.product-card .price { font-size: 14px; color: #333; margin-bottom: 28px; }
.product-card .price del { color: #777; margin-right: 4px; }
.product-card .price ins { text-decoration: underline; font-weight: 700; color: #333; }
.product-card .add-cart { margin-top: auto; align-self: center; background: var(--azul); color: #fff; border: 0; padding: 11px 14px; font-size: 14px; border-radius: 3px; cursor: pointer; font-family: var(--f-card); }
.product-card .add-cart:hover { background: #1c54be; }
.add-cart.loading { opacity: .6; pointer-events: none; }

/* ---------- Compra segura ---------- */
.secure { background-size: cover; background-position: center; min-height: 578px; display: flex; align-items: center; color: #fff; }
.secure .container { width: 100%; }
.secure .inner { max-width: 600px; padding: 40px 22px; }
.secure h2 { font-family: var(--f-head); font-size: 44px; font-weight: 700; line-height: 1.1; margin: 0 0 26px; letter-spacing: -1.6px; max-width: 580px; }
.secure p { font-size: 16px; line-height: 1.5; margin: 0 0 32px; max-width: 570px; }
.btn-azul { display: inline-block; background: var(--azul); color: #fff; padding: 12px 30px; border-radius: 3px; font-size: 16px; font-weight: 500; border: 0; cursor: pointer; }
.btn-azul:hover { background: #1c54be; }

/* ---------- Empresa líder ---------- */
.company { padding: 70px 0 70px; background: radial-gradient(#dcdcdc 1.3px, transparent 1.6px) 0 0 / 9px 9px; background-color: #fff; position: relative; }
.company::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.75) 18%, rgba(255,255,255,.75) 82%, #fff 100%); }
.company .grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 30px; }
.company .sub { font-family: var(--f-head); font-weight: 700; color: var(--azul-medio); font-size: 20px; margin: 0 0 14px; }
.company h2 { font-family: var(--f-head); font-weight: 700; color: var(--azul); font-size: 42px; line-height: 1.17; margin: 0 0 18px; letter-spacing: -1.2px; max-width: 500px; }
.company .hl-wrap { border-top: 1px solid #ccc; max-width: 495px; text-align: center; padding-top: 14px; }
.company .hl { font-family: var(--f-head); font-weight: 700; color: var(--azul-vivo); font-size: 42px; letter-spacing: -1.4px; line-height: 1.1; }
.company .stars { color: var(--azul); font-size: 13px; letter-spacing: 1px; margin-top: 4px; }
.company .img img { margin: 0 auto; }

/* ---------- Clientes y marcas ---------- */
.clients { background: var(--celeste-bg); padding: 14px 0 16px; }
.logos-title { font-family: var(--f-card); font-weight: 700; color: var(--azul-medio); font-size: 30px; margin: 0 0 24px; letter-spacing: -.3px; }
.container-logos { max-width: 1300px; margin: 0 auto; padding: 0 10px; }
.clients-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; align-items: center; }
.clients-row .logo-item { display: flex; justify-content: center; align-items: center; height: 232px; }
.clients-row img { max-height: 232px; width: auto; }
.brands { padding: 14px 0 10px; }
.brands-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 15px; }
.brands-row .logo-item { height: 168px; display: flex; align-items: center; justify-content: center; background: #fff; box-shadow: 8px 0 8px -6px rgba(0,0,0,.12); padding: 0 8px; }
.brands-row img { max-height: 95px; width: auto; }

/* ---------- Cotiza ---------- */
.cotiza { background: var(--azul-medio); color: #fff; padding: 52px 0 50px; }
.cotiza .grid { display: grid; grid-template-columns: 1fr 352px; gap: 40px; align-items: center; padding: 0 16px; }
.cotiza h2 { font-family: var(--f-head); font-weight: 700; font-size: 34px; line-height: 1.17; margin: 0; letter-spacing: -.6px; }
.cotiza form { display: flex; flex-direction: column; gap: 10px; }
.cotiza input { height: 47px; border: 0; border-radius: 3px; padding: 0 16px; background: #fff; color: #333; }
.cotiza input::placeholder { color: #eee; }
.cotiza button { height: 47px; border: 0; border-radius: 3px; background: var(--azul); color: #fff; font-size: 16px; cursor: pointer; }
.cotiza button:hover { background: #1c54be; }

/* ---------- Pie de página ---------- */
.site-footer { background: var(--gris-bg); color: #444; font-size: 14px; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 32px 16px 34px; border-bottom: 1px solid #ddd; }
.feature { display: flex; gap: 15px; }
.feature img { width: 52px; height: 52px; object-fit: contain; flex: none; }
.feature h4 { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: #333; }
.feature p { margin: 0; font-size: 14px; line-height: 1.6; color: #555; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 20px; padding: 50px 16px 40px; }
.footer-cols h4 { font-family: var(--f-head); font-weight: 700; color: var(--azul-medio); font-size: 19px; margin: 0 0 22px; }
.footer-cols p { font-size: 16px; line-height: 1.5; margin: 0 0 26px; max-width: 380px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.support li { margin-bottom: 8px; font-size: 14px; }
.support a:hover { color: var(--azul); }
.libro { display: inline-block; margin: 14px 0 0 56px; background: #fff; padding: 8px; }
.libro img { width: 96px; }
.contact-list li, .loc-list li { display: flex; gap: 8px; font-weight: 700; font-family: var(--f-head); font-size: 13px; color: #222; margin-bottom: 6px; align-items: flex-start; }
.contact-list svg, .loc-list svg { width: 13px; height: 13px; flex: none; margin-top: 3px; color: var(--azul-medio); }
.loc-list li { line-height: 1.85; margin-bottom: 0; }
.loc-list svg { margin-top: 12px; }
.pay-img { width: 152px; margin-bottom: 4px; }
.footer-social { display: flex; gap: 24px; margin: 26px 0 0 10px; color: var(--azul-medio); font-size: 17px; }
.footer-bottom { text-align: center; padding: 30px 0 36px; font-size: 13px; color: #333; }
.footer-bottom .flogo { width: 100px; height: 100px; border-radius: 50%; background: #fff; margin: 0 auto 10px; overflow: hidden; }
.footer-bottom .flogo img { width: 100%; height: 100%; object-fit: contain; }
.footer-bottom .bsocial { display: flex; justify-content: center; gap: 22px; margin-top: 14px; color: #111; font-size: 15px; }

/* ---------- Tienda / categoría ---------- */
.shop { padding: 45px 0 10px; }
.shop-layout { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
.sidebar { border: 1px solid #e3e3e3; border-radius: 6px; padding: 26px 32px 30px; box-shadow: 0 0 6px rgba(0,0,0,.04); }
.sidebar h3 { font-family: var(--f-head); color: var(--azul); font-size: 24px; margin: 0 0 18px; font-weight: 700; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li a { display: flex; align-items: center; gap: 12px; padding: 10px 0 10px 4px; border-bottom: 1px solid #ddd; font-size: 14px; color: #333; }
.sidebar li a i { color: var(--azul); font-size: 13px; }
.sidebar li a:hover, .sidebar li a.active { color: var(--azul); font-weight: 600; }
.sidebar li ul a { padding-left: 26px; font-size: 13px; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 10px; min-height: 40px; }
.shop-toolbar h1 { font-family: var(--f-head); color: var(--azul); font-size: 24px; margin: 0; }
.shop-toolbar .count { font-size: 14px; color: #666; }
.shop-toolbar select { height: 40px; border: 1px solid #333; border-radius: 3px; padding: 0 18px; min-width: 285px; background: #fff; font-size: 15px; }
.shop .product-card { padding-top: 28px; }
.shop .product-card .thumb { height: 230px; }
.shop .product-card .thumb img { max-height: 230px; }
.pagination { display: flex; gap: 6px; justify-content: center; margin: 30px 0 20px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--azul); border-radius: 4px; color: var(--azul); padding: 0 10px; font-size: 14px; }
.pagination .current { background: var(--azul); color: #fff; }
.empty { padding: 40px 0; text-align: center; color: #666; }

/* ---------- Producto ---------- */
.single { padding: 40px 0 30px; }
.single-grid { display: grid; grid-template-columns: 512px 1fr; gap: 60px; padding: 0 10px; }
.gallery-main { position: relative; border: 1px solid #ddd; border-radius: 8px; height: 512px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #fff; cursor: zoom-in; }
.gallery-main img { max-height: 100%; width: auto; object-fit: contain; transition: transform .2s; }
.gallery-main .zoom { position: absolute; top: 18px; right: 22px; font-size: 18px; color: #111; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin-top: 11px; }
.thumbs button { border: 1px solid #ddd; border-radius: 6px; background: #fff; padding: 4px; height: 120px; cursor: pointer; opacity: .55; }
.thumbs button.active, .thumbs button:hover { opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.summary h1 { font-family: var(--f-head); color: var(--azul); font-size: 34px; line-height: 1.25; margin: 20px 0 14px; letter-spacing: -.6px; font-weight: 700; }
.rating-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #333; border-bottom: 1px solid #ddd; padding-bottom: 16px; }
.rating-row .stars { color: #f5c518; letter-spacing: 1px; margin-left: 8px; font-size: 14px; }
.share { display: flex; gap: 8px; }
.share a { width: 24px; height: 24px; border-radius: 3px; background: var(--azul); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.summary .price-big { font-family: var(--f-head); color: var(--azul); font-weight: 700; font-size: 25px; margin: 32px 0 8px; }
.summary .price-old { color: var(--azul); font-weight: 700; font-size: 15px; text-decoration: line-through; margin-bottom: 18px; }
.summary .short { font-size: 15px; color: #333; }
.summary .short h1, .summary .short h2, .summary .short h3, .summary .short h4 { font-size: 16px; color: #222; font-family: var(--f-head); margin: 24px 0 12px; }
.summary .short ul { padding-left: 40px; margin: 0 0 16px; line-height: 1.6; }
.summary .short p { margin: 0 0 12px; }
.cart-form { display: flex; gap: 14px; margin: 24px 0 32px; }
.cart-form input { width: 70px; height: 40px; text-align: left; padding: 0 16px; border: 0; background: var(--azul); color: #fff; border-radius: 3px; font-weight: 700; }
.cart-form button { height: 40px; padding: 0 16px; background: var(--azul); color: #fff; border: 0; border-radius: 3px; font-weight: 700; cursor: pointer; font-family: var(--f-head); }
.cart-form button:hover { background: #1c54be; }
.meta { border-top: 1px solid #ddd; padding-top: 30px; font-size: 13px; }
.meta div { display: grid; grid-template-columns: 105px 1fr; margin-bottom: 10px; }
.meta strong { font-weight: 600; color: #222; }
.meta a:hover { color: var(--azul); }
.meta-pay { width: 140px; margin-top: 30px; }
.desc-box { border: 1px solid #ddd; border-radius: 12px; margin: 70px 0 0; min-height: 22px; }
.desc-box .inner { padding: 24px 30px; }
.related { padding: 40px 0 60px; }
.related .section-title { margin-bottom: 60px; font-size: 34px; }

/* ---------- Carrito lateral ---------- */
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.25); opacity: 0; visibility: hidden; transition: .25s; z-index: 98; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 352px; max-width: 92vw; background: #fff; z-index: 99; transform: translateX(100%); transition: transform .3s; display: flex; flex-direction: column; padding: 30px 32px 20px; overflow-y: auto; }
.drawer-open .drawer { transform: none; }
.drawer-open .drawer-overlay { opacity: 1; visibility: visible; }
.drawer-close { position: absolute; top: 14px; right: 14px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: #333; }
.mini-item { display: grid; grid-template-columns: 70px 1fr 22px; gap: 16px; padding: 30px 0 22px; border-bottom: 1px solid #ddd; align-items: start; }
.mini-item img { width: 70px; height: 70px; object-fit: contain; }
.mini-item .n { font-size: 14px; line-height: 1.7; color: #333; }
.mini-item .q { font-size: 14px; color: #aaa; margin-top: 4px; }
.mini-item .rm { width: 22px; height: 22px; border-radius: 50%; border: 1px solid #ccc; color: #ccc; background: #fff; font-size: 12px; line-height: 1; cursor: pointer; align-self: end; }
.mini-subtotal { text-align: center; font-family: var(--f-head); font-weight: 700; font-size: 22px; padding: 22px 0; border-bottom: 1px solid #ddd; color: #222; }
.mini-actions { display: flex; gap: 10px; margin-top: 22px; }
.mini-actions a { flex: 1; background: var(--azul); color: #fff; text-align: center; padding: 12px 10px; border-radius: 3px; font-family: var(--f-head); font-size: 17px; line-height: 1.05; display: flex; align-items: center; justify-content: center; min-height: 47px; }
.mini-actions a:hover { background: #1c54be; }
.mini-empty { padding: 60px 0; text-align: center; color: #666; }

/* ---------- Carrito / checkout ---------- */
.page-pad { padding: 70px 0 30px; }
.box { border: 1px solid #333; padding: 20px 30px 30px; background: #fff; margin-bottom: 24px; }
.box-title { font-family: var(--f-head); color: var(--azul); font-weight: 700; font-size: 12px; letter-spacing: -.3px; margin-bottom: 30px; }
.checkout-grid { display: grid; grid-template-columns: 1fr 390px; gap: 18px; max-width: 930px; margin: 0 auto; align-items: start; }
.notice-box { border: 1px solid #333; padding: 18px 30px; font-size: 12px; margin-bottom: 24px; }
.notice-box a { color: #000; }
.notice-box a:hover { color: var(--azul); }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--f-head); font-weight: 500; font-size: 15px; color: #222; margin-bottom: 8px; }
.field label .req { color: #a00; }
.field input, .field select, .field textarea { width: 100%; height: 47px; border: 0; background: #f7f7f7; padding: 0 16px; font-size: 13px; color: #333; border-radius: 0; outline: none; }
.field textarea { height: 85px; padding: 14px 16px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { background: #eef3fb; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.check { display: flex; align-items: center; gap: 8px; font-family: var(--f-head); font-size: 15px; margin: 6px 0 10px; }
.check.small { font-size: 13px; letter-spacing: -.3px; margin: 30px 0 30px 24px; }
.summary-table { width: 100%; border-collapse: collapse; font-size: 12px; font-family: var(--f-head); }
.summary-table th { text-align: left; font-weight: 700; padding: 0 0 26px; }
.summary-table td { padding: 0 0 26px; vertical-align: top; }
.summary-table tr.tot td, .summary-table tr.tot th { font-weight: 700; }
.summary-table .ship { font-size: 15px; font-weight: 500; }
.pay-box h3 { font-family: var(--f-head); font-weight: 500; font-size: 15px; margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.pay-option { border: 1px solid #e3e3e3; padding: 12px 14px; margin-bottom: 10px; font-size: 14px; }
.pay-option label { display: flex; gap: 8px; align-items: center; font-weight: 600; cursor: pointer; }
.pay-option .desc { display: none; font-size: 13px; color: #555; margin-top: 10px; white-space: pre-line; }
.pay-option.selected .desc { display: block; }
.btn-block { width: 100%; height: 40px; background: var(--azul); color: #fff; border: 0; border-radius: 3px; font-family: var(--f-head); font-weight: 700; font-size: 13px; cursor: pointer; margin-top: 10px; }
.btn-block:hover { background: #1c54be; }
.alert { padding: 14px 18px; border-radius: 4px; margin-bottom: 20px; font-size: 14px; }
.alert-error { background: #fdecec; color: #a50d0d; border: 1px solid #f5c2c2; }
.alert-ok { background: #ebf7ee; color: #1e6b33; border: 1px solid #bfe3c9; }
.cart-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cart-table th { text-align: left; padding: 12px 10px; border-bottom: 2px solid #ddd; font-family: var(--f-head); }
.cart-table td { padding: 14px 10px; border-bottom: 1px solid #eee; vertical-align: middle; }
.cart-table img { width: 70px; height: 70px; object-fit: contain; }
.cart-table input { width: 64px; height: 38px; border: 1px solid #ccc; padding: 0 8px; }
.cart-table .rm { color: #c00; font-size: 20px; }
.cart-totals { max-width: 400px; margin: 30px 0 0 auto; }
.page-content { max-width: 900px; margin: 0 auto; padding: 50px 15px 60px; font-size: 15px; line-height: 1.7; }
.page-content h1 { font-family: var(--f-head); color: var(--azul); font-size: 34px; margin: 0 0 20px; }
.thanks { text-align: center; max-width: 720px; margin: 0 auto; }
.thanks .ico { font-size: 54px; color: #2e9b4f; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 200; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 90vh; background: #fff; }
.lightbox button { position: absolute; top: 16px; right: 22px; background: none; border: 0; color: #fff; font-size: 36px; cursor: pointer; }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; font-size: 30px; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); z-index: 90; }

/* =================== Responsive =================== */
@media (max-width: 1200px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
  .single-grid { grid-template-columns: 440px 1fr; gap: 36px; }
  .gallery-main { height: 440px; }
}
@media (max-width: 1024px) {
  .header-inner { grid-template-columns: 120px 1fr; min-height: 0; padding: 14px 10px; }
  .logo { width: 100px; height: 100px; }
  .header-right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; gap: 10px; }
  .header-search { grid-column: 2; }
  .social-icons { padding: 0; }
  .cart-btn { margin: 0; }
  .main-nav > .container-wide > ul > li > a { padding: 12px 16px; font-size: 16px; }
  .lines-grid { gap: 14px; }
  .offers-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid, .products-grid.cols-3, .products-grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
  .shop-layout { grid-template-columns: 240px 1fr; }
  .single-grid { grid-template-columns: 1fr 1fr; }
  .gallery-main { height: 380px; }
  .clients-row { grid-template-columns: repeat(3, 1fr); }
  .clients-row .logo-item { height: 180px; }
  .brands-row { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  body { font-size: 14px; }
  .topbar ul { font-size: 11px; gap: 2px 12px; }
  .header-inner { grid-template-columns: 1fr; justify-items: center; }
  .header-search { grid-column: 1; width: 100%; flex-direction: column; align-items: stretch; }
  .cat-btn { justify-content: center; }
  .header-right { grid-column: 1; width: 100%; }
  .nav-toggle { display: flex; width: 100%; justify-content: center; align-items: center; gap: 8px; background: none; border: 0; color: #fff; font-family: var(--f-head); font-weight: 700; font-size: 17px; padding: 12px; cursor: pointer; }
  .main-nav > .container-wide > ul { display: none; flex-direction: column; }
  .main-nav.open > .container-wide > ul { display: flex; }
  .main-nav > .container-wide > ul > li > a { justify-content: space-between; padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.12); }
  .main-nav .submenu { position: static; box-shadow: none; display: none; background: #0a3a92; border-radius: 0; }
  .main-nav li.open > .submenu { display: block; }
  .main-nav li:hover > .submenu { display: none; }
  .main-nav li.open:hover > .submenu { display: block; }
  .main-nav .submenu { width: auto; padding: 0; }
  .main-nav .submenu .submenu { background: #0d3480; }
  .main-nav .submenu a { color: #fff; padding: 11px 16px 11px 30px; justify-content: space-between; }
  .main-nav .submenu .submenu a { padding-left: 46px; }
  .main-nav .submenu a:hover, .main-nav .submenu a.active, .main-nav .submenu li:hover > a { color: #cfe1ff; }
  .main-nav .submenu .fa-caret-right { transform: rotate(90deg); }
  .lines-grid { grid-template-columns: 1fr; }
  .line-card { min-height: 0; }
  .offers-box { padding: 26px 14px; }
  .offers-head { gap: 14px; padding: 0 4px 22px; }
  .offers-head h2 { font-size: 24px; }
  .offers-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .offer-card { padding: 10px; }
  .offer-card .thumb { height: 160px; }
  .offer-card h3 { font-size: 12px; line-height: 17px; }
  .section-title { font-size: 26px; }
  .products-grid, .products-grid.cols-3, .products-grid.cols-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card { padding: 16px 8px 12px; }
  .product-card .thumb, .shop .product-card .thumb { height: 140px; }
  .product-card .thumb img, .shop .product-card .thumb img { max-height: 140px; }
  .product-card h3 { font-size: 12px; line-height: 17px; }
  .product-card .add-cart, .offer-card .add-cart { font-size: 12px; padding: 9px 10px; }
  .secure { min-height: 420px; }
  .secure h2 { font-size: 32px; }
  .company .grid { grid-template-columns: 1fr; }
  .company h2, .company .hl { font-size: 30px; }
  .logos-title { font-size: 24px; }
  .clients-row { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .clients-row .logo-item { height: 150px; }
  .clients-row img { max-height: 150px; }
  .brands-row { grid-template-columns: repeat(2, 1fr); }
  .brands-row .logo-item { height: 110px; }
  .cotiza .grid { grid-template-columns: 1fr; gap: 20px; }
  .cotiza h2 { font-size: 24px; }
  .features, .footer-cols { grid-template-columns: 1fr; }
  .libro { margin-left: 0; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-toolbar { flex-direction: column; align-items: stretch; }
  .shop-toolbar select { min-width: 0; width: 100%; }
  .single-grid { grid-template-columns: 1fr; gap: 20px; padding: 0; }
  .gallery-main { height: 340px; }
  .thumbs button { height: 80px; }
  .summary h1 { font-size: 24px; }
  .checkout-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .box { padding: 18px 16px; }
  .cart-table thead { display: none; }
  .cart-table tr { display: grid; grid-template-columns: 70px 1fr auto; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid #eee; }
  .cart-table td { border: 0; padding: 0; }
}
@media (max-width: 767px) {
  .cat-dropdown, .cat-btn { width: 100%; }
  .cat-menu { width: 100%; }
}

/* ---------- Izipay (formulario incrustado) ---------- */
.iz-box { background: #f7f7f7; padding: 18px 12px 10px; margin: 4px 0 6px; white-space: normal; }
.iz-box .kr-embedded { width: 100% !important; max-width: 100%; }
.iz-box .kr-embedded .kr-payment-button { display: none !important; }
.pay-option .desc .iz-box { margin: 8px -6px 0; }
#placeOrder:disabled { opacity: .7; cursor: wait; }

/* ---------- Comprar por WhatsApp ---------- */
.wa-buy { align-items: stretch; }
.btn-wa { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; background: #25d366; color: #fff; border-radius: 3px; font-weight: 700; font-family: var(--f-head); font-size: 15px; }
.btn-wa i { font-size: 20px; }
.btn-wa:hover { background: #1ebe5a; }
@media (max-width: 767px) { .wa-buy { flex-wrap: nowrap; } .btn-wa { flex: 1; justify-content: center; } }
