:root {
  --teal: #00aaab;
  --teal-hot: #00c2c3;
  --teal-soft: #8ddcdc;
  --black: #000;
  --ink: #000;
  --muted: #999;
  --footer: #999;
  --grey: #f3f3f3;
  --border: #3b3b3b;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal); }
p { font-size: 16px; font-weight: 400; line-height: 25px; color: #000; }
p a { color: var(--teal); font-weight: 700; }
p a:hover { color: #00470a; text-decoration: none; }

h1 { color: #fff; font-size: 55px; font-weight: 700; margin: 0 0 30px; }
h1 span { color: #fff; font-size: 45px; font-weight: 300; }
h2 { color: var(--teal); font-size: 50px; margin: 0 0 35px; font-weight: 300; }
h2 span { color: #333; font-weight: 300; }
h3 { color: var(--teal); font-size: 24px; font-weight: 700; }
h3 a { color: var(--teal); font-size: 22px; font-weight: 700; text-decoration: none; }
h3 a:hover { color: #333; text-decoration: none; }
h4 { color: #000; font-size: 24px; margin: 20px 0; padding: 0; font-weight: 400; }

section ul { padding: 0; }
section ul li {
  font-size: 16px;
  font-weight: 400;
  line-height: 25px;
  color: #000;
  background: url("/img/bullet.png") no-repeat 0 5px;
  padding-left: 25px;
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1170px;
  margin-inline: auto;
  padding-inline: 15px;
}
@media (min-width: 768px) {
  .container { width: 750px; }
}
@media (min-width: 992px) {
  .container { width: 970px; }
}
@media (min-width: 1200px) {
  .container { width: 1170px; }
}
.alingcenter { text-align: center; }
.alingcenter img { display: inline-block; }
.alingright { text-align: right; }
.space { margin: 20px 0; }
.spacemas { margin: 40px 0; }
.space-historias { margin-top: 180px; margin-bottom: 50px; }
.border-bottom { border-bottom: solid 2px var(--border); margin: 20px 0; }
.color { color: var(--teal) !important; }
.color a { color: var(--teal) !important; }
.italic { font-style: italic; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.preview-bar {
  background: #1a1a1a;
  color: #ccc;
  font-size: 11px;
  text-align: center;
  padding: 4px 12px;
  letter-spacing: 0.02em;
}
.preview-bar a { color: var(--teal-hot); }

.top {
  background: #000;
  height: 40px;
  padding: 10px 0;
}
.top p {
  font-size: 11px;
  font-weight: 400;
  color: var(--teal);
  margin: 0;
  text-align: right;
}
.top .container { text-align: right; }
.top p a,
.top p span {
  font-size: 11px;
  color: #fff;
  padding: 0 0 0 15px;
}
.top p span { color: var(--teal); }

.menutop {
  background: var(--teal);
  padding: 5px 0;
}
.menutop p { margin: 0; }
.menutop p a {
  font-size: 11px;
  color: #fff;
  padding: 0 0 0 15px;
  text-transform: uppercase;
  text-decoration: none;
}
.menutop p a.submenu-active { text-decoration: underline; }

header .brand-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  margin: 5px 0;
  position: relative;
}
.navbar-brand {
  display: block;
  background: url("/img/logo.png") no-repeat;
  height: 55px;
  width: 130px;
  flex: 0 0 16.666%;
  max-width: 16.666%;
  text-indent: -9999px;
  z-index: 1;
}
header nav {
  flex: 1;
  min-width: 0;
}
.nav-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  gap: 0;
}
.nav-main a {
  color: #000;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  text-decoration: none;
  margin-left: 4px;
  padding: 5px;
  display: inline-block;
}
.nav-main a:hover,
.nav-main a.menu-active {
  color: #fff;
  border-radius: 15px;
  background: var(--teal-hot);
}
.nav-main a.contact {
  background: url("/img/icon-contact.png") no-repeat 5px 0;
  height: 30px;
  margin-left: 40px;
  padding-left: 40px !important;
  padding-top: 5px;
}
.nav-main a.contact:hover,
.nav-main a.contact.menu-active {
  background-color: var(--teal-hot);
  background-position-y: -27px;
  border-radius: 15px;
  color: #fff;
}
.nav-toggle {
  display: none;
  background: var(--teal-hot);
  border: 0;
  border-radius: 0;
  padding: 12px;
  width: 44px;
  height: 40px;
  cursor: pointer;
  position: absolute;
  right: 0;
  top: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  margin: 5px 0;
}

.btn-default,
.btn.btn-default {
  color: #fff;
  border-radius: 25px;
  background: var(--teal-hot);
  padding: 15px 25px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  border: none;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary,
.btn.btn-primary {
  color: var(--teal-hot);
  border-radius: 25px;
  background: #000;
  padding: 15px 35px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  border: solid 2px var(--teal-hot);
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary:hover,
.btn.btn-primary:hover {
  color: var(--teal-hot);
  background: #222;
  border-color: #fff;
}

.bannerhome {
  background: #000 url("/img/bg-home.jpg") no-repeat top right;
}
.sliderhome { background: #000; }
.bannerhistorias {
  background: #000 url("/img/bg-historias.jpg") no-repeat top center;
}
.bannerpage {
  background: #000 url("/img/banner-soluciones-modulo.jpg") no-repeat top center;
  height: 310px;
  padding-top: 240px;
  background-size: cover;
}
.bannerpage h1 {
  line-height: 1.05;
  font-size: clamp(28px, 4.2vw, 55px);
  margin-bottom: 0;
}
.space-top { margin-top: 20px; }
.contacto-banderas img { width: 48px; height: auto; }
.legal .underline { text-decoration: underline; }
.legal p { margin: 0 0 1rem; }
.noticia a { text-decoration: none; }
.noticia h3 { margin-bottom: 8px; }
.noticia .imgNoticia { margin: 12px auto; }
.clientes p { margin-bottom: 1rem; }
.hitos h4 { user-select: none; }
.hitos h4 img { vertical-align: middle; margin-right: 6px; }

.wrap { width: min(1170px, calc(100% - 30px)); margin-inline: auto; padding-inline: 15px; }

.bannerpage02 {
  background: #000 url("/img/banner-empresa02.jpg") no-repeat top center;
  height: 310px;
  background-size: cover;
}
.bannerpage03 {
  background: #000 url("/img/banner-empresa03.jpg") no-repeat top center;
  height: 310px;
  background-size: cover;
}
.bannerpage04 {
  background: #000 url("/img/banner-empresa04.jpg") no-repeat top center;
  height: 310px;
  background-size: cover;
}

.title {
  border-radius: 15px;
  background: var(--teal-hot) url("/img/pic.png") no-repeat -15px center;
  color: #fff;
  text-align: center;
  font-weight: 700;
  width: 220px;
  padding: 10px 25px;
  display: inline-block;
  font-size: 16px;
  margin-bottom: 40px;
}

.valor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
}
.valor article { flex: 0 1 180px; }
.valor .arrow { width: 51px; flex: 0 0 auto; }

.sliderhome .carousel-inner { padding-bottom: 30px; }
.sliderhome p,
.sliderhome .noticia_subtitulo,
.sliderhome .noticia_subtitulo span,
.sliderhome .noticia_subtitulo p { color: #fff !important; }
.sliderhome h3 { color: #fff; font-size: 24px; font-weight: 700; }
.bannerhistorias p {
  color: #fff;
  font-size: 22px;
  line-height: 30px;
  font-weight: 300;
  min-height: 60px;
}
.fecha { min-height: 25px; }

.carousel { position: relative; }
.carousel-inner .item { display: none; }
.carousel-inner .item.active { display: block; }
.carousel-indicators {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  display: none;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 2;
}
.carousel:hover .carousel-indicators { display: flex; }
.carousel-indicators li {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: solid 1px var(--teal-hot);
  background: transparent;
  cursor: pointer;
}
.carousel-indicators li.active { background: var(--teal-hot); }
.imgNoticia {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.imgNoticia img {
  position: absolute;
  left: 50%;
  top: 50%;
  max-height: 100%;
  width: auto;
  transform: translate(-50%, -50%);
}
.sliderhistorias { background: none; }
.sliderhistorias .carousel-indicators { top: -25px; bottom: auto; }
.testimonios { max-width: 720px; margin-inline: auto; }
.marcas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
}

.bordeleft { border-left: solid 6px var(--teal-soft); padding-left: 20px; }
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 1.5rem;
  align-items: start;
}
.verifactu { display: block; }
.verifactu img { width: 100px; }

.mod-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 1rem;
  margin-bottom: 1.2rem;
  align-items: start;
}
.mod-row img { width: 36px; height: auto; justify-self: center; margin-top: 4px; }

.slider-full img { width: 100%; display: block; }

.contacto {
  background: var(--grey);
  margin: 30px 0 0;
  padding: 35px 0;
}
.contacto h2 { font-size: 35px; text-align: center; }
.contacto h2 img { display: block; margin: 0 auto 12px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2rem;
  max-width: 960px;
  margin: 0 auto;
}
.form-group { margin-bottom: 15px; }
.form-group.full { grid-column: 1 / -1; }
.form-control {
  display: block;
  width: 100%;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.4;
  color: #555;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}
label { display: inline-block; max-width: 100%; margin-bottom: 5px; font-weight: 700; font-size: 14px; }
.hp { position: absolute; left: -9999px; }
.form-actions { text-align: center; margin-top: 20px; }

.office-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px 18px;
  align-items: start;
  margin-bottom: 22px;
}
.office-row h3 { margin: 0 0 6px; }

.noticia {
  margin-top: 30px;
  padding-top: 15px;
  border-top: 3px solid rgb(0 170 171 / 0.3);
}
.noticia:first-of-type { border: none; padding-top: 0; margin-top: 0; }

.clientes-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.clientes-grid img { padding: 10px 20px; max-height: 90px; width: auto; }

.hitos h4 {
  font-size: 35px;
  color: var(--teal);
  font-weight: 300;
  cursor: pointer;
}
.hitos h4 img {
  transition: transform 0.2s;
  vertical-align: middle;
}
.hitos h4 img.rotated { transform: rotate(-90deg); }
.hitos ul li {
  background: url("/img/bullet02.png") no-repeat 0 5px;
}

footer { background: #000; padding: 20px 0 30px; }
footer p { font-size: 14px; color: var(--footer); margin: 8px 0; }
footer p a { font-size: 14px; color: var(--footer); text-decoration: none; font-weight: 400; }
footer p a:hover { text-decoration: underline; color: var(--footer); }
.footer-top,
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom { margin-top: 12px; }

.scrollup {
  position: fixed;
  bottom: 30px;
  right: 30px;
  text-align: center;
  background: #000;
  padding: 10px;
  color: #fff;
  font-weight: 700;
  border-radius: 5px;
  opacity: 0.5;
  display: none;
  z-index: 50;
}
.scrollup a { color: #fff; text-decoration: none; font-size: 12px; }
.scrollup.is-visible { display: block; }

.aviso_cookies {
  background: #181818;
  padding: 16px;
  z-index: 99;
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(1170px, calc(100% - 2rem));
}
.aviso_cookies h4 { margin: 0 0 1rem; color: #fff; font-size: 18px; }
.aviso_cookies p { color: #fff; margin: 0 0 1.5rem; font-size: 14px; }
.botones-cookies { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.aviso_cookies .btn-primary { background: #181818; }

.modal_cookies {
  display: none;
  position: fixed;
  z-index: 100;
  inset: 0;
  overflow: auto;
  background: rgb(0 0 0 / 0.75);
}
.modal_cookies.is-open { display: block; }
.modal-content {
  background: #fefefe;
  margin: 10% auto;
  padding: 20px;
  width: 90%;
  max-width: 1170px;
}
.modal-content h2 { margin-bottom: 16px; font-size: 32px; }
.tabla_cookies { margin: 16px 0; width: 100%; border-collapse: collapse; }
.tabla_cookies th,
.tabla_cookies td { padding: 8px; color: #181818; text-align: left; vertical-align: top; }
.tabla_cookies thead tr,
.tabla_cookies tbody tr { border-bottom: solid 1px #181818; }

@media (max-width: 991px) {
  h1 { font-size: 36px; }
  h1 span { font-size: 28px; }
  h2 { font-size: 34px; }
  .intro-grid,
  .form-grid,
  .marcas { grid-template-columns: 1fr; }
  .space-historias { margin-top: 60px; }
  .bannerpage { height: 220px; padding-top: 150px; }
}
@media (max-width: 800px) {
  .navbar-brand {
    flex: 0 0 130px;
    max-width: 130px;
  }
  .nav-toggle { display: block; }
  .nav-main {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-top: 50px;
  }
  header.is-open .nav-main { display: flex; }
  header.is-open .brand-row { flex-wrap: wrap; }
  .nav-main a.contact { margin-left: 4px; }
  .top { height: auto; }
  footer,
  footer .alingright { text-align: center; }
  .footer-top,
  .footer-bottom { justify-content: center; }
  .menutop p a { display: inline-block; line-height: 30px; }
  .valor article { flex: 1 1 100%; }
}
