/* ==========================================================
   LFA & Suministros Mineros — estilos
   Para cambiar colores o tipografías, edite las variables de :root
   ========================================================== */
:root {
  --pozo:   #06294e;   /* azul marino del logo */
  --pozo-2: #0c3b6b;
  --agua:   #3b8ed0;   /* azul claro de apoyo */
  --agua-2: #8cc2f0;
  --pvc:    #f4f6f7;   /* blanco PVC */
  --pvc-2:  #e6ebee;
  --acero:  #5d7384;
  --ambar:  #f3540a;   /* naranja del logo: llamadas a la acción */
  --texto:  #14243a;

  --f-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-body: "Source Sans 3", system-ui, Arial, sans-serif;

  --radius: 10px;
  --max: 1160px;
  --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; font-family: var(--f-body); font-size: 18px; line-height: 1.65;
  color: var(--texto); background: #fff; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--ambar); outline-offset: 3px; }

.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }

/* ---------- Encabezado ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--pvc-2); transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(13,34,49,.12); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 58px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; font-weight: 600; font-size: 16px; }
.nav a { text-decoration: none; color: var(--pozo); position: relative; padding: 4px 0; }
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--agua); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:not(.nav-cta):hover::after, .nav a.active::after { transform: scaleX(1); }
.nav-cta { background: var(--pozo); color: #fff !important; padding: 9px 20px !important; border-radius: 999px; transition: background .2s; }
.nav-cta:hover { background: var(--agua); }

.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--pozo); margin: 5px auto; transition: transform .25s, opacity .25s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Medidor de profundidad ---------- */
.gauge {
  position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 20;
  display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none;
}
.gauge-line { width: 3px; height: 160px; background: rgba(93,115,132,.3); border-radius: 3px; overflow: hidden; }
.gauge-line i { display: block; width: 100%; height: 0%; background: var(--agua); transition: height .1s linear; }
.gauge-val { font-family: var(--f-display); font-size: 13px; font-weight: 700; color: var(--pozo); background: rgba(255,255,255,.85); padding: 2px 6px; border-radius: 4px; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1200px 600px at 85% 20%, var(--pozo-2), var(--pozo) 60%);
  color: #fff; padding: calc(var(--header-h) + 64px) 0 72px; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.kicker { color: var(--agua-2); font-weight: 600; margin-bottom: 14px; }
