/* H&S Tecnologías — portada (front-page.php). Depende de tokens.css y base.css.
   Basado en hs/css/styles.css (secciones de la landing). */

/* ---------- Hero ---------- */
.hs-hero { position: relative; overflow: hidden; padding: 76px 0 80px; }
@media (min-width: 1024px) { .hs-hero { padding: 72px 0 88px; } }
.hs-hero__traces { position: absolute; left: 0; width: 100%; height: 110px; pointer-events: none; opacity: .8; }
.hs-hero__traces--t { top: 0; }
.hs-hero__traces--b { bottom: 0; }
.hs-hero__grid { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .hs-hero__grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.hs-tr { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hs-tr--jacket { stroke: var(--blue-soft); stroke-width: 10; }
.hs-tr--lime { stroke: var(--lime); stroke-width: 3; }
.hs-tr--cyan { stroke: var(--cyan); stroke-width: 3; }
.hs-tr--pulse { stroke: #fff; stroke-width: 3; stroke-dasharray: .05 1; animation: hs-pulse 9s linear infinite; }
.hs-tr__node { fill: var(--sky-100); stroke: var(--lime); stroke-width: 3.5; }
.hs-tr__node--c { stroke: var(--cyan); }

.hs-hero__content { display: flex; flex-direction: column; gap: 22px; }
.hs-hero__title { font-size: clamp(36px, 26px + 3.2vw, 58px); line-height: 1.04; font-weight: 800; font-style: italic; letter-spacing: -.01em; }
.hs-hero__slogan { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--blue-text); }
.hs-hero__slogan em { font-family: var(--font-body); font-style: normal; font-weight: 600; color: var(--lime-text); }
.hs-hero__sep { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: var(--shadow-glow-lime); }
.hs-hero__bullets { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15.5px; font-weight: 600; color: var(--text-muted); }
.hs-hero__bullets li { display: flex; align-items: center; gap: 6px; }
.hs-hero__bullets .material-symbols-outlined { color: var(--lime-text); font-size: 20px; }
.hs-hero__visual { padding: 14px; }
.hs-hero__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 6px 12px; border-bottom: 1px solid var(--line); }
.hs-hero__lights { display: inline-flex; gap: 6px; }
.hs-hero__lights i { width: 11px; height: 11px; border-radius: 50%; background: var(--cyan); }
.hs-hero__lights i:nth-child(2) { background: var(--lime); }
.hs-hero__lights i:nth-child(3) { background: var(--blue); }
.hs-hero__bar-title { flex: 1; font-family: var(--font-wide); font-size: 11px; letter-spacing: .1em; line-height: 1.4; text-transform: uppercase; color: var(--text-muted); }
.hs-hero__media { margin: 14px 0; aspect-ratio: 960 / 502; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--navy); }
.hs-hero__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.hs-hero__visual:hover .hs-hero__media img { transform: scale(1.03); }
.hs-hero__divs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hs-hero__div { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-sunken); text-align: center; transition: transform .2s, border-color .2s, box-shadow .2s; }
.hs-hero__div:hover, .hs-hero__div:focus-visible { transform: translateY(-3px); border-color: var(--line-lime); box-shadow: var(--shadow-glass); }
.hs-hero__div .material-symbols-outlined { font-size: 26px; }
.hs-hero__div span:last-child { font-family: var(--font-display); font-size: 13.5px; font-weight: 700; line-height: 1.2; color: var(--ink); }
@media (max-width: 520px) { .hs-hero__div span:last-child { font-size: 13px; } }

/* ---------- Metrics ---------- */
.hs-metrics { padding: 32px; }
.hs-metrics__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (min-width: 900px) { .hs-metrics__grid { grid-template-columns: repeat(4, 1fr); } .hs-metric + .hs-metric { padding-left: 24px; border-left: 1px solid var(--line); } }
@media (max-width: 520px) { .hs-metrics { padding: 22px; } .hs-metric__value { font-size: 26px; } }
.hs-metric { display: flex; flex-direction: column; gap: 2px; }
.hs-metric dt { font-family: var(--font-wide); font-size: 11px; letter-spacing: .1em; line-height: 1.4; text-transform: uppercase; color: var(--blue-text); }
.hs-metric__value { font-family: var(--font-display); font-size: clamp(30px, 24px + 1.4vw, 40px); font-weight: 800; font-style: italic; line-height: 1.1; color: var(--ink); }
.hs-metric__value--lime { color: var(--lime-text); }
.hs-metric__text { font-size: 15px; color: var(--text-muted); }

