:root {
  --ink: #151a1f;
  --muted: #5e6872;
  --line: #d9dee3;
  --surface: #f4f6f7;
  --logo-panel: rgba(244, 246, 247, 0.9);
  --logo-panel-strong: rgba(255, 255, 255, 0.94);
  --white: #ffffff;
  --steel: #68737d;
  --blue: #00589b;
  --blue-dark: #102433;
  --gold: #00589b;
  --green: #2c7d59;
  --shadow: 0 18px 45px rgba(25, 32, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.9)),
    url("../images/bg-bodega-producto.png") center top / cover fixed no-repeat;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.site-header {
  min-height: 88vh;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(244, 246, 247, 0.88) 48%, rgba(232, 237, 241, 0.78) 100%),
    url("../images/bg-bobinas-acero.png") center / cover no-repeat;
  position: relative;
  overflow: hidden;
  padding-top: 92px;
}

.navbar {
  width: 100%;
  min-height: 92px;
  padding: 0 max(16px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(104, 115, 125, 0.22);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(7, 31, 51, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  max-width: 192px;
}

.brand-logo {
  width: 184px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(7, 31, 51, 0.12));
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-menu a {
  padding: 10px 13px;
  border-radius: 6px;
  color: var(--blue-dark);
  font-weight: 600;
  font-size: 0.94rem;
}

.nav-menu a:hover {
  color: var(--blue);
  background: rgba(16, 75, 120, 0.08);
}

.nav-menu .nav-cta {
  color: var(--white);
  background: var(--gold);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(16, 75, 120, 0.22);
  border-radius: 6px;
  background: rgba(16, 75, 120, 0.08);
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--blue-dark);
}

.hero {
  width: min(1180px, calc(100% - 32px));
  min-height: calc(88vh - 92px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1fr);
  gap: 42px;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 62px 0 88px;
}

.hero-media {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  min-height: 500px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(7, 31, 51, 0.16);
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(7, 31, 51, 0.12));
  z-index: 1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  grid-column: 1;
  grid-row: 1;
  max-width: 650px;
}

.hero-logo {
  width: min(430px, 86vw);
  max-height: 260px;
  margin: 0 0 22px;
  object-fit: contain;
  filter: drop-shadow(0 12px 26px rgba(7, 31, 51, 0.14));
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-content .eyebrow {
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid rgba(16, 75, 120, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(7, 31, 51, 0.08);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(4.2rem, 10vw, 8.5rem);
  line-height: 0.9;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.04;
}

h3 {
  font-size: 1.12rem;
}

.hero-copy {
  max-width: 590px;
  color: var(--muted);
  font-size: 1.14rem;
  line-height: 1.7;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}

.button-primary {
  background: var(--gold);
  color: var(--white);
}

.button-secondary {
  border: 1px solid rgba(16, 75, 120, 0.22);
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.72);
}

.stats-band {
  width: min(1180px, calc(100% - 32px));
  margin: -36px auto 0;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.stats-band div {
  min-height: 108px;
  padding: 24px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.88)),
    url("../images/bg-bobinas-acero.png") center / cover no-repeat;
  border-right: 1px solid var(--line);
}

.stats-band div:last-child {
  border-right: 0;
}

.stats-band strong,
.stats-band span {
  display: block;
}

.stats-band strong {
  margin-bottom: 8px;
  color: var(--blue-dark);
  font-size: 1.35rem;
}

.stats-band span {
  color: var(--muted);
}

.section,
.image-showcase,
.trust-band,
.quote-section,
.contact-band {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.image-showcase {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  padding: 46px 0 10px;
}

.image-showcase figure {
  min-height: 260px;
  margin: 0;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(7, 31, 51, 0.12);
}

.image-showcase img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-showcase figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--white);
  background: rgba(7, 31, 51, 0.72);
  font-weight: 800;
  font-size: 0.95rem;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 0 0 12px;
}

.trust-band article {
  min-height: 108px;
  display: grid;
  grid-template-columns: 0.82fr 1.65fr;
  gap: 0;
  align-items: stretch;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--gold);
  overflow: hidden;
}

.trust-band article .trust-icon {
  color: rgba(255, 255, 255, 0.92);
  background: var(--gold);
}

.trust-icon {
  width: 100%;
  min-height: 100%;
  display: grid;
  place-items: end center;
  place-self: stretch;
  padding-bottom: 10px;
  border-radius: 0;
}

.trust-icon svg {
  display: block;
  width: min(66%, 78px);
  height: min(66%, 78px);
  fill: none;
  stroke: currentColor;
  stroke-width: 0.95;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-band strong,
.trust-band span {
  display: block;
}

.trust-band article div {
  align-self: center;
  justify-self: center;
  padding: 16px 18px;
  text-align: center;
}

.trust-band strong {
  margin-bottom: 5px;
  color: var(--white);
  font-size: 0.96rem;
}

.trust-band span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.88rem;
  line-height: 1.42;
}

.section {
  padding: 92px 0;
  scroll-margin-top: 108px;
}

#productos {
  position: relative;
  padding: 82px 0 92px;
}

