/* ==========================================================================
   Tecnimaq Ingeniería S.A.S. — Hoja de estilos del sitio
   Sitio estático, moderno y responsive. Sin dependencias externas.
   ========================================================================== */

:root {
  --c-prim:        #14233b;   /* azul marino institucional */
  --c-prim-dark:   #0d1828;
  --c-prim-soft:   #1e3252;
  --c-accent:      #ea7317;   /* naranja industrial */
  --c-accent-dark: #c25e0d;
  --c-text:        #2b3445;
  --c-muted:       #64748b;
  --c-line:        #e3e8ef;
  --c-bg:          #ffffff;
  --c-bg-alt:      #f4f7fb;
  --c-bg-alt2:     #eef3f9;
  --radius:        10px;
  --shadow-sm:     0 1px 3px rgba(16,32,54,.08), 0 1px 2px rgba(16,32,54,.06);
  --shadow:        0 6px 20px rgba(16,32,54,.10);
  --shadow-lg:     0 18px 40px rgba(16,32,54,.16);
  --maxw:          1180px;
  --font:          "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ligero ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent-dark); text-decoration: none; }
a:hover { color: var(--c-accent); }
ul { padding-left: 1.1rem; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

/* ---------- Encabezado / Navegación ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--c-line);
  box-shadow: var(--shadow-sm);
  backdrop-filter: saturate(180%) blur(8px);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--c-prim); font-weight: 800; }
.brand img { height: 46px; width: auto; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-txt small { color: var(--c-muted); font-weight: 600; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.brand-txt strong { font-size: 1.18rem; letter-spacing: -.01em; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; }
.nav-links > li { position: relative; }
.nav-links a {
  display: block; padding: 9px 13px; border-radius: 8px;
  color: var(--c-text); font-weight: 600; font-size: .96rem;
}
.nav-links a:hover, .nav-links li:hover > a { background: var(--c-bg-alt); color: var(--c-prim); }
.nav-links a[aria-current="page"] { color: var(--c-accent-dark); }

/* dropdown */
.has-drop > a::after { content: "▾"; font-size: .7em; margin-left: 5px; opacity: .6; }
.dropdown {
  position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  min-width: 300px; max-height: 0; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .18s ease; padding: 6px;
  columns: 1;
}
.has-drop:hover .dropdown, .has-drop:focus-within .dropdown {
  max-height: 78vh; overflow-y: auto; opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a { padding: 8px 11px; font-size: .9rem; font-weight: 500; border-radius: 7px; }
.dropdown a:hover { background: var(--c-bg-alt); }

.nav-cta {
  background: var(--c-accent); color: #fff !important; padding: 10px 18px !important;
  border-radius: 999px; font-weight: 700; box-shadow: 0 4px 12px rgba(234,115,23,.35);
}
.nav-cta:hover { background: var(--c-accent-dark); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--c-prim); border-radius: 3px; margin: 5px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(120deg, rgba(13,24,40,.92) 0%, rgba(20,35,59,.78) 55%, rgba(30,50,82,.55) 100%),
    radial-gradient(1200px 500px at 80% -10%, rgba(234,115,23,.35), transparent 60%),
    var(--c-prim);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-block: 72px 80px; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.08; letter-spacing: -.02em; font-weight: 800; }
.hero h1 .hl { color: var(--c-accent); }
.hero p.lead { font-size: 1.18rem; color: #cdd8e8; margin-top: 18px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-stats { display: flex; gap: 34px; margin-top: 42px; flex-wrap: wrap; }
.hero-stats .stat strong { display: block; font-size: 2rem; color: var(--c-accent); font-weight: 800; }
.hero-stats .stat span { color: #b9c6db; font-size: .92rem; }
.hero-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px; padding: 18px; box-shadow: var(--shadow-lg); backdrop-filter: blur(4px);
}
.hero-card img { border-radius: 12px; width: 100%; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; transition: .18s ease; text-align: center;
}
.btn-primary { background: var(--c-accent); color: #fff; box-shadow: 0 6px 16px rgba(234,115,23,.35); }
.btn-primary:hover { background: var(--c-accent-dark); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-outline { background: #fff; color: var(--c-prim); border-color: var(--c-line); }
.btn-outline:hover { border-color: var(--c-accent); color: var(--c-accent-dark); transform: translateY(-2px); }

/* ---------- Secciones ---------- */
section { padding-block: 64px; }
.section-alt { background: var(--c-bg-alt); }
.section-dark { background: var(--c-prim); color: #e7eef7; }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--c-accent-dark); margin-bottom: 12px;
}
h2.section-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); color: var(--c-prim); letter-spacing: -.02em; line-height: 1.15; }
.section-head p { color: var(--c-muted); margin-top: 12px; font-size: 1.06rem; }

/* ---------- Tarjetas de productos ---------- */
.grid { display: grid; gap: 26px; }
.grid-products { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: .2s ease; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #d7e0ec; }
.card-media { aspect-ratio: 16/10; background: var(--c-bg-alt2); overflow: hidden; display: grid; place-items: center; padding: 16px; }
.card-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 1.13rem; color: var(--c-prim); }
.card-body p { color: var(--c-muted); font-size: .95rem; flex: 1; }
.card-link { font-weight: 700; color: var(--c-accent-dark); display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.card-link::after { content: "→"; transition: .18s; }
.card:hover .card-link::after { transform: translateX(4px); }

/* ---------- Detalle de producto ---------- */
.product-hero { padding-block: 50px 40px; background: var(--c-bg-alt); border-bottom: 1px solid var(--c-line); }
.breadcrumb { font-size: .88rem; color: var(--c-muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--c-muted); }
.breadcrumb a:hover { color: var(--c-accent-dark); }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.product-media {
  background: #fff; border: 1px solid var(--c-line); border-radius: 14px; padding: 26px;
  box-shadow: var(--shadow); display: grid; place-items: center; min-height: 320px; position: sticky; top: 90px;
}
.product-media img { max-height: 440px; object-fit: contain; }
.product-info h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--c-prim); letter-spacing: -.02em; }
.tag {
  display: inline-block; background: var(--c-bg-alt2); color: var(--c-prim);
  padding: 5px 13px; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .03em;
  text-transform: uppercase; margin-bottom: 14px;
}
.product-info .desc { font-size: 1.08rem; margin-block: 16px 26px; color: #44566e; }

.specs { list-style: none; padding: 0; display: grid; gap: 2px; background: var(--c-line); border-radius: 12px; overflow: hidden; }
.specs li { background: #fff; padding: 12px 16px; font-size: .96rem; display: flex; gap: 10px; }
.specs li::before { content: "▹"; color: var(--c-accent); font-weight: 800; }

/* ---------- Features / columnas ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.feature { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.feature .ico { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; background: var(--c-bg-alt2); margin-bottom: 14px; }
.feature .ico img { width: 30px; height: 30px; object-fit: contain; }
.feature h3 { color: var(--c-prim); font-size: 1.08rem; margin-bottom: 6px; }
.feature p { color: var(--c-muted); font-size: .95rem; }

/* ---------- Bloques de texto ---------- */
.prose { max-width: 820px; }
.prose p { margin-bottom: 1rem; color: #44566e; }
.prose h2 { color: var(--c-prim); margin: 1.6rem 0 .7rem; font-size: 1.5rem; }
.prose h3 { color: var(--c-prim-soft); margin: 1.3rem 0 .5rem; font-size: 1.2rem; }
.prose ul { margin: .4rem 0 1.2rem; color: #44566e; }
.prose ul li { margin-bottom: .35rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.split.reverse .split-media { order: 2; }

/* Cita resaltada */
.callout {
  background: linear-gradient(120deg, var(--c-prim), var(--c-prim-soft));
  color: #fff; border-radius: 16px; padding: 34px; box-shadow: var(--shadow);
}
.callout h3 { color: #fff; font-size: 1.4rem; margin-bottom: 8px; }
.callout p { color: #cdd8e8; }

/* Normas / badges */
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  background: #fff; border: 1px solid var(--c-line); border-radius: 999px;
  padding: 7px 15px; font-weight: 700; font-size: .85rem; color: var(--c-prim); box-shadow: var(--shadow-sm);
}

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--c-line); border-radius: 14px; padding: 30px; box-shadow: var(--shadow-sm); }
.contact-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.contact-item:last-child { border-bottom: 0; }
.contact-item .ci-ico { width: 42px; height: 42px; border-radius: 10px; background: var(--c-bg-alt2); display: grid; place-items: center; flex: none; color: var(--c-accent-dark); font-size: 1.2rem; }
.contact-item .ci-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); font-weight: 700; }
.contact-item .ci-value { font-size: 1.05rem; color: var(--c-prim); font-weight: 600; }

/* ---------- Pie de página ---------- */
.site-footer { background: var(--c-prim-dark); color: #b7c4d8; padding-block: 56px 26px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 52px; margin-bottom: 16px; }
.footer-brand p { color: #9fb0c8; font-size: .95rem; max-width: 340px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; letter-spacing: .02em; }
.footer-links { list-style: none; padding: 0; display: grid; gap: 9px; }
.footer-links a { color: #b7c4d8; font-size: .94rem; }
.footer-links a:hover { color: var(--c-accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; color: #8295ad; }

/* ---------- Encabezado de página interna ---------- */
.page-banner { background: var(--c-prim); color: #fff; padding-block: 52px; position: relative; overflow: hidden; }
.page-banner::after { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 280px at 85% -30%, rgba(234,115,23,.3), transparent 60%); pointer-events: none; }
.page-banner h1 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); letter-spacing: -.02em; position: relative; }
.page-banner p { color: #c4d1e3; margin-top: 10px; max-width: 640px; position: relative; }

/* ---------- Video ---------- */
.video-wrap { position: relative; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video-wrap video { width: 100%; display: block; }

/* ---------- Utilidades ---------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.lead-muted { color: var(--c-muted); font-size: 1.08rem; }

/* ---------- Responsivo ---------- */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; padding-block: 50px 56px; }
  .hero-card { order: -1; max-width: 460px; }
  .product-layout { grid-template-columns: 1fr; }
  .product-media { position: static; min-height: 260px; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse .split-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--c-line); box-shadow: var(--shadow-lg);
    padding: 12px; gap: 2px; max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav.open .nav-links { max-height: 82vh; overflow-y: auto; }
  .nav-links a { padding: 13px 12px; border-radius: 8px; }
  .dropdown { position: static; max-height: none; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; min-width: 0; padding: 0 0 0 10px; background: var(--c-bg-alt); margin: 4px 0; border-radius: 8px; }
  .has-drop > a::after { content: ""; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .hero-stats { gap: 22px; }
}
