:root {
  --primary-color: #0066cc;
  --secondary-color: #004494;
  --accent-color: #00a3e0;
  --text-dark: #212529;
  --text-light: #6c757d;
  --success-color: #28a745;
  --bg-light: #f8f9fa;
  --navbar-height: 76px;
}

section[id] {
  scroll-margin-top: var(--navbar-height);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.navbar {
  transition: all 0.3s ease;
  --bs-navbar-padding-y: 0.2rem;
}

.navbar.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-size: 1.5rem;
  color: var(--primary-color) !important;
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.hero-section {
  padding-top: 30px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero-section h1 {
  color: var(--secondary-color);
  animation: fadeInUp 0.8s ease;
}

.hero-section p {
  animation: fadeInUp 1s ease;
}

.hero-section .btn {
  animation: fadeInUp 1.2s ease;
}

.hero-section img {
  animation: fadeIn 1.5s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.service-card {
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 102, 204, 0.15);
}

.service-icon {
  font-size: 3rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
  color: var(--accent-color);
}

.card-title {
  color: var(--secondary-color);
  font-weight: 600;
}

#nosotros img {
  transition: transform 0.3s ease;
}

#nosotros img:hover {
  transform: scale(1.02);
}

.bi-check-circle-fill {
  flex-shrink: 0;
}

#contacto .card {
  transition: all 0.3s ease;
}

#contacto .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.form-control {
  border: 1px solid #dee2e6;
  padding: 0.75rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.15);
}

footer a {
  transition: all 0.3s ease;
  font-size: 1.5rem;
}

footer a:hover {
  color: var(--accent-color) !important;
  transform: translateY(-3px);
}

.whatsapp-button {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  z-index: 1050;
  text-decoration: none;
  animation: pulse 2s infinite;
}

.whatsapp-button:hover {
  background-color: #20ba5a;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
  color: white;
}

body.banner-visible .whatsapp-button {
  bottom: 120px;
}

.ocultar-si-aceptado {
  display: none !important;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@media (max-width: 991px) {
  body.banner-visible .whatsapp-button {
    bottom: 50px;
  }

  :root {
    --navbar-height: 76px;
  }

  .navbar-nav {
    padding: 1rem 0;
  }

  .nav-link {
    margin: 0.5rem 0;
  }

  .hero-section {
    padding-top: var(--navbar-height);
    text-align: center;
  }

  .hero-section .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .whatsapp-button {
    width: 50px;
    height: 50px;
    font-size: 26px;
    bottom: 16px;
    right: 16px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem !important;
  }

  .display-5 {
    font-size: 2rem !important;
  }

  .lead {
    font-size: 1rem;
  }
}

.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

img {
  max-width: 100%;
  height: auto;
}

@media (min-width: 1600px) {
  .container-xxl {
    max-width: 90% !important;
  }
}