#productos::before,
.company-section::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.88)),
    url("../images/bg-bodega-producto.png") center / cover no-repeat;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow),
.feature-copy p,
.quote-section p,
.contact-band p {
  color: var(--muted);
  line-height: 1.65;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.product-card,
.values-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.product-card {
  min-height: 205px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.88) 58%, rgba(255, 255, 255, 0.56) 100%),
    var(--card-bg, none) center / cover no-repeat;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card:hover,
.product-card:focus {
  border-color: rgba(16, 75, 120, 0.42);
  box-shadow: 0 14px 34px rgba(7, 31, 51, 0.12);
  outline: none;
  transform: translateY(-2px);
}

.product-card:nth-child(1) {
  --card-bg: url("../images/product-tubos-redondos.png");
}

.product-card:nth-child(2) {
  --card-bg: url("../images/product-tubos-cuadrados.png");
}

.product-card:nth-child(3) {
  --card-bg: url("../images/product-lamina-colaborante.png");
}

.product-card:nth-child(4) {
  --card-bg: url("../images/product-cubierta.png");
}

.product-card:nth-child(5) {
  --card-bg: url("../images/product-marcos.png");
}

.product-card:nth-child(6) {
  --card-bg: url("../images/product-perlin-c.png");
}

.product-photo {
  width: min(100%, 132px);
  aspect-ratio: 1 / 1;
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  object-fit: cover;
  align-self: center;
}

.product-number {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
}

.product-card h3 {
  margin-bottom: 8px;
}

.product-card p {
  color: var(--muted);
  margin-bottom: 12px;
  font-size: 0.92rem;
  line-height: 1.42;
}

.product-card button {
  margin-top: auto;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--blue-dark);
  background: var(--surface);
  font-weight: 800;
  cursor: pointer;
}

.feature-section {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-section::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.88)),
    url("../images/bg-bobinas-acero.png") center / cover no-repeat;
}

.service-list {
  display: grid;
  gap: 14px;
}

.service-list div {
  padding: 22px;
  border-left: 4px solid var(--gold);
  background: var(--surface);
}

.service-list strong,
.service-list span {
  display: block;
}

.service-list span {
  margin-top: 7px;
  color: var(--muted);
}

.company-section {
  position: relative;
  padding-top: 72px;
}

.company-section::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.88)),
    url("../images/hero-acerya.png") center / cover no-repeat;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.values-grid div {
  padding: 24px;
  background: rgba(255, 255, 255, 0.92);
}

.values-grid p {
  color: var(--muted);
  line-height: 1.58;
}

.quote-section {
  position: relative;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  padding: 34px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(25, 32, 42, 0.98), rgba(25, 32, 42, 0.9)),
    url("../images/hero-acerya.png") center right / cover no-repeat;
  color: var(--white);
}

.quote-form {
  display: grid;
  gap: 10px;
}

.quote-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.quote-form option {
  color: var(--ink);
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  border-color: var(--gold);
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 68px 0;
}

.contact-actions a {
  padding: 12px 14px;
  border-radius: 6px;
  color: var(--blue-dark);
  background: var(--surface);
  font-weight: 800;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  min-width: 154px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 999px;
  color: #111820;
  background: #25d366;
  box-shadow: 0 16px 36px rgba(17, 24, 32, 0.24);
  font-weight: 800;
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: #111820;
  stroke: none;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 42px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 112px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(7, 31, 51, 0.1));
}

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

  .nav-menu {
    position: absolute;
    top: 82px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 26px;
    padding: 48px 0 86px;
  }

  .hero-media {
    grid-column: 1;
    grid-row: 2;
    min-height: 320px;
  }

  .hero-media::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(7, 31, 51, 0.16));
  }

  .hero-content {
    grid-column: 1;
    grid-row: 1;
  }

  .stats-band,
  .image-showcase,
  .trust-band,
  .product-grid,
  .feature-section,
  .values-grid,
  .quote-section {
    grid-template-columns: 1fr;
  }

  .stats-band div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats-band div:last-child {
    border-bottom: 0;
  }

  .image-showcase figure {
    min-height: 230px;
  }

  .section {
    padding: 70px 0;
  }

  .quote-section {
    padding: 32px 22px;
  }

  .trust-band article {
    min-height: auto;
  }

  .trust-icon {
    min-height: 116px;
    padding-bottom: 12px;
  }

  .trust-icon svg {
    width: min(70%, 86px);
    height: min(70%, 86px);
  }

  .contact-band,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

}

@media (max-width: 520px) {
  .navbar,
  .hero,
  .section,
  .image-showcase,
  .trust-band,
  .quote-section,
  .contact-band,
  .site-footer,
  .stats-band {
    width: min(100% - 24px, 1180px);
  }

  .hero-logo {
    width: min(100%, 390px);
    max-height: 220px;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions .button,
  .contact-actions a {
    width: 100%;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    min-width: 138px;
    height: 52px;
  }

  .trust-band article {
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .trust-icon {
    width: 100%;
    min-height: 118px;
  }
}
