:root {
  --navy: #0b1728;
  --navy-soft: #13233c;
  --ink: #172033;
  --muted: #5f6b7c;
  --line: #dce3ec;
  --paper: #ffffff;
  --light: #f4f7fb;
  --yellow: #ffd341;
  --orange: #ff8126;
  --green: #21c466;
  --shadow: 0 18px 48px rgba(8, 19, 36, 0.16);
  --radius: 8px;
  --container: 1120px;
  --header-height: 76px;
  --floating-edge: 24px;
  --floating-size: 56px;
  --floating-gap: 12px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  overflow-x: hidden;
}

body {
  margin: 0;
  padding-top: var(--header-height);
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.skip-link,
.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;
}

.skip-link:focus {
  top: 12px;
  left: 12px;
  z-index: 100;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 14px;
  color: var(--navy);
  background: var(--yellow);
  clip: auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(220, 227, 236, 0.72);
  backdrop-filter: blur(14px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px rgba(8, 19, 36, 0.08);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
  color: var(--navy);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--navy);
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(255, 129, 38, 0.28);
}

.brand-mark svg,
.header-call svg,
.btn svg,
.hero-points svg,
.card-icon svg,
.why-item svg,
.board-footer svg,
.float-btn svg {
  width: 20px;
  height: 20px;
}

.brand-text {
  font-size: 1.08rem;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-panel a {
  padding: 9px 11px;
  color: #273346;
  font-size: 0.94rem;
  font-weight: 700;
  border-radius: var(--radius);
  transition: color 160ms ease, background 160ms ease;
}

.nav-panel a:hover,
.nav-panel a:focus-visible {
  color: var(--navy);
  background: #eef3f8;
  outline: none;
}

.header-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--navy);
  border-radius: var(--radius);
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 12px 24px rgba(11, 23, 40, 0.16);
}

.header-call:hover,
.header-call:focus-visible {
  color: var(--navy);
  background: var(--yellow);
  outline: none;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--navy);
  transition: transform 180ms ease, opacity 180ms ease;
}

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

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

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

.hero {
  position: relative;
  isolation: isolate;
  padding: 46px 0 30px;
  color: var(--paper);
  background:
    linear-gradient(135deg, rgba(11, 23, 40, 0.96), rgba(19, 35, 60, 0.94)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 56px),
    var(--navy);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, transparent 0 20%, rgba(255, 211, 65, 0.18) 20% 21%, transparent 21% 100%),
    linear-gradient(0deg, transparent 0 58%, rgba(255, 129, 38, 0.16) 58% 59%, transparent 59% 100%);
  background-size: 180px 180px, 220px 220px;
  opacity: 0.42;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 44px;
  align-items: center;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.section-kicker::before {
  content: "";
  width: 24px;
  height: 3px;
  background: var(--yellow);
  border-radius: 999px;
}

.hero .section-kicker {
  color: var(--yellow);
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: 3.05rem;
  line-height: 1.08;
  font-weight: 900;
}

.hero-text {
  max-width: 680px;
  margin: 20px 0 0;
  color: #d9e4f1;
  font-size: 1.1rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  border-radius: var(--radius);
  font-weight: 900;
  line-height: 1.1;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.btn-primary {
  color: var(--navy);
  background: var(--yellow);
  box-shadow: 0 16px 28px rgba(255, 211, 65, 0.28);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #ffe175;
}

.btn-whatsapp {
  color: var(--paper);
  background: var(--green);
  box-shadow: 0 16px 28px rgba(33, 196, 102, 0.24);
}

.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
  background: #16ad57;
}

.hero-points {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #edf5ff;
  font-weight: 700;
}

.hero-points svg {
  flex: 0 0 auto;
  margin-top: 3px;
  color: var(--yellow);
}

.hero-visual {
  min-width: 0;
}

