/* =========================================================
   IronSideSolutions — Maquinados CNC (estilo claro)
   ========================================================= */

:root {
  --white: #ffffff;
  --tint: #f3f6f8;
  --tint-2: #e8eef2;
  --navy: #0b2233;
  --navy-2: #12324a;
  --ink: #17202a;
  --ink-2: #4b5864;
  --ink-3: #7b8792;
  --line: #dde3e8;
  --teal: #12b39a;
  --teal-dark: #0b937e;
  --teal-soft: #e7f7f3;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 12px;
  --radius-sm: 6px;
  --container: 1200px;
  --header-h: 76px;
  --shadow: 0 1px 2px rgb(11 34 51 / .05), 0 8px 24px rgb(11 34 51 / .06);
  --shadow-lg: 0 20px 50px rgb(11 34 51 / .14);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 10px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: -.02em;
  color: var(--navy);
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.narrow {
  max-width: 840px;
}

.muted {
  color: var(--ink-2);
  font-size: 1.05rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--teal);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font: 700 .95rem/1 var(--font);
  padding: 1rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s var(--ease);
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform .2s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--teal);
  color: #fff;
}

.btn-primary:hover {
  background: var(--teal-dark);
  box-shadow: 0 8px 20px rgb(18 179 154 / .3);
}

.btn-outline {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: #fff;
}

.btn-sm {
  padding: .75rem 1.15rem;
  font-size: .88rem;
}

.btn-block {
  width: 100%;
}

