/* ===== VARIABLES CSS ===== */
:root {
  --primary-color: #dc3545;      /* Rojo */
  --secondary-color: #0056b3;    /* Azul */
  --accent-color: #f8f9fa;       /* Blanco/Gris claro */
  --dark-color: #212529;
  --light-color: #ffffff;
  --gray-color: #6c757d;
  --gradient-primary: linear-gradient(135deg, #dc3545 0%, #0056b3 100%);
  --gradient-secondary: linear-gradient(135deg, #0056b3 0%, #dc3545 100%);
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  --border-radius: 0.5rem;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== GLOBAL STYLES ===== */
* {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--gray-color);
  margin-bottom: 2rem;
}

/* ===== NAVIGATION ===== */
#mainNav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  padding: 1rem 0;
}

#mainNav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  padding: 0.5rem 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--dark-color) !important;
  margin: 0 0.5rem;
  transition: var(--transition);
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

.nav-btn {
  background: var(--gradient-primary) !important;
  border: none !important;
  padding: 0.5rem 1.5rem !important;
  border-radius: 25px !important;
  font-weight: 600 !important;
  box-shadow: var(--shadow-md);
  transition: var(--transition) !important;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg) !important;
}

/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.9) 0%, rgba(0, 86, 179, 0.9) 100%),
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%23f8f9fa" width="1200" height="800"/><g fill-opacity="0.1"><polygon fill="%23dc3545" points="1200 0 0 800 1200 800"/><polygon fill="%230056b3" points="0 0 0 400 600 0"/></g></svg>');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  position: relative;
  color: white;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  margin-bottom: 3rem;
}

.hero-stats {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
  text-align: center;
  margin-bottom: 1rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 0;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-down {
  display: inline-block;
  color: white;
  font-size: 2rem;
  animation: bounce 2s infinite;
  text-decoration: none;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* ===== TRACKING SECTION ===== */
.tracking-section {
  background: var(--accent-color);
}

.tracking-form {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.form-control-lg {
  border-radius: 25px;
  border: 2px solid #e9ecef;
  transition: var(--transition);
}

.form-control-lg:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* ===== SERVICES SECTION ===== */
.services-section {
  background: white;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid #e9ecef;
  height: 100%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-card h4 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.service-features {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

.service-features li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== ABOUT SECTION ===== */
.about-section {
  background: var(--accent-color);
}

.about-features {
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-md);
}

.feature-item i {
  font-size: 2rem;
  margin-top: 0.5rem;
}

.feature-item h5 {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.feature-item p {
  margin-bottom: 0;
  color: var(--gray-color);
}

.about-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  background: white;
}

.contact-info {
  text-align: center;
  padding: 2rem;
  background: var(--accent-color);
  border-radius: var(--border-radius);
  height: 100%;
  transition: var(--transition);
}

.contact-info:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.contact-info h5 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.contact-info a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.contact-info a:hover {
  color: var(--secondary-color);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark-color) !important;
}

.footer-brand img {
  filter: brightness(0) invert(1);
}

.footer-title {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--light-color);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #adb5bd;
  text-decoration: none;
  transition: var(--transition);
}

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

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  transform: translateY(-3px);
  color: white;
}

.footer-hours p {
  margin-bottom: 0.5rem;
  color: #adb5bd;
}

.footer-divider {
  border-color: #495057;
  margin: 2rem 0 1rem;
}

.copyright,
.made-with {
  margin-bottom: 0;
  color: #adb5bd;
}

/* ===== WHATSAPP FLOAT BUTTON ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.whatsapp-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  color: white;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--gradient-primary);
  border: none;
  border-radius: 25px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--gradient-secondary);
}

.btn-outline-light {
  border: 2px solid white;
  border-radius: 25px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-outline-light:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0;
    padding: 0.5rem 0;
  }
  
  .nav-btn {
    margin-top: 1rem;
    display: block;
    text-align: center;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .hero-section {
    padding: 2rem 0;
    min-height: auto;
  }
  
  .hero-stats .row > div {
    margin-bottom: 1rem;
  }
  
  .tracking-form {
    padding: 1.5rem;
  }
  
  .tracking-form .d-flex {
    flex-direction: column;
    gap: 1rem !important;
  }
  
  .service-card,
  .contact-info {
    margin-bottom: 2rem;
  }
  
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }
  
  .whatsapp-btn {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

/* ===== UTILITY CLASSES ===== */
.bg-gradient-primary {
  background: var(--gradient-primary) !important;
}

.bg-gradient-secondary {
  background: var(--gradient-secondary) !important;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-custom {
  box-shadow: var(--shadow-lg) !important;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ===== SCROLLBAR CUSTOM ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gradient-secondary);
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: var(--gradient-primary);
  color: white;
  margin-top: 76px;
}

.breadcrumb {
  background: none;
  padding: 0;
}

.breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: white;
}

