:root {
  --primary-blue: #0b3d91;
  --light-blue: #2d9cdb;
  --aqua: #56ccf2;
  --brand-green: #27ab70;
  --brand-magenta: #f005f5;
  --brand-magenta-soft: #ff9ef5;
  --dark: #111827;
  --soft-bg: #f4f8fc;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--dark);
  background-color: var(--white);
  line-height: 1.6;
}

.section-padding {
  padding: 80px 0;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(3px);
  transition: opacity 0.7s ease, transform 0.7s ease, filter 0.7s ease;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.section-alt {
  background: var(--soft-bg);
}

.custom-navbar {
  background: #091f33;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.navbar-brand {
  color: #fff;
}

.navbar-brand:hover,
.navbar-brand:focus {
  color: #fff;
}

.navbar-brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text strong {
  font-size: 0.98rem;
}

.logo-text small {
  font-size: 0.7rem;
  opacity: 0.8;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  border-radius: 0.55rem;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: #fff;
}

.custom-navbar .nav-link:active,
.custom-navbar .nav-link.active {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.16);
}

.custom-navbar .nav-link.active {
  box-shadow: inset 0 -2px 0 var(--brand-magenta);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.45);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.2);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.btn-call {
  background: linear-gradient(135deg, var(--brand-green), var(--brand-magenta));
  color: #fff;
  border: none;
  font-weight: 600;
}

.btn-call:hover {
  color: #fff;
  transform: translateY(-1px);
}

.hero-section {
  min-height: 100vh;
  padding: 130px 0 90px;
  background:
    linear-gradient(120deg, rgba(11, 61, 145, 0.92), rgba(45, 156, 219, 0.86)),
    url("imagenes/aire_1.jpg") center/cover no-repeat;
  color: #fff;
}

.bg-gradient-main {
  background: linear-gradient(135deg, var(--brand-green), var(--brand-magenta));
  color: #fff;
  font-weight: 600;
}

.btn-main {
  background: linear-gradient(135deg, var(--brand-green), var(--brand-magenta));
  border: none;
  color: #fff;
  font-weight: 600;
}

.btn-main:hover,
.btn-main:focus {
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-main {
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #fff;
  font-weight: 600;
}

.btn-outline-main:hover,
.btn-outline-main:focus {
  background: #fff;
  color: var(--primary-blue);
}

.hero-highlights {
  display: grid;
  gap: 8px;
}

.hero-highlights div i {
  color: var(--brand-green);
  margin-right: 8px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 1rem;
  overflow: hidden;
}

.hero-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.hero-card-info {
  color: var(--dark);
  padding: 1rem;
}

.section-title {
  max-width: 720px;
  margin: 0 auto 2.2rem;
}

.section-title h2 {
  font-weight: 700;
}

.service-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.4rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(11, 61, 145, 0.18);
}

.service-icon {
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 0.8rem;
}

.stat-card {
  background: linear-gradient(120deg, var(--primary-blue), var(--light-blue));
  color: #fff;
  border-radius: 0.9rem;
  padding: 1rem;
  text-align: center;
}

.stat-card span {
  display: block;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.1;
}

.stat-card p {
  margin: 0;
  font-size: 0.95rem;
}

.gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.02);
}

.gallery-item-btn {
  border: 0;
  width: 100%;
  padding: 0;
  border-radius: 0.8rem;
  overflow: hidden;
  position: relative;
  background: transparent;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.12);
}

.gallery-item-btn img {
  display: block;
}

.gallery-item-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.45));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-item-btn:hover::after {
  opacity: 1;
}

.gallery-chip {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  background: rgba(17, 24, 39, 0.78);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.gallery-filters {
  margin-bottom: 0.5rem;
}

.gallery-filter-btn {
  border: 1px solid #cfe0f5;
  background: #fff;
  color: var(--primary-blue);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
}

.gallery-filter-btn:hover {
  border-color: var(--light-blue);
  color: var(--light-blue);
}

.gallery-filter-btn.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand-green), var(--brand-magenta));
  color: #fff;
}

.modal-content {
  border: 0;
  border-radius: 1rem;
}

.modal-header {
  border-bottom: 1px solid #e9eef5;
}

.modal-body p {
  color: #374151;
}

.carousel-control-prev,
.carousel-control-next {
  width: 12%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(17, 24, 39, 0.6);
  border-radius: 50%;
  padding: 0.85rem;
  background-size: 65% 65%;
}

.gallery-modal-image {
  max-height: min(68vh, 620px);
  object-fit: cover;
}

.section-contact {
  background: linear-gradient(180deg, var(--soft-bg), #eaf5ff);
}

.contact-list li {
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
}

.contact-list i {
  color: var(--primary-blue);
  margin-right: 8px;
}

.contact-list a {
  color: var(--primary-blue);
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-form .form-control {
  border-radius: 0.7rem;
  border: 1px solid #d9e2ef;
  padding: 0.7rem 0.85rem;
}

.contact-form .form-control:focus {
  border-color: var(--light-blue);
  box-shadow: 0 0 0 0.25rem rgba(45, 156, 219, 0.18);
}

.site-footer {
  background: #091f33;
  color: rgba(255, 255, 255, 0.88);
}

.footer-copy,
.footer-tagline {
  color: rgba(255, 255, 255, 0.78);
}

.footer-note {
  color: rgba(255, 255, 255, 0.55);
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  font-size: 1.8rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  z-index: 1050;
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  color: #fff;
  transform: scale(1.08);
}

@media (max-width: 991.98px) {
  .custom-navbar .navbar-collapse {
    margin-top: 0.6rem;
    padding: 0.8rem;
    border-radius: 0.8rem;
    background: rgba(0, 0, 0, 0.22);
  }

  .hero-section {
    min-height: auto;
    padding-top: 120px;
  }
}

@media (max-width: 575.98px) {
  .section-padding {
    padding: 64px 0;
  }

  .hero-card img {
    height: 220px;
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
    font-size: 1.6rem;
    right: 12px;
    bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal,
  .scroll-reveal.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}
