
:root {
  --blue: #0c67a7;
  --blue-dark: #073b62;
  --blue-deep: #052c49;
  --cyan: #35bee7;
  --cyan-dark: #109bc7;
  --cyan-soft: #e9f9fe;
  --white: #ffffff;
  --ink: #183247;
  --muted: #617486;
  --line: #dce8ef;
  --surface: #f5f9fc;
  --shadow: 0 18px 50px rgba(7,59,98,.12);
  --radius: 22px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink); background: var(--white); line-height: 1.6; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: min(1180px, 88%); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 1000; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: 76px;
  background: rgba(255,255,255,.96); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(12,103,167,.12); box-shadow: 0 4px 24px rgba(7,59,98,.07);
}
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 212px; height: 58px; object-fit: contain; object-position: left center; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--blue-dark); font-size: 14px; font-weight: 700; padding: 25px 0 22px; border-bottom: 3px solid transparent; }
.nav-links a:hover, .nav-links a.active { color: var(--cyan-dark); border-bottom-color: var(--cyan); }
.nav-cta { text-decoration: none; background: linear-gradient(135deg,var(--blue),var(--cyan-dark)); color: #fff; padding: 11px 20px; border-radius: 10px; font-weight: 800; font-size: 14px; box-shadow: 0 8px 22px rgba(12,103,167,.25); }
.nav-cta:hover { transform: translateY(-1px); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--blue); font-size: 24px; cursor: pointer; }

.hero {
  min-height: 720px; display: flex; align-items: center; position: relative; overflow: hidden; padding: 150px 0 90px;
  background: linear-gradient(90deg,rgba(5,44,73,.96) 0%,rgba(7,59,98,.91) 45%,rgba(7,59,98,.52) 76%,rgba(7,59,98,.30) 100%),
              url('assets/images/inspeccion-industrial-planta.webp') center/cover no-repeat;
}
.hero::after { content:""; position:absolute; inset:0; background: radial-gradient(circle at 78% 28%,rgba(53,190,231,.25),transparent 28%), linear-gradient(135deg,transparent 64%,rgba(53,190,231,.12)); pointer-events:none; }
.hero-content { position: relative; z-index: 2; max-width: 720px; color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--cyan); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-weight: 900; margin-bottom: 16px; }
.eyebrow::before { content:""; width: 28px; height: 3px; border-radius: 3px; background: var(--cyan); }
.hero h1 { font-size: clamp(42px,6vw,72px); line-height: 1.04; letter-spacing: -2px; font-weight: 900; margin-bottom: 24px; }
.hero h1 span { color: var(--cyan); }
.hero p { max-width: 650px; font-size: 18px; color: rgba(255,255,255,.78); margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; padding: 14px 26px; border-radius: 11px; font-weight: 800; font-size: 15px; border: 2px solid transparent; transition: .2s ease; cursor: pointer; }
.btn-primary { color: #fff; background: linear-gradient(135deg,var(--cyan-dark),var(--cyan)); box-shadow: 0 12px 30px rgba(53,190,231,.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(53,190,231,.36); }
.btn-light { color: #fff; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.08); }
.btn-light:hover { background: #fff; color: var(--blue-dark); }

.stats { position: relative; z-index: 5; margin-top: -54px; }
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); background: #fff; border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid rgba(12,103,167,.1); }
.stat { padding: 30px 34px; display: flex; align-items: center; gap: 18px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; color: var(--blue); font-size: 34px; line-height: 1; font-weight: 900; }
.stat span { display: block; margin-top: 5px; color: var(--muted); font-size: 14px; font-weight: 650; }
.stat-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--cyan-soft); color: var(--blue); flex: 0 0 auto; }
.stat-icon svg { width: 24px; height: 24px; }

