/*
 * TUBERSOLD SAS · Acero de Precisión
 * Sistema visual global: azul marino institucional, gris acero, carbón y blanco técnico.
 * La textura, la retícula y los marcos evocan planos y señalética de planta.
 */

:root {
  --navy: #172455;
  --navy-deep: #0d1430;
  --navy-soft: #24346f;
  --pipe-blue: #2f5bff;
  --steel: #a8b0bd;
  --steel-light: #dbe0e8;
  --carbon: #111522;
  --ink: #18202e;
  --paper: #f4f6f9;
  --white: #ffffff;
  --line: rgba(24, 32, 46, .13);
  --line-light: rgba(255, 255, 255, .18);
  --radius: .8rem;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --shadow: 0 18px 50px rgba(13, 20, 48, .12);
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.section-pad { padding: 100px 0; }

.topline { background: var(--carbon); color: rgba(255,255,255,.7); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.top-line-inner { min-height: 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.top-line-contacts { display: flex; align-items: center; gap: 18px; }
.top-contact-link { transition: color .2s ease; }
.top-contact-link:hover { color: white; }
.status-dot { width: 6px; height: 6px; margin-right: 7px; display: inline-block; border-radius: 50%; background: #62d89a; box-shadow: 0 0 0 3px rgba(98,216,154,.12); }

/* Site Header - Estilo más compacto */
.site-header { position: fixed; z-index: 100; top: 30px; right: 0; left: 0; color: var(--white); transition: background .25s ease, box-shadow .25s ease, color .25s ease, top .25s ease; }
.site-header--scrolled { top: 0; background: rgba(13,20,48,.96); box-shadow: 0 8px 30px rgba(13,20,48,.25); backdrop-filter: blur(18px); }
.header-inner { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; color: inherit; background: transparent; text-align: left; }
.brand-mark-frame { width: 38px; height: 38px; padding: 2px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.94); border-radius: 4px; }
.brand-mark-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: 20px; font-weight: 700; letter-spacing: .05em; line-height: 1; }
.brand-copy small { font-size: 8px; letter-spacing: .12em; opacity: .75; }
.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; color: inherit; font-size: 12px; font-weight: 600; letter-spacing: .02em; transition: opacity .2s ease, transform .2s var(--ease-out); }
.main-nav a:hover { opacity: .8; transform: translateY(-1px); }
.main-nav .nav-cta { margin-left: 8px; padding: 8px 14px; background: var(--pipe-blue); color: white; border-radius: 4px; font-weight: 700; }
.main-nav .nav-wa-btn { background: linear-gradient(135deg, #25D366 0%, #128C7E 100%); box-shadow: 0 4px 14px rgba(37,211,102,.3); }
.main-nav .nav-wa-btn:hover { background: linear-gradient(135deg, #2ce470 0%, #15a090 100%); opacity: 1; }
.menu-toggle { display: none; background: transparent; color: inherit; }

/* Hero Section con Canvas 3D */
.hero-section { position: relative; min-height: 680px; display: flex; align-items: center; overflow: hidden; color: white; background: var(--navy-deep); isolation: isolate; }
.hero-image { position: absolute; z-index: -4; inset: 0; background: url("../IMG/tubersold-hero.jpg") center/cover; transform: scale(1.02); opacity: .35; }
.hero-overlay { position: absolute; z-index: -3; inset: 0; background: linear-gradient(90deg, rgba(13,20,48,.98) 0%, rgba(13,20,48,.88) 45%, rgba(13,20,48,.45) 75%, rgba(13,20,48,.7) 100%); }
.hero-section::after { position: absolute; z-index: -2; inset: 0; pointer-events: none; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 72px 72px; content: ""; mask-image: linear-gradient(90deg, #000, transparent 75%); }

.hero-3d-wrapper { position: absolute; top: 0; right: 0; width: 55%; height: 100%; z-index: -1; pointer-events: auto; }
#hero-3d-canvas { width: 100%; height: 100%; display: block; cursor: grab; }
#hero-3d-canvas:active { cursor: grabbing; }
.hero-3d-hint { position: absolute; bottom: 35px; right: 35px; font-family: "Courier New", Courier, monospace; font-size: 9px; color: rgba(144,165,255,.7); letter-spacing: .1em; text-transform: uppercase; background: rgba(13,20,48,.75); padding: 5px 10px; border: 1px solid rgba(255,255,255,.15); backdrop-filter: blur(10px); border-radius: 3px; pointer-events: none; }

.hero-grid { min-height: 680px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .65fr); align-items: center; gap: 60px; padding-top: 50px; }
.hero-copy { max-width: 640px; }

.hero-tech-badge { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px; border: 1px solid rgba(144,165,255,.35); background: rgba(13,20,48,.6); backdrop-filter: blur(12px); margin-bottom: 22px; font-size: 11px; letter-spacing: .08em; border-radius: 3px; }
.hero-tech-badge strong { color: white; font-family: Impact, Haettenschweiler, sans-serif; font-size: 15px; letter-spacing: .06em; }
.hero-tech-badge span { color: rgba(255,255,255,.8); font-size: 10px; }

.eyebrow { margin: 0 0 20px; color: var(--pipe-blue); font-size: 11px; font-weight: 700; letter-spacing: .17em; line-height: 1; text-transform: uppercase; }
.eyebrow span { margin-right: 13px; font-family: "Courier New", Courier, monospace; font-size: 10px; color: var(--steel); }
.eyebrow-light { color: rgba(255,255,255,.74); }
.eyebrow-light span { color: #8fa6ff; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; letter-spacing: -.025em; }
h1 { margin-bottom: 20px; font-size: clamp(52px, 7vw, 92px); font-weight: 700; line-height: .88; }
h1 em, h2 em { color: #7d9aff; font-style: normal; }
.hero-intro { max-width: 485px; margin-bottom: 30px; color: rgba(255,255,255,.78); font-size: 16px; line-height: 1.6; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }

.button { min-height: 48px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .04em; transition: transform .18s var(--ease-out), background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease; border-radius: 4px; }
.button:active { transform: scale(.97); }
.button-primary { background: var(--pipe-blue); color: white; box-shadow: 0 12px 26px rgba(47,91,255,.22); }
.button-primary:hover { background: #4d73ff; transform: translateY(-2px); }

.button-whatsapp { background: linear-gradient(135deg, #25D366 0%, #128C7E 100%); color: white; box-shadow: 0 8px 24px rgba(37,211,102,.35); border: 0; }
.button-whatsapp:hover { background: linear-gradient(135deg, #2ce470 0%, #15a090 100%); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37,211,102,.45); }
.wa-icon { vertical-align: middle; }

.button-ghost-light, .button-outline-light { border: 1px solid rgba(255,255,255,.36); color: white; background: rgba(255,255,255,.05); }
.button-ghost-light:hover, .button-outline-light:hover { border-color: rgba(255,255,255,.75); background: rgba(255,255,255,.12); transform: translateY(-2px); }
.button-sm { min-height: 38px; padding: 0 14px; font-size: 11px; }

.hero-spec-card { position: relative; width: min(100%, 350px); justify-self: end; padding: 14px; border: 1px solid rgba(255,255,255,.28); background: rgba(13,20,48,.45); backdrop-filter: blur(14px); }
.hero-spec-card::before, .hero-spec-card::after { position: absolute; width: 42px; height: 42px; border-color: #90a5ff; border-style: solid; content: ""; }
.hero-spec-card::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.hero-spec-card::after { right: -1px; bottom: -1px; border-width: 0 1px 1px 0; }
.spec-topline, .spec-bottomline { display: flex; align-items: center; justify-content: space-between; color: rgba(255,255,255,.58); font-family: "Courier New", Courier, monospace; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.spec-graphic { position: relative; height: 280px; margin: 10px 0; display: grid; place-items: center; overflow: hidden; background-image: linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px); background-size: 38px 38px; }
.spec-circle { position: absolute; border: 1px solid rgba(159,177,255,.8); border-radius: 50%; }
.spec-circle--outer { width: 200px; height: 200px; box-shadow: 0 0 0 16px rgba(47,91,255,.07), 0 0 0 17px rgba(159,177,255,.22); }
.spec-circle--inner { width: 100px; height: 100px; border-color: rgba(255,255,255,.7); background: rgba(13,20,48,.35); }
.spec-center-line { width: 74%; height: 1px; background: rgba(255,255,255,.7); }
.spec-crosshair { position: absolute; width: 9px; height: 9px; border: 1px solid #a6b5ff; }
.spec-crosshair--one { top: 25%; left: 17%; }
.spec-crosshair--two { right: 17%; bottom: 25%; }
.spec-value { color: #9eb0ff; }
.hero-footnote { position: absolute; right: 24px; bottom: 20px; left: 24px; display: flex; align-items: center; justify-content: space-between; color: rgba(255,255,255,.48); font-family: "Courier New", Courier, monospace; font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.hero-scroll-line { width: 130px; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.6)); }

.capability-strip { position: relative; z-index: 1; margin-top: -1px; background: var(--white); border-bottom: 1px solid var(--line); }
.capability-grid { min-height: 100px; display: grid; grid-template-columns: 1.45fr repeat(3, 1fr); align-items: stretch; }
.capability-intro, .capability-item { display: flex; align-items: center; gap: 17px; border-right: 1px solid var(--line); }
.capability-intro { padding-right: 30px; justify-content: space-between; }
.section-index { color: var(--pipe-blue); font-family: "Courier New", Courier, monospace; font-size: 10px; letter-spacing: .08em; }
.capability-intro strong { font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: 20px; line-height: .95; }
.capability-item { padding: 0 27px; color: var(--navy); font-size: 12px; line-height: 1.05; }
.capability-item b { font-weight: 700; }

.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 50px; }
.services-heading { margin-bottom: 50px; }
h2 { margin-bottom: 0; color: var(--navy); font-size: clamp(42px, 5.5vw, 70px); font-weight: 700; line-height: .92; }
.heading-aside { max-width: 320px; margin-bottom: 2px; color: #687284; font-size: 14px; line-height: 1.6; }
.service-toolbar { display: flex; align-items: center; gap: 30px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.filter-label { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.filter-label span { color: var(--steel); }
.filter-list { display: flex; flex-wrap: wrap; gap: 4px; }
.filter-button { padding: 7px 10px; background: transparent; color: #7d8694; font-size: 11px; transition: color .18s ease, background .18s ease; }
.filter-button:hover, .filter-button.is-active { background: var(--navy); color: white; }
.result-count { margin-left: auto; color: var(--steel); font-family: "Courier New", Courier, monospace; font-size: 10px; }
/* CATÁLOGO DE SERVICIOS - REJILLA ORGANIZADA CON TEXTOS SIEMPRE VISIBLES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 35px;
}

/* 3D Tilt Cards General */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), border-color 0.2s ease;
  will-change: transform;
}

.service-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 4px 18px rgba(13,20,48,.04);
  position: relative;
}

/* CORRECCIÓN DE FILTRO DE CATEGORÍAS */
.service-card[hidden] {
  display: none !important;
}

.service-card:hover {
  background: white;
  border-color: #90a5ff;
  box-shadow: 0 16px 36px rgba(13,20,48,.12);
  transform: translateY(-4px);
  z-index: 2;
}

.service-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0;
  margin-bottom: 16px;
  background: transparent;
  color: var(--navy);
  text-align: left;
  width: 100%;
  border: 0;
  cursor: pointer;
}

.service-number {
  color: var(--pipe-blue);
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  font-weight: 700;
  background: rgba(47,91,255,.08);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(47,91,255,.2);
  white-space: nowrap;
}

.service-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: grid;
  place-items: center;
  color: var(--pipe-blue);
  border: 1px solid rgba(47,91,255,.24);
  background: rgba(47,91,255,.06);
  border-radius: 6px;
  font-size: 15px;
}

.service-title {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--navy);
  margin: 0;
  flex-grow: 1;
}

.service-toggle {
  display: none; /* Ocultar ícono accordion para mantener todas las tarjetas organizadas */
}

/* CUERPO DE TARJETA SIEMPRE VISIBLE Y ORGANIZADO */
.service-card-body {
  display: flex !important;
  flex-direction: column;
  flex-grow: 1;
  padding: 0;
  margin: 0;
}

.service-card-body p {
  margin-bottom: 16px;
  color: #525e70;
  font-size: 13.5px;
  line-height: 1.6;
  flex-grow: 1;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.tag-row span {
  padding: 4px 9px;
  border: 1px solid rgba(24,32,46,.12);
  color: #4b5563;
  font-family: "Courier New", Courier, monospace;
  font-size: 9.5px;
  font-weight: 600;
  background: #f8fafc;
  border-radius: 4px;
}

/* BOTONES DE ACCIÓN PARALELOS Y ESTÉTICOS */
.service-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.service-card-actions .button {
  width: 100%;
  justify-content: center;
  text-align: center;
  font-size: 11px;
  padding: 10px 10px;
  border-radius: 4px;
}

.button-info {
  background: var(--navy);
  color: white;
  border: 1px solid rgba(144,165,255,.3);
  box-shadow: 0 4px 12px rgba(13,20,48,.15);
}

.button-info:hover {
  background: var(--navy-soft);
  border-color: #90a5ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(13,20,48,.25);
}

/* ESTILOS PARA MODAL DE SUBPÁGINA Y VISTA DE DETALLE 3D */
.service-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

.service-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.service-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 16, 36, 0.88);
  backdrop-filter: blur(12px);
}

.service-modal-card {
  position: relative;
  z-index: 2;
  width: min(960px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--navy-deep);
  color: white;
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  border-radius: 8px;
  padding: 36px;
  transform: scale(0.95) translateY(20px);
  transition: transform .3s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-modal-overlay.is-active .service-modal-card {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.08);
  color: white;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  font-size: 16px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.modal-close-btn:hover {
  background: rgba(255,255,255,.2);
  transform: rotate(90deg);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.modal-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(47,91,255,.15);
  border: 1px solid rgba(144,165,255,.3);
  color: #90a5ff;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  letter-spacing: .1em;
  margin-bottom: 16px;
  border-radius: 3px;
}

.modal-info-col h2 {
  font-family: Impact, Haettenschweiler, sans-serif;
  font-size: 32px;
  color: white;
  margin-bottom: 12px;
  line-height: 1.05;
}

.modal-lead {
  color: rgba(255,255,255,.8);
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 24px;
}

.modal-detail-block {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  padding: 18px;
  border-radius: 6px;
  margin-bottom: 24px;
}
.modal-detail-block h4 {
  font-family: Impact, Haettenschweiler, sans-serif;
  font-size: 18px;
  color: #90a5ff;
  margin: 0 0 8px;
  letter-spacing: .03em;
}
.modal-detail-block p {
  color: rgba(255,255,255,.72);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

.modal-specs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.12);
  margin-bottom: 24px;
  font-size: 11px;
}
.modal-specs-row span {
  display: block;
  color: rgba(255,255,255,.5);
  font-family: "Courier New", Courier, monospace;
  margin-bottom: 4px;
}
.modal-specs-row strong {
  color: #62d89a;
  font-size: 12px;
}

.modal-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.modal-3d-box {
  position: relative;
  width: 100%;
  height: 380px;
  background: rgba(13,20,48,.6);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px;
  overflow: hidden;
}

#modal-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}
#modal-3d-canvas:active { cursor: grabbing; }

.modal-3d-tag {
  position: absolute;
  bottom: 14px;
  right: 14px;
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  color: #90a5ff;
  background: rgba(13,20,48,.8);
  padding: 4px 8px;
  border: 1px solid rgba(144,165,255,.3);
  pointer-events: none;
}

@media (max-width: 850px) {
  .modal-grid { grid-template-columns: 1fr; gap: 24px; }
  .modal-3d-box { height: 260px; }
  .service-modal-card { padding: 24px 18px; }
  .modal-info-col h2 { font-size: 26px; }
}

/* ZONA 1 (NUEVA): PROYECTOS & SECTORES INDUSTRIALES */
.projects-section { background: var(--navy-deep); color: white; position: relative; overflow: hidden; }
.projects-section::before { position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px); background-size: 60px 60px; content: ""; mask-image: linear-gradient(180deg, #000, transparent); }
.heading-aside-light { color: rgba(255,255,255,.65); }

.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 45px; }
.project-card { border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.04); backdrop-filter: blur(10px); display: flex; flex-direction: column; overflow: hidden; border-radius: 4px; }
.project-card-image { height: 210px; background-size: cover; background-position: center; position: relative; }
.project-card-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(13,20,48,.95) 100%); }
.project-tag { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 5px 10px; background: rgba(13,20,48,.85); color: #90a5ff; font-family: "Courier New", Courier, monospace; font-size: 10px; border: 1px solid rgba(144,165,255,.3); }

.project-card-content { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.project-card-content h3 { font-family: Impact, Haettenschweiler, sans-serif; font-size: 24px; margin-bottom: 10px; color: white; letter-spacing: .02em; }
.project-card-content p { color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.55; margin-bottom: 20px; flex-grow: 1; }
.project-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 20px; font-size: 11px; }
.project-specs span { color: rgba(255,255,255,.5); font-family: "Courier New", Courier, monospace; display: block; }
.project-specs strong { color: #90a5ff; font-size: 11px; }

/* ZONA 2 (NUEVA): ESTÁNDARES & COTIZADOR INTERACTIVO */
.quality-section { background: var(--paper); color: var(--navy); }
.quality-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.quality-info h2 { color: var(--navy); }
.quality-info > p { color: #687284; font-size: 15px; line-height: 1.6; margin-top: 15px; }

.standards-list { display: grid; gap: 12px; margin-top: 28px; }
.standard-badge { padding: 14px 18px; background: white; border: 1px solid var(--line); border-left: 4px solid var(--pipe-blue); display: flex; flex-direction: column; gap: 4px; box-shadow: 0 4px 15px rgba(0,0,0,.03); border-radius: 0 4px 4px 0; }
.standard-badge strong { font-family: Impact, Haettenschweiler, sans-serif; font-size: 18px; color: var(--navy); letter-spacing: .04em; }
.standard-badge span { color: #687284; font-size: 12px; }

.estimator-card { background: var(--navy); color: white; padding: 32px; border: 1px solid rgba(255,255,255,.2); box-shadow: var(--shadow); position: relative; border-radius: 6px; }
.estimator-tag { font-family: "Courier New", Courier, monospace; font-size: 9px; color: #90a5ff; letter-spacing: .12em; text-transform: uppercase; }
.estimator-header h3 { font-family: Impact, Haettenschweiler, sans-serif; font-size: 26px; margin: 8px 0 10px; color: white; }
.estimator-header p { color: rgba(255,255,255,.7); font-size: 13px; line-height: 1.5; margin-bottom: 22px; }

.estimator-form label { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; color: rgba(255,255,255,.8); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.estimator-form select { background: rgba(255,255,255,.08); color: white; border: 1px solid rgba(255,255,255,.25); padding: 11px 14px; font-size: 13px; outline: none; border-radius: 4px; transition: border-color .2s ease; cursor: pointer; }
.estimator-form select option { background: var(--navy-deep); color: white; }
.estimator-form select:focus { border-color: #90a5ff; background: rgba(255,255,255,.14); }

.estimator-result { margin-top: 20px; padding-top: 18px; border-top: 1px dashed rgba(255,255,255,.2); display: flex; flex-direction: column; gap: 14px; }
.result-box { display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.06); padding: 12px 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 4px; }
.res-title { color: rgba(255,255,255,.6); font-size: 11px; font-family: "Courier New", Courier, monospace; }
.res-value { color: #62d89a; font-weight: 700; font-size: 13px; }
.button-full { width: 100%; justify-content: center; }

/* Método, Empresa y Contacto */
.method-section { overflow: hidden; background: var(--navy); color: white; }
.method-grid { display: grid; grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); gap: 120px; }
.method-statement h2 { margin-bottom: 23px; color: white; }
.method-statement > p:not(.eyebrow) { max-width: 400px; margin-bottom: 31px; color: rgba(255,255,255,.64); font-size: 15px; line-height: 1.6; }
.process-list { border-top: 1px solid var(--line-light); }
.process-item { border-bottom: 1px solid var(--line-light); }
.process-item > button { width: 100%; display: grid; grid-template-columns: 43px 1fr 20px; align-items: center; gap: 15px; padding: 20px 0; background: transparent; color: white; text-align: left; }
.process-item > button strong { font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: 23px; font-weight: 600; }
.process-item > button span:last-child { color: #a6b5ff; transition: transform .25s var(--ease-out); }
.process-item--open > button span:last-child { transform: rotate(180deg); }
.process-number { color: #91a4ff; font-family: "Courier New", Courier, monospace; font-size: 11px; }
.process-detail { display: grid; grid-template-rows: 0fr; overflow: hidden; padding-left: 58px; transition: grid-template-rows .3s var(--ease-out), padding-bottom .3s var(--ease-out); }
.process-detail > * { min-height: 0; }
.process-item--open .process-detail { grid-template-rows: 1fr; padding-bottom: 20px; }
.process-detail p { max-width: 455px; margin-bottom: 12px; color: rgba(255,255,255,.6); font-size: 13px; line-height: 1.55; }
.process-check { display: inline-flex; align-items: center; gap: 7px; color: #9eb0ff; font-family: "Courier New", Courier, monospace; font-size: 9px; text-transform: uppercase; }

.about-section { background: var(--white); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 112px; align-items: center; }
.about-image-wrap { position: relative; padding: 13px; border: 1px solid var(--line); }
.about-image-wrap::before { position: absolute; z-index: 1; top: -1px; left: -1px; width: 70px; height: 70px; border-top: 1px solid var(--pipe-blue); border-left: 1px solid var(--pipe-blue); content: ""; pointer-events: none; }
.about-image-wrap img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.8); }
.image-label { position: absolute; right: 22px; bottom: 22px; padding: 8px 9px; background: var(--navy); color: #aebeff; font-family: "Courier New", Courier, monospace; font-size: 9px; letter-spacing: .08em; }
.about-copy h2 { margin-bottom: 22px; }
.about-copy > p:not(.eyebrow) { max-width: 430px; margin-bottom: 30px; color: #6b7482; font-size: 15px; line-height: 1.65; }
.about-facts { display: grid; gap: 0; max-width: 430px; border-top: 1px solid var(--line); }
.about-facts div { display: flex; align-items: center; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.about-facts strong { color: var(--pipe-blue); font-family: "Courier New", Courier, monospace; font-size: 10px; }
.about-facts span { font-size: 12px; }

.contact-section { position: relative; overflow: hidden; background: var(--carbon); color: white; }
.contact-section::before { position: absolute; inset: 0; opacity: .15; background-image: linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px); background-size: 62px 62px; content: ""; mask-image: linear-gradient(90deg, #000, transparent 75%); }
.contact-grid { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 120px; }
.contact-prompt h2 { margin-bottom: 23px; color: white; }
.contact-prompt > p:not(.eyebrow) { max-width: 390px; margin-bottom: 34px; color: rgba(255,255,255,.62); font-size: 15px; line-height: 1.6; }
.quick-contact { display: grid; max-width: 430px; border-top: 1px solid var(--line-light); }
.quick-contact a { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line-light); color: rgba(255,255,255,.66); font-size: 11px; transition: color .18s ease; }
.quick-contact a:hover { color: white; }
.quick-contact a span, .quick-contact a b { display: inline-flex; align-items: center; gap: 8px; }
.quick-contact a b { color: white; font-size: 11px; }

.contact-form { padding: 24px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); backdrop-filter: blur(12px); border-radius: 4px; }
.form-head { display: flex; justify-content: space-between; margin-bottom: 30px; color: #92a5ff; font-family: "Courier New", Courier, monospace; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.form-head span:last-child { color: rgba(255,255,255,.46); }
.contact-form label { display: grid; gap: 8px; margin-bottom: 19px; color: rgba(255,255,255,.6); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.contact-form input, .contact-form textarea { width: 100%; border: 0; border-bottom: 1px solid rgba(255,255,255,.24); outline: 0; padding: 10px 0; resize: vertical; color: white; background: transparent; font-size: 14px; letter-spacing: 0; text-transform: none; transition: border-color .2s ease; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,.34); }
.contact-form input:focus, .contact-form textarea:focus { border-color: #9eb0ff; }
.contact-form .button { width: 100%; margin-top: 5px; }
.form-note { display: flex; align-items: center; gap: 7px; margin: 15px 0 0; color: #8be1ae; font-size: 11px; line-height: 1.45; }
.form-disclaimer { margin: 18px 0 0; color: rgba(255,255,255,.35); font-size: 10px; line-height: 1.5; }

.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.6); }
.footer-top { display: grid; grid-template-columns: 1.2fr .8fr; gap: 100px; padding: 63px 0 52px; }
.footer-brand-plate { border-color: rgba(255,255,255,.26); background: rgba(255,255,255,.04); display: inline-flex; align-items: center; gap: 11px; padding: 7px 12px 7px 7px; border: 1px solid rgba(255,255,255,.32); }
.footer-brand-plate img { width: 42px; height: 42px; object-fit: contain; padding: 2px; background: white; }
.footer-brand-plate span { display: grid; gap: 3px; }
.footer-brand-plate strong { font-family: Impact, Haettenschweiler, sans-serif; font-size: 17px; letter-spacing: .06em; line-height: .9; color: white; }
.footer-brand-plate small { color: #aebeff; font-family: "Courier New", Courier, monospace; font-size: 7px; letter-spacing: .1em; }
.footer-brand p { max-width: 260px; margin-top: 17px; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; color: rgba(255,255,255,.75); font-size: 20px; line-height: 1; }
.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 45px; }
.footer-links > div { display: grid; align-content: start; gap: 11px; }
.footer-label { margin-bottom: 6px; color: #8fa5ff; font-family: "Courier New", Courier, monospace; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.footer-links a, .footer-links button { width: fit-content; padding: 0; border: 0; background: transparent; color: rgba(255,255,255,.6); font-size: 12px; text-align: left; transition: color .18s ease; }
.footer-links a:hover, .footer-links button:hover { color: white; }
.footer-bottom { min-height: 53px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.37); font-family: "Courier New", Courier, monospace; font-size: 9px; text-transform: uppercase; }

/* BOTÓN DE CONTACTO FLOTANTE EN FORMA DE TUERCA */
#floating-nut-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  outline: none;
  transition: transform .3s var(--ease-out);
}

.nut-pulse-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0;
  animation: nutPulse 2.4s infinite ease-out;
  pointer-events: none;
}

@keyframes nutPulse {
  0% { transform: scale(.7); opacity: .9; }
  100% { transform: scale(1.6); opacity: 0; }
}

.nut-shape {
  position: relative;
  width: 64px;
  height: 64px;
  background: linear-gradient(145deg, #2d3f78, #172455, #0c1432);
  clip-path: polygon(30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%, 0% 50%);
  box-shadow: 0 12px 30px rgba(0,0,0,.5), inset 0 2px 5px rgba(255,255,255,.4);
  display: grid;
  place-items: center;
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), filter .3s ease;
}

.nut-bevel {
  position: absolute;
  inset: 4px;
  background: linear-gradient(135deg, rgba(255,255,255,.3), rgba(0,0,0,.4));
  clip-path: polygon(30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%, 0% 50%);
  pointer-events: none;
}

.nut-inner-circle {
  position: relative;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  box-shadow: inset 0 2px 4px rgba(0,0,0,.4), 0 0 12px rgba(37,211,102,.6);
  display: grid;
  place-items: center;
  color: white;
  transition: transform .3s ease, background .3s ease;
}

#floating-nut-btn:hover .nut-shape {
  transform: rotate(60deg) scale(1.1);
  filter: drop-shadow(0 0 18px rgba(37,211,102,.7));
}

#floating-nut-btn:hover .nut-inner-circle {
  transform: rotate(-60deg);
  background: linear-gradient(135deg, #2ce470, #15a090);
}

.nut-tooltip {
  position: absolute;
  right: 78px;
  background: rgba(13,20,48,.96);
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  border: 1px solid rgba(144,165,255,.35);
  font-size: 12px;
  white-space: nowrap;
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  pointer-events: none;
  line-height: 1.4;
}

.nut-tooltip strong { color: #25D366; }

#floating-nut-btn:hover .nut-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* MEDIA QUERIES RESPONSIVAS Y OPTIMIZACIÓN MÓVIL TOTAL */

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

@media (max-width: 1024px) {
  .container { width: min(100% - 40px, 920px); }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 110px; }
  .hero-3d-wrapper { width: 100%; height: 380px; position: relative; margin-top: -20px; }
  .hero-spec-card { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .quality-grid { grid-template-columns: 1fr; gap: 50px; }
}

@media (max-width: 900px) {
  .container { width: min(100% - 34px, 720px); }
  .topline { font-size: 9px; }
  .top-line-inner { min-height: 28px; }
  .site-header { top: 28px; }
  
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 8px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 4px;
  }
  .menu-toggle span { display: block; width: 22px; height: 2px; background: white; transition: transform .25s ease, opacity .25s ease; }
  
  .main-nav {
    position: fixed;
    top: 58px;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    padding: 24px 20px;
    border-top: 1px solid rgba(255,255,255,.15);
    background: rgba(13,20,48,.98);
    backdrop-filter: blur(24px);
    box-shadow: 0 30px 60px rgba(0,0,0,.5);
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    overflow-y: auto;
    z-index: 99;
  }
  
  .main-nav--open { display: flex; }
  .main-nav a {
    justify-content: space-between;
    min-height: 48px;
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    border-radius: 4px;
  }
  .main-nav a:active { background: rgba(255,255,255,.1); }
  .main-nav .nav-cta { margin: 12px 0 0; justify-content: center; min-height: 50px; font-size: 14px; }

  .capability-grid { grid-template-columns: 1fr 1fr; }
  .capability-intro { grid-column: 1 / -1; min-height: 80px; padding-right: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .capability-item { min-height: 90px; padding: 0 16px; }
  .capability-item:last-child { border-right: 0; }
  
  .method-grid, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 650px) {
  .container { width: min(100% - 28px, 540px); }
  .top-line-inner { flex-direction: column; gap: 4px; padding: 6px 0; text-align: center; justify-content: center; }
  .top-line-contacts { justify-content: center; gap: 14px; }
  
  .hero-section { min-height: auto; }
  .hero-grid { padding: 110px 0 50px; gap: 30px; }
  h1 { font-size: clamp(36px, 11vw, 68px); line-height: .92; margin-bottom: 16px; }
  .hero-intro { font-size: 14px; margin-bottom: 24px; }
  
  .hero-actions { display: flex; flex-direction: column; width: 100%; gap: 10px; }
  .hero-actions .button { width: 100%; min-height: 50px; justify-content: center; }
  
  .hero-3d-wrapper { height: 300px; margin-top: 0; }
  .hero-3d-hint { bottom: 10px; right: 10px; font-size: 8px; }
  
  .section-pad { padding: 65px 0; }
  .section-heading { display: block; }
  .heading-aside { margin-top: 16px; max-width: 100%; }
  h2 { font-size: clamp(34px, 9.5vw, 56px); }
  
  .service-toolbar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .filter-list { display: flex; flex-wrap: wrap; gap: 4px; width: 100%; }
  .filter-button { padding: 8px 11px; font-size: 11px; flex-grow: 1; text-align: center; }
  .result-count { margin-left: 0; font-size: 10px; }
  
  .services-grid { grid-template-columns: 1fr; gap: 20px; }
  .service-card { padding: 20px 16px; }
  .service-title { font-size: 20px; }
  .service-card-actions { grid-template-columns: 1fr; gap: 8px; }

  .projects-grid { grid-template-columns: 1fr; gap: 20px; }
  .project-card-image { height: 180px; }
  .project-card-content { padding: 18px 16px; }
  .project-card-content h3 { font-size: 21px; }
  .project-specs { grid-template-columns: 1fr; gap: 8px; }

  .quality-info > p { font-size: 14px; }
  .estimator-card { padding: 22px 16px; }
  .estimator-header h3 { font-size: 22px; }
  .estimator-form label { font-size: 10px; }
  .estimator-form select { min-height: 46px; font-size: 13px; }

  .capability-grid { grid-template-columns: 1fr; }
  .capability-item { border-right: 0; border-bottom: 1px solid var(--line); min-height: 75px; }

  .process-item > button { grid-template-columns: 30px 1fr 18px; gap: 10px; padding: 16px 0; }
  .process-item > button strong { font-size: 18px; }
  .process-detail { padding-left: 40px; }

  .quick-contact a { flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 0; }
  .contact-form { padding: 18px 14px; }

  #floating-nut-btn { bottom: 18px; right: 18px; }
  .nut-shape { width: 54px; height: 54px; }
  .nut-inner-circle { width: 32px; height: 32px; }
  .nut-tooltip { display: none; }
}

@media (max-width: 380px) {
  .container { width: min(100% - 20px, 360px); }
  h1 { font-size: 32px; }
  h2 { font-size: 30px; }
  .brand-copy strong { font-size: 17px; }
  .brand-mark-frame { width: 32px; height: 32px; }
  .button { font-size: 11px; padding: 0 12px; }
  #floating-nut-btn { bottom: 14px; right: 14px; }
  .nut-shape { width: 48px; height: 48px; }
  .nut-inner-circle { width: 28px; height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


