:root {
  --ink: #173263;
  --ink-soft: #31517f;
  --muted: #667892;
  --line: #d9e7f4;
  --paper: #f5fbff;
  --white: #ffffff;
  --teal: #009f97;
  --teal-dark: #007d78;
  --blue: #214a86;
  --blue-soft: #e8f3fb;
  --sky: #8fc5e8;
  --aqua: #dff6f4;
  --shadow: 0 18px 50px rgba(23, 50, 99, 0.12);
  --shadow-soft: 0 10px 26px rgba(23, 50, 99, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  background: var(--paper);
}

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

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

main > section {
  scroll-margin-top: 118px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: grid;
  width: 100%;
  grid-template-columns: auto 1fr auto;
  gap: clamp(18px, 3vw, 36px);
  align-items: center;
  padding: 14px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(217, 231, 244, 0.9);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 28px rgba(23, 50, 99, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: clamp(230px, 24vw, 330px);
  max-height: 96px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  gap: clamp(18px, 2.1vw, 30px);
  color: var(--ink);
  font-weight: 800;
}

.site-nav a {
  position: relative;
  line-height: 1;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--teal);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(0, 159, 151, 0.26);
  border-radius: var(--radius);
  padding: 0 16px;
  color: var(--teal-dark);
  font-size: 0.92rem;
  font-weight: 900;
  background: rgba(223, 246, 244, 0.7);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  overflow: hidden;
  align-items: center;
  padding: 170px clamp(22px, 6vw, 86px) 90px;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

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

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(19, 43, 84, 0.92) 0%, rgba(27, 70, 116, 0.76) 46%, rgba(0, 159, 151, 0.16) 100%),
    linear-gradient(0deg, rgba(23, 50, 99, 0.12), rgba(23, 50, 99, 0.12));
}

.hero-content {
  position: relative;
  width: min(800px, 100%);
  color: var(--white);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow,
.process-section .eyebrow {
  color: #63e4dd;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 6.15rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 690px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2.1vw, 1.25rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 20px;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--teal);
  box-shadow: 0 12px 24px rgba(0, 159, 151, 0.25);
}

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

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
}

.location-section,
.services-section,
.certifications-section,
.catalog-section,
.contact-section {
  padding: clamp(76px, 10vw, 124px) clamp(22px, 6vw, 86px);
}

.location-section {
  background:
    linear-gradient(180deg, var(--paper) 0%, #ffffff 100%);
}

.services-section {
  background: var(--white);
}

.certifications-section {
  background:
    radial-gradient(circle at 8% 12%, rgba(0, 159, 151, 0.11), transparent 28%),
    linear-gradient(180deg, var(--paper), var(--blue-soft));
}

.catalog-section {
  background:
    linear-gradient(180deg, var(--blue-soft) 0%, var(--paper) 100%);
}

.contact-section {
  background: var(--white);
}

.section-intro {
  width: min(780px, 100%);
  margin: 0 auto 42px;
  text-align: center;
}

.section-intro h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.1rem, 5vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.section-intro p:not(.eyebrow) {
  margin: 18px auto 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.72;
}

.catalog-contact-action {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.section-intro.light h2,
.section-intro.light p:not(.eyebrow) {
  color: var(--white);
}

.section-intro.light p:not(.eyebrow) {
  opacity: 0.8;
}

.location-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(360px, 1.35fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: stretch;
}

.location-copy {
  display: grid;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 38px);
  background:
    linear-gradient(135deg, rgba(0, 159, 151, 0.1), rgba(33, 74, 134, 0.05)),
    var(--white);
  box-shadow: var(--shadow-soft);
}

.location-copy h3 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.location-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.location-actions {
  margin-top: 26px;
}

.location-actions a,
.map-actions a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0 16px;
  color: var(--white);
  background: var(--teal);
  font-weight: 900;
}

.map-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.map-panel iframe {
  display: block;
  width: 100%;
  min-height: 470px;
  border: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 340px));
  gap: 16px;
  justify-content: center;
  justify-items: stretch;
}

.service-card {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.service-card span {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: var(--radius);
  color: var(--blue);
  background: var(--aqua);
  font-weight: 900;
}

.service-card h3 {
  margin: 26px 0 10px;
  font-size: 1.18rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1440px;
  margin: 0 auto;
}

.certification-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.certification-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.certification-image-button {
  position: relative;
  display: block;
  width: 100%;
  height: 360px;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: #e7eef5;
  cursor: zoom-in;
}

.certification-image-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 250ms ease;
}

.certification-image-button:hover img {
  transform: scale(1.025);
}

.certification-image-button span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  margin: 0;
  border-radius: var(--radius);
  padding: 9px 12px;
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 900;
  background: rgba(23, 50, 99, 0.88);
}

.certification-copy {
  padding: 22px;
}

.certification-copy span {
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.certification-copy h3 {
  margin: 10px 0 9px;
  font-size: 1.12rem;
}

.certification-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.62;
}

.certification-dialog {
  width: min(1120px, calc(100vw - 24px));
  height: min(920px, calc(100vh - 24px));
  max-height: calc(100vh - 32px);
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  padding: 12px;
  background: var(--white);
  box-shadow: 0 30px 80px rgba(6, 21, 46, 0.35);
}

.certification-dialog::backdrop {
  background: rgba(8, 24, 50, 0.82);
  backdrop-filter: blur(5px);
}

