/* INFOTEC PIURA — P001 / Base visual. Sin frameworks ni servicios externos. */
:root {
  --brand: #004aad;
  --brand-dark: #063674;
  --brand-deep: #09244d;
  --brand-light: #e9f2ff;
  --ink: #13233b;
  --muted: #617087;
  --line: #e2e8f1;
  --page: #f7f9fc;
  --white: #fff;
  --shadow: 0 14px 36px rgb(15 35 80 / 11%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
body.menu-open { overflow: hidden; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #ffbc57; outline-offset: 3px; }
[hidden] { display: none !important; }
.container { width: min(100% - 48px, 1320px); margin: 0 auto; }
.sr-only { position: absolute; height: 1px; width: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -100px; z-index: 1000; padding: 10px 14px; background: white; border-radius: 8px; }
.skip-link:focus { top: 8px; }
.icon { display: block; width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; flex: none; }
.icon--sm { width: 15px; height: 15px; }
.icon--chevron { width: 14px; height: 14px; stroke-width: 2.5; }
.topline { background: var(--brand-dark); color: #d7e7ff; font-size: 12px; }
.topline__inner { height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topline__dot { padding: 0 6px; opacity: .6; }
.topline__location { display: inline-flex; align-items: center; gap: 6px; }
.site-header { position: relative; z-index: 50; background: var(--brand); color: white; }
.site-header__main { min-height: 104px; display: flex; align-items: center; gap: clamp(18px, 3vw, 44px); }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; width: clamp(170px, 16vw, 226px); min-width: 0; }
.brand img { display: block; width: 100%; height: auto; object-fit: contain; }
.search { height: 52px; min-width: 160px; display: flex; align-items: stretch; flex: 1 1 430px; max-width: 630px; border-radius: 12px; overflow: hidden; background: white; border: 1px solid transparent; box-shadow: 0 3px 10px rgb(0 0 0 / 6%); }
.search:focus-within { border-color: #a4c7ff; box-shadow: 0 0 0 3px rgb(255 255 255 / 24%); }
.search input { width: 100%; min-width: 0; border: none; outline: none; background: transparent; color: var(--ink); padding: 0 20px; font-size: 14px; }
.search input::placeholder { color: #8390a3; }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.search__button { width: 56px; padding: 0; border: 0; background: white; color: var(--brand); display: grid; place-items: center; }
.search__button:hover { background: var(--brand-light); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: clamp(18px, 2.25vw, 34px); }
.header-action { min-width: 68px; white-space: nowrap; display: flex; flex-direction: column; align-items: center; gap: 7px; font-weight: 600; font-size: 12px; transition: opacity .15s; }
.header-action:hover { opacity: .8; }
.header-action .icon { width: 25px; height: 25px; }
.header-action__icon-wrap { position: relative; display: inline-flex; }
.cart-count { position: absolute; top: -7px; right: -12px; font-size: 10px; line-height: 1; font-weight: 800; color: var(--brand); border-radius: 20px; padding: 3px 5px; background: white; }
.icon-button { border: 0; padding: 7px; display: inline-grid; place-items: center; color: inherit; background: none; border-radius: 8px; }
.icon-button:hover { background: rgb(255 255 255 / 13%); }
.menu-toggle { display: none; }
.category-bar { background: white; position: relative; z-index: 40; border-bottom: 1px solid var(--line); }
.category-bar__inner { display: flex; align-items: stretch; min-height: 56px; }
.category-menu { position: relative; display: flex; flex: 0 0 auto; }
.category-trigger { display: flex; align-items: center; gap: 9px; border: 0; background: #edf4ff; color: var(--brand); font-size: 13px; font-weight: 800; padding: 0 18px; }
.category-trigger:hover, .category-trigger[aria-expanded="true"] { background: #dbeaff; }
.category-trigger[aria-expanded="true"] .icon--chevron { transform: rotate(180deg); }
.category-panel { position: absolute; top: calc(100% + 7px); left: 0; width: 265px; border-radius: 14px; background: white; border: 1px solid var(--line); padding: 10px; box-shadow: var(--shadow); z-index: 100; }
.category-panel__title { margin: 8px 12px 9px; color: #8491a5; font-size: 11px; text-transform: uppercase; font-weight: 800; letter-spacing: .07em; }
.category-panel a { display: block; padding: 11px 12px; font-size: 13px; border-radius: 8px; color: var(--ink); }
.category-panel a:hover { background: var(--brand-light); color: var(--brand); }
.category-links { display: flex; min-width: 0; flex: 1; align-items: center; justify-content: space-between; gap: 14px; padding-left: 27px; }
.category-links a { font-size: 12px; font-weight: 750; white-space: nowrap; padding: 18px 0; transition: color .15s; }
.category-links a:hover { color: var(--brand); }
.services { background: white; border-bottom: 1px solid var(--line); }
.services__inner { display: flex; align-items: center; justify-content: space-between; min-height: 61px; gap: 20px; }
.services__inner a { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.services__inner a:hover { color: var(--brand); }
.services__inner .icon { color: var(--brand); width: 21px; height: 21px; }
.services__inner .icon--whatsapp { color: #1ab97b; }
.mobile-scrim { position: fixed; inset: 0; z-index: 200; background: rgb(6 19 42 / 52%); }
.mobile-panel { position: fixed; z-index: 210; top: 0; bottom: 0; left: 0; width: min(88vw, 350px); background: white; box-shadow: 12px 0 45px rgb(0 0 0 / 18%); transform: translateX(-110%); transition: transform .23s ease; overflow: auto; }
.mobile-panel.is-open { transform: translateX(0); }
.mobile-panel__top { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; background: var(--brand); color: white; font-size: 16px; font-weight: 800; }
.mobile-panel__body { display: flex; flex-direction: column; padding: 12px 16px 35px; }
.mobile-panel__heading { font-size: 11px; text-transform: uppercase; font-weight: 850; letter-spacing: .07em; color: #8694a8; margin: 20px 10px 8px; }
.mobile-panel__body a { padding: 12px 10px; font-weight: 600; font-size: 14px; border-radius: 8px; }
.mobile-panel__body a:hover { background: var(--brand-light); color: var(--brand); }
.preview-hero { margin-top: 28px; min-height: 418px; border-radius: 21px; background: linear-gradient(112deg, #eaf3ff 0%, #e3efff 50%, #d4e8ff 100%); overflow: hidden; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); align-items: center; position: relative; isolation: isolate; }
.preview-hero__copy { padding: clamp(30px, 5.2vw, 73px); position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: white; color: var(--brand); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; padding: 9px 13px; border-radius: 20px; box-shadow: 0 2px 10px rgb(15 35 80 / 5%); }
.eyebrow__dot { height: 7px; width: 7px; border-radius: 50%; background: #19b884; }
.preview-hero h1 { max-width: 640px; margin: 24px 0 14px; font-size: clamp(32px, 4.15vw, 59px); line-height: 1.11; letter-spacing: -.045em; font-weight: 850; color: #0b2242; }
.preview-hero h1 em { color: var(--brand); font-style: normal; }
.preview-hero p { font-size: clamp(13px, 1.12vw, 16px); max-width: 490px; line-height: 1.65; color: #4c627d; margin: 0 0 28px; }
.preview-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 47px; border-radius: 10px; padding: 0 20px; font-size: 13px; font-weight: 800; display: inline-flex; gap: 18px; align-items: center; justify-content: center; }
.button--primary { background: var(--brand); color: white; box-shadow: 0 8px 16px rgb(0 74 173 / 20%); }
.button--primary:hover { background: var(--brand-dark); }
.button--secondary { background: white; color: var(--brand-deep); border: 1px solid #ccdaf0; }
.button--secondary:hover { border-color: var(--brand); }
.preview-hero__visual { position: relative; min-height: 390px; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.preview-hero__glow { position: absolute; height: 520px; width: 520px; border-radius: 50%; background: radial-gradient(circle, #b3d4ff 0%, #d2e6ff 45%, transparent 70%); right: -18%; bottom: -48%; }
.preview-hero__device { position: relative; z-index: 1; width: min(72%, 380px); transform: perspective(780px) rotateY(-12deg) rotateX(4deg) rotateZ(-3deg); filter: drop-shadow(20px 29px 20px rgb(26 67 119 / 25%)); }
.preview-hero__screen { height: 235px; padding: 18px; border: 11px solid #14233a; border-radius: 16px; background: radial-gradient(circle at 60% 35%, #246dd6, #06265b 65%, #05142a); box-shadow: inset 0 0 32px rgb(255 255 255 / 9%); color: white; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.preview-hero__screen > span { font-size: clamp(26px, 3vw, 50px); font-weight: 900; letter-spacing: -.06em; }
.preview-hero__screen > span span { color: #9fd1ff; }
.preview-hero__screen small { font-weight: 800; letter-spacing: .5em; opacity: .75; }
.preview-hero__stand { position: relative; height: 22px; width: 16%; background: linear-gradient(#8d9bb1, #44556b); margin: auto; }
.preview-hero__stand::after { content:""; position: absolute; top: 20px; left: -135%; width: 370%; height: 10px; border-radius: 50%; background: #263a53; }
.preview-hero__chip { position: absolute; z-index: 2; font-size: 12px; font-weight: 800; color: #17385f; background: white; border: 1px solid #d7e9ff; border-radius: 11px; padding: 10px 14px; box-shadow: 0 8px 24px rgb(13 58 107 / 12%); }
.preview-hero__chip--one { left: 7%; top: 22%; transform: rotate(-8deg); }
.preview-hero__chip--two { right: 7%; bottom: 22%; transform: rotate(6deg); }
.demo-note { margin: 18px auto 48px; color: #667791; background: white; border: 1px solid var(--line); border-radius: 12px; min-height: 56px; padding: 14px 18px; display: flex; align-items: center; gap: 12px; font-size: 12px; line-height: 1.5; }
.demo-note .icon { color: var(--brand); width: 20px; height: 20px; }
.toast { position: fixed; z-index: 300; right: 24px; bottom: 24px; max-width: min(420px, calc(100vw - 32px)); background: var(--brand-deep); color: white; font-size: 13px; line-height: 1.5; padding: 14px 18px; border-radius: 12px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .2s, transform .2s; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
@media (max-width: 1180px) {
  .site-header__main { gap: 19px; }
  .brand { width: 185px; }
  .header-actions { gap: 16px; }
  .category-links { gap: 12px; padding-left: 15px; }
  .category-links a { font-size: 11px; }
  .category-trigger { padding: 0 12px; font-size: 12px; }
}
@media (max-width: 940px) {
  .container { width: min(100% - 32px, 1320px); }
  .topline__location { display: none; }
  .site-header__main { min-height: 86px; gap: 16px; }
  .menu-toggle { display: inline-grid; }
  .brand { width: 175px; }
  .header-action--orders { display: none; }
  .header-action > span:last-child { display: none; }
  .header-actions { gap: 14px; }
  .header-action { min-width: 30px; }
  .category-links { overflow-x: auto; scrollbar-width: none; }
  .category-links::-webkit-scrollbar { display: none; }
  .category-links a { font-size: 12px; }
}
@media (max-width: 680px) {
  .topline__inner { justify-content: center; text-align: center; font-size: 10px; height: 27px; }
  .container { width: min(100% - 28px, 1320px); }
  .site-header__main { min-height: 110px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 0 12px; padding-top: 12px; padding-bottom: 13px; }
  .brand { width: min(42vw, 175px); justify-self: start; }
  .header-actions { justify-self: end; margin-left: 0; gap: 13px; }
  .header-action .icon { width: 23px; height: 23px; }
  .search { grid-column: 1 / -1; grid-row: 2; height: 42px; margin-top: 12px; min-width: 0; width: 100%; max-width: none; border-radius: 9px; }
  .search input { font-size: 13px; padding-left: 15px; }
  .search__button { width: 46px; }
  .category-bar__inner { min-height: 46px; overflow: hidden; }
  .category-menu { display: none; }
  .category-links { padding-left: 0; gap: 24px; }
  .category-links a { font-size: 11px; padding: 15px 0; }
  .services__inner { min-height: 63px; gap: 4px; }
  .services__inner a { min-width: 0; flex: 1; flex-direction: column; gap: 5px; font-size: 10px; text-align: center; white-space: normal; }
  .services__inner .icon { width: 21px; height: 21px; }
  .preview-hero { margin-top: 17px; grid-template-columns: 1fr; border-radius: 15px; }
  .preview-hero__copy { padding: 31px 25px 5px; }
  .preview-hero h1 { font-size: clamp(30px, 9vw, 44px); margin-top: 18px; }
  .preview-hero p { font-size: 13px; }
  .preview-hero__visual { min-height: 235px; }
  .preview-hero__device { width: min(64%, 300px); }
  .preview-hero__screen { height: 150px; border-width: 8px; }
  .preview-hero__chip--one { top: 7%; }
  .preview-hero__chip--two { bottom: 19%; }
  .demo-note { margin-bottom: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
