/* Core Variables */
:root {
  --primary-color: #C0D72F;
  --bg-color: #000000;
  --bg-dark: #121212;
  --surface-color: #1E1E1E;
  --text-color: #FFFFFF;
  --text-muted: #AAAAAA;
  --transition-speed: 0.3s;
}

/* Global Reset & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-speed);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--bg-color);
  border: 2px solid var(--primary-color);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--primary-color);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-color);
  border: 2px solid var(--text-color);
}

.btn-secondary:hover {
  background-color: var(--text-color);
  color: var(--bg-color);
}

.btn-outline-nav {
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 8px 20px;
  font-size: 0.9rem;
}

.btn-outline-nav:hover {
  background-color: var(--primary-color);
  color: var(--bg-color);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: background-color var(--transition-speed);
}

.navbar.scrolled {
  background-color: var(--bg-color);
  padding: 15px 5%;
}

.logo-container img {
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  transition: color var(--transition-speed);
}

.nav-links a:hover {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  /* 60% opacity */
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 40px;
  color: #DDDDDD;
}

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

/* Sections General */
section {
  padding: 80px 5%;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  font-weight: 700;
}

.section-title span {
  color: var(--primary-color);
}

/* Aliados / Partners Carousel */
.aliados {
  background-color: var(--bg-color);
  overflow: hidden;
  /* Hide scrollbars */
}

/* Slider Container */
.slider {
  height: 120px;
  margin: auto;
  overflow: hidden;
  position: relative;
  width: 100%;
}

/* Gradient Edges (Optional - makes it look smoother) */
.slider::before,
.slider::after {
  background: linear-gradient(to right, var(--bg-color) 0%, rgba(0, 0, 0, 0) 100%);
  content: "";
  height: 120px;
  position: absolute;
  width: 100px;
  z-index: 2;
}

.slider::after {
  right: 0;
  top: 0;
  transform: rotateZ(180deg);
}

.slider::before {
  left: 0;
  top: 0;
}

/* Track movement */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-250px * 9));
  }

  /* Move exactly half the track width if doubled, or 1/3 if tripled. We have 18 slides total. We want to move 6 slides worth? No, we want to move the length of the original set. Original set is 6 slides.
    Let's calculate: 18 slides. width of one slide is 250px.
    We want to reset after showing the first 6. So move -250px * 6 = -1500px.
    Wait, let's just make it simple. We move from 0 to -1/3 of the width if we have 3 sets. 
    Actually, simpler logic:
    Total width = 18 * 250px.
    We want to seamlessly loop. The content repeats every 6 items.
    So we translate X by -(width of 6 items).
    Width of 1 item = 250px.
    TranslateX = -1500px.
    */
  100% {
    transform: translateX(calc(-250px * 6));
  }
}

.slide-track {
  animation: scroll 20s linear infinite;
  display: flex;
  width: calc(250px * 18);
  /* 250px * total slides */
}

/* Individual Slide */
.slide {
  height: 100px;
  width: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  /* Spacing between logos */
}

.slide img {
  max-height: 80px;
  max-width: 100%;
  /* Keep the white background style requested earlier */
  background-color: #ffffff;
  padding: 10px;
  border-radius: 8px;
  object-fit: contain;
  transition: transform 0.3s;
}

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

/* Services */
.servicios {
  background-color: var(--bg-dark);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--surface-color);
  padding: 40px;
  border-radius: 8px;
  transition: all var(--transition-speed);
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(192, 215, 47, 0.3);
  box-shadow: 0 10px 30px rgba(192, 215, 47, 0.1);
}

.service-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.service-card p {
  color: var(--text-muted);
}

/* Technology */
.tecnologia {
  background-color: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: wrap;
}

.tech-content {
  flex: 1;
  min-width: 300px;
}

.tech-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

.tech-mockup {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(192, 215, 47, 0.2);
}

.divider-line {
  height: 2px;
  width: 100px;
  background-image: linear-gradient(90deg, var(--primary-color) 50%, transparent 50%);
  background-size: 10px 2px;
  margin: 20px 0;
}