.section { padding: 100px 0; }
.section.alt { background: var(--surface); }
.section-head { max-width: 700px; margin-bottom: 48px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-kicker { color: var(--cyan-dark); font-size: 12px; font-weight: 900; letter-spacing: 1.8px; text-transform: uppercase; margin-bottom: 12px; }
.section-title { color: var(--blue-dark); font-size: clamp(30px,4vw,48px); font-weight: 900; line-height: 1.12; letter-spacing: -.8px; }
.section-title em { color: var(--cyan-dark); font-style: normal; }
.section-lead { color: var(--muted); font-size: 17px; margin-top: 15px; }

.service-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(7,59,98,.06); transition: transform .25s, box-shadow .25s, border-color .25s; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(53,190,231,.6); }
.service-card img { width: 100%; height: 190px; object-fit: cover; }
.service-body { padding: 25px; }
.service-number { color: var(--cyan-dark); font-size: 12px; font-weight: 900; letter-spacing: 1.3px; }
.service-card h3 { color: var(--blue-dark); font-size: 20px; line-height: 1.25; margin: 8px 0 10px; }
.service-card p { color: var(--muted); font-size: 14px; }
.service-link { display: inline-block; margin-top: 18px; color: var(--blue); text-decoration: none; font-weight: 800; font-size: 14px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.image-panel { position: relative; min-height: 520px; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.image-panel img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }
.image-panel::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg,transparent 45%,rgba(5,44,73,.78)); }
.image-badge { position:absolute; left:28px; right:28px; bottom:28px; z-index:2; color:#fff; background:rgba(5,44,73,.75); border:1px solid rgba(255,255,255,.18); border-radius:16px; padding:18px 20px; backdrop-filter:blur(10px); }
.image-badge strong { display:block; font-size:24px; }
.image-badge span { color:rgba(255,255,255,.76); font-size:14px; }
.feature-list { list-style:none; display:grid; gap:18px; margin-top:30px; }
.feature-list li { display:grid; grid-template-columns:42px 1fr; gap:14px; align-items:start; }
.feature-icon { width:42px; height:42px; border-radius:12px; display:grid; place-items:center; background:var(--cyan-soft); color:var(--blue); font-weight:900; }
.feature-list h4 { color:var(--blue-dark); font-size:16px; }
.feature-list p { color:var(--muted); font-size:14px; margin-top:3px; }

.process-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:22px; counter-reset:step; }
.process-card { position:relative; background:#fff; border:1px solid var(--line); border-radius:20px; padding:30px 24px; min-height:270px; }
.process-card::before { counter-increment:step; content:"0" counter(step); position:absolute; right:22px; top:18px; font-size:42px; font-weight:900; color:rgba(12,103,167,.08); }
.process-card .icon { width:50px; height:50px; border-radius:14px; display:grid; place-items:center; background:linear-gradient(135deg,var(--blue),var(--cyan-dark)); color:#fff; margin-bottom:28px; }
.process-card h3 { color:var(--blue-dark); font-size:20px; margin-bottom:10px; }
.process-card p { color:var(--muted); font-size:14px; }

.cta { padding: 82px 0; color:#fff; background: linear-gradient(135deg,var(--blue-deep),var(--blue) 62%,var(--cyan-dark)); position:relative; overflow:hidden; }
.cta::before { content:""; position:absolute; width:430px; height:430px; right:-140px; top:-190px; border-radius:50%; background:rgba(53,190,231,.14); }
.cta-inner { position:relative; z-index:2; display:flex; justify-content:space-between; align-items:center; gap:38px; }
.cta h2 { font-size:clamp(28px,4vw,44px); line-height:1.13; font-weight:900; max-width:720px; }
.cta p { color:rgba(255,255,255,.76); margin-top:12px; }

.page-hero { padding: 160px 0 84px; color:#fff; background-size:cover; background-position:center; position:relative; }
.page-hero::before { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(5,44,73,.96),rgba(7,59,98,.80),rgba(7,59,98,.46)); }
.page-hero .container { position:relative; z-index:2; }
.page-hero h1 { font-size:clamp(38px,5vw,62px); line-height:1.07; font-weight:900; letter-spacing:-1.2px; max-width:850px; }
.page-hero p { max-width:680px; margin-top:18px; color:rgba(255,255,255,.78); font-size:17px; }
.hero-services { background-image:url('assets/images/medicion-ruido-industrial.webp'); }
.hero-about { background-image:url('assets/images/reunion-colaborativa-fabrica.webp'); }
.hero-process { background-image:url('assets/images/reunion-planificacion-industrial.webp'); }
.hero-contact { background-image:url('assets/images/reunion-ejecutiva-seguridad.webp'); }

.detail-grid { display:grid; gap:30px; }
.detail-card { display:grid; grid-template-columns:minmax(320px,.9fr) 1.1fr; gap:0; border:1px solid var(--line); border-radius:24px; overflow:hidden; background:#fff; box-shadow:0 12px 36px rgba(7,59,98,.07); }
.detail-card:nth-child(even) { grid-template-columns:1.1fr minmax(320px,.9fr); }
.detail-card:nth-child(even) .detail-image { order:2; }
.detail-image { min-height:390px; }
.detail-image img { width:100%; height:100%; object-fit:cover; }
.detail-copy { padding:42px; display:flex; flex-direction:column; justify-content:center; }
.detail-copy h2 { color:var(--blue-dark); font-size:30px; line-height:1.2; margin:8px 0 13px; }
.detail-copy p { color:var(--muted); }
.detail-copy ul { list-style:none; margin-top:20px; display:grid; grid-template-columns:1fr 1fr; gap:10px 18px; }
.detail-copy li { color:var(--ink); font-size:14px; padding-left:22px; position:relative; }
.detail-copy li::before { content:"✓"; position:absolute; left:0; color:var(--cyan-dark); font-weight:900; }

.story-card { background:linear-gradient(135deg,var(--blue-deep),var(--blue)); border-radius:26px; padding:44px; color:#fff; box-shadow:var(--shadow); }
.story-card .big { font-size:74px; font-weight:900; color:var(--cyan); line-height:1; }
.story-card h3 { font-size:25px; margin:12px 0; }
.story-card p { color:rgba(255,255,255,.74); }
.mvv-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.mvv-card { border-radius:22px; padding:34px 30px; color:#fff; min-height:280px; }
.mvv-card:nth-child(1) { background:var(--blue-dark); }
.mvv-card:nth-child(2) { background:var(--blue); }
.mvv-card:nth-child(3) { background:var(--cyan-dark); }
.mvv-card .symbol { width:48px; height:48px; border-radius:14px; display:grid; place-items:center; background:rgba(255,255,255,.13); margin-bottom:24px; font-size:22px; }
.mvv-card h3 { font-size:22px; margin-bottom:11px; }
.mvv-card p { color:rgba(255,255,255,.8); font-size:14px; }
.timeline { position:relative; margin-top:34px; padding-left:38px; }
.timeline::before { content:""; position:absolute; left:10px; top:4px; bottom:4px; width:3px; border-radius:3px; background:linear-gradient(var(--blue),var(--cyan)); }
.timeline-item { position:relative; padding:0 0 32px; }
.timeline-item:last-child { padding-bottom:0; }
.timeline-item::before { content:""; position:absolute; left:-36px; top:5px; width:17px; height:17px; border-radius:50%; background:var(--cyan); border:4px solid #fff; box-shadow:0 0 0 2px var(--cyan-dark); }
.timeline-item small { color:var(--cyan-dark); font-weight:900; }
.timeline-item h4 { color:var(--blue-dark); font-size:18px; margin:3px 0; }
.timeline-item p { color:var(--muted); font-size:14px; }
.sector-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:16px; }
.sector { padding:22px 15px; border-radius:15px; border:1px solid var(--line); background:#fff; text-align:center; font-weight:800; color:var(--blue-dark); }
.sector span { display:block; font-size:26px; margin-bottom:8px; }

.contact-grid { display:grid; grid-template-columns:.85fr 1.15fr; gap:50px; align-items:start; }
.contact-card { background:linear-gradient(145deg,var(--blue-deep),var(--blue)); color:#fff; border-radius:24px; padding:38px; box-shadow:var(--shadow); }
.contact-card h2 { font-size:30px; line-height:1.2; }
.contact-card > p { color:rgba(255,255,255,.75); margin:12px 0 30px; }
.contact-line { display:flex; gap:15px; align-items:center; margin-top:18px; }
.contact-line .bubble { width:45px; height:45px; border-radius:13px; display:grid; place-items:center; background:rgba(255,255,255,.12); flex:0 0 auto; }
.contact-line a { color:#fff; text-decoration:none; font-weight:750; }
.contact-line small { display:block; color:rgba(255,255,255,.66); }
.form-card { background:#fff; border:1px solid var(--line); border-radius:24px; padding:38px; box-shadow:0 14px 44px rgba(7,59,98,.08); }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.field.full { grid-column:1/-1; }
label { display:block; color:var(--blue-dark); font-size:13px; font-weight:800; margin-bottom:7px; }
input, select, textarea { width:100%; border:1px solid #cbdce6; border-radius:11px; padding:13px 14px; font:inherit; color:var(--ink); background:#fbfdff; outline:none; }
input:focus, select:focus, textarea:focus { border-color:var(--cyan-dark); box-shadow:0 0 0 4px rgba(53,190,231,.12); }
textarea { min-height:130px; resize:vertical; }
.form-note { color:var(--muted); font-size:12px; margin-top:13px; }

.site-footer { background:var(--blue-deep); color:#fff; padding:62px 0 28px; }
.footer-grid { display:grid; grid-template-columns:1.7fr 1fr 1fr 1.2fr; gap:42px; }
.footer-brand { display:inline-flex; background:#fff; border-radius:12px; padding:7px 12px; margin-bottom:16px; }
.footer-brand img { width:190px; height:48px; object-fit:contain; }
.site-footer p { color:rgba(255,255,255,.58); font-size:14px; }
.footer-title { color:var(--cyan); text-transform:uppercase; font-size:12px; letter-spacing:1.4px; font-weight:900; margin-bottom:15px; }
.footer-links { list-style:none; display:grid; gap:9px; }
.footer-links a { text-decoration:none; color:rgba(255,255,255,.66); font-size:14px; }
.footer-links a:hover { color:#fff; }
.footer-bottom { margin-top:42px; padding-top:22px; border-top:1px solid rgba(255,255,255,.1); display:flex; justify-content:space-between; gap:18px; color:rgba(255,255,255,.43); font-size:12px; }
.whatsapp { position:fixed; right:24px; bottom:24px; width:58px; height:58px; z-index:90; display:grid; place-items:center; border-radius:50%; background:#25d366; color:#fff; text-decoration:none; box-shadow:0 12px 30px rgba(37,211,102,.36); font-size:27px; }
.whatsapp:hover { transform:scale(1.06); }

.reveal { opacity:0; transform:translateY(24px); transition:opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity:1; transform:none; }

@media (max-width: 1020px) {
  .nav-links { gap:18px; }
  .nav-cta { display:none; }
  .service-grid { grid-template-columns:repeat(2,1fr); }
  .process-grid { grid-template-columns:repeat(2,1fr); }
  .sector-grid { grid-template-columns:repeat(3,1fr); }
  .footer-grid { grid-template-columns:1.5fr 1fr 1fr; }
  .footer-grid > :last-child { grid-column:1/-1; }
}
@media (max-width: 820px) {
  .site-header { height:70px; }
  .brand img { width:180px; height:52px; }
  .menu-toggle { display:block; }
  .nav-links { display:none; position:absolute; top:70px; left:0; right:0; padding:18px 6% 24px; background:#fff; flex-direction:column; align-items:stretch; gap:0; box-shadow:0 18px 30px rgba(7,59,98,.12); }
  .nav-links.open { display:flex; }
  .nav-links a { display:block; padding:13px 4px; border-bottom:1px solid var(--line); }
  .hero { min-height:680px; padding-top:130px; background-position:62% center; }
  .stats-grid { grid-template-columns:1fr; }
  .stat + .stat { border-left:0; border-top:1px solid var(--line); }
  .split, .contact-grid { grid-template-columns:1fr; gap:40px; }
  .image-panel, .image-panel img { min-height:410px; }
  .detail-card, .detail-card:nth-child(even) { grid-template-columns:1fr; }
  .detail-card:nth-child(even) .detail-image { order:0; }
  .detail-image { min-height:300px; }
  .mvv-grid { grid-template-columns:1fr; }
  .cta-inner { flex-direction:column; align-items:flex-start; }
}
@media (max-width: 620px) {
  .container { width:min(91%,1180px); }
  .hero { min-height:720px; }
  .hero h1 { font-size:42px; letter-spacing:-1px; }
  .hero p { font-size:16px; }
  .stats { margin-top:-34px; }
  .stat { padding:23px; }
  .section { padding:76px 0; }
  .service-grid, .process-grid, .sector-grid { grid-template-columns:1fr; }
  .detail-copy { padding:29px 24px 32px; }
  .detail-copy ul { grid-template-columns:1fr; }
  .page-hero { padding:135px 0 68px; }
  .form-grid { grid-template-columns:1fr; }
  .field.full { grid-column:auto; }
  .form-card, .contact-card, .story-card { padding:28px 23px; }
  .footer-grid { grid-template-columns:1fr; }
  .footer-grid > :last-child { grid-column:auto; }
  .footer-bottom { flex-direction:column; }
  .whatsapp { right:16px; bottom:16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior:auto!important; transition:none!important; animation:none!important; }
  .reveal { opacity:1; transform:none; }
}
.contact-line .bubble svg { width: 22px; height: 22px; }