.breadcrumb-item.active {
  color: white;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.6);
}

/* ===== SERVICE DETAIL CARDS ===== */
.service-detail-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid #e9ecef;
  overflow: hidden;
  transition: var(--transition);
}

.service-detail-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--accent-color);
  border-bottom: 1px solid #e9ecef;
}

.service-icon-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.service-header h3 {
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--dark-color);
}

.service-tagline {
  color: var(--gray-color);
  margin-bottom: 0;
  font-style: italic;
}

.service-content {
  padding: 2rem;
}

.service-features-list {
  margin: 1.5rem 0;
}

.service-features-list h5 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.service-features-list ul {
  list-style: none;
  padding: 0;
}

.service-features-list li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.service-features-list i {
  font-size: 1.1rem;
}

.service-pricing {
  background: var(--accent-color);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  margin-top: 1.5rem;
}

.price-label {
  display: block;
  font-size: 0.9rem;
  color: var(--gray-color);
  margin-bottom: 0.5rem;
}

.price {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.price-note {
  display: block;
  font-size: 0.8rem;
  color: var(--gray-color);
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--gradient-primary) !important;
}

/* ===== FAQ SECTION ===== */
.faq-section {
  background: var(--accent-color);
}

.accordion-item {
  border: none;
  margin-bottom: 1rem;
  border-radius: var(--border-radius) !important;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.accordion-button {
  background: white;
  border: none;
  font-weight: 600;
  color: var(--dark-color);
  padding: 1.5rem;
}

.accordion-button:not(.collapsed) {
  background: var(--primary-color);
  color: white;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border: none;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
  padding: 1.5rem;
  background: white;
  color: var(--gray-color);
  border-top: 1px solid #e9ecef;
}

/* ===== FOOTER ENHANCEMENTS ===== */
.footer-contact p {
  margin-bottom: 0.5rem;
  color: #adb5bd;
}

.footer-contact i {
  width: 20px;
  color: var(--primary-color);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 991.98px) {
  .service-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .service-icon-large {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .service-content {
    padding: 1.5rem;
  }
  
  .page-header {
    margin-top: 70px;
    padding: 2rem 0;
  }
}

@media (max-width: 767.98px) {
  .service-detail-card {
    margin-bottom: 2rem;
  }
  
  .service-header {
    padding: 1.5rem;
  }
  
  .service-content {
    padding: 1rem;
  }
  
  .service-pricing {
    padding: 1rem;
  }
  
  .price {
    font-size: 1.5rem;
  }
  
  .cta-section .btn {
    width: 100%;
    margin-top: 1rem;
  }
}

/* ===== CONTACT PAGE STYLES ===== */
.contact-detail {
  background: var(--accent-color);
}

.contact-form-card {
  background: white;
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  height: 100%;
}

.contact-form .form-label {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.75rem;
}

.contact-form .form-control,
.contact-form .form-select {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: var(--transition);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.contact-form textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.contact-info-sidebar {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  height: 100%;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e9ecef;
}

.contact-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-item .contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-details h5 {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--dark-color);
}

.contact-details p {
  margin-bottom: 0;
  color: var(--gray-color);
  line-height: 1.6;
}

.contact-details a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.contact-details a:hover {
  color: var(--secondary-color);
}

/* ===== MAP SECTION ===== */
.map-section {
  background: var(--light-color) !important;
}

.map-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* ===== OFFICE HOURS ===== */
.office-hours {
  background: white;
}

.office-hours .alert {
  border: none;
  border-radius: var(--border-radius);
  background: rgba(13, 202, 240, 0.1);
  border-left: 4px solid #0dcaf0;
  padding: 1.5rem;
}

.office-hours .alert-heading {
  color: var(--dark-color);
  font-weight: 600;
}

/* ===== FORM VALIDATION STYLES ===== */
.form-control.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid {
  border-color: #198754;
  box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

.invalid-feedback {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #dc3545;
}

.valid-feedback {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #198754;
}

/* ===== CONTACT FORM MOBILE ===== */
@media (max-width: 991.98px) {
  .contact-form-card {
    padding: 2rem;
    margin-bottom: 2rem;
  }
  
  .contact-info-sidebar {
    padding: 1.5rem;
  }
  
  .contact-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
  }
  
  .contact-item .contact-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

@media (max-width: 767.98px) {
  .contact-form-card {
    padding: 1.5rem;
  }
  
  .contact-info-sidebar {
    padding: 1rem;
  }
  
  .map-container iframe {
    height: 300px;
  }
  
  .contact-item {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .contact-details {
    text-align: center;
  }
}