/* Flota */
.flota {
  background-color: var(--bg-dark);
}

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.fleet-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  height: 250px;
}

.fleet-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.fleet-item:hover img {
  transform: scale(1.1);
}

.fleet-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  padding: 20px;
}

.fleet-info h3 {
  color: var(--primary-color);
  margin-bottom: 5px;
}

/* Contact */
.contacto {
  background-color: var(--bg-color);
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
}

.contact-info,
.contact-form-container {
  flex: 1;
  min-width: 300px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.info-icon {
  font-size: 2rem;
  color: var(--primary-color);
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  background: var(--surface-color);
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-color);
  font-family: inherit;
  transition: border-color var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--primary-color);
}

/* Footer */
footer {
  background-color: black;
  padding: 40px 5%;
  text-align: center;
  border-top: 1px solid #333;
}

.footer-content p {
  color: var(--text-muted);
  margin-top: 10px;
}

/* Convenios */
/* Convenios */
.convenios {
  background-color: var(--bg-color);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-top: -40px;
  margin-bottom: 60px;
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.convenios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.convenio-card {
  background-color: #161616;
  /* Slight variation from bg-dark */
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  /* Subtle border */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.convenio-card:hover {
  transform: translateY(-8px);
  border-color: rgba(192, 215, 47, 0.4);
  /* Primary color glow */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.convenio-card img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  margin-bottom: 25px;
  /* Give images some pop */
  filter: brightness(0.9);
  transition: filter 0.3s;
}

.convenio-card:hover img {
  filter: brightness(1.05);
}

.convenio-card h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

.convenio-card p {
  color: #999;
  font-size: 0.95rem;
  padding: 0 10px;
  line-height: 1.5;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .navbar {
    flex-direction: column;
    padding: 15px;
  }

  .nav-links {
    margin-top: 15px;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .tech-content,
  .tech-image {
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
  }
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  /* Moved to right */
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 1000;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-float:hover {
  background-color: #20b958;
  transform: scale(1.1);
}

.whatsapp-float i {
  margin-top: 0;
}

/* Updated Technology Section 3-Column */
.tech-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  /* Tighter gap */
  margin-top: 40px;
  flex-wrap: nowrap;
  /* Prevent wrapping too early */
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.tech-features-left,
.tech-features-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 50px;
  /* Space between features vertical */
  max-width: 350px;
}

.tech-features-left {
  text-align: right;
  align-items: flex-end;
}

.tech-features-right {
  text-align: left;
  align-items: flex-start;
}

.tech-image-center {
  flex: 0 0 auto;
  width: 320px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 20px;
}

.app-mockup-large {
  width: 100%;
  height: auto;
  max-width: 320px;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.7));
  transform: scale(1.05);
  /* Make it pop slightly */
}

.tech-feature {
  display: flex;
  flex-direction: row;
  /* Icon next to text */
  gap: 20px;
  align-items: flex-start;
}

/* Specific alignment for left side features */
.tech-features-left .tech-feature {
  flex-direction: row-reverse;
  /* Icon on right, text on left */
}

.feature-icon {
  font-size: 1.4rem;
  color: var(--primary-color);
  background: rgba(192, 215, 47, 0.1);
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  /* Don't shrink icon */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  /* Softer shape */
  border: 1px solid rgba(192, 215, 47, 0.2);
}

.tech-feature h3 {
  font-size: 1.1rem;
  color: #fff;
  margin: 0 0 5px 0;
  font-weight: 600;
}

.tech-feature p {
  font-size: 0.9rem;
  color: #bbb;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 992px) {
  .tech-container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .tech-features-left,
  .tech-features-right {
    text-align: center;
    align-items: center;
    max-width: 100%;
  }

  .tech-feature,
  .tech-features-left .tech-feature {
    flex-direction: column;
    /* Stack vertically on mobile */
    align-items: center;
    text-align: center;
    gap: 15px;
  }

  .tech-image-center {
    order: -1;
    margin: 0;
  }
}