/* ---------- Divisions ---------- */
.hs-grid-3 { display: grid; gap: 24px; }
@media (min-width: 768px) { .hs-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .hs-grid-3 { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.hs-division { --tone: var(--blue-text); --tone-fill: var(--blue); --tone-soft: var(--blue-soft); display: flex; flex-direction: column; overflow: hidden; }
.hs-division--cyan { --tone: var(--cyan-text); --tone-fill: var(--cyan); --tone-soft: var(--cyan-soft); }
.hs-division--lime { --tone: var(--lime-text); --tone-fill: var(--lime); --tone-soft: var(--lime-soft); }
.hs-division::before { content: ""; position: absolute; z-index: 2; top: 0; left: 24px; right: 24px; height: 4px; border-radius: 0 0 9px 9px; background: var(--tone-fill); box-shadow: 0 0 14px var(--tone-fill); }
.hs-division__media { position: relative; height: 190px; overflow: hidden; background: var(--navy); }
.hs-division__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.hs-division:hover .hs-division__media img { transform: scale(1.05); }
.hs-division__num { position: absolute; top: 14px; left: 14px; padding: 5px 12px; border-radius: var(--radius-pill); background: rgba(0, 40, 92, .85); font-family: var(--font-wide); font-size: 11px; letter-spacing: .1em; line-height: 1.4; text-transform: uppercase; color: var(--lime-bright); }
.hs-division__body { display: flex; flex-direction: column; gap: 14px; flex: 1; padding: 28px 28px 32px; }
.hs-division__title { display: flex; align-items: center; gap: 12px; font-size: 22px; line-height: 1.25; font-weight: 700; }
.hs-checklist { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.hs-checklist li { display: flex; gap: 8px; font-size: 16px; line-height: 1.6; color: var(--text); }
.hs-checklist .material-symbols-outlined { flex-shrink: 0; font-size: 20px; color: var(--tone); }
.hs-division__brands { margin-top: auto; padding-top: 6px; }
.hs-division__brands-label { display: block; margin-bottom: 6px; font-family: var(--font-wide); font-size: 11px; letter-spacing: .1em; line-height: 1.4; text-transform: uppercase; color: var(--text-muted); }

/* ---------- Deep section (Fluke) ---------- */
.hs-deep { position: relative; overflow: hidden; background: radial-gradient(circle at 85% 0%, rgba(63, 208, 255, .28), transparent 45%), radial-gradient(circle at 0% 100%, rgba(166, 230, 26, .16), transparent 45%), linear-gradient(160deg, var(--sky-100) 0%, var(--sky-200) 100%); color: var(--text); }
.hs-deep .hs-h2 { color: var(--ink); }
.hs-fluke { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1024px) { .hs-fluke { grid-template-columns: 1fr 1.1fr; gap: 48px; } }
.hs-fluke__cards { display: grid; gap: 18px; }
.hs-fluke__card { display: flex; gap: 16px; padding: 22px; }
.hs-fluke__card h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.hs-fluke__card p { font-size: 16px; line-height: 1.6; color: var(--text-muted); }
.hs-fluke__card .hs-chip { margin-top: 10px; display: inline-block; }
.hs-norms { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.hs-norms li { display: flex; gap: 10px; font-size: 16px; line-height: 1.6; color: var(--text); }
.hs-norms .material-symbols-outlined { color: var(--lime-text); font-size: 20px; flex-shrink: 0; }
.hs-creds { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.hs-creds__title { margin-bottom: 10px; font-family: var(--font-wide); font-size: 11px; letter-spacing: .1em; line-height: 1.4; text-transform: uppercase; color: var(--text-muted); }
.hs-shots { display: grid; gap: 22px; margin-top: 44px; }
.hs-shots__pair { display: grid; gap: 18px; }
.hs-shots__certs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 720px) { .hs-shots__pair { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .hs-shots__certs { grid-template-columns: repeat(4, 1fr); } }
.hs-shots__cap { margin-top: 10px; font-size: 14.5px; font-weight: 600; color: var(--text-muted); }

/* ---------- Services ---------- */
.hs-service { display: flex; flex-direction: column; gap: 12px; padding: 28px; }
.hs-service__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.hs-service__code { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--blue-text); }
.hs-service h3 { font-size: 19px; font-weight: 700; }
.hs-service p { font-size: 16px; line-height: 1.6; color: var(--text-muted); }

/* ---------- Casos (sin nombres de clientes) ---------- */
.hs-cases { display: grid; gap: 22px; }
@media (min-width: 720px) { .hs-cases { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .hs-cases { grid-template-columns: repeat(4, 1fr); } }
.hs-case { display: flex; flex-direction: column; overflow: hidden; }
.hs-case .hs-photo { border-radius: var(--radius-lg) var(--radius-lg) 0 0; border-width: 0 0 1px; box-shadow: none; }
.hs-case__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 20px 22px 24px; }
.hs-case__kicker { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--blue-text); }
.hs-case h3 { font-size: 19px; line-height: 1.25; font-weight: 700; }
.hs-case__scope { font-size: 16px; line-height: 1.6; color: var(--text-muted); }
.hs-case__pts { margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 600; color: var(--text-muted); }
.hs-case__pts span { display: block; font-family: var(--font-display); font-size: 40px; font-weight: 800; font-style: italic; line-height: 1.05; color: var(--lime-text); }
.hs-case .hs-chips { margin-top: 6px; }
.hs-sectors { margin-top: 44px; padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(0, 39, 91, .45); }
.hs-sectors__title { margin-bottom: 14px; font-family: var(--font-wide); font-size: 11px; letter-spacing: .1em; line-height: 1.4; text-transform: uppercase; color: var(--text-muted); }
.hs-sectors__list { display: flex; flex-wrap: wrap; gap: 10px; }
.hs-sectors__list li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: linear-gradient(180deg, var(--surface) 0%, var(--surface-tech) 100%); font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--ink); }
.hs-sectors__list .material-symbols-outlined { font-size: 20px; color: var(--lime-text); }
.hs-sectors__note { margin-top: 14px; font-size: 15px; color: var(--text-muted); }

/* ---------- Mosaico "en campo" ---------- */
.hs-mosaic { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 14px; }
.hs-mosaic .hs-photo { aspect-ratio: auto; }
.hs-mosaic .hs-photo:first-child { grid-column: span 2; grid-row: span 2; }
@media (min-width: 900px) { .hs-mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 16px; } }

