:root {
  --bg: #f7f7f7;
  --text: #777777;
  --text-dark: #333333;
  --link: #0088cc;
  --top: #333333;
  --top-text: #bababa;
  --nav: #b6b6b6;
  --nav-border: #cccccc;
  --nav-hover: #666666;
  --nav-active: #717171;
  --footer: #303030;
  --footer-text: #cccccc;
  --after: #171717;
  --box-bg: #fdfdfd;
  --box-border: #eaeaea;
  --box-shadow: #adadad;
  --white: #ffffff;
  --container: 1170px;
  --gutter: 20px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--text);
  background-color: var(--bg);
  background-image: url("/assets/img/bg_body.gif");
  background-repeat: repeat;
  background-position: top left;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: #005580;
  text-decoration: underline;
}

.container {
  width: var(--container);
  max-width: 100%;
  margin: 0 auto;
}

.container-inner {
  padding: 0 var(--gutter);
}

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

/* Top bar — 34px, #333 */
.top-header {
  background: var(--top);
  margin-bottom: 15px;
}

.top-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
}

.top-head-description {
  color: var(--top-text);
  margin: 8px 0 6px;
  font-size: 14px;
  line-height: 20px;
}

.social {
  display: flex;
  align-items: center;
  gap: 5px;
}

.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--white);
  margin: 5px 0 6px;
}

.social a:hover {
  color: #ddd;
  text-decoration: none;
}

.social svg {
  width: 16px;
  height: 16px;
}

/* Logo */
.site-header {
  margin-bottom: 20px;
}

.logo {
  display: block;
  width: 350px;
  max-width: 100%;
}

.logo img {
  width: 350px;
  height: 68px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

/* Nav — 40px, #b6b6b6 */
.main-navigation {
  margin-bottom: 30px;
}

.navbar-inner {
  background: var(--nav);
  min-height: 40px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

.nav-toggle {
  display: none;
  background: #0e0e0e;
  border: 1px solid #040404;
  padding: 8px 10px;
  margin: 5px 10px 5px auto;
  cursor: pointer;
}

.nav-toggle .icon-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  margin: 3px 0;
  border-radius: 1px;
}

.nav-collapse {
  display: flex;
  align-items: stretch;
  flex: 1;
  min-width: 0;
}

.nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav > li {
  border-right: 1px solid var(--nav-border);
}

.nav > li > a {
  display: flex;
  align-items: center;
  color: var(--white);
  font-size: 15.4px;
  line-height: 20px;
  padding: 10px 15px;
  min-height: 40px;
  text-shadow: none;
  text-decoration: none;
}

.nav > li > a:hover {
  color: #f6f6f6;
  background: var(--nav-hover);
  text-decoration: none;
}

.nav > li.is-active > a {
  color: var(--white);
  background: var(--nav-active);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.125);
}

.nav-home img,
.nav-home svg {
  width: 21px;
  height: 18px;
  display: block;
}

.search-form {
  margin: 5px 15px 5px auto;
  display: flex;
  align-items: center;
}

.search-query {
  width: 180px;
  height: 30px;
  padding: 4px 14px;
  font-size: 13px;
  line-height: 20px;
  color: var(--white);
  background: #515151;
  border: 1px solid #111111;
  border-radius: 15px;
  outline: none;
  font-family: inherit;
}

.search-query::placeholder {
  color: #bbbbbb;
}

/* Slider */
.slider {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
  overflow: hidden;
}

.slider-track {
  position: relative;
}

.slide {
  display: none;
}

.slide.is-active {
  display: block;
}

.slide a {
  display: block;
}

.slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 1140 / 430;
  object-fit: cover;
  display: block;
}

.carousel-control {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  font-size: 60px;
  font-weight: 100;
  line-height: 30px;
  color: var(--white);
  text-align: center;
  background: #222222;
  border: 3px solid var(--white);
  border-radius: 23px;
  opacity: 0.5;
  text-decoration: none;
  z-index: 2;
}

.carousel-control:hover {
  color: var(--white);
  text-decoration: none;
  opacity: 0.9;
}

.carousel-control.prev {
  left: 15px;
}

.carousel-control.next {
  right: 15px;
}

/* Boxes */
.boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 29px;
}

.box {
  margin-bottom: 30px;
  padding: 20px;
  background: var(--box-bg);
  border: 1px solid var(--box-border);
  border-radius: 0;
  box-shadow: 0 1px 0 0 var(--box-shadow);
  text-align: center;
  overflow: hidden;
}

.box a {
  display: block;
}

.box img {
  width: 264px;
  height: 142px;
  object-fit: cover;
  display: inline-block;
}

.box p {
  font-size: 15.4px;
  line-height: 20px;
  margin: 15px 0 0;
  color: var(--text);
}

/* Inner pages */
.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: 24px;
  align-items: start;
}

