/* ==========================================================
   Visual Creative Group - Estilos del sitio
   Paleta: azul marino #073A65 · turquesa #32C5CD · blanco
   ========================================================== */
:root {
  --navy: #073A65;
  --navy-2: #0B4C82;
  --navy-d: #052B4C;
  --teal: #32C5CD;
  --teal-2: #5FD6DC;
  --teal-ink: #138C95;
  --ink: #142739;
  --muted: #5D6E80;
  --line: #E2E9F0;
  --soft: #F3F8FB;
  --soft-2: #EAF6F8;
  --white: #fff;
  --wa: #25D366;
  --wa-d: #1DA851;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(7, 58, 101, .06);
  --shadow: 0 14px 34px -12px rgba(7, 58, 101, .22);
  --shadow-lg: 0 24px 60px -18px rgba(7, 58, 101, .32);
  --font-h: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-b: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.22, .8, .26, 1);
  --header-h: 82px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-b); font-size: 16px; line-height: 1.65; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; overflow-x: hidden; touch-action: manipulation; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-h); color: var(--navy); line-height: 1.25; margin: 0 0 .6em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 860px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mt-12 { margin-top: 12px; }
.mt-40 { margin-top: 40px; }
.ico { width: 20px; height: 20px; flex-shrink: 0; }
.h2 { font-size: clamp(24px, 3vw, 32px); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font-h); font-weight: 600; font-size: 15px; padding: 14px 26px; border-radius: 12px; border: 1.5px solid transparent; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s; cursor: pointer; line-height: 1.2; text-align: center; }
.btn .ico { width: 19px; height: 19px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 10px 22px -12px rgba(7, 58, 101, .7); }
.btn-primary:hover { background: var(--navy-2); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 10px 22px -12px rgba(37, 211, 102, .8); }
.btn-wa:hover { background: var(--wa-d); }
.btn-wa .ico { width: 21px; height: 21px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 17px 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-row.center { justify-content: center; }

/* ---------- Barra superior y cabecera ---------- */
.topbar { background: var(--navy); color: #CFE2EF; font-size: 13px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 20px; }
.topbar-info { display: flex; gap: 26px; flex-wrap: wrap; }
.topbar-info a, .topbar-info span { display: inline-flex; align-items: center; gap: 8px; }
.topbar-info .ico { width: 15px; height: 15px; color: var(--teal); }
.topbar-info a:hover { color: #fff; }
.topbar-social { display: flex; gap: 14px; }
.topbar-social a { display: inline-flex; color: #CFE2EF; transition: color .2s; }
.topbar-social a:hover { color: var(--teal); }
.topbar-social .ico { width: 16px; height: 16px; }

.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .97); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s; }
.site-header.scrolled { box-shadow: 0 8px 26px -14px rgba(7, 58, 101, .35); border-bottom-color: var(--line); }
.header-in { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand img { height: 52px; width: auto; }
.main-nav { display: flex; gap: 6px; margin-left: auto; }
.main-nav a { position: relative; font-family: var(--font-h); font-weight: 600; font-size: 15px; color: var(--navy); padding: 10px 14px; border-radius: 10px; transition: color .2s, background .2s; }
.main-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--navy); }
.header-actions { display: flex; align-items: center; gap: 12px; }

.search { position: relative; display: flex; align-items: center; }
.search input { width: 250px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); padding: 0 46px 0 16px; font-size: 15px; font-family: var(--font-b); color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s, background .2s, width .3s var(--ease); -webkit-appearance: none; appearance: none; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search input:focus { border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(50, 197, 205, .16); width: 290px; }
.search button { position: absolute; right: 5px; width: 36px; height: 36px; border: 0; border-radius: 9px; background: var(--navy); color: #fff; display: grid; place-items: center; }
.search button .ico { width: 17px; height: 17px; }
.search-results { position: absolute; top: calc(100% + 8px); right: 0; width: 360px; max-width: calc(100vw - 32px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 80; }
.search-results a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; transition: background .2s; }
.search-results a:hover, .search-results a.focus { background: var(--soft); }
.search-results .sr-img { width: 46px; height: 46px; border-radius: 9px; border: 1px solid var(--line); overflow: hidden; flex-shrink: 0; background: var(--soft); display: grid; place-items: center; }
.search-results .sr-img img { width: 100%; height: 100%; object-fit: cover; }
.search-results .sr-img.ph-img img { width: 70%; height: auto; opacity: .25; object-fit: contain; }
.search-results strong { display: block; font-size: 14px; color: var(--navy); line-height: 1.3; }
.search-results small { color: var(--muted); font-size: 12px; }
.search-results .sr-all { justify-content: center; font-family: var(--font-h); font-weight: 600; font-size: 13px; color: var(--teal-ink); border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: 4px; }
.search-results .sr-empty { padding: 14px; font-size: 14px; color: var(--muted); text-align: center; }

.cart-btn { position: relative; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--navy); transition: border-color .2s, background .2s; }
.cart-btn:hover { border-color: var(--teal); background: var(--soft); }
.cart-count { position: absolute; top: -7px; right: -7px; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 11px; background: var(--teal); color: var(--navy-d); font: 700 11px/21px var(--font-h); text-align: center; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--navy); place-items: center; }
.mobile-search-wrap { display: none; }