/* ---------- Cobertura ---------- */
.hs-coverage { display: grid; gap: 36px; align-items: center; }
@media (min-width: 1024px) { .hs-coverage { grid-template-columns: 1fr 1fr; gap: 56px; } }
.hs-coverage__facts { display: flex; flex-direction: column; gap: 16px; }
.hs-coverage__facts li { display: flex; gap: 14px; align-items: center; }
.hs-coverage__facts h3 { font-size: 17px; font-weight: 700; }
.hs-coverage__facts p { font-size: 16px; line-height: 1.6; color: var(--text-muted); }
.hs-coverage__map { margin: 0; padding: 18px 18px 14px; background: linear-gradient(170deg, var(--surface) 0%, var(--surface-sunken) 100%); }
.hs-coverage__map figcaption { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 4px; font-size: 13.5px; color: var(--text-muted); }
.hs-map { display: block; width: 100%; height: auto; max-height: 560px; }
.hs-map path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hs-map__jacket { stroke: var(--blue-soft); stroke-width: 9; }
.hs-map__line { stroke: var(--lime-deep); stroke-width: 3; }
.hs-map__pulse { stroke: #fff; stroke-width: 3; stroke-dasharray: .06 1; animation: hs-pulse 5s linear infinite; }
.hs-map__node { fill: var(--sky-100); stroke: var(--blue); stroke-width: 4; }
.hs-map__node--sub { stroke: var(--lime-deep); }
.hs-map__hub-ring { fill: var(--lime-soft); stroke: var(--lime-deep); stroke-width: 2; stroke-dasharray: 4 5; }
.hs-map__hub { fill: var(--lime); stroke: var(--navy); stroke-width: 4; }
.hs-map__label { font-family: var(--font-display); font-size: 15px; font-weight: 700; fill: var(--ink); }
.hs-map__label--sub { font-size: 13px; fill: var(--lime-text); }
.hs-map__label--hub { font-size: 16px; font-weight: 800; font-style: italic; }
@media (prefers-reduced-motion: reduce) { .hs-map__pulse, .hs-tr--pulse { display: none; } }

/* ---------- Marcas (marquesina) ---------- */
.hs-brands { padding: 40px 0; border-block: 1px solid var(--line); background: rgba(0, 39, 91, .45); }
.hs-brands__title { margin-bottom: 20px; text-align: center; font-family: var(--font-wide); font-size: 11px; letter-spacing: .1em; line-height: 1.4; text-transform: uppercase; color: var(--text-muted); }
.hs-marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.hs-marquee__track { display: flex; flex-shrink: 0; gap: 12px; padding-right: 12px; animation: hs-marquee 50s linear infinite; }
.hs-marquee:hover .hs-marquee__track { animation-play-state: paused; }
.hs-marquee__track li { padding: 10px 20px; border: 1px solid var(--line); 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); font-family: var(--font-display); font-size: 16px; font-weight: 800; font-style: italic; white-space: nowrap; color: var(--text-muted); }
@keyframes hs-marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .hs-marquee { -webkit-mask-image: none; mask-image: none; }
  .hs-marquee__track { animation: none; flex-wrap: wrap; justify-content: center; }
  .hs-marquee__track[aria-hidden="true"] { display: none; }
}

