/*
Theme Name: TecSupply Industrial 2026 — Edición 2.1
Theme URI: https://tecsupply.cl/
Author: TecSupply
Description: Catálogo técnico liviano y sin dependencias para TecSupply.
Version: 2.1.0
Text Domain: tecsupply-2026
Requires at least: 5.8
Requires PHP: 7.4
*/

:root {
  --ink: #071d35;
  --blue: #0874bd;
  --orange: #f05a28;
  --mist: #eef4f7;
  --line: #dbe5ea;
  --white: #ffffff;
  --body: #405365;
  --shadow: 0 18px 45px rgba(7, 29, 53, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--body); background: var(--white); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.97); border-bottom: 1px solid rgba(219,229,234,.9); backdrop-filter: blur(10px); }
.header-row { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand img { width: 210px; max-height: 46px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 25px; font-size: .9rem; font-weight: 700; color: var(--ink); }
.site-nav a:hover { color: var(--blue); }
.header-cta { border-radius: 5px; padding: 10px 16px; background: var(--orange); color: var(--white); }
.header-cta:hover { background: #d94e21 !important; color: var(--white) !important; }
.menu-button { display: none; appearance: none; border: 0; color: var(--ink); background: transparent; font-weight: 700; font-size: 1rem; }

.hero { position: relative; min-height: 585px; display: grid; place-items: center; overflow: hidden; color: var(--white); background: #071d35; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,18,33,.94) 0%, rgba(4,18,33,.78) 43%, rgba(4,18,33,.24) 100%); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4,18,33,.5), transparent 45%); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-content { position: relative; z-index: 1; width: min(1160px, calc(100% - 40px)); padding: 90px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #a8dcff; text-transform: uppercase; letter-spacing: .13em; font-weight: 800; font-size: .75rem; }
.eyebrow::before { content: ""; width: 34px; height: 3px; background: var(--orange); }
.hero h1 { max-width: 740px; margin: 18px 0; font-size: clamp(2.55rem, 5vw, 4.75rem); line-height: 1.04; letter-spacing: -.045em; }
.hero p { max-width: 620px; margin: 0 0 30px; font-size: 1.12rem; color: #e7f1f7; }
.actions { display: flex; flex-wrap: wrap; gap: 13px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 49px; padding: 0 21px; border-radius: 5px; background: var(--orange); color: var(--white); font-weight: 800; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); background: #d94e21; }
.button-ghost { background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); }
.button-ghost:hover { background: rgba(255,255,255,.12); }

section { padding: 88px 0; }
.section-kicker { color: var(--blue); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.section-title { max-width: 680px; margin: 8px 0 16px; color: var(--ink); font-size: clamp(2rem, 3.5vw, 3.1rem); line-height: 1.13; letter-spacing: -.03em; }
.section-lead { max-width: 690px; margin: 0; font-size: 1.05rem; }
.intro-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 70px; }
.intro-media { min-height: 420px; overflow: hidden; border-radius: 8px; background: var(--mist); box-shadow: var(--shadow); }
.intro-media img { width: 100%; height: 420px; object-fit: cover; }
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; font-weight: 700; color: var(--ink); }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: "✓"; display: grid; flex: 0 0 22px; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: #d9f0ff; color: var(--blue); font-size: .82rem; }

.solutions { background: var(--mist); }
.solutions-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card { overflow: hidden; min-height: 100%; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: 0 8px 22px rgba(7,29,53,.05); }
.product-card img { width: 100%; height: 220px; object-fit: contain; padding: 24px; background: #fff; }
.product-card__body { padding: 22px 23px 25px; border-top: 1px solid var(--line); }
.product-card h3 { margin: 0 0 8px; color: var(--ink); font-size: 1.18rem; }
.product-card p { margin: 0; font-size: .94rem; }

.catalog-intro { max-width: 760px; margin-bottom: 42px; }
.product-jump { display: flex; gap: 10px; margin: -17px 0 32px; padding: 0 0 10px; overflow-x: auto; scrollbar-width: thin; }
.product-jump a { flex: 0 0 auto; padding: 9px 14px; border: 1px solid #cbdbe4; border-radius: 999px; color: var(--ink); background: rgba(255,255,255,.72); font-size: .82rem; font-weight: 800; transition: color .2s, border-color .2s, background .2s; }
.product-jump a:hover { color: var(--white); border-color: var(--blue); background: var(--blue); }
.product-showcase { display: grid; gap: 24px; }
.solution-detail { display: grid; grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr); min-height: 365px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--white); box-shadow: 0 12px 32px rgba(7,29,53,.07); scroll-margin-top: 100px; transition: transform .25s, box-shadow .25s; }
.solution-detail:hover { transform: translateY(-3px); box-shadow: 0 19px 42px rgba(7,29,53,.12); }
.solution-detail:nth-child(even) { grid-template-columns: minmax(0, 1.22fr) minmax(260px, .78fr); }
.solution-detail:nth-child(even) .solution-media { order: 2; }
.solution-media { position: relative; display: grid; place-items: center; min-height: 365px; padding: 34px; overflow: hidden; background: linear-gradient(145deg, #fff, #e8f0f4); }
.solution-media::after { content: ""; position: absolute; right: -55px; bottom: -55px; width: 165px; height: 165px; border: 28px solid rgba(8,116,189,.1); border-radius: 50%; }
.solution-media > img { position: relative; z-index: 1; width: min(100%, 310px); max-height: 285px; object-fit: contain; }
.solution-copy { display: flex; flex-direction: column; justify-content: center; padding: 38px 44px; }
.product-brand { width: auto; max-width: 150px; max-height: 45px; margin-bottom: 18px; object-fit: contain; object-position: left center; }
.product-label { margin-bottom: 7px; color: var(--blue); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.solution-copy h3 { margin: 0 0 10px; color: var(--ink); font-size: clamp(1.55rem, 2.5vw, 2.25rem); line-height: 1.15; }
.solution-copy > p { margin: 0; }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 18px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--ink); font-size: .9rem; font-weight: 700; }
.feature-list li { position: relative; padding-left: 17px; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.tech-note { margin-top: 16px !important; color: #667889; font-size: .78rem; }
.product-cta { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--blue); font-size: .88rem; font-weight: 800; }
.product-cta::after { content: "→"; color: var(--orange); font-size: 1.1rem; transition: transform .2s; }
.product-cta:hover::after { transform: translateX(4px); }

.band { position: relative; overflow: hidden; color: var(--white); background: var(--ink); }
.band::after { content: ""; position: absolute; right: -13%; bottom: -200px; width: 650px; height: 650px; border: 80px solid rgba(8,116,189,.24); border-radius: 50%; }
.band-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 55px; align-items: center; }
.band h2 { margin: 8px 0 16px; font-size: clamp(2rem, 3.5vw, 3.1rem); line-height: 1.13; letter-spacing: -.03em; }
.band p { max-width: 570px; margin: 0; color: #d9e8f1; }
.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.metric { padding: 22px; border: 1px solid rgba(255,255,255,.18); border-radius: 7px; background: rgba(255,255,255,.06); }
.metric strong { display: block; margin-bottom: 4px; color: #8bd1ff; font-size: 1.02rem; }
.metric span { font-size: .9rem; color: #e2edf3; }

.brands { padding-bottom: 60px; }
.brand-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; margin-top: 34px; }
.brand-tile { display: grid; height: 92px; place-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); }
.brand-tile img { max-height: 60px; width: auto; object-fit: contain; }
.brand-tile strong { color: var(--ink); font-size: 1.15rem; letter-spacing: .06em; }

.contact { padding: 0; background: var(--mist); }
.contact-card { position: relative; top: 44px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 28px; align-items: center; padding: 42px 48px; border-radius: 8px; color: var(--white); background: linear-gradient(110deg, #0874bd, #075386); box-shadow: var(--shadow); }
.contact-card h2 { margin: 0 0 9px; font-size: clamp(1.7rem, 3vw, 2.45rem); line-height: 1.15; }
.contact-card p { margin: 0; color: #e6f4ff; }
.contact-card .button { justify-self: end; background: var(--white); color: var(--ink); }
.contact-card .button:hover { background: #eaf6ff; }

.site-footer { padding: 105px 0 30px; color: #c7d3dc; background: #061526; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .9fr; gap: 45px; padding-bottom: 42px; }
.footer-logo { width: 210px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.site-footer p { max-width: 400px; margin: 0; font-size: .94rem; }
.site-footer h3 { margin: 0 0 13px; color: var(--white); font-size: .95rem; text-transform: uppercase; letter-spacing: .09em; }
.footer-list { margin: 0; padding: 0; list-style: none; }
.footer-list li + li { margin-top: 7px; }
.footer-list a:hover { color: #8bd1ff; }
.copyright { padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; }

@media (max-width: 820px) {
  .menu-button { display: block; }
  .site-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 16px 20px 22px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 12px 20px rgba(7,29,53,.08); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 11px 0; }
  .header-cta { text-align: center; }
  .intro-grid, .band-grid, .contact-card, .solution-detail, .solution-detail:nth-child(even) { grid-template-columns: 1fr; }
  .intro-grid { gap: 36px; }
  .intro-media, .intro-media img { min-height: 300px; height: 300px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .solution-detail:nth-child(even) .solution-media { order: 0; }
  .solution-media { min-height: 285px; }
  .contact-card .button { justify-self: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
  .wrap, .hero-content { width: min(100% - 32px, 1160px); }
  .header-row { min-height: 68px; }
  .brand img { width: 178px; }
  .site-nav { top: 68px; }
  .hero { min-height: 570px; }
  .hero-content { padding: 70px 0; }
  .hero h1 { font-size: 2.55rem; }
  section { padding: 64px 0; }
  .checks, .product-grid, .metrics, .brand-row, .footer-grid { grid-template-columns: 1fr; }
  .solutions-head { display: block; }
  .product-grid { gap: 16px; }
  .product-card { display: grid; grid-template-columns: 115px 1fr; }
  .product-card img { height: 100%; padding: 15px; }
  .product-card__body { border-top: 0; border-left: 1px solid var(--line); }
  .solution-copy { padding: 28px 24px 32px; }
  .solution-media { padding: 26px; }
  .feature-list { grid-template-columns: 1fr; }
  .product-jump { margin-top: -8px; }
  .contact-card { top: 28px; padding: 32px 27px; }
  .site-footer { padding-top: 83px; }
}
