:root {
  --ink: #17212b;
  --muted: #5c6975;
  --line: #dfe5ea;
  --panel: #f5f8fa;
  --white: #ffffff;
  --blue: #325d71;
  --blue-dark: #183c50;
  --orange: #ec5b2b;
  --steel: #7e8b96;
  --shadow: 0 18px 45px rgba(23, 33, 43, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 82px;
  padding: 10px clamp(18px, 4vw, 58px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.brand img { width: 174px; height: auto; }
.site-nav { display: flex; gap: 24px; margin-left: auto; font-size: 14px; font-weight: 700; text-transform: uppercase; }
.site-nav a { padding: 10px 0; color: var(--blue-dark); }
.site-nav a:hover { color: var(--orange); }
.header-cta { padding: 10px 16px; border: 1px solid var(--blue); color: var(--blue-dark); font-weight: 700; }
.menu-button { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: var(--white); }
.menu-button span { display: block; width: 18px; height: 2px; margin: 5px auto; background: var(--ink); }

.hero {
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: end;
  gap: 36px;
  padding: clamp(70px, 9vw, 130px) clamp(20px, 6vw, 80px) clamp(34px, 5vw, 60px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(14, 30, 41, 0.92), rgba(14, 30, 41, 0.72) 48%, rgba(14, 30, 41, 0.25)),
    url("../img/hero-transformadores.jpg") center / cover no-repeat;
}
.hero-content { max-width: 850px; }
.eyebrow, .section-heading span, .band span, .contact-copy span {
  display: block;
  margin-bottom: 12px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 840px; margin-bottom: 20px; font-size: clamp(42px, 6vw, 76px); line-height: 1.02; }
h2 { margin-bottom: 18px; font-size: clamp(30px, 4vw, 46px); line-height: 1.12; }
h3 { margin-bottom: 10px; font-size: 20px; line-height: 1.25; }
.hero-copy { max-width: 680px; color: rgba(255,255,255,.88); font-size: clamp(18px, 2vw, 23px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 0;
  font-weight: 800;
  cursor: pointer;
}
.button.primary { background: var(--orange); color: var(--white); }
.button.secondary { background: var(--white); color: var(--blue-dark); }
.button.dark { border: 1px solid rgba(255,255,255,.28); background: transparent; color: var(--white); }
.button.full { width: 100%; }
.hero-panel {
  padding: 22px;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.hero-panel strong, .hero-panel span { display: block; }
.hero-panel span { margin-top: 8px; color: var(--muted); }

.section {
  padding: clamp(58px, 8vw, 96px) clamp(20px, 6vw, 80px);
}
.section-heading { max-width: 760px; margin-bottom: 32px; }
.about {
  display: grid;
  grid-template-columns: minmax(280px, 520px) minmax(280px, 1fr);
  gap: 46px;
  align-items: start;
}
.about p { max-width: 760px; color: var(--muted); font-size: 20px; }
.products { background: var(--white); }
.product-grid, .service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.product-grid article, .service-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 22px;
  box-shadow: none;
}
.product-grid article { border-top: 4px solid var(--orange); }
.product-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 8px;
  margin-bottom: 18px;
  background: var(--panel);
  border: 0;
}
.product-grid p, .service-grid p { color: var(--muted); margin-bottom: 0; }
.service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-grid article {
  border-left: 4px solid var(--blue);
  background: linear-gradient(90deg, #f8fafb, #ffffff);
}

.band {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 42px;
  padding: clamp(58px, 8vw, 92px) clamp(20px, 6vw, 80px);
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-dark), #2d6275);
}
.band ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.band li { padding: 14px 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-weight: 700; }

.segment-list { display: flex; flex-wrap: wrap; gap: 12px; }
.segment-list span { padding: 12px 16px; border: 1px solid var(--line); background: var(--panel); font-weight: 700; color: var(--blue-dark); }

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 40px;
  padding: clamp(58px, 8vw, 96px) clamp(20px, 6vw, 80px);
  color: var(--white);
  background: #111a22;
}
.contact-copy p { color: rgba(255,255,255,.76); font-size: 18px; }
.contact-copy dl { margin-top: 30px; }
.contact-copy div { margin-bottom: 16px; }
.contact-copy dt { color: var(--steel); font-weight: 700; }
.contact-copy dd { margin: 0; }
.contact-form {
  display: grid;
  gap: 14px;
  padding: 26px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.contact-form label { display: grid; gap: 7px; font-size: 14px; font-weight: 700; }
.contact-form input, .contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 12px 13px;
  font: inherit;
  color: var(--ink);
  background: #fbfcfd;
}
.contact-form textarea { resize: vertical; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 12px 14px; margin: 0; font-weight: 700; }
.form-status.success { background: #e8f5ed; color: #17663a; }
.form-status.error { background: #fdecea; color: #9a2b1f; }

.float-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  padding: 13px 16px;
  background: #1f9d55;
  color: var(--white);
  font-weight: 800;
  box-shadow: var(--shadow);
}
.footer {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 28px clamp(20px, 6vw, 80px);
  background: #071018;
  color: rgba(255,255,255,.72);
}
.footer nav { display: flex; gap: 16px; color: var(--white); font-weight: 700; }
.footer p { margin: 0; }

@media (max-width: 900px) {
  .site-header { min-height: 72px; }
  .menu-button { display: block; margin-left: auto; }
  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 16px 22px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .header-cta { display: none; }
  .hero, .about, .band, .contact, .footer { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 82px; }
  .hero-panel { max-width: 440px; }
  .product-grid, .service-grid { grid-template-columns: 1fr; }
  .band ul { grid-template-columns: 1fr; }
  .footer nav { flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .brand img { width: 140px; }
  h1 { font-size: 38px; }
  .hero-actions .button { width: 100%; }
  .contact-form { padding: 20px; }
  .float-whatsapp { left: 18px; text-align: center; }
}