.dialog-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.zoom-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.zoom-controls button,
.dialog-close {
  min-width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  font-size: 1.2rem;
  font-weight: 900;
  background: var(--paper);
  cursor: pointer;
}

.zoom-controls button:hover {
  color: var(--white);
  border-color: var(--teal);
  background: var(--teal);
}

.zoom-controls output {
  min-width: 58px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 900;
  text-align: center;
}

.zoom-controls .zoom-reset {
  width: auto;
  padding: 0 12px;
  font-size: 0.82rem;
}

.certification-zoom-viewport {
  display: grid;
  height: calc(100% - 108px);
  overflow: auto;
  place-items: start center;
  border-radius: var(--radius);
  background:
    linear-gradient(45deg, #e7eef5 25%, transparent 25%),
    linear-gradient(-45deg, #e7eef5 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e7eef5 75%),
    linear-gradient(-45deg, transparent 75%, #e7eef5 75%),
    #f4f8fb;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
  cursor: grab;
  overscroll-behavior: contain;
}

.certification-zoom-viewport.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.certification-dialog img {
  width: 100%;
  max-width: none;
  height: auto;
  object-fit: contain;
  transform-origin: top center;
  transition: width 140ms ease;
  user-select: none;
}

.certification-dialog p {
  margin: 8px 0 0;
  font-weight: 800;
}

.dialog-close {
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.75rem;
  line-height: 1;
  background: var(--ink);
}

.zoom-help {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.process-section {
  padding: clamp(76px, 10vw, 124px) clamp(22px, 6vw, 86px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(23, 50, 99, 0.98), rgba(0, 159, 151, 0.9)),
    var(--blue);
}

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

.process-list article {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
}

.process-list strong {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  font-size: 1rem;
}

.process-list h3 {
  margin: 24px 0 10px;
  color: var(--white);
  font-size: 1.16rem;
}

.process-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.68;
}

.catalog-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 320px);
  gap: 14px;
  margin-bottom: 18px;
}

.search-field,
.select-field {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
}

.search-field input,
.select-field select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 15px;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  background: var(--white);
  box-shadow: 0 5px 16px rgba(23, 50, 99, 0.04);
}

.search-field input:focus,
.select-field select:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(0, 159, 151, 0.14);
}

.catalog-summary {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-weight: 800;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.price-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.price-table th,
.price-table td {
  border-bottom: 1px solid var(--line);
  padding: 15px 18px;
  text-align: left;
  vertical-align: top;
}

.price-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--white);
  background: var(--blue);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.price-table td {
  color: var(--ink);
  font-size: 0.95rem;
}

.price-table tr:hover td {
  background: #eef9fb;
}

.price-table td:nth-child(1) {
  min-width: 320px;
  font-weight: 800;
}

.price-table td:nth-child(3) {
  white-space: nowrap;
  font-weight: 900;
}

.quote-price {
  color: var(--teal);
  font-weight: 900;
  text-decoration: none;
}

.quote-price:hover {
  text-decoration: underline;
}

.empty-row td {
  padding: 30px 16px;
  color: var(--muted);
  text-align: center;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.contact-grid article {
  padding: 20px;
}

.contact-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-grid strong {
  display: block;
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.38;
}

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

.icon-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.whatsapp-mark {
  display: inline-flex;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.header-action .whatsapp-mark {
  width: 20px;
  height: 20px;
}

.whatsapp-mark svg {
  width: 100%;
  height: 100%;
}

.whatsapp-mark path:first-child {
  fill: #25d366;
}

.whatsapp-mark path:last-child {
  fill: #ffffff;
}

.contact-grid small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
}

.contact-separator {
  display: inline;
  margin: 0 6px;
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
}

.social-links {
  display: grid;
  gap: 10px;
}

.social-link {
  width: fit-content;
}

.social-mark {
  display: inline-flex;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.social-mark svg {
  width: 100%;
  height: 100%;
}

.facebook-link .social-mark path {
  fill: #1877f2;
}

.instagram-link .social-mark path {
  fill: #e4405f;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(22px, 6vw, 86px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--white);
}

.footer-logo {
  width: min(260px, 72vw);
  height: auto;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .header-action {
    justify-self: end;
  }

  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: auto auto;
    padding: 12px 18px;
  }

  .brand-logo {
    width: min(240px, 62vw);
    max-height: 82px;
  }

  .menu-button {
    display: block;
  }

  .header-action {
    display: none;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 16px 18px;
  }

  .site-nav a + a {
    border-top: 1px solid var(--line);
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    min-height: 86vh;
    padding-top: 136px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 13vw, 4rem);
  }

    .location-layout,
    .service-grid,
    .certifications-grid,
    .process-list,
  .catalog-tools,
  .contact-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .map-panel iframe {
    min-height: 340px;
  }

  .service-card {
    min-height: auto;
  }

  .certification-image-button {
    height: min(120vw, 540px);
  }
}

@media (max-width: 440px) {
  .button {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

  .certification-dialog {
    width: calc(100vw - 12px);
    height: calc(100vh - 12px);
    padding: 8px;
  }

  .zoom-controls {
    gap: 4px;
  }

  .zoom-controls button,
  .dialog-close {
    min-width: 38px;
    height: 38px;
  }

  .zoom-controls .zoom-reset {
    padding: 0 8px;
    font-size: 0.72rem;
  }

  .zoom-controls output {
    min-width: 48px;
    font-size: 0.75rem;
  }
}