/* ---------- Proceso + banda CTA ---------- */
.hs-process { display: grid; gap: 20px; }
@media (min-width: 768px) { .hs-process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .hs-process { grid-template-columns: repeat(4, 1fr); } }
.hs-step { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px 22px; overflow: visible; }
.hs-step__num { position: absolute; top: 12px; right: 16px; font-family: var(--font-display); font-size: 46px; font-weight: 800; font-style: italic; line-height: 1; color: var(--blue-soft); }
.hs-step h3 { font-size: 18px; font-weight: 700; }
.hs-step p { font-size: 16px; line-height: 1.6; color: var(--text-muted); }
@media (min-width: 1024px) {
  .hs-step:not(:last-child)::after { content: ""; position: absolute; top: 50px; right: -21px; width: 22px; height: 3px; border-radius: 3px; background: var(--lime); box-shadow: 0 0 10px rgba(150, 220, 0, .6); }
}
.hs-band { position: relative; display: flex; flex-direction: column; gap: 24px; margin-top: 48px; padding: 48px 32px; overflow: hidden; border-radius: var(--radius-xl); background: radial-gradient(circle at 85% 10%, rgba(27, 182, 230, .35), transparent 45%), linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); box-shadow: var(--shadow-band), inset 0 1px 0 rgba(124, 188, 255, .35); border: 1px solid var(--line-lime); }
.hs-band h2 { color: var(--on-navy); font-size: clamp(24px, 20px + 1.2vw, 34px); line-height: 1.2; font-weight: 800; font-style: italic; }
.hs-band p { color: var(--on-navy-muted); max-width: 40rem; margin-top: 8px; }
@media (min-width: 1024px) { .hs-band { flex-direction: row; align-items: center; justify-content: space-between; padding: 52px 56px; } .hs-band .hs-actions { flex-shrink: 0; } }

/* ---------- Contacto ---------- */
.hs-contact { display: grid; gap: 36px; align-items: start; }
@media (min-width: 1024px) { .hs-contact { grid-template-columns: 5fr 7fr; gap: 48px; } }
.hs-contact__info { display: flex; flex-direction: column; gap: 20px; }
.hs-office { display: flex; gap: 14px; padding: 24px; }
.hs-office h3 { font-size: 17px; font-weight: 700; }
.hs-office p { font-size: 16px; line-height: 1.6; color: var(--text-muted); }
.hs-office a { color: var(--blue-text); font-weight: 600; }
.hs-office a:hover, .hs-office a:focus-visible { text-decoration: underline; }
.hs-form { display: flex; flex-direction: column; gap: 18px; padding: 32px; }
@media (min-width: 640px) { .hs-form { padding: 34px; } }
.hs-form__row { display: grid; gap: 16px; }
@media (min-width: 640px) { .hs-form__row { grid-template-columns: 1fr 1fr; } }
.hs-field { display: flex; flex-direction: column; gap: 6px; }
.hs-field label { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.hs-field input, .hs-field select, .hs-field textarea { width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface-sunken); box-shadow: inset 0 2px 4px var(--blue-soft); font-family: var(--font-body); font-size: 16px; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.hs-field textarea { resize: vertical; min-height: 110px; }
.hs-field ::placeholder { color: var(--text-muted); opacity: .85; }
.hs-field input:focus, .hs-field select:focus, .hs-field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft), inset 0 2px 4px var(--blue-soft); }
.hs-field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hs-form__foot { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
@media (min-width: 640px) { .hs-form__foot { flex-direction: row; align-items: center; justify-content: space-between; } }
.hs-form__sla { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--text-muted); }
.hs-alert { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--radius); font-size: 15px; font-weight: 600; }
.hs-alert[hidden] { display: none; }
.hs-alert--success { background: var(--success-bg); color: var(--success-text); }
.hs-alert--error { background: var(--error-bg); color: var(--error-text); }