.hero h1 { font-size: clamp(40px, 6.2vw, 78px); font-weight: 800; font-stretch: 85%; margin-bottom: 22px; }
.lead { font-size: 21px; color: #cfdde6; max-width: 56ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 32px 0 44px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; border-top: 1px solid rgba(255,255,255,.18); padding-top: 24px; }
.hero-facts dt { font-size: 14px; color: var(--agua-2); }
.hero-facts dd { margin: 0; }
.hero-facts dd:not(.sub) { font-family: var(--f-display); font-size: 28px; font-weight: 800; }
.hero-facts .sub { font-size: 14px; color: #a9bcc9; line-height: 1.35; }

/* Esquema del pozo */
.well { margin: 0; }
.well svg { width: 100%; max-height: 560px; }
.well figcaption { font-size: 14px; color: #a9bcc9; margin-top: 10px; text-align: center; }
.strata rect:nth-child(1) { fill: #14487c; }
.strata rect:nth-child(2) { fill: #103f6c; }
.strata rect:nth-child(3) { fill: #0c3560; }
.strata rect:nth-child(4) { fill: #082d52; }
.bore { fill: #031528; }
.gravel rect { fill: #8c9ba5; opacity: .55; }
.pipe rect, .pipe .cone { fill: #f2f5f6; }
.pipe .slotted { fill: #dfe6e9; }
.pipe .joint { fill: #b9c6cd; }
.pipe .cone { fill: #c9d4d9; }
.cap { fill: var(--ambar); }
.water { fill: none; stroke: var(--agua-2); stroke-width: 3; stroke-linecap: round; }
.ticks line { stroke: #7f96a6; stroke-width: 1.5; }
.ticks text { fill: #a9bcc9; font: 600 13px var(--f-display); }
/* Única animación de entrada: la tubería desciende */
.well .pipe, .well .cap { animation: descend 1.6s cubic-bezier(.2,.8,.2,1) both; }
.well .cap { animation-delay: .1s; }
@keyframes descend { from { transform: translateY(-120px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Botones ---------- */
.btn {
  display: inline-block; font: 700 17px var(--f-body); text-decoration: none; cursor: pointer;
  padding: 14px 28px; border-radius: 999px; border: 2px solid transparent; transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ambar); color: #fff; }
.btn-primary:hover { background: #ff6a24; }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-wa { background: #25d366; color: #05301a; margin: 8px 0 24px; }

/* ---------- Secciones ---------- */
.section { padding: 96px 0; }
.section-tint { background: var(--pvc); }
.section-dark { background: var(--pozo); color: #e8eff4; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; font-stretch: 88%; margin-bottom: 12px; }
.section-head p { color: var(--acero); font-size: 20px; margin: 0; }
.section-dark .section-head p { color: #a9bcc9; }

.prose p { max-width: 62ch; }
.prose h3 { font-size: 28px; margin-bottom: 14px; font-weight: 700; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.photo { margin: 0; }
.photo img { width: 100%; border-radius: var(--radius); box-shadow: 0 18px 40px rgba(13,34,49,.18); }

.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 72px; }
.mv-card { background: var(--pvc); border-radius: var(--radius); overflow: hidden; }
.mv-card img { width: 100%; height: 220px; object-fit: cover; }
.mv-card div { padding: 28px; }
.mv-card h3 { font-size: 28px; margin-bottom: 10px; }
.mv-card p { margin: 0; }

/* ---------- Líneas de negocio ---------- */
.lines { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.line {
  text-decoration: none; background: var(--pozo-2); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.08); transition: transform .25s, border-color .25s;
}
.line:hover { transform: translateY(-6px); border-color: var(--agua); }
.line img { width: 100%; height: 200px; object-fit: cover; transition: transform .5s; }
.line:hover img { transform: scale(1.05); }
.line { overflow: hidden; }
.line h3 { font-size: 24px; padding: 22px 24px 6px; }
.line p { padding: 0 24px 26px; margin: 0; color: #a9bcc9; }

/* ---------- Productos ---------- */
.product { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; margin-bottom: 80px; }
.product:last-child { margin-bottom: 0; }
.product.reverse { grid-template-columns: .9fr 1.1fr; }
.product.reverse .prose { order: 2; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.panel { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: 0 10px 30px rgba(13,34,49,.08); }
.panel h3 { font-size: 28px; margin: 20px 0 10px; }
.panel > .photo img { box-shadow: none; aspect-ratio: 16/10; object-fit: cover; }
.panel .pair { margin-top: 20px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: var(--pozo); color: #fff; padding: 6px 16px; border-radius: 999px; font-weight: 600; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pair img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.pair.tall img { aspect-ratio: 3/4; }

/* ---------- Accesorios ---------- */
.acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.acc { border: 1px solid var(--pvc-2); border-radius: var(--radius); overflow: hidden; background: #fff; }
.acc img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--pvc); }
.acc h3 { font-size: 22px; padding: 20px 22px 6px; }
.acc p { padding: 0 22px 24px; margin: 0; color: #43586a; }

/* ---------- Tabla técnica ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tabs button {
  font: 600 16px var(--f-body); color: #cfdde6; background: transparent; cursor: pointer;
  border: 1px solid rgba(255,255,255,.25); padding: 8px 20px; border-radius: 999px; transition: all .2s;
}
.tabs button[aria-selected="true"] { background: var(--agua); border-color: var(--agua); color: #fff; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.12); }
.spec { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; min-width: 960px; }
.spec th, .spec td { padding: 10px 12px; text-align: right; white-space: nowrap; }
.spec th { background: var(--pozo-2); font-weight: 600; color: #fff; text-align: center; border-bottom: 1px solid rgba(255,255,255,.12); }
.spec th[colspan] { border-left: 1px solid rgba(255,255,255,.12); }
.spec td:first-child, .spec td:nth-child(3) { text-align: left; }
.spec tbody tr:nth-child(even) { background: rgba(255,255,255,.04); }
.spec tbody tr:hover { background: rgba(31,143,166,.22); }
.spec tbody td:first-child { font-weight: 700; color: var(--agua-2); }
.spec .hide { display: none; }
.norms { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 48px; }
.norms h3 { font-size: 24px; margin-bottom: 8px; color: #fff; }
.norms p { color: #a9bcc9; margin: 0; }

/* ---------- Calidad ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 64px; }
.stat { border-left: 4px solid var(--agua); padding: 4px 0 4px 20px; }
.stat b { display: block; font-family: var(--f-display); font-size: clamp(44px, 6vw, 72px); font-weight: 800; line-height: 1; color: var(--pozo); font-variant-numeric: tabular-nums; }
.stat span { color: #43586a; display: block; margin-top: 8px; max-width: 26ch; }

/* ---------- Clientes ---------- */
.sub-title { font-size: 24px; margin: 8px 0 24px; }
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; margin-bottom: 56px; }
.logos img {
  width: 100%; height: 100px; object-fit: contain; background: #fff; padding: 16px; border-radius: var(--radius);
  filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s, transform .3s;
}
.logos img:hover { filter: none; opacity: 1; transform: translateY(-3px); }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.gallery button:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.gallery button:nth-child(2), .gallery button:nth-child(3) { grid-column: span 3; }
.gallery button:nth-child(4), .gallery button:nth-child(5) { grid-column: span 3; }
.gallery img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; transition: transform .5s; }
.gallery button:hover img { transform: scale(1.06); }

.lightbox { position: fixed; inset: 0; background: rgba(5,15,22,.92); z-index: 100; display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; max-width: 92vw; border-radius: var(--radius); }
.lb-close { position: absolute; top: 14px; right: 22px; font-size: 44px; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 16px; }
.form .full { grid-column: 1 / -1; }
.form input, .form textarea {
  font: 400 17px var(--f-body); padding: 13px 14px; border-radius: 8px; color: #fff;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.22);
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--agua-2); background: rgba(255,255,255,.12); }
.form .btn { grid-column: 1 / -1; justify-self: start; }
.form-msg { grid-column: 1 / -1; margin: 0; min-height: 1.4em; color: var(--agua-2); }
.form-msg.error { color: #ff9b8a; }
.contact-info h3 { font-size: 26px; margin-bottom: 10px; }
.contact-info address { font-style: normal; color: #cfdde6; margin-bottom: 14px; }
.contact-info a:not(.btn) { color: var(--agua-2); }
.map { border-radius: var(--radius); overflow: hidden; height: 280px; }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Pie ---------- */
.footer { background: #031528; color: #a9bcc9; padding: 36px 0; font-size: 15px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer img { height: 54px; width: auto; }
.footer p { margin: 0; }

.wa-float {
  position: fixed; left: 18px; bottom: 18px; z-index: 40; width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.3); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Adaptable ---------- */
@media (max-width: 960px) {
  .hero-grid, .split, .product, .product.reverse, .duo, .mv, .contact-grid, .norms { grid-template-columns: 1fr; }
  .product.reverse .prose { order: 0; }
  .well { max-width: 300px; margin-inline: auto; }
  .stats { grid-template-columns: 1fr; }
  .gauge { display: none; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery button:nth-child(n) { grid-column: auto; grid-row: auto; }
  .gallery button:nth-child(1) { grid-column: 1 / -1; }

  .menu-btn { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 8px 20px 20px; border-bottom: 1px solid var(--pvc-2);
    transform: translateY(-120%); transition: transform .3s; box-shadow: 0 16px 30px rgba(13,34,49,.15);
  }
  .nav.open { transform: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--pvc-2); }
  .nav-cta { text-align: center; margin-top: 14px; border-bottom: 0 !important; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .section { padding: 68px 0; }
  .hero-facts { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
