* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-white: #fff;
}

html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

i {
  color: #caaf6f;
}

/* Botones */
.animated-button {
  position: relative;
  display: inline-block;
  padding: 12px 24px;
  border: none;
  font-size: 16px;
  background-color: inherit;
  border-radius: 100px;
  font-weight: 600;
  color: #ffffffd8;
  box-shadow: 0 0 0 2px #b9b9b988;
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button span:last-child {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background-color: #caaf6f;
  border-radius: 50%;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button span:first-child {
  position: relative;
  z-index: 1;
}

.animated-button:hover {
  box-shadow: 0 0 0 5px #caaf6f;
  color: #ffffff;
}

.animated-button:active {
  scale: 0.95;
}

.animated-button:hover span:last-child {
  width: 150px;
  height: 150px;
  opacity: 1;
}

/* Header */
header {
  background: url("../images/background_header.webp") no-repeat center;
  background-size: cover;
  min-height: 100vh;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

header .container {
  position: relative;
  z-index: 2;
}

header .lead {
  font-size: 1.25rem;
}

@media (max-width: 768px) {
  header {
    min-height: 100svh;
  }

  header .lead {
    font-size: 1rem;
    padding: 0 1rem;
  }
}

@media (max-width: 576px) {
  header .lead {
    font-size: 0.9rem;
  }
}

.header-logo {
  max-width: 18rem;
}

@media (max-width: 768px) {
  .header-logo {
    max-width: 14rem;
  }
}

@media (max-width: 576px) {
  .header-logo {
    max-width: 10rem;
  }
}

.background-primary {
  background: #303030;
}

.background-secondary {
  background: #c9af6f;
}

/* Servicios */
.card-service {
  background-color: rgba(255, 255, 255, 0);
  padding: 15px;
  color: #fff;
  border-radius: 50px;
  transition: all 0.5s ease;
}

.card-service img {
  width: 9rem;
  height: auto;
}

.card-service:hover {
  border: #fff solid 1px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* Clientes */
.client-logo {
  width: 100%;
  height: 120px;
  background: rgba(255, 255, 255);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.client-logo:hover {
  transform: scale(1.05);
}

.client-logo img {
  max-width: 80%;
  max-height: 100px;
  height: auto;
  object-fit: contain;
}

/* Navbar */
.custom-navbar {
  background: #303030 !important;
  padding-top: 10px;
  padding-bottom: 10px;
  overflow: hidden !important;
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1030;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.custom-navbar .container {
  padding-left: 15px;
  padding-right: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
}

.custom-navbar.navbar-show {
  background: #303030bb !important;
  transform: translateY(0) !important;
}

.custom-navbar.navbar-hide {
  transform: translateY(-100%) !important;
}

.custom-navbar.navbar-sticky {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.445);
}

.custom-navbar img {
  max-width: 10rem;
}

.custom-navbar .navbar-brand {
  font-size: 32px;
  font-weight: 600;
}

.custom-navbar .navbar-brand > span {
  opacity: 0.4;
}

.custom-navbar .navbar-toggler {
  border-color: transparent;
}

.custom-navbar .navbar-toggler:active,
.custom-navbar .navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

.custom-navbar .custom-navbar-nav li {
  margin-left: 15px;
  margin-right: 15px;
}

.custom-navbar .custom-navbar-nav li a {
  font-weight: 500;
  color: #fff !important;
  opacity: 0.5;
  transition: all 0.3s ease;
  position: relative;
}

.custom-navbar .custom-navbar-nav li a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 8px;
  right: 8px;
  background: #caaf6f;
  height: 5px;
  opacity: 1;
  visibility: visible;
  width: 0;
  transition: all 0.3s ease;
}

.custom-navbar .custom-navbar-nav li a:hover {
  opacity: 1;
}

.custom-navbar .custom-navbar-nav li a:hover::before {
  width: calc(100% - 16px);
}

.custom-navbar .custom-navbar-nav li.active a {
  opacity: 1;
}

.custom-navbar .custom-navbar-nav li.active a::before {
  width: calc(100% - 16px);
}

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  opacity: 1;
  pointer-events: auto;
}

.whatsapp-float.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.whatsapp-float i {
  font-size: 32px;
  color: #fff;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  transform: scale(1.1);
}

.whatsapp-float:active {
  transform: scale(0.95);
}

.whatsapp-float:not(.hidden) {
  animation: whatsapp-bounce 2s ease-in-out infinite;
}

.whatsapp-float:hover:not(.hidden) {
  animation: none;
}

@keyframes whatsapp-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Navbar Hamburger */
.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  position: relative;
}

.hamburger-icon .line {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--color-white);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: all 0.3s ease-in-out;
}

.hamburger-icon .line:nth-child(1) {
  top: 0;
}

.hamburger-icon .line:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-icon .line:nth-child(3) {
  bottom: 0;
}

.navbar-toggler {
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  background: transparent !important;
}

.navbar-toggler:focus {
  box-shadow: none !important;
  outline: none !important;
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon .line:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon .line:nth-child(2) {
  opacity: 0;
  transform: translateY(-50%) scale(0);
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon .line:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}
