/* ====== BASE ====== */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #c9cdc9ae;
  margin: 0;
  padding: 0;
}

/* ====== TOP BAR Y NAVBAR ====== */
.top-bar {
  background-color: #1f38a8d9;
  color: white;
  padding: 10px 30px;
  text-align: right;
  font-size: 14px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1100;
}

.navbar {
  position: absolute !important;
  top: 30px;
  left: 0;
  width: 100%;
  background-color: transparent;
  z-index: 1000;
  padding-top: 5px;
  padding-bottom: 5px;
}

.navbar-brand img {
  height: 70px;
}

.navbar-toggler {
  border-color: white;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ====== NAV-LINKS ====== */
.nav-link {
  background-color: #e0e0e0;
  color: #000000;
  transition: all 0.3s ease;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 5px;
  margin-right: 5px;
}

.nav-link:hover {
  background-color: black;
  color: white !important;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* ====== HERO ====== */
.hero {
  position: relative;
  height: 500px;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 500px;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 20px;
  color: white;
  text-align: center;
  margin: auto;
  padding-top: 150px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 1px 1px 5px black;
}

.hero .btn {
  font-weight: bold;
  padding: 12px 25px;
  font-size: 1.1rem;
  background-color: #009E00;
  border: none;
  color: black;
  transition: all 0.3s ease;
}

.hero .btn:hover {
  background-color: #007A00;
  color: white;
}

/* ====== SCROLL CIRCLE ====== */
.scroll-circle {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: white;
  color: #001DBB;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  cursor: pointer;
  z-index: 2;
  animation: bounce 2s infinite;
  text-align: center;
  transition: background 0.3s, color 0.3s;
}

.scroll-circle:hover {
  background: #001DBB;
  color: white;
}

.circle-text {
  font-size: 10px;
  line-height: 1;
}

.arrow {
  margin-top: 5px;
  font-size: 20px;
}

/* ====== ANIMACIONES ====== */
@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

/* ====== TARJETAS ====== */
.card {
  height: 380px;
  width: 250px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #ddd;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 0;
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 12px;
}

.card-title {
  font-size: 16px;
  margin-bottom: 5px;
}

.card-text {
  font-size: 14px;
  margin: 0;
}

/* ====== BOTONES ====== */
.btn-success {
  font-size: 14px;
  font-weight: bold;
}

.btn-cotizar {
  background-color: #009E00;
  color: white;
  font-weight: bold;
  padding: 8px 15px;
  border: none;
  border-radius: 5px;
  width: 100%;
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-cotizar:hover {
  background-color: #007A00;
  color: white;
  text-decoration: none;
}

/* ====== TÍTULOS Y SECCIONES ====== */
.section-title {
  color: #009E00;
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 20px;
}

.seccion-titulo {
  background-color: #001DBB;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  margin-bottom: 30px;
  text-align: center;
}

/* ====== FOOTER ====== */
.footer {
  background-color: #1f38a8d9;
  color: white;
  padding: 20px;
  text-align: center;
  margin-top: 40px;
}

/* ====== SCROLL HORIZONTAL ====== */
.scroll-horizontal {
  display: flex;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}

.scroll-horizontal .card {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .navbar-brand img {
    height: 45px;
  }

  .navbar {
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .nav-link {
    font-size: 14px;
    padding: 6px 10px;
    margin-right: 3px;
  }

  .top-bar {
    font-size: 12px;
    padding: 5px 15px;
    text-align: center;
  }

  .scroll-circle {
    width: 45px;
    height: 45px;
    font-size: 9px;
    bottom: 15px;
  }

  .circle-text {
    font-size: 7px;
  }

  .arrow {
    font-size: 13px;
  }

  .hero-content {
    padding-top: 100px;
  }
}
