body, html {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', system-ui, sans-serif;
  color: #fff;
  background: #0a0a0a;
  scroll-behavior: smooth;
}

html {
  scroll-behavior: smooth;
}

.navbar {
  background: linear-gradient(90deg, #001f3f, #003366, #004080);
  background-size: 300% 300%;
  animation: navbarGradient 10s ease infinite;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 60px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.4s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@keyframes navbarGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.navbar.scrolled {
  background: linear-gradient(90deg, #001933, #003366);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.logo img {
  height: 55px;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.1);
}


.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: all 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -3px;
  left: 0;
  background: #38a1ff;
  transition: 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: #38a1ff;
  text-shadow: 0 0 10px rgba(56,161,255,0.6);
}

#lang-select {
  background: #001830;  
  color: #ffffff;
  border: 1px solid #3b6ea5;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  appearance: none;
  cursor: pointer;
}

#lang-select option {
  background: #001830;
  color: white;
}

.nav-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #fff;
  background: transparent;
  border: none;
  transition: transform 0.3s ease;
}

.nav-toggle:hover {
  transform: scale(1.2);
}

@media (max-width: 900px) {
  .navbar {
    padding: 15px 20px;
  }
}

.hero {
  background: url('img/fondo_inicio.jpg') center/cover no-repeat;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.hero-content {
  text-align: center;
  z-index: 2;
  animation: fadeIn 1s ease-in-out;
}

.hero-content h1 {
  font-size: 3.2rem;
  margin: 0 0 6px;
}

.hero-content p {
  font-size: 1.8rem;
  color: #dcdcdc;
  margin: 0 0 18px;
  font-style: italic;
}

.hero-content h3 {
  font-size: 1.2rem;
  color: #f1f1f1;
  max-width: 720px;
  margin: 0 auto 20px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn, .btn-secondary, .btn-outline {
  display: inline-block;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 800;
  transition: all 0.25s ease;
}

.btn {
  background: #0074D9;
  color: #fff;
  box-shadow: 0 12px 28px rgba(0,116,217,0.25);
}

.btn:hover {
  background: #005fa3;
  transform: translateY(-1px);
}

.btn-secondary {
  border: 2px solid #38a1ff;
  color: #38a1ff;
  background: transparent;
}

.btn-secondary:hover {
  background: #38a1ff;
  color: #001226;
}

.btn-outline {
  border: 2px solid #38a1ff;
  color: #fff;
  background: transparent;
}

.btn-outline:hover {
  background: #38a1ff;
  color: #001226;
}

.tmc-section {
  position: relative;
  isolation: isolate;
  padding: 70px 20px;
  text-align: center;
  background: linear-gradient(135deg, #adc2d2 0%, #e7e9eb 70%);
  overflow: hidden;
}

.tmc-inner {
  max-width: 1024px;
  margin: 0 auto;
}

.tmc-inner h2 {
  font-size: 2.2rem;
  margin: 0 0 10px;
  color: #0a0a0a;
}

.tmc-inner p {
  color: #0a0a0a;
  max-width: 880px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

.mision-vision-section {
  background: linear-gradient(180deg, #0c1d3a 0%, #11254d 100%);
  color: #fff;
  padding: 100px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.mision-vision-section .container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 50px;
  flex-wrap: nowrap; 
}

.vision-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 50px 35px;
  width: 50%;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transition: all 0.8s ease;
  transform: translateY(50px);
  opacity: 0;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vision-card.show {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade-in-left"].show {
  animation: fadeInLeft 1s ease forwards;
}

[data-animate="fade-in-right"].show {
  animation: fadeInRight 1s ease forwards;
}



.icon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.icon-mv {
  width: 70px;
  transition: all 0.8s ease;
  filter: drop-shadow(0 0 0 rgba(56,161,255,0));
}

.vision-card.show .icon-mv {
  transform: scale(1.15);
  filter: drop-shadow(0 0 12px rgba(56,161,255,0.7));
}

.vision-card:hover .icon-mv {
  transform: scale(1.2);
  filter: drop-shadow(0 0 18px rgba(56,161,255,0.8));
}

.vision-card h2 {
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
}

.vision-card h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #38a1ff;
  margin: 8px auto 15px;
  border-radius: 3px;
}

.vision-card p {
  font-size: 1rem;
  color: #e6e6e6;
  line-height: 1.6;
}

@keyframes fadeInLeft {
  from {
    transform: translateX(-80px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeInRight {
  from {
    transform: translateX(80px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (max-width: 992px) {
  .mision-vision-section .container {
    flex-direction: column !important;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
  }

  .vision-card {
    width: 90%;
  }
}

.units-section {
  background: #111;
  padding: 60px 20px;
  text-align: center;
}

.units-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.units-section h2 {
  font-size: 2rem;
}

.units-section .subtitle {
  color: #cfcfcf;
  margin-bottom: 25px;
}

.vehiculos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 10px 0 30px;
}

.vehiculos img {
  width: 260px;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px dashed #555; 
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.25);
  filter: saturate(1.02) contrast(1.02);
  transition: transform .28s ease, box-shadow .28s ease, filter .28s ease;
}

.vehiculos img:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.55),
    0 8px 22px rgba(0, 0, 0, 0.35),
    0 0 0 2px rgba(56, 161, 255, 0.35); 
  filter: saturate(1.06) contrast(1.06);
}

@media (hover: none) {
  .vehiculos img:hover {
    transform: none;
    box-shadow:
      0 10px 22px rgba(0, 0, 0, 0.35),
      0 2px 8px rgba(0, 0, 0, 0.25),
      0 0 0 0 rgba(56, 161, 255, 0); 
    filter: saturate(1.02) contrast(1.02);
  }
}

.cta-final {
  position: relative;
  isolation: isolate;
  min-height: 520px;
  padding: 60px 20px;
  background: #081523;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: url('img/fondo_contacto.jpg') center/cover no-repeat fixed;
  filter: blur(2px) brightness(0.55);
  z-index: -2;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0,59,121,.7), rgba(0,9,31,.8));
  z-index: -1;
}

.cta-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.glass {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}

.cta-form {
  padding: 28px;
}

.cta-form h2 {
  font-size: 2rem;
  margin: 0 0 6px;
}

.cta-sub {
  color: #d7e6ff;
  margin-bottom: 18px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form input, .contact-form textarea {
  padding: 12px 14px;
  border: none;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  margin-top: 6px;
}

.cta-info {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.cta-logo {
  width: 120px;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.45));
}

.cta-contact p {
  margin: 6px 0;
  color: #eaf2ff;
}

.cta-contact a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px dotted rgba(255,255,255,0.35);
}

.cta-contact a:hover {
  color: #38a1ff;
}

.cta-follow {
  font-size: 1.3rem;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(56,161,255,0.6);
  margin-top: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.cta-social {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  border: 2px solid rgba(255,255,255,0.5);
  transition: all 0.25s;
}

.circle:hover {
  transform: translateY(-2px) rotate(-2deg);
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}

.circle.fb {
  background: rgba(24,119,242,0.25);
}

.circle.fb:hover {
  background: #1877f2;
}

.circle.ig {
  background: rgba(225,48,108,0.25);
}

.circle.ig:hover {
  background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888);
}

footer {
  background: #001f3f;
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
}

.whatsapp-float {
  position: fixed;
  width: 56px;
  height: 56px;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  text-decoration: none;
  box-shadow: 0 0 12px rgba(0,0,0,0.3);
  z-index: 9999;
}

.whatsapp-float:hover {
  background: #1ebc57;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .cta-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    height: 78vh;
  }
  .navbar {
    padding: 15px 20px;
  }
  .hero-content h1 {
    font-size: 2.4rem;
  }
  .hero-content p {
    font-size: 1.3rem;
  }
  .vision-card {
    width: 90%;
  }
}

.nav-toggle {
  display: none;
}

@media (max-width: 900px) {

  .nav-links,
  #lang-select {
    display: none;
  }

  .nav-toggle {
    display: block;
    font-size: 1.9rem;
    color: #fff;
    cursor: pointer;
    z-index: 1100;
    background: none;
    border: none;
    transition: transform 0.3s ease;
  }

  .nav-toggle:hover {
    transform: scale(1.2);
  }

  .menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
    z-index: 900;
  }

  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  
  .mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    background: linear-gradient(180deg, #001f3f, #003366, #004080);
    box-shadow: -6px 0 20px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px 25px;
    transition: right 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background-size: 200% 200%;
    animation: menuGradient 12s ease infinite;
  }

  .mobile-menu.open {
    right: 0;
  }

  @keyframes menuGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }

  .mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 25px;
  }

  .mobile-menu-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform 0.3s ease;
  }

  .mobile-menu-header button:hover {
    transform: rotate(90deg);
  }


  .mobile-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
  }

  .mobile-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-links a:hover {
    color: #38a1ff;
    text-shadow: 0 0 8px rgba(56,161,255,0.7);
    transform: translateX(6px);
  }
}

html, body {
  overflow-x: hidden;
}

@media (min-width: 901px) {
  .mobile-menu,
  .menu-overlay {
    display: none !important;
  }
}