/* Menú lateral móvil */
.drawer { position: fixed; inset: 0; z-index: 120; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(5, 43, 76, .5); opacity: 0; transition: opacity .3s; }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(330px, 86vw); background: #fff; transform: translateX(100%); transition: transform .35s var(--ease); display: flex; flex-direction: column; padding: 20px; overflow-y: auto; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.drawer-head img { height: 40px; width: auto; }
.drawer-head button { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--navy); display: grid; place-items: center; }
.drawer-nav a { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; font-family: var(--font-h); font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--line); }
.drawer-nav a .ico { width: 18px; height: 18px; color: var(--teal-ink); }
.drawer-nav a.active { color: var(--teal-ink); }
.drawer-contact { margin-top: 22px; display: grid; gap: 12px; font-size: 14px; color: var(--muted); }
.drawer-contact a { display: flex; gap: 10px; align-items: center; }
.drawer-contact .ico { width: 18px; height: 18px; color: var(--teal-ink); }
.drawer-social { display: flex; gap: 10px; margin-top: 22px; }
.drawer-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--navy); }
.drawer-social .ico { width: 18px; height: 18px; }

/* ---------- Portada (slider solo de imágenes) ---------- */
.hero-slider { position: relative; overflow: hidden; background: var(--soft); transition: height .6s var(--ease); }
.slider-track { display: flex; align-items: flex-start; transition: transform .9s var(--ease); will-change: transform; }
.slide { flex-shrink: 0; }
.slide img { width: 100%; height: auto; display: block; }
.no-js .slide + .slide { display: none; }
.hero-empty { position: relative; aspect-ratio: 1920 / 680; max-height: 620px; width: 100%; background: radial-gradient(circle at 78% 30%, rgba(50, 197, 205, .45), transparent 45%), linear-gradient(120deg, var(--navy-d), var(--navy) 55%, #0E5E8F); display: grid; place-items: center; overflow: hidden; }
.hero-empty img { width: min(34%, 420px); opacity: .18; filter: brightness(0) invert(1); }

/* ---------- Secciones ---------- */
.section { padding: 88px 0; position: relative; }
.section-soft { background: var(--soft); }
.section-navy { background: radial-gradient(circle at 12% 0%, rgba(50, 197, 205, .22), transparent 42%), radial-gradient(circle at 100% 100%, rgba(50, 197, 205, .16), transparent 40%), var(--navy); color: #fff; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 800; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 18px auto 0; max-width: 680px; }
.section-head.light h2 { color: #fff; }
.section-head.light p { color: #C9DCEA; }
.title-line { display: block; width: 64px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--teal), var(--teal-2)); margin: 0 auto; }
.title-line.left { margin: 0 0 22px; }

/* Marcador elegante para imágenes pendientes (marca de agua del logo) */
.ph { width: 100%; height: 100%; min-height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, #F4F9FC 0%, #E8F5F8 100%); position: relative; overflow: hidden; }
.ph::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(7, 58, 101, .025) 0 14px, transparent 14px 28px); }
.ph-mark { width: 46%; max-width: 220px; height: auto; opacity: .14; position: relative; }
.rounded { border-radius: var(--radius-lg); overflow: hidden; }

/* ---------- Carrusel infinito ---------- */
.marquee { position: relative; overflow: hidden; padding: 12px 0 34px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee var(--speed, 45s) linear infinite; }
.marquee:hover .marquee-track, .marquee.paused .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; gap: 24px; padding-right: 24px; }
.marquee-item { width: 270px; flex-shrink: 0; }
.marquee-item-serv { width: 330px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.section-products .center { margin-top: 10px; }

/* ---------- Tarjeta de producto ---------- */
.p-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.p-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(50, 197, 205, .55); }
.p-card-img { aspect-ratio: 1 / 1; overflow: hidden; background: #fff; }
.p-card-img > img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.p-card:hover .p-card-img > img { transform: scale(1.06); }
.p-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; border-top: 1px solid var(--line); }
.p-card-cat { font-size: 13px; color: var(--muted); }
.p-card h3 { font-size: 16px; font-weight: 700; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-card-price { font-family: var(--font-h); font-weight: 700; color: var(--navy); }
.p-card-link { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-h); font-weight: 600; font-size: 14px; color: var(--navy); }
.p-card-link .ico { width: 16px; height: 16px; transition: transform .3s var(--ease); color: var(--teal-ink); }
.p-card:hover .p-card-link .ico { transform: translateX(4px); }

/* ---------- Categorías (mosaico dinámico) ---------- */
.cat-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 18px; grid-auto-flow: dense; }
.cat-tile:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; }
.cat-tile:nth-child(6n+4), .cat-tile:nth-child(6n+5), .cat-tile:nth-child(6n+6) { grid-column: span 2; }
.cat-tile { position: relative; border-radius: var(--radius-lg); overflow: hidden; isolation: isolate; border: 1px solid var(--line); background: var(--soft); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.cat-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.cat-tile-media { position: absolute; inset: 0; }
.cat-tile-media img:not(.ph-mark) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.2s ease, transform 6s ease; }
.cat-tile-media img.on { opacity: 1; transform: scale(1); }
.cat-tile:hover .cat-tile-media img.on { transform: scale(1.06); }
.cat-ph { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 80% 15%, rgba(50, 197, 205, .45), transparent 50%), linear-gradient(135deg, var(--navy) 0%, var(--navy-d) 100%); transition: transform .6s var(--ease); }
.cat-tile:nth-child(even) .cat-ph { background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .16), transparent 50%), linear-gradient(135deg, #1B9BA6 0%, var(--navy-2) 100%); }
.cat-ph img { width: 46%; max-width: 260px; opacity: .12; filter: brightness(0) invert(1); margin-bottom: 14%; }
.cat-tile:hover .cat-ph { transform: scale(1.04); }
.cat-tile-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 43, 76, 0) 30%, rgba(5, 43, 76, .88) 100%); z-index: 1; transition: background .4s; }
.cat-tile:hover .cat-tile-shade { background: linear-gradient(180deg, rgba(5, 43, 76, .1) 10%, rgba(5, 43, 76, .92) 100%); }
.cat-tile-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 24px; z-index: 2; color: #fff; }
.cat-tile-body h3 { color: #fff; font-size: 20px; margin: 0 0 6px; }
.cat-tile:nth-child(6n+1) .cat-tile-body h3 { font-size: clamp(22px, 2.4vw, 30px); }
.cat-tile-body span { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--teal-2); font-weight: 600; font-family: var(--font-h); }
.cat-tile-body .ico { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.cat-tile:hover .cat-tile-body .ico { transform: translateX(5px); }

/* ---------- Servicios ---------- */
.serv-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.serv-tile { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.serv-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(50, 197, 205, .6); }
.serv-tile-img { aspect-ratio: 4 / 3; overflow: hidden; }
.serv-tile-img > img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.serv-tile:hover .serv-tile-img > img { transform: scale(1.07); }
.serv-tile h3 { font-size: 15px; text-align: center; padding: 16px 12px; margin: 0; border-top: 1px solid var(--line); }

.s-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.s-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.s-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(50, 197, 205, .6); }
.s-card-img { aspect-ratio: 16 / 10; overflow: hidden; }
.s-card-img > img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.s-card:hover .s-card-img > img { transform: scale(1.06); }
.s-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; border-top: 1px solid var(--line); }
.s-card-body h3 { font-size: 19px; margin-bottom: 8px; }
.s-card-body p { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.s-card-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-h); font-weight: 600; font-size: 14px; color: var(--navy); }
.s-card-link .ico { width: 16px; height: 16px; color: var(--teal-ink); transition: transform .3s var(--ease); }
.s-card:hover .s-card-link .ico { transform: translateX(4px); }

