header {
  min-height: 80px;
}

@font-face {
  font-family: "Gotham";
  src:
    url("../fuentes/Gotham-Book.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;

  size-adjust: 102%;
}

@font-face {
  font-family: "Gotham";
  src:
    url("../fuentes/GothamBold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;

  size-adjust: 102%;
}

@font-face {
  font-family: "Gotham";
  src:
    url("../fuentes/GothamUltra-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;

  size-adjust: 102%;
}

h1,
h2 {
  text-align: center;
  font-size: 2.5em;
  font-family: "Gotham", "Arial Black", sans-serif;
  font-weight: bold;
  font-style: italic;
  color: #64bc32;
}

p {
  font-family: "Gotham";
  line-height: 1.3;
  font-size: 14px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Gotham", "Arial Black", sans-serif;
  margin: 0;
  padding: 0;
  color: #33270f;
  position: relative;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 20px;
  position: absolute;
  left: 0;
  right: 0;
  z-index: 15;
  background-color: #283138;
  backdrop-filter: blur(0px);
  font-weight: bold;
  transition:
    background-color 0.3s ease,
    backdrop-filter 0.3s ease;
  border-top: solid 5px #1e1100;
}

header.minimized {
  position: fixed;
  top: -100px;
  padding: 5px 10px;
  width: 100%;
  border-top: none;
  transition: top 0.5s ease;
}

header.minimized.active {
  top: 0;
}

header.minimized nav ul {
  opacity: 0;
  transform: translateY(-20px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

header.minimized.active nav ul {
  opacity: 1;
  transform: translateY(0);
}

header.minimized .logo {
  display: none;
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.8);
}

.logo {
  padding: 5px;
}

.logo img {
  width: 250px;
  height: auto;
  max-width: 250px;
}

header .logo-minimizado {
  display: none;
  width: 50px;
  padding: 5px;
}

header.minimized .logo-minimizado {
  display: inherit;
}

header.minimized .menu-toggle {
  top: 32px;
  margin-right: 20px;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  transition:
    color 0.3s ease,
    background-color 0.3s ease;
}

nav ul li a:hover {
  color: #20949a;
}

nav ul {
  flex-direction: column;
  justify-content: flex-start;
  display: none;
  width: 100%;
  text-align: center;
}

nav.active ul {
  display: flex;
}

nav ul li {
  margin: 10px 0;
}

.menu-toggle {
  display: flex;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 25px;
  width: 30px;
  cursor: pointer;
  z-index: 999;
}

.menu-toggle div {
  height: 4px;
  background-color: #fff;
  border-radius: 5px;
}

.social-links i {
  margin: 2px;
}

.social-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.7em;
  text-align: center;
  padding: 1em;
}

.seccion-botones span {
  font-family: "Gotham";
  color: #000;
}

.form-en-menu {
  display: none;
}

.social-links.menu-social {
  display: none;
}

.buscar-referencia {
  height: 48px;
  width: 40px;
  background-color: #64bc32;
  border: none;
  border-radius: 0 4px 4px 0;
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.fab.fa-linkedin-in,
.fab.fa-facebook,
.fab.fa-instagram,
.fab.fa-youtube {
  font-size: 18px;
}

.referencia-buscador {
  width: 250px;
  flex: 1;
  height: 48px;
  padding: 0 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
}

.btn-asesoria {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease;
  height: 48px;
  width: 140px;
  padding-left: 40px;
  background-color: #64bc32;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.btn-cotizar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease;
  height: 48px;
  width: 180px;
  padding-left: 25px;
  background-color: #64bc32;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  font-weight: 400;
}

.btn-cotizar:hover,
.btn-asesoria:hover {
  background-color: #fff;
  color: #64bc32;
}

.btn-menu-cotizar {
  height: 48px;
  width: 180px;
  background-color: #64bc32;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: none;
  align-content: center;
  line-height: 2.5em;
}

#inicio .swiper {
  width: 100%;
  height: 65vh;
  position: relative;
  padding-top: 93.8px;
}

.encabezado {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 10px 20px;
  gap: 15px;
  width: 100%;
  max-width: 1200px;
  align-self: center;
  justify-content: center;
  margin: 0 auto;
}

.formulario-buscar {
  display: flex;
  align-items: center;
}

h1 {
  margin-top: 0;
  font-size: 3em;
}

p {
  font-size: 1.2em;
  text-align: center;
  margin: 0 10%;
}

.footer {
  background-color: #282f38;
  color: #989898;
  padding: 40px 0;
  font-family: "Gotham", sans-serif;
  font-size: 14px;
}

.footer-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #fff;
  text-transform: uppercase;
  border-bottom: 2px solid #1e90ff;
  display: inline-block;
  padding-bottom: 5px;
}

.footer-brand h3 {
  font-size: 1.5rem;
  margin: 0;
  text-align: center;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 0 15px;
}

.footer-column {
  flex: 1;
  padding: 10px;
  min-width: 220px;
}

.footer-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  margin-bottom: 8px;
}

.footer-list a {
  color: #FFF;
  text-decoration: none;
}

.footer-list a:hover {
  color: #ffffff;
}

.footer-info .footer-brand {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 10px;
}

.footer-link {
  color: #ffffff;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-column {
    margin-bottom: 20px;
  }

  #header .menu .social-links a {
    border-bottom: none;
    display: inline-block;
  }

  .social-links {
    text-align: center;
    position: relative;
    margin-bottom: 10px;
  }

  .social-links a {
    border-bottom: none;
  }

  .social-links i {
    text-decoration: none;
  }

  .fab.fa-linkedin-in,
  .fab.fa-facebook,
  .fab.fa-instagram,
  .fab.fa-youtube {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .formulario-buscar,
  .btn-asesoria,
  .btn-cotizar,
  .social-links {
    display: none;
  }

  .social-links.menu-social {
    display: inline-block;
  }

  .form-en-menu {
    display: flex;
  }

  .btn-menu-cotizar,
  .btn-menu-asesoria {
    display: inline-block;
  }

  .menu-toggle {
    position: absolute;
    top: 35px;
    right: 15px;
  }

  .encabezado {
    display: inline-block;
    padding: 10px 5px;
  }

  .minimized.active .encabezado {
    padding: 0px 0px;
  }

  .logo img {
    width: 180px;
    max-width: 180px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 10px 10px;
  }
}

