/* H&S Tecnologías — base (reset, tipografía, botones, header, footer).
   Compartido por todas las superficies de marca (portada, equipos, carrito, checkout).
   Depende de tokens.css. Basado en hs/css/styles.css con correcciones de
   contraste, tamaño mínimo de texto y consistencia de botones. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: clip; }
body.hs-brand-surface {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: radial-gradient(ellipse 80% 50% at 75% 0%, rgba(10, 91, 216, .55), transparent 70%), var(--sky-100);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.hs-brand-surface h1, .hs-brand-surface h2, .hs-brand-surface h3, .hs-brand-surface h4 { margin: 0; font-family: var(--font-display); color: var(--ink); text-wrap: balance; }
.hs-brand-surface p, .hs-brand-surface figure, .hs-brand-surface dl, .hs-brand-surface dd { margin: 0; }
.hs-brand-surface ul, .hs-brand-surface ol { margin: 0; padding: 0; list-style: none; }
.hs-brand-surface a { color: inherit; text-decoration: none; }
.hs-brand-surface img { display: block; max-width: 100%; }
.hs-brand-surface ::selection { background: var(--lime); color: var(--on-lime); }
.hs-brand-surface .material-symbols-outlined { display: inline-block; width: 1em; overflow: hidden; white-space: nowrap; font-size: 1.25em; line-height: 1; vertical-align: middle; user-select: none; }
.hs-brand-surface .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hs-skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 16px; border-radius: var(--radius-pill); background: var(--navy); color: var(--on-navy); }
.hs-skip:focus { left: 16px; }
.hs-brand-surface :focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

.hs-container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (min-width: 1024px) { .hs-container { padding: 0 48px; } }

/* ---------- Ambient sky ---------- */
/* v2 "Azul Eléctrico": sin burbujas ni glows (regla de DESIGN.md) — el fondo
   azul eléctrico de body.hs-brand-surface ya hace todo el trabajo visual. */
.hs-ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }

/* ---------- Header ---------- */
.hs-header { position: sticky; top: 0; z-index: 50; background: rgba(0, 39, 91, .88); backdrop-filter: blur(var(--blur-glass)); -webkit-backdrop-filter: blur(var(--blur-glass)); border-bottom: 1px solid var(--line); box-shadow: 0 6px 24px -12px rgba(0, 10, 35, .6); }
.hs-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.hs-brand { display: inline-flex; align-items: center; gap: 12px; }
.hs-brand__mark { width: 50px; height: 50px; flex-shrink: 0; padding: 3px; border-radius: 50%; background: radial-gradient(circle at 35% 25%, var(--gloss) 0%, var(--cyan) 55%, var(--blue-deep) 100%); box-shadow: 0 6px 18px var(--blue-soft); }
.hs-brand__mark img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.hs-brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.hs-brand__name { font-family: var(--font-wide); font-size: 13px; letter-spacing: .08em; line-height: 1.4; color: var(--ink); }
.hs-brand__tag { font-style: italic; font-weight: 600; font-size: 13px; color: var(--lime-text); }
.hs-nav { display: none; }
.hs-nav a { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink); padding: 6px 2px; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.hs-nav a:hover, .hs-nav a:focus-visible { color: var(--blue-text); border-color: var(--lime); }
.hs-header__actions { display: flex; align-items: center; gap: 10px; }
.hs-header__wa { display: none; }
.hs-menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; }
.hs-mobile-nav { display: none; padding: 8px 20px 20px; border-top: 1px solid var(--line); }
.hs-mobile-nav.is-open { display: grid; gap: 4px; }
.hs-mobile-nav a { padding: 12px 8px; font-family: var(--font-display); font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); }
@media (min-width: 1080px) {
  .hs-nav { display: flex; gap: 26px; }
  .hs-menu-btn, .hs-mobile-nav, .hs-mobile-nav.is-open { display: none; }
  .hs-header__wa { display: inline-flex; }
}
@media (max-width: 399px) { .hs-header .hs-btn--sm.hs-header__quote { display: none; } }
.hs-cart-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--ink); }
.hs-cart-link__count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: var(--radius-pill); background: var(--lime); color: var(--on-lime); font-family: var(--font-mono); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }

/* ---------- Type helpers ---------- */
.hs-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-wide); font-size: 12px; letter-spacing: .1em; line-height: 1.4; text-transform: uppercase; color: var(--blue-text); }
.hs-eyebrow::after { content: ""; order: -1; margin-right: -10px; width: 9px; height: 9px; border: 2px solid var(--lime); border-radius: 50%; }
.hs-eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 9px; background: var(--lime); }
.hs-eyebrow--light { color: var(--lime-bright); }
.hs-h2 { font-size: clamp(28px, 22px + 1.8vw, 40px); line-height: 1.12; font-weight: 800; letter-spacing: -.01em; }
.hs-lead { font-size: clamp(17px, 16px + .3vw, 19px); line-height: 1.6; color: var(--text-muted); max-width: 62ch; }
.hs-gradient-text { color: var(--lime-text); background: linear-gradient(90deg, var(--gradient-from), var(--gradient-to)); -webkit-background-clip: text; background-clip: text; }
@supports (background-clip: text) or (-webkit-background-clip: text) { .hs-gradient-text { color: transparent; } }
.hs-section { padding: 80px 0; }
@media (min-width: 1024px) { .hs-section { padding: 96px 0; } }
.hs-section--tight-top { padding-top: 8px; }
.hs-section--flush-top { padding-top: 0; }
.hs-section--pad-top-24 { padding-top: 24px; }
.hs-section__head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: 44px; }
.hs-section__head--tight { margin-bottom: 22px; }
.hs-section__head--tighter { margin-bottom: 4px; }
.hs-section__head--center { align-items: center; text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.hs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border: 1px solid transparent; border-radius: var(--radius-pill); font-family: var(--font-display); font-size: 15px; font-weight: 700; line-height: 1.2; white-space: nowrap; cursor: pointer; transition: transform .2s, box-shadow .2s, filter .2s, border-color .2s, color .2s; }
.hs-btn:active { transform: scale(.98); }
.hs-btn--lg { min-height: 54px; padding: 15px 28px; font-size: 17px; }
.hs-btn--sm { min-height: 40px; padding: 9px 16px; font-size: 14px; }
.hs-btn .material-symbols-outlined { font-size: 20px; flex-shrink: 0; }
.hs-btn--lime { background: linear-gradient(180deg, var(--lime-bright) 0%, var(--lime) 50%, var(--lime-deep) 100%); color: var(--on-lime); box-shadow: var(--shadow-gloss-lime); }
.hs-btn--lime:hover { filter: brightness(1.06); box-shadow: var(--shadow-gloss-lime), var(--shadow-glow-lime); }
.hs-btn--blue { background: linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%); color: var(--on-blue); box-shadow: var(--shadow-gloss-blue); }
.hs-btn--blue:hover { filter: brightness(1.08); }
.hs-btn--glass { background: linear-gradient(180deg, var(--surface) 0%, var(--surface-tech) 100%); border-color: var(--line-strong); color: var(--ink); box-shadow: inset 0 1px 0 var(--glass-edge), 0 3px 10px var(--blue-soft); }
.hs-btn--glass:hover { border-color: var(--blue); color: var(--blue-text); }
.hs-btn--glass .material-symbols-outlined { color: var(--lime-text); }
.hs-btn--outline-light { background: transparent; border-color: rgba(242, 248, 255, .6); color: var(--on-navy); }
.hs-btn--outline-light:hover { background: rgba(242, 248, 255, .1); border-color: var(--on-navy); }
.hs-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
@media (max-width: 519px) {
  .hs-actions .hs-btn { flex: 1 1 auto; width: 100%; white-space: normal; text-align: center; }
}

/* ---------- Glass ---------- */
.hs-glass { position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(170deg, var(--surface) 0%, var(--surface-sunken) 100%); box-shadow: var(--shadow-glass); }
.hs-glass--hover { transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s, border-color .25s; }
.hs-glass--hover:hover { transform: translateY(-4px); border-color: var(--line-lime); box-shadow: var(--shadow-glass-hover); }
[data-theme="deep"] .hs-glass { background: linear-gradient(170deg, rgba(6, 48, 107, .85) 0%, rgba(0, 36, 82, .85) 100%); }

/* ---------- Pills / tags / chips ---------- */
.hs-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: linear-gradient(180deg, var(--surface) 0%, var(--surface-tech) 100%); box-shadow: inset 0 1px 0 var(--glass-edge), 0 3px 10px var(--blue-soft); font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--ink); }
.hs-pill--sm { padding: 4px 12px; font-size: 12.5px; }
.hs-pill .material-symbols-outlined { font-size: 18px; color: var(--lime-text); }
.hs-dot { display: inline-block; width: 9px; height: 9px; flex-shrink: 0; border-radius: 50%; background: var(--lime); box-shadow: var(--shadow-glow-lime); }
.hs-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hs-chip { padding: 3px 10px; border-radius: var(--radius-sm); background: var(--surface-tech); font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; color: var(--ink); }
[data-theme="deep"] .hs-chip { background: var(--surface-tech); color: var(--ink); }

.hs-icon-box { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 50px; height: 50px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--tone-soft, var(--blue-soft)); color: var(--tone, var(--blue-text)); box-shadow: inset 0 1px 0 var(--glass-edge); }
.hs-icon-box .material-symbols-outlined { font-size: 27px; }
.hs-icon-box--lime { --tone-soft: var(--lime-soft); --tone: var(--lime-text); }
.hs-icon-box--cyan { --tone-soft: var(--cyan-soft); --tone: var(--cyan-text); }
.hs-icon-box--blue { --tone-soft: var(--blue-soft); --tone: var(--blue-text); }
.hs-tone-cyan { color: var(--cyan-text); }
.hs-tone-lime { color: var(--lime-text); }
.hs-tone-blue { color: var(--blue-text); }