/* ---------- Soluciones ---------- */
.sol-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.sol-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.sol-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(50, 197, 205, .6); }
.sol-card-img { aspect-ratio: 16 / 11; overflow: hidden; }
.sol-card-img > img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.sol-card:hover .sol-card-img > img { transform: scale(1.06); }
.sol-card-body { padding: 22px; border-top: 1px solid var(--line); flex: 1; }
.sol-card-body h3 { font-size: 18px; }
.sol-card-body p { color: var(--muted); font-size: 15px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 12.5px; font-weight: 500; color: var(--navy); background: var(--soft); border: 1px solid var(--line); padding: 5px 11px; border-radius: 30px; }

/* ---------- Bloques de texto + imagen ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-media .rounded, .split-media .ph { aspect-ratio: 5 / 4; }
.split-media img.rounded { width: 100%; height: auto; aspect-ratio: auto; }
.split-text h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; margin-bottom: 14px; }
.split-text p { color: var(--muted); font-size: 16.5px; }
.split-text .btn { margin-top: 10px; }
.eco { background: linear-gradient(180deg, #fff 0%, var(--soft-2) 100%); }
.eco-badge { display: inline-flex; color: var(--teal-ink); margin-bottom: 12px; }
.eco-badge .ico { width: 42px; height: 42px; }
.split-service { align-items: start; }
.prose p { color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 6px 0 26px; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .ico { width: 20px; height: 20px; color: var(--teal-ink); margin-top: 3px; }

/* ---------- Tarjetas con ícono (centradas, ícono sin fondo) ---------- */
.icon-grid { display: grid; gap: 24px; }
.icon-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.icon-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.icon-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.icon-card { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 24px; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.icon-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(50, 197, 205, .6); }
.icon-card-ico { display: flex; justify-content: center; color: var(--teal-ink); margin-bottom: 16px; }
.icon-card-ico .ico { width: 44px; height: 44px; stroke-width: 1.5; transition: transform .4s var(--ease); }
.icon-card:hover .icon-card-ico .ico { transform: scale(1.1); }
.icon-card h3 { font-size: 18px; margin-bottom: 10px; }
.icon-card p { color: var(--muted); font-size: 15px; margin: 0; }
.icon-card.dark { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .14); }
.icon-card.dark:hover { background: rgba(255, 255, 255, .08); border-color: rgba(50, 197, 205, .7); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5); }
.icon-card.dark .icon-card-ico { color: var(--teal); }
.icon-card.dark h3 { color: #fff; }
.icon-card.dark p { color: #C9DCEA; }

.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.mv-card { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 44px 40px; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.mv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(50, 197, 205, .6); }
.mv-card h3 { font-size: 24px; }
.mv-card p { color: var(--muted); margin: 0; font-size: 16.5px; }

.pack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pack-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; text-align: center; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.pack-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(50, 197, 205, .6); }
.pack-price { font-family: var(--font-h); font-weight: 800; font-size: 28px; color: var(--teal-ink); margin-bottom: 10px; }
.pack-card p { color: var(--muted); font-size: 15px; }

/* ---------- Encabezado de páginas internas ---------- */
.page-hero { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--navy-d), var(--navy) 55%, #0E5E8F); background-size: cover; background-position: center; color: #fff; padding: 96px 0 84px; text-align: center; }
.page-hero-overlay { position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(50, 197, 205, .35), transparent 45%); }
.page-hero.has-img .page-hero-overlay { background: linear-gradient(115deg, rgba(5, 43, 76, .94) 0%, rgba(7, 58, 101, .82) 50%, rgba(50, 197, 205, .55) 100%); }
.page-hero-mark { position: absolute; right: -4%; top: 50%; transform: translateY(-50%); width: min(44%, 520px); opacity: .07; filter: brightness(0) invert(1); pointer-events: none; }
.page-hero-in { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; margin-bottom: 12px; }
.page-hero p { color: #D8E8F2; font-size: 18px; max-width: 680px; margin: 0 auto 22px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; font-size: 14px; color: #BCD4E4; }
.crumbs a:hover { color: #fff; }
.crumbs .ico { width: 14px; height: 14px; opacity: .7; }
.crumbs span { color: var(--teal-2); }
.crumbs-dark { justify-content: flex-start; color: var(--muted); }
.crumbs-dark a:hover { color: var(--navy); }
.crumbs-dark span { color: var(--navy); font-weight: 500; }
.product-top { background: var(--soft); border-bottom: 1px solid var(--line); padding: 16px 0; }

/* ---------- Sección final con imagen de fondo a todo el ancho ---------- */
.cta { position: relative; overflow: hidden; padding: 110px 0; background: linear-gradient(115deg, var(--navy-d), var(--navy) 50%, #127A94 100%); background-size: cover; background-position: center; color: #fff; text-align: center; }
.cta-overlay { position: absolute; inset: 0; background: radial-gradient(circle at 15% 85%, rgba(50, 197, 205, .4), transparent 45%); }
.cta.has-img .cta-overlay { background: linear-gradient(115deg, rgba(5, 43, 76, .93) 0%, rgba(7, 58, 101, .8) 55%, rgba(50, 197, 205, .6) 100%); }
.cta-mark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(70%, 760px); opacity: .05; filter: brightness(0) invert(1); pointer-events: none; }
.cta-in { position: relative; z-index: 1; max-width: 780px; }
.cta h2 { color: #fff; font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; }
.cta p { color: #D8E8F2; font-size: 18px; margin-bottom: 30px; }

/* ---------- Catálogo ---------- */
.catalog { padding-top: 56px; }
.catalog-in { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.catalog-side { position: sticky; top: calc(var(--header-h) + 20px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.catalog-side h3 { font-size: 17px; margin-bottom: 12px; }
.cat-list, .cat-list ul { list-style: none; margin: 0; padding: 0; }
.cat-list > li > a { display: block; padding: 9px 12px; border-radius: 10px; font-weight: 500; font-size: 15px; color: var(--ink); transition: background .2s, color .2s; }
.cat-list a:hover { background: var(--soft); color: var(--navy); }
.cat-list a.active { background: var(--navy); color: #fff; }
.cat-list ul { display: none; padding: 4px 0 6px 14px; }
.cat-list li.open ul { display: block; }
.cat-list ul a { display: block; padding: 7px 12px; font-size: 14px; border-radius: 8px; color: var(--muted); }
.chip-scroll { display: none; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: none; }
.chip-scroll::-webkit-scrollbar { display: none; }
.chip { white-space: nowrap; padding: 9px 16px; border-radius: 30px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 500; color: var(--navy); transition: all .2s; }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip-sub { font-size: 13px; padding: 7px 14px; }
.chip-scroll.sub { display: flex; }
.catalog-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.catalog-bar p { margin: 0; color: var(--muted); }
.catalog-bar strong { color: var(--navy); }
.sort-form { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.sort-form select { height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font-size: 15px; font-family: var(--font-b); color: var(--ink); background: #fff; }
.p-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pager a { min-width: 42px; height: 42px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; font-weight: 600; color: var(--navy); transition: all .2s; }
.pager a:hover { border-color: var(--teal); }
.pager a.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.pager .ico { width: 18px; height: 18px; }
.empty-box { text-align: center; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 56px 24px; }
.empty-box > .ico { width: 44px; height: 44px; color: var(--teal-ink); margin: 0 auto 14px; }
.empty-box p { color: var(--muted); max-width: 460px; margin: 0 auto 20px; }

/* ---------- Detalle de producto ---------- */
.product-detail { padding-top: 48px; }
.pd-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
.pd-main { position: relative; aspect-ratio: 1 / 1; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.pd-main > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .45s ease; }
.pd-main > img.on { opacity: 1; }
.svc-gallery .pd-main { aspect-ratio: 4 / 3; }
.svc-gallery .pd-main > img { object-fit: cover; }
.pd-thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.pd-thumbs button { width: 78px; height: 78px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; padding: 0; overflow: hidden; transition: border-color .2s; }
.pd-thumbs button.on { border-color: var(--teal); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { position: sticky; top: calc(var(--header-h) + 24px); }
.pd-cat { display: inline-block; color: var(--teal-ink); font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.pd-info h1 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; margin-bottom: 8px; }
.pd-sku { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.pd-sku a { color: var(--teal-ink); font-weight: 600; }
.pd-price { font-family: var(--font-h); font-weight: 800; font-size: 28px; color: var(--navy); margin-bottom: 14px; }
.pd-price small { font-family: var(--font-b); font-weight: 400; font-size: 13px; color: var(--muted); }
.pd-summary { color: var(--muted); font-size: 17px; }
.pd-min { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; }
.pd-min .ico { color: var(--teal-ink); }
.pd-actions { display: grid; gap: 12px; margin: 22px 0; }
.add-cart { display: flex; gap: 12px; }
.add-cart .btn { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.qty button { width: 44px; height: 50px; border: 0; background: #fff; color: var(--navy); display: grid; place-items: center; }
.qty button:hover { background: var(--soft); }
.qty button .ico { width: 16px; height: 16px; }
.qty input { width: 60px; height: 50px; border: 0; text-align: center; font-size: 16px; font-weight: 600; color: var(--ink); -moz-appearance: textfield; appearance: textfield; outline: none; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-sm button { width: 36px; height: 40px; }
.qty-sm input { width: 50px; height: 40px; font-size: 16px; }
.pd-note { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); background: var(--soft); border-radius: var(--radius); padding: 18px; }
.pd-note .ico { width: 24px; height: 24px; color: var(--teal-ink); }
.pd-note p { margin: 0; font-size: 14.5px; color: var(--muted); }
.pd-desc { margin-top: 64px; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px 40px; }
.pd-desc h2 { font-size: 24px; margin-bottom: 12px; }

/* ---------- Contacto y formularios ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.contact-info h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; }
.contact-info > p { color: var(--muted); font-size: 16.5px; }
.contact-cards { display: grid; gap: 14px; margin-top: 26px; }
.c-card { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
a.c-card:hover { transform: translateX(4px); border-color: rgba(50, 197, 205, .6); box-shadow: var(--shadow-sm); }
.c-card-ico { display: flex; color: var(--teal-ink); }
.c-card-ico .ico { width: 26px; height: 26px; }
.c-card-ico.wa { color: var(--wa-d); }
.c-card small { display: block; color: var(--muted); font-size: 13px; }
.c-card strong { color: var(--navy); font-weight: 600; font-size: 15.5px; word-break: break-word; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.form-card h3 { font-size: 22px; margin-bottom: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 13.5px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; font-size: 16px; font-family: var(--font-b); color: var(--ink); background: #fff; outline: none; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23073A65' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(50, 197, 205, .15); }
.check, .radio { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--muted); margin: 6px 0 18px; cursor: pointer; }
.check input, .radio input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--navy); flex-shrink: 0; }
.check a, .radio a { color: var(--teal-ink); text-decoration: underline; }
.radio-row { display: grid; gap: 4px; margin-bottom: 8px; }
.radio strong { color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; margin-bottom: 18px; font-size: 14.5px; border: 1px solid; }
.alert .ico { width: 20px; height: 20px; margin-top: 1px; }
.alert-ok { background: #ECFAF2; border-color: #B7EBCB; color: #146C3A; }
.alert-err { background: #FFF2F2; border-color: #F6C9C9; color: #9B2222; }
.alert-info { background: var(--soft-2); border-color: #BDE8EC; color: var(--navy); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }
.form-sec { font-size: 17px; margin: 26px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.claim-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); margin-bottom: 18px; }
.claim-head div:first-child { display: grid; gap: 2px; font-size: 14px; color: var(--muted); }
.claim-head strong { color: var(--navy); font-size: 16px; }
.claim-date { font-weight: 600; color: var(--navy); font-size: 14px; }
.done-ico { display: flex; justify-content: center; color: var(--wa-d); margin-bottom: 14px; }
.done-ico .ico { width: 58px; height: 58px; stroke-width: 1.5; }
.legal-box { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 44px; }
.legal-box h2 { font-size: 20px; margin-top: 26px; }
.legal-box h2:first-child { margin-top: 0; }
.not-found .nf-code { display: block; font-family: var(--font-h); font-weight: 800; font-size: 110px; line-height: 1; background: linear-gradient(120deg, var(--navy), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px; }

/* ---------- Carrito ---------- */
.page-title { font-size: clamp(26px, 3vw, 36px); font-weight: 800; margin-bottom: 26px; }
.cart-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.cart-items { display: grid; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 84px 1fr auto auto auto; gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.cart-item-img { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); display: block; }
.cart-item-img > img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { display: grid; gap: 2px; font-size: 15px; }
.cart-item-info strong { color: var(--navy); }
.cart-item-info span { font-size: 13.5px; }
.cart-item-sub { font-family: var(--font-h); color: var(--navy); white-space: nowrap; }
.cart-remove { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: #A33; display: grid; place-items: center; }
.cart-remove .ico { width: 17px; height: 17px; }
.checkout h4 { font-size: 16px; margin: 8px 0 12px; }
.pay-options { display: grid; gap: 10px; margin-bottom: 18px; }
.pay-opt { display: block; cursor: pointer; }
.pay-opt input { position: absolute; opacity: 0; }
.pay-opt span { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 500; font-size: 15px; transition: border-color .2s, background .2s; }
.pay-opt span .ico { color: var(--teal-ink); }
.pay-opt input:checked + span { border-color: var(--teal); background: var(--soft-2); }
.cart-total, .order-total { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); margin-bottom: 16px; font-size: 17px; }
.cart-total strong, .order-total strong { font-family: var(--font-h); font-size: 24px; color: var(--navy); }
.order-items { text-align: left; margin: 22px 0 18px; }
.order-items > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.yape-box { display: flex; gap: 22px; align-items: center; justify-content: center; text-align: left; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 18px 0; background: var(--soft); }
.yape-box img { width: 150px; height: 150px; object-fit: contain; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.yape-box p { margin: 0 0 4px; }
.yape-num { font-family: var(--font-h); font-weight: 800; font-size: 26px; color: #6B2C91; }

/* ---------- Pie de página ---------- */
.site-footer { background: var(--navy-d); color: #BCD1E2; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.35fr; gap: 44px; padding-top: 72px; padding-bottom: 56px; }
.footer-logo img { height: 56px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: #A9C1D5; max-width: 340px; }
.footer-col h3 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer-col ul a { transition: color .2s; }
.footer-col ul a:hover { color: var(--teal); }
.footer-contact a, .footer-contact .fc-line { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact .ico { width: 18px; height: 18px; color: var(--teal); margin-top: 3px; }
.footer-social { display: flex; gap: 10px; margin-top: 8px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); display: grid; place-items: center; color: #fff; transition: background .25s, border-color .25s, transform .25s; }
.footer-social a:hover { background: var(--teal); border-color: var(--teal); color: var(--navy-d); transform: translateY(-3px); }
.footer-social .ico { width: 18px; height: 18px; }
.footer-contact .libro-badge, .libro-badge { display: inline-block; margin-top: 22px; background: #fff; border-radius: 12px; padding: 10px 14px; transition: transform .3s var(--ease), box-shadow .3s; }
.libro-badge:hover { transform: translateY(-3px); box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .45); }
.libro-badge img { width: 150px; height: auto; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; color: #8FA9BF; }
.footer-bottom-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 20px; padding-bottom: 20px; flex-wrap: wrap; }
.footer-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--teal); }

/* ---------- Elementos flotantes ---------- */
.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 70; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .7); transition: transform .3s var(--ease), background .3s; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: waPulse 2.6s ease-out infinite; }
.wa-float:hover { transform: scale(1.08); background: var(--wa-d); }
.wa-float .ico { width: 32px; height: 32px; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(1.55); opacity: 0; } }

.cart-bar { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 75; width: min(520px, calc(100% - 140px)); animation: barIn .45s var(--ease); }
.cart-bar-in { display: flex; justify-content: space-between; align-items: center; gap: 14px; background: var(--navy); color: #fff; border-radius: 16px; padding: 10px 10px 10px 20px; box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .1); }
.cart-bar-text { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.cart-bar-text .ico { color: var(--teal); }
.cart-bar .btn-primary { background: var(--teal); color: var(--navy-d); box-shadow: none; }
.cart-bar .btn-primary:hover { background: var(--teal-2); }
@keyframes barIn { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }

.app-nav { display: none; }

.cookie-box { position: fixed; left: 24px; bottom: 24px; z-index: 90; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 18px 20px; display: flex; gap: 16px; align-items: center; animation: barIn2 .45s var(--ease); }
.cookie-box p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.cookie-box a { color: var(--teal-ink); text-decoration: underline; }
.cookie-box .btn { flex-shrink: 0; }
@keyframes barIn2 { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.toast { position: fixed; top: 96px; left: 50%; transform: translateX(-50%); z-index: 130; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14.5px; display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow-lg); animation: barIn2 .3s var(--ease); }
.toast .ico { color: var(--teal); }

/* ---------- Animaciones al hacer scroll ---------- */
.js [data-anim] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-anim].in { opacity: 1; transform: none; }
.js [data-anim][data-delay="1"] { transition-delay: .1s; }
.js [data-anim][data-delay="2"] { transition-delay: .2s; }
.js [data-anim][data-delay="3"] { transition-delay: .3s; }
.js [data-anim][data-delay="4"] { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  .js [data-anim] { opacity: 1; transform: none; transition: none; }
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
  .wa-float::before { animation: none; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1180px) {
  .serv-grid { grid-template-columns: repeat(4, 1fr); }
  .icon-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
  .search input { width: 200px; }
  .search input:focus { width: 230px; }
  .main-nav a { padding: 10px 10px; }
}
@media (max-width: 991px) {
  :root { --header-h: 68px; }
  .topbar, .main-nav, .header-actions .search { display: none; }
  .menu-btn { display: grid; }
  .header-in { gap: 12px; justify-content: space-between; }
  .brand img { height: 42px; }
  .mobile-search-wrap { display: block; padding-bottom: 12px; }
  .search-mobile input, .search-mobile input:focus { width: 100%; }
  .search-mobile { width: 100%; }
  .search-mobile .search-results { left: 0; right: 0; width: auto; max-width: none; }
  body { padding-bottom: calc(66px + var(--safe-b)); }
  .app-nav { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 65; background: rgba(255, 255, 255, .98); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 -8px 24px -12px rgba(7, 58, 101, .25); padding-bottom: var(--safe-b); }
  .app-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 66px; font-family: var(--font-h); font-size: 11.5px; font-weight: 600; color: #7A8A9A; position: relative; transition: color .2s; }
  .app-nav a .ico { width: 23px; height: 23px; }
  .app-nav a.active { color: var(--navy); }
  .app-nav a.active::after { content: ""; position: absolute; bottom: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }
  .wa-float { bottom: calc(82px + var(--safe-b)); right: 16px; width: 56px; height: 56px; }
  .wa-float .ico { width: 30px; height: 30px; }
  .cart-bar { bottom: calc(78px + var(--safe-b)); width: calc(100% - 96px); left: 16px; transform: none; animation-name: barIn2; }
  .cookie-box { left: 12px; right: 12px; bottom: calc(78px + var(--safe-b)); max-width: none; }

  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .cat-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; gap: 14px; }
  .cat-tile:nth-child(6n+1) { grid-column: span 2; grid-row: span 1; }
  .cat-tile:nth-child(6n+4), .cat-tile:nth-child(6n+5), .cat-tile:nth-child(6n+6) { grid-column: span 1; }
  .cat-tile:nth-child(6n+6):last-child, .cat-tile:nth-child(6n+4):last-child { grid-column: span 2; }
  .serv-grid { grid-template-columns: repeat(3, 1fr); }
  .sol-grid, .icon-grid.cols-4, .icon-grid.cols-5, .icon-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid, .pd-grid, .cart-grid { grid-template-columns: 1fr; gap: 36px; }
  .s-grid, .pack-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-in { grid-template-columns: 1fr; }
  .catalog-side { display: none; }
  .chip-scroll { display: flex; }
  .pd-info { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: span 2; }
  .page-hero { padding: 70px 0 62px; }
  .cta { padding: 80px 0; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 54px 0; }
  .section-head p { font-size: 16px; }
  .cat-bento { grid-auto-rows: 160px; gap: 12px; }
  .cat-tile-body { padding: 16px; }
  .cat-tile-body h3 { font-size: 16px; }
  .serv-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .serv-tile h3 { font-size: 14px; padding: 12px 8px; }
  .sol-grid, .icon-grid.cols-4, .icon-grid.cols-5, .icon-grid.cols-3, .mv-grid, .s-grid, .pack-grid { grid-template-columns: 1fr; }
  .p-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .p-card-body { padding: 12px 12px 14px; }
  .p-card h3 { font-size: 14.5px; }
  .p-card-cat { font-size: 12px; }
  .p-card-link { font-size: 13px; }
  .marquee-item { width: 200px; }
  .marquee-item-serv { width: 270px; }
  .marquee-group { gap: 14px; padding-right: 14px; }
  .form-card { padding: 24px 18px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .mv-card { padding: 32px 22px; }
  .pd-desc { padding: 26px 20px; margin-top: 40px; }
  .legal-box { padding: 26px 20px; }
  .footer-grid { grid-template-columns: 1fr; padding-top: 52px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom-in { flex-direction: column; align-items: flex-start; }
  .cart-item { grid-template-columns: 70px 1fr auto; grid-template-areas: "img info rm" "img qty sub"; gap: 10px 12px; }
  .cart-item-img { grid-area: img; width: 70px; height: 70px; }
  .cart-item-info { grid-area: info; }
  .cart-item .qty { grid-area: qty; justify-self: start; }
  .cart-item-sub { grid-area: sub; justify-self: end; }
  .cart-remove { grid-area: rm; justify-self: end; }
  .yape-box { flex-direction: column; text-align: center; }
  .add-cart { flex-direction: column; }
  .page-hero p { font-size: 16px; }
  .cookie-box { flex-direction: column; align-items: stretch; text-align: left; }
}