.link-arrow {
  font-weight: 700;
  color: var(--teal-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.link-arrow::after {
  content: "→";
  transition: transform .2s var(--ease);
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

/* ---------- Barra superior ---------- */
.topbar {
  background: var(--tint);
  font-size: .88rem;
  color: var(--ink-2);
}

.topbar-inner {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: .65rem 0;
  flex-wrap: wrap;
  text-align: center;
}

.topbar p {
  margin: 0;
}

.topbar strong {
  color: var(--navy);
}

.topbar a {
  color: var(--teal-dark);
  font-weight: 700;
  text-decoration: none;
}

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgb(255 255 255 / .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}

.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 4px 20px rgb(11 34 51 / .06);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
}

.brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.02em;
}

.brand-name span {
  color: var(--teal);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav ul {
  display: flex;
  gap: 1.8rem;
}

.main-nav ul a {
  text-decoration: none;
  font-weight: 600;
  font-size: .94rem;
  color: var(--ink);
  padding: .5rem 0;
  position: relative;
  transition: color .2s;
}

.main-nav ul a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}

.main-nav ul a:hover,
.main-nav ul a.active {
  color: var(--teal-dark);
}

.main-nav ul a:hover::after,
.main-nav ul a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: .5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform .25s, opacity .25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 45%;
  z-index: -1;
  background: linear-gradient(to right, #fff, transparent 30%), radial-gradient(circle at 60% 50%, var(--teal-soft), transparent 70%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.breadcrumb {
  font-size: .85rem;
  color: var(--ink-3);
  margin-bottom: 1.25rem;
  display: flex;
  gap: .5rem;
}

.breadcrumb a {
  color: var(--teal-dark);
  text-decoration: none;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -.035em;
}

.hero .lead {
  font-size: 1.12rem;
  color: var(--ink-2);
  max-width: 36rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-bottom: 2.5rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.hero-badges li {
  display: grid;
  padding-right: 1.75rem;
  margin-right: 1.75rem;
  border-right: 1px solid var(--line);
}

.hero-badges li:last-child {
  border: 0;
  margin: 0;
  padding: 0;
}

.hero-badges strong {
  font-size: 1.4rem;
  color: var(--navy);
  font-weight: 800;
}

.hero-badges span {
  font-size: .82rem;
  color: var(--ink-3);
}

.hero-media {
  position: relative;
  aspect-ratio: 1 / .9;
}

.hero-media-bg {
  position: absolute;
  inset: 4% 0 4% 6%;
  border-radius: 24px;
  background:
    linear-gradient(rgb(18 179 154 / .08) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgb(18 179 154 / .08) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(135deg, #f7fafb, #e3edf1);
  border: 1px solid var(--line);
}

.hero-part {
  position: absolute;
  filter: drop-shadow(0 18px 22px rgb(11 34 51 / .18));
}

.hp-1 {
  width: 62%;
  left: 18%;
  top: 14%;
  animation: float 7s ease-in-out infinite;
}

.hp-2 {
  width: 34%;
  right: -2%;
  top: 2%;
  animation: float 8s ease-in-out -2s infinite;
}

.hp-3 {
  width: 42%;
  left: 2%;
  bottom: 6%;
  animation: float 9s ease-in-out -4s infinite;
}

@keyframes float {
  50% {
    transform: translateY(-10px);
  }
}

.hero-card {
  position: absolute;
  right: 2%;
  bottom: 8%;
  width: min(260px, 62%);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.15rem;
  font-size: .82rem;
}

.hero-card strong {
  display: block;
  color: var(--navy);
  margin: .5rem 0 .6rem;
  font-size: .9rem;
}

.hero-card dl {
  margin: 0;
  display: grid;
  gap: .3rem;
}

.hero-card dl div {
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed var(--line);
  padding-top: .3rem;
}

.hero-card dt {
  color: var(--ink-3);
}

.hero-card dd {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 700;
  font-size: .72rem;
  color: var(--teal-dark);
  background: var(--teal-soft);
  padding: .25rem .6rem;
  border-radius: 100px;
}

.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

/* ---------- Enlaces rápidos ---------- */
.quicklinks {
  border-block: 1px solid var(--line);
  background: #fff;
}

.quicklinks .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.quicklinks .container::-webkit-scrollbar {
  display: none;
}

.quicklinks span {
  font-weight: 800;
  color: var(--navy);
  white-space: nowrap;
  font-size: .9rem;
}

.quicklinks ul {
  display: flex;
  gap: .5rem;
}

.quicklinks a {
  display: block;
  white-space: nowrap;
  text-decoration: none;
  font-size: .86rem;
  font-weight: 600;
  padding: .45rem .9rem;
  border-radius: 100px;
  background: var(--tint);
  color: var(--ink-2);
  transition: background .2s, color .2s;
}

.quicklinks a:hover {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

/* ---------- Secciones ---------- */
.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section-tint {
  background: var(--tint);
}

.section-navy {
  background: var(--navy);
  color: #fff;
}

.section-navy h2,
.section-navy h3 {
  color: #fff;
}

.section-head {
  max-width: 720px;
  margin-bottom: 3rem;
}

.section-head.center {
  text-align: center;
  margin-inline: auto;
}

.section-head h2,
.split h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 800;
}

.section-head p {
  color: var(--ink-2);
  font-size: 1.06rem;
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

/* Tarjetas de servicios */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .3s, transform .3s var(--ease), border-color .3s;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.card-media {
  background: linear-gradient(135deg, #f6f9fa, #e4ecf0);
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.card-media svg {
  width: 72%;
  height: 90%;
  filter: drop-shadow(0 12px 14px rgb(11 34 51 / .16));
  transition: transform .5s var(--ease);
}

.card:hover .card-media svg {
  transform: scale(1.06) rotate(-2deg);
}

.card-body {
  padding: 1.5rem 1.6rem 1.7rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 800;
}

.card p {
  color: var(--ink-2);
  font-size: .96rem;
  flex: 1;
}

/* Por qué */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--teal-soft);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--teal-dark);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 {
  font-size: 1.1rem;
  font-weight: 800;
}

.feature p {
  color: var(--ink-2);
  font-size: .94rem;
  margin: 0;
}

/* Tablas */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
  background: #fff;
  box-shadow: var(--shadow);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  min-width: 520px;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.data-table thead th {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .02em;
}

.data-table tbody th {
  font-weight: 700;
  color: var(--navy);
}

.data-table tbody tr:last-child>* {
  border-bottom: 0;
}

.data-table tbody tr:nth-child(even) {
  background: #fafcfd;
}

.data-table tbody tr:hover {
  background: var(--teal-soft);
}

.data-table td {
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

#tolerancias .data-table td:last-child {
  color: var(--teal-dark);
  font-weight: 700;
}

.finishes-table {
  min-width: 720px;
}

.dots {
  display: inline-flex;
  gap: .3rem;
}

.dots i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12);
}

/* Materiales */
.tabs {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 2.25rem;
}

.tabs button {
  font: 700 .95rem var(--font);
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
  padding: .75rem 1.5rem;
  border-radius: 100px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}

.tabs button:hover {
  border-color: var(--teal);
}

.tabs button[aria-selected="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.tab-panel {
  animation: fade .35s ease;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.materials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.materials li {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.4rem;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: box-shadow .3s, transform .3s var(--ease);
}

.materials li:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.materials h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: .35rem;
}

.materials p {
  font-size: .88rem;
  color: var(--ink-2);
  flex: 1;
  margin-bottom: .8rem;
}

.materials small {
  font-size: .76rem;
  font-weight: 700;
  color: var(--teal-dark);
  background: var(--teal-soft);
  padding: .25rem .6rem;
  border-radius: 4px;
  align-self: flex-start;
}

.swatch {
  display: block;
  height: 92px;
  border-radius: 8px;
  margin-bottom: 1rem;
  background: var(--sw);
  position: relative;
  overflow: hidden;
}

.swatch::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(100deg, transparent 0 6px, rgb(255 255 255 / .12) 6px 7px), linear-gradient(120deg, rgb(255 255 255 / .45), transparent 45%);
}

.m-al {
  --sw: linear-gradient(135deg, #e8edf1, #b9c4cc);
}

.m-steel {
  --sw: linear-gradient(135deg, #a3abb2, #5f6870);
}

.m-ss {
  --sw: linear-gradient(135deg, #dfe4e8, #959fa7);
}

.m-tool {
  --sw: linear-gradient(135deg, #7d858c, #3a4148);
}

.m-brass {
  --sw: linear-gradient(135deg, #f0d98c, #b8913a);
}

.m-bronze {
  --sw: linear-gradient(135deg, #d9a66b, #8a5a2b);
}

.m-cu {
  --sw: linear-gradient(135deg, #f1a77f, #b5582e);
}

.m-ti {
  --sw: linear-gradient(135deg, #c9c6cf, #7c7987);
}

.m-pom {
  --sw: linear-gradient(135deg, #ffffff, #e2e2dc);
}

.m-nylon {
  --sw: linear-gradient(135deg, #fbf6e6, #ddd2b1);
}

.m-uhmw {
  --sw: linear-gradient(135deg, #ffffff, #d8dde0);
}

.m-peek {
  --sw: linear-gradient(135deg, #e8d6b3, #b99d6c);
}

.m-ptfe {
  --sw: linear-gradient(135deg, #ffffff, #ececec);
}

.m-pc {
  --sw: linear-gradient(135deg, rgb(200 225 235 / .6), rgb(150 190 210 / .8));
}

.m-acr {
  --sw: linear-gradient(135deg, rgb(220 240 245 / .7), rgb(170 210 225 / .8));
}

.m-g10 {
  --sw: linear-gradient(135deg, #b8cc8a, #6e8a42);
}

/* Proceso */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgb(255 255 255 / .25) 0 8px, transparent 8px 14px);
}

.steps li {
  text-align: center;
  position: relative;
}

.step-n {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 1.25rem;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 0 0 8px var(--navy);
}

.steps h3 {
  font-size: 1.15rem;
  font-weight: 800;
}

.steps p {
  color: #b8c6d1;
  font-size: .94rem;
  margin: 0;
}

/* Galería */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.gallery li {
  border-radius: var(--radius);
  background: linear-gradient(160deg, #f6f9fa, #dde7ec);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.gallery svg {
  width: 80%;
  height: 70%;
  filter: drop-shadow(0 14px 16px rgb(11 34 51 / .18));
  transition: transform .5s var(--ease);
}

.gallery li:hover svg {
  transform: scale(1.08);
}

.gallery span {
  position: absolute;
  left: .75rem;
  bottom: .75rem;
  font-size: .8rem;
  font-weight: 700;
  background: #fff;
  padding: .35rem .7rem;
  border-radius: 100px;
  color: var(--navy);
  box-shadow: var(--shadow);
}

/* FAQ */
.faq {
  display: grid;
  gap: .75rem;
}

.faq details {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: box-shadow .2s, border-color .2s;
}

.faq details[open] {
  box-shadow: var(--shadow);
  border-color: var(--teal);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal-soft) no-repeat center/12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%230b937e' stroke-width='2'/%3E%3C/svg%3E");
  transition: transform .25s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 1.5rem 1.4rem;
  color: var(--ink-2);
  margin: 0;
}

/* CTA + formulario */
.cta-box {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff;
  border-radius: 24px;
  padding: clamp(2rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  bottom: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(18 179 154 / .35), transparent 70%);
}

.cta-copy {
  position: relative;
}

.cta-copy h2 {
  color: #fff;
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 800;
}

.cta-copy>p {
  color: #c3d0da;
  font-size: 1.06rem;
}

.contact-list {
  margin-top: 1.75rem;
  display: grid;
  gap: .9rem;
}

.contact-list li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid rgb(255 255 255 / .12);
}

.contact-list span {
  font-size: .8rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding-top: .15rem;
}

.contact-list a {
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--teal);
}

.quote-form {
  position: relative;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: grid;
  gap: 1rem;
  box-shadow: var(--shadow-lg);
}

.field {
  display: grid;
  gap: .35rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field label {
  font-size: .85rem;
  font-weight: 700;
  color: var(--navy);
}

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  width: 100%;
  padding: .8rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfcfd;
  transition: border-color .2s, box-shadow .2s;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgb(18 179 154 / .18);
  background: #fff;
}

.field .invalid {
  border-color: #d33a2c;
}

.file-label {
  display: grid;
  gap: .1rem;
}

.file-label small {
  font-weight: 500;
  color: var(--ink-3);
}

.field input[type="file"] {
  padding: .7rem;
  border-style: dashed;
  cursor: pointer;
}

.form-status {
  margin: 0;
  font-size: .9rem;
  min-height: 1.4em;
}

.form-status.ok {
  color: var(--teal-dark);
  font-weight: 600;
}

.form-status.err {
  color: #d33a2c;
}

/* Pie */
.site-footer {
  background: var(--navy);
  color: #b3c2cd;
  padding: 4rem 0 1.5rem;
  font-size: .92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding-bottom: 3rem;
}

.site-footer .brand {
  margin-bottom: 1rem;
}

.site-footer .brand-name {
  color: #fff;
}

.site-footer h2 {
  font-size: .9rem;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: 0;
}

.site-footer ul {
  display: grid;
  gap: .55rem;
}

.site-footer a {
  text-decoration: none;
  transition: color .2s;
}

.site-footer a:hover {
  color: var(--teal);
}

.site-footer address {
  font-style: normal;
  line-height: 1.9;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / .1);
  font-size: .82rem;
}

/* Aparición al hacer scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), box-shadow .3s;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.card.reveal.visible:hover {
  transform: translateY(-4px);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .features,
  .materials,
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2.5rem;
  }

  .steps::before {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    background: #fff;
    padding: 1rem 1.25rem 2rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform .3s var(--ease), visibility .3s;
  }

  .main-nav.open {
    transform: none;
    visibility: visible;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav ul a {
    display: block;
    padding: .9rem 0;
    border-bottom: 1px solid var(--line);
  }

  .main-nav ul a::after {
    display: none;
  }

  .hero-inner,
  .split,
  .cta-box {
    grid-template-columns: 1fr;
  }

  .hero::before {
    inset: 50% 0 0 0;
  }

  .hero-media {
    max-width: 520px;
    width: 100%;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {

  .cards,
  .features {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: .5rem;
  }

  .contact-list li {
    grid-template-columns: 1fr;
    gap: .1rem;
  }

  .hero-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-badges li {
    padding: 0 .6rem;
    margin: 0;
    border-right: 1px solid var(--line);
  }

  .hero-badges li:first-child {
    padding-left: 0;
  }

  .hero-badges li:last-child {
    padding: 0 0 0 .6rem;
  }

  .hero-badges strong {
    font-size: 1.05rem;
  }

  .hero-badges span {
    font-size: .72rem;
    line-height: 1.35;
  }

  .hp-1 {
    width: 70%;
    left: 6%;
    top: 8%;
  }

  .hero-card {
    width: 58%;
    right: 0;
    bottom: 0;
    padding: .7rem .8rem;
    font-size: .72rem;
  }

  .hero-card strong {
    font-size: .78rem;
    margin: .35rem 0 .4rem;
  }

  .materials {
    gap: .75rem;
  }

  .materials li {
    padding: 1rem;
  }

  .swatch {
    height: 64px;
  }

  .cta-box {
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* V3 — Industrial editorial system */
:root {
  --font: Inter, Arial, sans-serif;
  --navy: #142c35;
  --navy-2: #203b43;
  --ink: #25343b;
  --ink-2: #526168;
  --teal: #007c70;
  --teal-dark: #00665c;
  --teal-soft: #e9f3f0;
  --tint: #f4f6f5;
  --line: #d9e0df;
  --radius: 3px;
  --radius-sm: 3px;
  --container: 1280px;
  --shadow: none;
  --shadow-lg: none;
  --header-h: 78px
}

body {
  font-size: 15px;
  line-height: 1.65
}

.container {
  width: min(100% - 4rem, var(--container))
}

h1,
h2,
h3 {
  letter-spacing: -.035em;
  font-weight: 650
}

.topbar {
  background: var(--navy);
  color: #dce6e5
}

.topbar-inner {
  justify-content: space-between;
  padding: .55rem 0
}

.topbar a {
  color: #fff
}

.site-header {
  background: white;
  backdrop-filter: none;
  border-bottom: 1px solid var(--line)
}

.site-header.scrolled {
  box-shadow: none
}

.brand-name {
  font-weight: 700;
  letter-spacing: -.055em
}

.brand-name span {
  color: var(--teal)
}

.main-nav ul {
  gap: 1.3rem
}

.main-nav ul a {
  font-size: .88rem;
  font-weight: 500
}

.btn {
  font-weight: 600;
  padding: 1rem 1.3rem;
  box-shadow: none !important
}

.btn-sm {
  padding: .8rem 1rem
}

.btn-primary:hover {
  background: var(--teal-dark)
}

.hero {
  padding: 4.3rem 0;
  background: #f3f6f5;
  border-bottom: 1px solid var(--line)
}

.hero::before {
  display: none
}

.hero-inner {
  grid-template-columns: 1.05fr 1fr;
  gap: 4.2rem
}

.hero h1 {
  font-size: clamp(2.7rem, 4.5vw, 4.3rem);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -.055em;
  margin: 0 0 1.35rem
}

.eyebrow,
.section-head .eyebrow {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin: 0 0 1.1rem
}

.hero .lead {
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 32rem;
  margin-bottom: 1.75rem
}

.hero-actions {
  margin-bottom: 2rem
}

.hero-badges {
  padding-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0
}

.hero-badges li {
  margin: 0;
  padding: 0 .8rem
}

.hero-badges li:first-child {
  padding-left: 0
}

.hero-badges strong {
  font-size: 1.35rem;
  font-weight: 650
}

.hero-badges span {
  color: var(--ink-2)
}

.hero-media {
  margin: 0;
  aspect-ratio: 1.17;
  background: #e5ebea;
  border: 1px solid #c9d4d2;
  overflow: hidden;
  max-width: none
}

.hero-media:before {
  content: '';
  position: absolute;
  inset: 48px 22px;
  background-image: linear-gradient(#aebfbd55 1px, transparent 1px), linear-gradient(90deg, #aebfbd55 1px, transparent 1px);
  background-size: 26px 26px
}

.drawing-top,
.hero-media figcaption {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  gap: .7rem;
  padding: 12px 18px;
  background: #e5ebea;
  font-size: .69rem;
  letter-spacing: .06em;
  color: #40565a;
  font-weight: 600;
  z-index: 2
}

.drawing-top {
  top: 0;
  border-bottom: 1px solid #c9d4d2
}

.hero-media figcaption {
  bottom: 0;
  border-top: 1px solid #c9d4d2;
  letter-spacing: 0
}

.hero-part {
  animation: none;
  filter: none
}

.hp-1 {
  width: 73%;
  left: -2%;
  top: 9%
}

.hp-2 {
  width: 47%;
  right: -1%;
  top: 12%
}

.hp-3 {
  width: 62%;
  left: 27%;
  bottom: 9%
}

.quicklinks .container {
  padding: .65rem 0;
  gap: 1rem
}

.quicklinks a {
  background: transparent;
  border-radius: 0;
  padding: .5rem .65rem;
  font-weight: 500
}

.quicklinks span {
  font-size: .82rem;
  font-weight: 650
}

.section {
  padding: clamp(3.5rem, 6vw, 5.25rem) 0
}

.section-head.center {
  text-align: left;
  margin-inline: 0
}

.section-head {
  margin-bottom: 2rem;
  max-width: 780px
}

.section-head h2,
.split h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.85rem);
  font-weight: 650;
  line-height: 1.16
}

.cards {
  gap: 1.25rem
}

.card {
  border-color: var(--line)
}

.card:hover,
.card.reveal.visible:hover {
  transform: none;
  border-color: var(--teal);
  box-shadow: none
}

.card-media {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #f5f6f7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transform: none;
}

.card-media svg {
  filter: none;
  width: 78%;
  height: 94%
}

.card:hover .card-media svg {
  transform: none
}

.card-body {
  padding: 1.4rem
}

.card h3 {
  font-weight: 650;
  font-size: 1.22rem
}

.link-arrow {
  font-size: .9rem;
  font-weight: 600
}

.features {
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line)
}

.feature {
  background: none;
  padding: 1.7rem 1.5rem;
  border-right: 1px solid var(--line)
}

.feature:first-child {
  padding-left: 0
}

.feature:last-child {
  border: 0
}

.feature-icon {
  background: transparent;
  justify-content: start;
  border-radius: 0
}

.feature h3 {
  font-weight: 650
}

.reveal,
.reveal.visible {
  opacity: 1;
  transform: none;
  transition: none
}

.gallery li {
  background: #e9eeed;
  border: 1px solid var(--line)
}

.gallery svg {
  filter: none
}

.gallery span {
  border-radius: 2px
}

.step-n {
  border-radius: 2px;
  box-shadow: 0 0 0 8px var(--navy)
}

.cta-box {
  background: var(--navy);
  border-radius: 3px
}

.cta-box:before {
  display: none
}

.cta-copy h2 {
  font-weight: 650
}

.contact-list span {
  color: #9bdbd1
}

.quote-form {
  box-shadow: none
}

.form-note {
  font-size: .82rem;
  color: var(--ink-2);
  margin: 0
}

.form-status {
  min-height: 0
}

.form-status:empty {
  display: none
}

.faq details[open] {
  box-shadow: none
}

.site-footer {
  padding-top: 3rem
}

.site-footer .brand-name span {
  color: #8bd1c5
}

@media(max-width:1050px) {
  .hero-inner {
    gap: 2rem
  }

  .main-nav ul {
    gap: .85rem
  }

  .header-inner {
    gap: 1rem
  }
}

@media(max-width:900px) {
  .container {
    width: min(100% - 2rem, var(--container))
  }

  .hero-inner {
    grid-template-columns: 1fr
  }

  .hero-media {
    max-width: 650px;
    margin: 0 auto;
    width: 100%
  }

  .hero {
    padding: 3rem 0
  }

  .hero-badges {
    max-width: 600px
  }

  .topbar-inner {
    justify-content: center
  }

  .feature {
    padding: 1.3rem !important;
    border-bottom: 1px solid var(--line)
  }
}

@media(max-width:520px) {
  .hero h1 {
    font-size: 2.65rem
  }

  .hero-media figcaption,
  .drawing-top {
    padding: 9px;
    font-size: .57rem
  }

  .hero-badges strong {
    font-size: 1.05rem
  }

  .hero-badges span {
    font-size: .72rem
  }

  .hero-badges li {
    padding: 0 .5rem
  }

  .hero-actions .btn {
    flex: 1
  }

  .feature {
    border-right: 0
  }

  .topbar-inner>a {
    display: none
  }

  .contact-list li {
    grid-template-columns: 1fr;
    gap: .2rem
  }

  .contact-list a {
    overflow-wrap: anywhere
  }
}
/* Selector de materiales CNC */

#materiales .im-tabs{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:0 0 28px}
#materiales .im-tabs button{font:inherit;font-size:14px;font-weight:600;line-height:1.3;padding:9px 15px;background:#fff;border:1px solid #d7dfe3;border-radius:4px;color:#344651;cursor:pointer}
#materiales .im-tabs button:hover,#materiales .im-tabs button[aria-pressed=true]{border-color:#087c70;color:#087c70;background:#eaf5f2}
#materiales .im-panel{display:grid;grid-template-columns: 2fr 3fr;background:#fff;border:1px solid #d7dfe3;min-height:360px}
#materiales .im-panel[hidden]{display:none!important}
#materiales .im-info{padding:32px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
#materiales .im-info h3{font-size:28px;margin:0 0 16px;color:#0b2233}
#materiales .im-info p{color:#4b5864;margin:0 0 20px;line-height:1.65}
#materiales .im-info dl{margin:0 0 24px;width:100%;font-size:14px}
#materiales .im-info dt{font-weight:700;color:#0b2233;border-top:1px solid #dde3e8;padding-top:12px}
#materiales .im-info dd{margin:4px 0 12px;color:#4b5864}
#materiales .im-photo{background:#f0f2f3;min-width:0;display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative;min-height:320px}
#materiales .im-photo img{display:block;width:100%;height:360px;object-fit:contain;object-position:center;transform:none;max-width:100%}
#materiales .im-photo small{position:absolute;bottom:8px;right:10px;background:#fff;padding:3px 8px;color:#52616b;font-size:11px}
#materiales .im-quote{display:inline-block;background:#087c70;color:#fff;text-decoration:none;padding:11px 20px;border-radius:4px;font-weight:600}
#materiales .im-note{font-size:13px;color:#52616b;margin-top:15px}
@media(max-width:760px){#materiales .im-panel{grid-template-columns:1fr}#materiales .im-photo{grid-row:1;min-height:0}#materiales .im-photo img{height:240px}#materiales .im-info{padding:24px}#materiales .im-tabs{justify-content:flex-start}}


/* Franja de marcas: independiente de los estilos del hero. */
.industry-logos{background:#fff;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:24px 0}
.industry-logos-inner{display:grid;grid-template-columns:1.25fr repeat(5,minmax(0,1fr));align-items:center;gap:26px}
.industry-logos-caption{margin:0;color:var(--navy);font-size:15px;font-weight:700;line-height:1.4}
.industry-logos-caption small{font-weight:400;color:var(--ink-2);font-size:12px}
.industry-logo{display:flex;align-items:center;justify-content:center;min-width:0;min-height:65px;text-align:center}
.industry-logo img{display:block;width:100%;max-width:150px;height:65px;object-fit:contain;object-position:center;filter:grayscale(100%)}
.industry-logo img[hidden],.industry-logo span[hidden]{display:none}
.industry-logo span{font-weight:700;color:var(--ink-2)}
@media(max-width:900px){.industry-logos-inner{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}.industry-logos-caption{grid-column:1/-1;text-align:center}}
@media(max-width:560px){.industry-logos-inner{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 24px}.industry-logo:last-child{grid-column:1/-1}.industry-logo img{height:52px}.industry-logos{padding:20px 0}}