.nav-bar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 40%;
  height: 100vh;
  background-color: #283138;
  overflow-y: auto;
  transition: right 0.3s ease;
  z-index: 999;
  display: none;
}

.nav-bar.active {
  right: 0;
  display: block;
}

@media (max-width: 767px) {
  .nav-bar {
    width: 80%;
  }
}

.cerrar-menu {
  position: absolute;
  right: 35px;
  top: 5px;
  cursor: pointer;
  font-size: 35px !important;
}

.wa-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}

.wa-button {
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 26px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.wa-button:hover {
  transform: scale(1.1);
}

.wa-bubble {
  position: absolute;
  bottom: 75px;
  right: 0;
  background: #fff;
  padding: 12px 14px;
  border-radius: 12px;
  width: 220px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  color: #333;
  display: none;
  animation: fadeInUp 0.4s ease;
}

.wa-bubble p {
  margin: 0;
}

.wa-close {
  position: absolute;
  top: 5px;
  right: 8px;
  border: none;
  background: none;
  font-size: 16px;
  cursor: pointer;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.secciones-banner {
  width: 100%;
  max-height: 180px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 25px;
}

.secciones-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.btn-contacto {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 18px;
  background: #1fa84a;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
}

.btn-asesoria-contacto {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 18px;
  background: #0077cc;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
}

.serviciosverde {
  font-family: "Gotham";
  font-weight: 700;
  color: #64bc32;
  display: block;
}

.servicioazul {
  font-family: "Gotham";
  font-weight: 700;
  color: #043875;
  text-transform: uppercase;
}

.icon {
  width: 20px;
  height: 20px;
}

.wa-wrapper .icon {
  width: 30px;
  height: 30px;
}

.cookie-banner {
  position: fixed;
  bottom: 0px;
  left: 0px;
  right: 0px;
  width: 100%;
  background: #111;
  color: #fff;
  padding: 19px;
  box-sizing: border-box;
  z-index: 9999;
  display: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  text-align: center;
}

.cookie-banner p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.4;
}

.cookie-buttons {
  display: block;
}

.cookie-buttons button {
  border: 0;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
  border-radius: 6px;
}

#acceptCookies {
  background: #fff;
  color: #000;
}

#rejectCookies {
  color: #fff;
  position: absolute;
  right: 5px;
  top: 5px;
  cursor: pointer;
  background-color: transparent;
  border: none;
}

#cookieBanner a{
  text-decoration: none;
  color: #fff;
  font-weight: bold;
}