.service-board {
  width: 100%;
  max-width: 440px;
  margin-left: auto;
  padding: 20px;
  color: var(--paper);
  background: linear-gradient(180deg, #1d2e4b, #0e1d34);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.board-top,
.board-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.board-top {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 900;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  color: #dffbea;
  background: rgba(33, 196, 102, 0.14);
  border-radius: 999px;
  font-size: 0.78rem;
}

.status-pill span {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(33, 196, 102, 0.13);
}

.board-display {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
}

.voltage-meter {
  position: relative;
  min-height: 126px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--yellow);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.voltage-meter strong {
  display: block;
  font-size: 1.85rem;
  line-height: 1;
}

.voltage-meter small {
  display: block;
  margin-top: 6px;
  color: #c9d6e6;
  font-weight: 700;
}

.meter-arc {
  position: absolute;
  inset: 22px 22px auto;
  height: 58px;
  border-top: 6px solid var(--orange);
  border-left: 6px solid var(--yellow);
  border-right: 6px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px 999px 0 0;
}

.board-lines {
  display: grid;
  gap: 14px;
}

.board-lines span {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--yellow), var(--orange), rgba(255, 255, 255, 0.14));
}

.board-lines span:nth-child(2) {
  width: 72%;
}

.board-lines span:nth-child(3) {
  width: 86%;
}

.breaker-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
}

.breaker {
  min-height: 86px;
  border-radius: 6px;
  background: linear-gradient(180deg, #e8eef6, #aab6c7);
  position: relative;
}

.breaker::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 13px;
  width: 18px;
  height: 36px;
  transform: translateX(-50%);
  background: var(--navy);
  border-radius: 5px;
}

.breaker.active::after {
  top: 38px;
  background: var(--orange);
}

.board-footer {
  margin-top: 16px;
  flex-wrap: wrap;
  color: #d9e4f1;
  font-size: 0.88rem;
  font-weight: 800;
}

.board-footer span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.board-footer svg {
  color: var(--yellow);
}

.section {
  padding: 68px 0;
}

.about-section,
.process-section,
.contact-section {
  background: var(--paper);
}

.local-service-section,
.services-section,
.faq-section {
  background: var(--light);
}

.why-section {
  background:
    linear-gradient(180deg, rgba(255, 211, 65, 0.08), rgba(255, 255, 255, 0)),
    var(--paper);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 38px;
  align-items: center;
}

.section-copy h2,
.section-heading h2,
.contact-copy h2 {
  margin: 0;
  color: var(--navy);
  font-size: 2.18rem;
  line-height: 1.18;
}

.section-copy p,
.section-heading p,
.contact-copy p {
  color: var(--muted);
  font-size: 1rem;
}

.section-copy p:last-child,
.section-heading p:last-child,
.contact-copy p:last-child {
  margin-bottom: 0;
}

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

.info-panel,
.contact-card {
  padding: 24px;
  background: var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.info-row,
.contact-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.info-row:first-child,
.contact-card div:first-child {
  padding-top: 0;
}

.info-row:last-child,
.contact-card div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.info-row span,
.contact-card span {
  color: #b5c3d4;
  font-size: 0.9rem;
  font-weight: 700;
}

.info-row strong,
.contact-card strong {
  color: var(--paper);
  text-align: right;
}

.local-grid,
.service-grid {
  display: grid;
  gap: 16px;
}

.local-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.local-card,
.service-card,
.why-item,
.faq-item {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
}

.local-card,
.service-card {
  min-height: 244px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  box-shadow: 0 10px 26px rgba(11, 23, 40, 0.06);
}

.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: #fff4c9;
  border-radius: var(--radius);
}

.local-card h3,
.service-card h3,
.why-item h3,
.process-list h3 {
  margin: 16px 0 8px;
  color: var(--navy);
  font-size: 1.08rem;
  line-height: 1.28;
}

.local-card p,
.service-card p,
.why-item p,
.process-list p,
.faq-answer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.why-item {
  min-height: 214px;
  padding: 20px;
}

.why-item > svg {
  width: 32px;
  height: 32px;
  color: var(--orange);
}

.process-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px;
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.process-list span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--yellow);
  border-radius: var(--radius);
  font-weight: 900;
}

.process-list h3 {
  margin-top: 0;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-question {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  color: var(--navy);
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  text-align: left;
  font-weight: 900;
  cursor: pointer;
}

.faq-question span {
  width: 22px;
  height: 22px;
  position: relative;
  flex: 0 0 auto;
}

.faq-question span::before,
.faq-question span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background: var(--orange);
  transform: translate(-50%, -50%);
}

.faq-question span::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 160ms ease, opacity 160ms ease;
}

