* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
}

.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 15px 0;
  background: rgba(0, 0, 0, 0.2); 
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.main-header.scrolled {
  background: rgba(00, 33, 54, 0.95);
  padding: 6px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 100px;
  transition: transform 0.3s ease, height 0.3s ease;
}

.main-header.scrolled .logo img {
  height: 70px;
}

.logo img:hover {
  transform: scale(1.05);
}

.main-nav a {
  color: white;
  text-decoration: none;
  margin-left: 25px;
  font-weight: 500;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  padding-bottom: 4px;
  position: relative;
}

.main-nav a:hover {
  color: #00FF2F;
  border-bottom: 2px solid #00FF2F;
}

#inicio {
  position: relative;
  background-image: url('../images/banner-transporte.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 100vh;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

#inicio::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.55);
  z-index: 1;
}

#inicio .content {
  position: relative;
  z-index: 2;
  padding: 20px;
  max-width: 800px;
  animation: float3D 4s ease-in-out infinite;
  transform-style: preserve-3d;
}

#inicio h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
  animation: fadeInUp 1s ease-out forwards;
}

#inicio h1 span {
  color: #00FF91;
}

#inicio p {
  font-size: 1.3rem;
  line-height: 1.6;
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.5s;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.6);
}

.cta-btn {
  display: inline-block;
  margin-top: 30px;
  padding: 14px 28px;
  background-color: #00FF91;
  color: #000;
  font-weight: bold;
  border-radius: 40px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.cta-btn:hover {
  background-color: #00FF91;
}

@keyframes float3D {
  0%, 100% { transform: translateY(0) rotateX(0deg) rotateY(0deg); }
  25% { transform: translateY(-15px) rotateX(5deg) rotateY(3deg); }
  50% { transform: translateY(0px) rotateX(0deg) rotateY(0deg); }
  75% { transform: translateY(15px) rotateX(-5deg) rotateY(-3deg); }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  padding: 100px 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#servicios {
  background: #f2f2f2;
}

#nosotros {
  background: #ffffff;
}

#contacto {
  background: #00836D;
  color: white;
}

h1, h2 {
  margin-bottom: 20px;
}

p {
  max-width: 600px;
}

footer {
  text-align: center;
  padding: 20px;
  background: #002136;
  color: #ccc;
}