.entry-title {
  font-weight: 400;
  line-height: 1.2em;
  margin: 0 0 10px;
  font-size: 31.5px;
  color: var(--text-dark);
}

.entry-content {
  color: var(--text);
}

.entry-content p {
  font-size: 15.4px;
  line-height: 23.1px;
  margin: 0 0 14px;
}

.entry-content p.justify {
  text-align: justify;
}

.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

.sidebar {
  width: 264px;
}

.sidebar a {
  display: block;
  margin-bottom: 16px;
}

.sidebar img {
  width: 264px;
  max-width: 100%;
  height: auto;
  display: block;
}

/* Contact form (CF7-like) */
.contact-form p {
  margin: 0 0 14px;
}

.contact-form label {
  display: block;
  font-size: 15.4px;
  line-height: 23.1px;
  color: var(--text);
  margin-bottom: 4px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 4px;
  font-family: inherit;
  font-size: 14px;
  color: #555;
  background: var(--white);
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

.contact-form iframe {
  border: 0;
  max-width: 100%;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button,
.wpcf7-submit {
  background: #0088cc;
  border: 1px solid #0088cc;
  color: var(--white);
  opacity: 0.9;
  padding: 8px 14px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  border-radius: 4px;
}

.contact-form button:hover {
  opacity: 1;
}

.form-feedback {
  margin-top: 12px;
  font-size: 14px;
}

.form-feedback.is-ok {
  color: #468847;
}

.form-feedback.is-err {
  color: #b94a48;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.gallery-note {
  margin-bottom: 16px;
}

.clear {
  clear: both;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 10px 0 24px;
}

.gallery-grid a {
  display: block;
  background: var(--white);
  border: 1px solid #e5e5e5;
  padding: 6px;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 257 / 300;
  object-fit: contain;
  background: var(--white);
  display: block;
}

.clientes-table {
  width: 100%;
  border-collapse: collapse;
  border: 0;
  margin: 8px 0 24px;
}

.clientes-table td,
.clientes-table th {
  width: 50%;
  text-align: center;
  vertical-align: middle;
  padding: 16px 10px;
  font-weight: 400;
  border: 0;
}

.clientes-table img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}

.contact-map {
  border: 0;
  max-width: 100%;
}

.map-larger {
  color: #000;
  text-align: left;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(92vw, 900px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
  padding: 8px 12px;
}

.lightbox-close {
  top: 12px;
  right: 16px;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-nav.prev {
  left: 8px;
}

.lightbox-nav.next {
  right: 8px;
}

.lightbox-caption {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-size: 14px;
}

/* Footer widgets */
.footer-widgets {
  margin-top: 20px;
  padding-top: 20px;
  background: var(--footer);
}

.footer-widgets-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding-bottom: 30px;
}

.widget-title {
  color: var(--white);
  font-size: 18.2px;
  font-weight: 400;
  line-height: 29.12px;
  margin: 10px 0 15px;
}

.widget-text,
.widget-text p {
  color: var(--footer-text);
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 20px;
}

.widget-text a {
  color: var(--white);
  border-bottom: 1px dotted #cccccc;
  text-decoration: none;
}

.widget-text a:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

.after-footer {
  background: var(--after);
}

.site-footer {
  display: flex;
  justify-content: flex-end;
  margin: 20px 0;
  min-height: 30px;
}

.copyright {
  text-align: right;
  color: var(--text);
  font-size: 14px;
  line-height: 20px;
}

/* Search results */
.search-results li {
  margin-bottom: 12px;
}

/* 404 */
.not-found {
  padding: 20px 0 40px;
}

@media (max-width: 1199px) {
  :root {
    --container: 960px;
  }
}

@media (max-width: 979px) {
  :root {
    --container: 100%;
  }

  .container-inner {
    padding: 0 20px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-collapse {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--nav);
  }

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

  .navbar-inner {
    flex-wrap: wrap;
  }

  .nav {
    flex-direction: column;
    width: 100%;
  }

  .nav > li {
    border-right: 0;
    border-bottom: 1px solid var(--nav-border);
  }

  .search-form {
    margin: 8px 15px 12px;
  }

  .boxes,
  .page-grid,
  .footer-widgets-row,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .sidebar img,
  .box img {
    max-width: 100%;
    height: auto;
  }

  .logo,
  .logo img {
    width: 280px;
    height: auto;
  }
}

@media (max-width: 767px) {
  .top-header-row {
    padding: 0 4px;
  }

  .carousel-control {
    width: 32px;
    height: 32px;
    font-size: 40px;
    line-height: 22px;
    margin-top: -16px;
  }

  .alignleft {
    float: none;
    display: block;
    margin: 0 0 16px;
  }

  .site-footer {
    justify-content: center;
  }

  .copyright {
    text-align: center;
  }
}