.faq-question[aria-expanded="true"] span::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-question:focus-visible {
  outline: 3px solid rgba(255, 129, 38, 0.28);
}

.faq-answer {
  padding: 0 18px 18px;
}

.contact-section {
  color: var(--paper);
  background:
    linear-gradient(135deg, rgba(11, 23, 40, 0.96), rgba(19, 35, 60, 0.94)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 62px),
    var(--navy);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
  gap: 36px;
  align-items: center;
}

.contact-copy h2,
.contact-copy p {
  color: var(--paper);
}

.contact-copy p {
  max-width: 680px;
  color: #d9e4f1;
}

.contact-card {
  margin: 0;
  font-style: normal;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.site-footer {
  color: #d9e4f1;
  background: #08111f;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0;
}

.footer-inner strong {
  display: block;
  color: var(--paper);
  margin-bottom: 4px;
}

.footer-inner p {
  margin: 0;
}

.copyright {
  text-align: right;
}

.footer-credit {
  padding: 14px 16px 18px;
  color: #b5c3d4;
  background: #050b14;
  text-align: center;
  font-size: 0.92rem;
}

.footer-credit a {
  color: var(--yellow);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.floating-actions {
  position: fixed;
  right: var(--floating-edge);
  bottom: calc(var(--floating-edge) + var(--floating-lift, 0px));
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--floating-gap);
  margin: 0;
  padding: 0;
  line-height: 0;
  transition: bottom 180ms ease;
}

.float-btn {
  width: var(--floating-size);
  height: var(--floating-size);
  display: inline-grid;
  place-items: center;
  flex: 0 0 var(--floating-size);
  color: var(--paper);
  border-radius: 999px;
  box-shadow:
    0 18px 34px rgba(8, 19, 36, 0.26),
    0 6px 14px rgba(8, 19, 36, 0.16);
  transform-origin: center;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.float-btn svg {
  width: 23px;
  height: 23px;
  display: block;
  flex: 0 0 auto;
}

.float-whatsapp svg {
  width: 26px;
  height: 26px;
}

.float-btn:hover,
.float-btn:focus-visible {
  transform: scale(1.07);
  box-shadow:
    0 22px 42px rgba(8, 19, 36, 0.3),
    0 8px 18px rgba(8, 19, 36, 0.18);
  filter: saturate(1.05);
  outline: 3px solid rgba(255, 255, 255, 0.38);
  outline-offset: 3px;
}

.float-phone {
  background: linear-gradient(135deg, var(--orange), #ff9f32);
}

.float-whatsapp {
  background: #25D366;
}

@media (max-width: 1080px) {
  .header-call span {
    display: none;
  }

  .local-grid,
  .service-grid,
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 68px;
  }

  .header-inner {
    min-height: var(--header-height);
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    order: 3;
    margin-left: 0;
  }

  .nav-panel {
    position: fixed;
    top: calc(var(--header-height) + 10px);
    left: 16px;
    right: 16px;
    display: grid;
    gap: 4px;
    padding: 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-panel.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-panel a {
    padding: 12px;
  }

  .header-call {
    margin-left: auto;
  }

  .hero {
    padding: 42px 0 34px;
  }

  .hero-grid,
  .split-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

  .hero h1 {
    font-size: 2.45rem;
  }

  .section-copy h2,
  .section-heading h2,
  .contact-copy h2 {
    font-size: 1.9rem;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .brand-text {
    max-width: 140px;
  }

  .header-call {
    width: 42px;
    height: 42px;
    padding: 0;
  }

  .hero h1 {
    font-size: 2.05rem;
  }

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

  .hero-actions,
  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .board-display {
    grid-template-columns: 1fr;
  }

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

  .breaker {
    min-height: 68px;
  }

  .local-grid,
  .service-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .local-card,
  .service-card,
  .why-item {
    min-height: auto;
  }

  .section {
    padding: 52px 0;
  }

  .info-row,
  .contact-card div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .info-row strong,
  .contact-card strong {
    text-align: left;
  }

  .process-list li {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .copyright {
    text-align: left;
  }

  .floating-actions {
    --floating-edge: 16px;
    --floating-size: 52px;
  }

  .float-btn {
    width: var(--floating-size);
    height: var(--floating-size);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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