:root {
  --primary: #00aef5;
  --secondary: #fad01a;
  --accent: #28a745;
  --dark: #333333;
  --light: #f8f9fa;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--dark);
  padding-top: 80px;
  background-color: #f9fafb;
}
.navbar {
  padding: 0.8rem 1rem;
  transition: all 0.3s ease;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
  padding: 0.5rem 1rem;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.8rem;
}

.navbar-brand span {
  color: var(--secondary);
}

.nav-link {
  color: var(--dark) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  position: relative;
  transition: all 0.3s;
}

.nav-link:hover {
  color: var(--primary) !important;
}

.nav-link:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--secondary);
  transition: width 0.3s;
}

.nav-link:hover:after {
  width: 100%;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-primary:hover {
  background-color: #144a60;
  border-color: #144a60;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline-secondary {
  color: var(--secondary);
  border-color: var(--secondary);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-outline-secondary:hover {
  background-color: var(--secondary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url("../img/fondo.jpg");
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  align-items: center;
  color: white;
}

/*estiiloo para l seccion de publicidad*/
.section-title {
  position: relative;
  margin-bottom: 40px;
  text-align: center;
}

.section-title:after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--secondary);
  margin: 15px auto;
  border-radius: 2px;
}

.delivery-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  margin-bottom: 25px;
}

.delivery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.status-indicator {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  z-index: 10;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.8);
}

.status-available {
  background-color: var(--accent);
  animation: pulse-green 2s infinite;
}

.status-busy {
  background-color: var(--busy);
}

.status-offline {
  background-color: var(--offline);
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
  }
}