/* ---------- Cable divider (motivo del logo) ---------- */
.hs-cable { position: relative; height: 56px; margin: 16px 0; overflow: hidden; }
.hs-cable svg { position: absolute; left: 50%; top: 0; width: 1440px; height: 56px; transform: translateX(-50%); overflow: visible; }
.hs-cable path, .hs-cable circle { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hs-cable__jacket { stroke: var(--blue-soft); stroke-width: 9; }
.hs-cable__line { stroke: var(--lime); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 0; filter: drop-shadow(0 0 6px rgba(150, 220, 0, .55)); }
.hs-cable__pulse { stroke: #fff; stroke-width: 3; stroke-dasharray: .05 1; stroke-dashoffset: .05; opacity: 0; }
.hs-cable__node { fill: var(--sky-100); stroke: var(--lime); stroke-width: 3.5; }
.hs-cable.hs-reveal .hs-cable__line { stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s cubic-bezier(.4, 0, .2, 1); }
.hs-cable.hs-reveal.is-visible .hs-cable__line { stroke-dashoffset: 0; }
.hs-cable.is-visible .hs-cable__pulse { opacity: .95; animation: hs-pulse 6s linear 1.2s infinite; }
@keyframes hs-pulse { from { stroke-dashoffset: .05; } to { stroke-dashoffset: -1; } }

/* ---------- Photo slot: se llena solo con dejar el archivo en assets/img/fotos/ ---------- */
.hs-photo { position: relative; aspect-ratio: var(--ar, 4 / 3); overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line-strong); box-shadow: var(--shadow-glass); background: linear-gradient(160deg, #00285c 0%, #003a82 100%); }
.hs-photo::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(124, 188, 255, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(124, 188, 255, .12) 1px, transparent 1px); background-size: 28px 28px; }
.hs-photo::after { content: ""; position: absolute; left: 14px; top: 14px; width: 26px; height: 26px; border-left: 3px solid var(--lime); border-top: 3px solid var(--lime); border-radius: 6px 0 0 0; z-index: 2; pointer-events: none; }
.hs-photo__ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 14px; line-height: 1.25; color: var(--on-navy-muted); }
.hs-photo__ph .material-symbols-outlined { font-size: 34px; color: var(--lime-bright); }
.hs-photo img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.hs-photo--has-img .hs-photo__ph { display: none; }

/* ---------- Footer (navy) ---------- */
.hs-footer { margin-top: 24px; background: linear-gradient(180deg, var(--navy) 0%, #001a42 100%); color: var(--on-navy-muted); }
.hs-footer__grid { display: grid; gap: 32px; padding-block: 64px 48px; }
@media (min-width: 768px) { .hs-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.hs-footer h4 { margin-bottom: 12px; font-family: var(--font-wide); font-size: 12px; letter-spacing: .1em; line-height: 1.4; text-transform: uppercase; color: var(--lime-bright); }
.hs-footer .hs-brand__name { color: var(--on-navy); }
.hs-footer .hs-brand__tag { color: var(--lime-bright); }
.hs-footer p, .hs-footer li { font-size: 15px; }
.hs-footer li + li { margin-top: 6px; }
.hs-footer a:hover, .hs-footer a:focus-visible { color: var(--on-navy); text-decoration: underline; }
.hs-footer__bottom { display: flex; flex-direction: column; gap: 6px; padding-block: 20px 28px; border-top: 1px solid var(--line); font-size: 14px; }
@media (min-width: 768px) { .hs-footer__bottom { flex-direction: row; justify-content: space-between; } }
.hs-social { display: inline-flex; align-items: center; gap: 8px; }
.hs-social svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

/* ---------- Floating WhatsApp ---------- */
.hs-wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(180deg, var(--lime-bright) 0%, var(--lime) 50%, var(--lime-deep) 100%); color: var(--on-lime); box-shadow: var(--shadow-gloss-lime), var(--shadow-glow-lime); }
.hs-wa-float .material-symbols-outlined { font-size: 28px; }

/* ---------- Reveal on scroll ---------- */
.hs-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.hs-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hs-brand-surface *, .hs-brand-surface *::before, .hs-brand-surface *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hs-reveal { opacity: 1; transform: none; }
  .hs-cable.hs-reveal .hs-cable__line { stroke-dashoffset: 0; }
  .hs-cable__pulse { display: none; }
}

/* ---------- Small screens ---------- */
@media (max-width: 520px) {
  .hs-brand__name { font-size: 12px; }
  .hs-brand__tag { font-size: 12px; }
  .hs-brand__mark { width: 44px; height: 44px; }
}
@media (max-width: 520px) { html { scroll-padding-top: 72px; } }