.delivery-img-container {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.delivery-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.moto-animation {
  position: absolute;
  bottom: 15px;
  left: -50px;
  font-size: 30px;
  color: var(--primary);
  opacity: 0.7;
  z-index: 1;
  animation: moveMoto 15s linear infinite;
}

@keyframes moveMoto {
  0% {
    transform: translateX(0) rotate(0deg);
  }
  25% {
    transform: translateX(150px) rotate(5deg);
  }
  50% {
    transform: translateX(300px) rotate(0deg);
  }
  75% {
    transform: translateX(450px) rotate(-5deg);
  }
  100% {
    transform: translateX(600px) rotate(0deg);
  }
}

.delivery-info {
  padding: 20px;
  text-align: center;
}

.delivery-name {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.delivery-rating {
  color: #ffc107;
  margin-bottom: 15px;
}

.delivery-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 15px;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.stat {
  text-align: center;
}

.stat-value {
  font-weight: 600;
  color: var(--primary);
  font-size: 1.1rem;
}

.stat-label {
  font-size: 0.8rem;
  color: #6c757d;
}

.status-text {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem;
}

.text-available {
  background-color: rgba(40, 167, 69, 0.15);
  color: var(--accent);
}

.text-busy {
  background-color: rgba(220, 53, 69, 0.15);
  color: var(--busy);
}

.text-offline {
  background-color: rgba(108, 117, 125, 0.15);
  color: var(--offline);
}

.filter-buttons {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.filter-btn.active {
  background-color: var(--primary);
  color: white;
}

.filter-btn:not(.active) {
  background-color: transparent;
  border-color: #dee2e6;
  color: #6c757d;
}

.filter-btn:not(.active):hover {
  border-color: var(--primary);
  color: var(--primary);
}

.no-deliveries {
  text-align: center;
  padding: 40px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.no-deliveries i {
  font-size: 3rem;
  color: #dee2e6;
  margin-bottom: 15px;
}

@media (max-width: 768px) {
  .delivery-stats {
    flex-direction: column;
    gap: 10px;
  }

  .moto-animation {
    animation: moveMotoMobile 15s linear infinite;
  }

  @keyframes moveMotoMobile {
    0% {
      transform: translateX(0) rotate(0deg);
    }
    25% {
      transform: translateX(80px) rotate(5deg);
    }
    50% {
      transform: translateX(160px) rotate(0deg);
    }
    75% {
      transform: translateX(240px) rotate(-5deg);
    }
    100% {
      transform: translateX(320px) rotate(0deg);
    }
  }
}

.section-title {
  position: relative;
  margin-bottom: 40px;
  text-align: center;
}

.section-title:after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--secondary);
  margin: 15px auto;
  border-radius: 2px;
}

.ad-section {
  padding: 10px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.ad-container {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}

.ad-track {
  display: flex;
  gap: 25px;
  transition: transform 0.5s ease;
  padding: 10px 0;
}

.ad-card {
  flex: 0 0 300px;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.ad-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.ad-img {
  height: 180px;
  width: 100%;
  object-fit: cover;
}

.ad-content {
  padding: 20px;
  text-align: center;
}

.ad-title {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.ad-desc {
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.btn-ad {
  background-color: var(--secondary);
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s;
  width: 100%;
}

.btn-ad:hover {
  background-color: #e56722;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 126, 61, 0.3);
}

.ad-controls {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  gap: 15px;
}

.btn-ad-control {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-ad-control:hover {
  background-color: #144a60;
  transform: translateY(-2px);
}

.ad-indicators {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 10px;
}

.ad-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
  transition: all 0.3s;
}

.ad-indicator.active {
  background-color: var(--primary);
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .ad-card {
    flex: 0 0 250px;
  }

  .ad-img {
    height: 150px;
  }
}

/* Modal styles */
.modal-content {
  border-radius: 15px;
  overflow: hidden;
  border: none;
}

.modal-header {
  background-color: var(--primary);
  color: white;
  border-bottom: none;
}

.modal-title {
  font-weight: 600;
}

.btn-close {
  filter: invert(1);
}

.form-label {
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 5px;
}

.form-control {
  border-radius: 8px;
  padding: 12px 15px;
  border: 1px solid #ddd;
  transition: all 0.3s;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(26, 95, 122, 0.25);
}

.btn-location {
  border-radius: 8px;
  margin-right: 8px;
  margin-bottom: 8px;
}

.btn-submit {
  background-color: #00aef5;
  border: none;
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: 500;
  width: 100%;
  margin-top: 10px;
  transition: all 0.3s;
}

.btn-submit:hover {
  background-color: #f6d120;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.was-validated .form-control:invalid {
  border-color: #dc3545;
}

.invalid-feedback {
  display: none;
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 5px;
}

.was-validated .form-control:invalid ~ .invalid-feedback {
  display: block;
}

.location-buttons {
  margin-top: 10px;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: #144b61;
  border-color: #144b61;
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  color: white;
}

.text-primary {
  color: var(--primary) !important;
}

.modal-content {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: none;
}

.modal-header {
  background-color: var(--primary);
  color: white;
  border-bottom: none;
  padding: 1.5rem;
}

.modal-body {
  padding: 2rem;
}

.modal-footer {
  border-top: none;
  padding: 0 2rem 2rem;
  justify-content: center;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(26, 95, 122, 0.25);
}

.input-group-text {
  background-color: white;
}

.divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: #ddd;
}

.divider span {
  padding: 0 1rem;
  color: #6c757d;
  font-size: 0.875rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: white;
  transition: all 0.3s;
}

.social-btn:hover {
  background-color: #f8f9fa;
  transform: translateY(-2px);
}

.forgot-password {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
}

.forgot-password:hover {
  text-decoration: underline;
}

.floating-label {
  position: relative;
  margin-bottom: 1.5rem;
}

.floating-input {
  padding: 1rem 0.75rem;
  height: calc(3.5rem + 2px);
  line-height: 1.25;
}

.floating-label label {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  padding: 1rem 0.75rem;
  pointer-events: none;
  border: 1px solid transparent;
  transform-origin: 0 0;
  transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
  color: #6c757d;
}

.floating-input:focus ~ label,
.floating-input:not(:placeholder-shown) ~ label {
  transform: scale(0.85) translateY(-0.7rem) translateX(0.15rem);
  color: var(--primary);
  padding: 0 0.1rem;
  margin-left: 0.25rem;
}
.custom-footer {
  background-color: var(--primary);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-top {
  padding-bottom: 2rem;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
  font-size: 1.2rem;
}

.footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.7rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: white;
  transform: translateX(5px);
}

.footer-links a:hover i {
  color: var(--secondary);
}

.contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info li {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
}

.contact-info i {
  margin-right: 10px;
  color: var(--secondary);
  font-size: 1.1rem;
  margin-top: 3px;
}

.newsletter-form {
  display: flex;
  margin-top: 1rem;
}

.newsletter-input {
  flex-grow: 1;
  padding: 0.7rem;
  border: none;
  border-radius: 4px 0 0 4px;
  outline: none;
}

.newsletter-btn {
  background-color: var(--secondary);
  color: white;
  border: none;
  padding: 0 1rem;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: all 0.3s;
}

.newsletter-btn:hover {
  background-color: #e66c2a;
}

.social-icons {
  margin-top: 1.5rem;
}

.social-icons a {
  display: inline-block;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  text-align: center;
  line-height: 38px;
  color: white;
  margin-right: 0.5rem;
  transition: all 0.3s;
}

.social-icons a:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 2rem;
  text-align: center;
}

.payment-methods {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.payment-icon {
  background: white;
  border-radius: 4px;
  width: 40px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--dark);
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--secondary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #e66c2a;
  transform: translateY(-3px);
}
.ad-section {
  padding: 2rem 0;
  max-width: 100%;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 700;
  color: #2c3e50;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #ff6b6b, #ff9e6b);
  border-radius: 2px;
}

.ad-container {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  background: white;
  padding: 10px 0;
}

.ad-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  padding: 10px 15px;
  cursor: grab;
}

.ad-track:active {
  cursor: grabbing;
}

.ad-card {
  flex: 0 0 calc(100% - 20px);
  margin: 0 10px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.ad-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.ad-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.ad-content {
  padding: 1.5rem;
}

.ad-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #2c3e50;
  font-size: 1.25rem;
}

.ad-desc {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  font-size: 0.95rem;
}

.btn-ad {
  background: linear-gradient(90deg, #ff6b6b, #ff9e6b);
  color: white;
  border: none;
  padding: 0.7rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
}

.btn-ad:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 107, 107, 0.4);
}

.ad-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 10;
  border: none;
  transition: all 0.3s;
}

.ad-nav:hover {
  background: #ff6b6b;
  color: white;
}

.ad-nav.prev {
  left: 15px;
}

.ad-nav.next {
  right: 15px;
}

.ad-indicators {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  gap: 10px;
}

.ad-indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #ddd;
  cursor: pointer;
  transition: all 0.3s;
}

.ad-indicator.active {
  background: linear-gradient(90deg, #ff6b6b, #ff9e6b);
  transform: scale(1.2);
}

/* Para pantallas más grandes */
@media (min-width: 768px) {
  .ad-card {
    flex: 0 0 calc(50% - 20px);
  }

  .ad-nav {
    width: 50px;
    height: 50px;
  }
}

@media (min-width: 992px) {
  .ad-card {
    flex: 0 0 calc(33.333% - 20px);
  }

  .ad-container {
    padding: 20px 0;
  }
}

.instructions {
  text-align: center;
  margin-top: 1rem;
  color: #666;
  font-size: 0.9rem;
}

.touch-instruction {
  display: none;
}

@media (max-width: 768px) {
  .touch-instruction {
    display: block;
  }
}
