/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Poppins:wght@500;600;700&display=swap');

:root {
  --primary-color: #0d47a1; /* Deep Blue */
  --secondary-color: #1976d2; /* Lighter Blue */
  --accent-color: #fbc02d; /* Yellow for CTA/Highlights */
  --text-color: #333333;
  --text-light: #666666;
  --bg-color: #f8f9fa;
  --white: #ffffff;
  --border-color: #e0e0e0;
  
  --transition: all 0.3s ease;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================================
   Utility Classes
   ========================================= */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
}

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

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  transition: var(--transition);
}

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

.btn-primary:hover {
  background-color: #f9a825;
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.btn-secondary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}
.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* =========================================
   Header & Navigation
   ========================================= */
.header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo img {
    height: 120px;
    width: auto;
}
.logo span {
    color: var(--accent-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-color);
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
  background: linear-gradient(135deg, rgba(13, 71, 161, 0.4) 0%, rgba(25, 118, 210, 0.4) 100%), url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
  color: var(--white);
  padding: 8rem 0;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  opacity: 1;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* =========================================
   Services Section (Home)
   ========================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
  border-bottom: 4px solid transparent;
}

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

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

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

.service-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* =========================================
   Why Us Section
   ========================================= */
.why-us {
  background-color: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: center;
}

.why-item {
  padding: 1.5rem;
}

.why-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(25, 118, 210, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
  transition: var(--transition);
}

.why-item:hover .why-icon {
  background-color: var(--primary-color);
  color: var(--white);
}

.why-item h3 {
  margin-bottom: 1rem;
}

.why-item p {
  color: var(--text-light);
}

/* =========================================
   Tracking Banner
   ========================================= */
.tracking-banner {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.tracking-banner h2 {
  color: var(--white);
}
.tracking-banner h2::after {
    background-color: var(--white);
}

.tracking-banner p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* =========================================
   Internal Page Headers (Información, Contacto)
   ========================================= */
.page-header {
  background: linear-gradient(135deg, rgba(13, 71, 161, 0.4) 0%, rgba(25, 118, 210, 0.4) 100%), url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  opacity: 1;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
  font-weight: 500;
}
.breadcrumb a:hover {
    color: var(--accent-color);
}

/* =========================================
   Content Sections (Information Page)
   ========================================= */
.content-section {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}
.content-section p {
    margin-bottom: 1rem;
    color: var(--text-light);
}
.content-section ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.content-section li {
    margin-bottom: 0.5rem;
    position: relative;
    color: var(--text-light);
}
.content-section li::before {
    content: "✓";
    position: absolute;
    left: -1.5rem;
    color: var(--accent-color);
    font-weight: bold;
}

/* =========================================
   Contact Section
   ========================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-item-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  background-color: rgba(25, 118, 210, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.contact-item-content p {
  color: var(--text-light);
}

.map-container {
  height: 100%;
  min-height: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

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

/* =========================================
   Footer
   ========================================= */
.footer {
  background-color: #0a2e6b; /* Darker Blue */
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-col p {
  color: #b0c4de;
  margin-bottom: 1rem;
}

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

.footer-links a {
  color: #b0c4de;
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

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

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #b0c4de;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-links a {
    color: #b0c4de;
    margin-left: 1rem;
}
.footer-bottom-links a:hover {
    color: var(--white);
}

/* =========================================
   Floating WhatsApp Button
   ========================================= */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #1ebe57;
  color: #fff;
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  .contact-grid {
      grid-template-columns: 1fr;
  }
  .map-container {
      min-height: 300px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    padding: 2rem 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%); /* Hidden by default */
    opacity: 0;
    transition: var(--transition);
    z-index: 999;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
  }

  .hero {
    padding: 6rem 0;
  }

  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero-buttons {
      flex-direction: column;
  }
  
  .section {
      padding: 3rem 0;
  }
  
  .footer-bottom {
      flex-direction: column;
      text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
      font-size: 1rem;
  }
  
  .whatsapp-float {
      bottom: 20px;
      right: 20px;
      width: 50px;
      height: 50px;
      font-size: 25px;
  }
}
/* =========================================
   Custom Form Styles (Casillero Virtual)
   ========================================= */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.casillero-form .btn-primary {
    cursor: pointer;
}

/* =========================================
   Carnet Virtual Styles
   ========================================= */
.carnet-container {
    max-width: 450px;
    margin: 2rem auto;
    background: linear-gradient(135deg, #0d47a1 0%, #1e293b 100%);
    border-radius: 15px;
    padding: 2px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    color: white;
    position: relative;
    overflow: hidden;
    text-align: left;
}

.carnet-inner {
    background: #0d47a1;
    border-radius: 13px;
    padding: 1.5rem;
    position: relative;
    background-image: radial-gradient(circle at 100% 0%, rgba(251, 192, 45, 0.15) 0%, transparent 50%);
}

.carnet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.carnet-logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
}

.carnet-logo-text span {
    color: var(--accent-color);
}

.carnet-chip {
    width: 40px;
    height: 30px;
    background: linear-gradient(135deg, #ffd700 0%, #daa520 100%);
    border-radius: 5px;
    position: relative;
}

.carnet-body {
    display: flex;
    gap: 1.5rem;
}

.carnet-photo {
    width: 100px;
    height: 120px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.carnet-info h4 {
    margin: 0;
    color: var(--accent-color);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.carnet-info p {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

.carnet-id {
    font-family: monospace;
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 1rem;
    font-weight: bold;
}

.carnet-footer {
    margin-top: 1.5rem;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.8);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
}

.carnet-footer i {
    color: var(--accent-color);
    margin-right: 5px;
}

/* =========================================
   Smart Tracking Component
   ========================================= */
.tracking-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tracking-form {
    display: flex;
    gap: 10px;
    margin-bottom: 2rem;
}

.tracking-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    outline: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.tracking-form .btn-search {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.tracking-form .btn-search:hover {
    transform: scale(1.05);
    background-color: #ffd54f;
}

/* Loader Gemini Style */
.gemini-loader {
    display: none;
    text-align: center;
    padding: 2rem;
}

.gemini-loader .packages-loader {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 1rem;
    overflow: hidden;
    padding: 10px 0;
}

.package {
    font-size: 1.8rem;
    color: var(--accent-color);
    animation: move-package 2s infinite linear;
    opacity: 0;
    filter: drop-shadow(0 0 5px rgba(251, 192, 45, 0.4));
}

.package:nth-child(2) { animation-delay: 0.6s; }
.package:nth-child(3) { animation-delay: 1.2s; }

@keyframes move-package {
    0% { transform: translateX(-50px); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateX(50px); opacity: 0; }
}

.loading-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    letter-spacing: 1px;
    color: #fff;
    font-size: 0.9rem;
}

/* Result Box */
.tracking-result-container {
    display: none;
    text-align: left;
    margin-top: 1rem;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.tracking-card {
    background: var(--white);
    color: var(--text-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.tracking-card-header {
    background: #f1f5f9;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tracking-card-header h4 {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tracking-id-badge {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-family: monospace;
    font-size: 1.1rem;
}

.tracking-card-body {
    padding: 2rem;
}

/* Enhanced Tracking UI */
.enhanced-timeline {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 2rem;
}
.enhanced-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: #e2e8f0;
}
.timeline-point {
    position: relative;
    margin-bottom: 1.5rem;
}
.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 5px;
    width: 16px;
    height: 16px;
    background: #cbd5e1;
    border: 3px solid white;
    border-radius: 50%;
    z-index: 1;
}
.timeline-point.latest .timeline-dot {
    background: var(--accent-color);
    box-shadow: 0 0 0 5px rgba(251, 192, 45, 0.2);
}
.timeline-content h5 {
    margin: 0;
    font-size: 1rem;
    color: var(--primary-color);
}
.timeline-content .date {
    margin: 2px 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.tracking-details-grid {
    border-top: 1px dashed #e2e8f0;
    padding-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    padding-bottom: 5px;
    border-bottom: 1px solid #f8fafc;
}
.detail-label {
    color: var(--text-light);
    font-weight: 500;
}
.detail-value {
    color: var(--primary-color);
    font-weight: 700;
}

@media (max-width: 600px) {
    .tracking-form {
        flex-direction: column;
    }
    .tracking-form .btn-search {
        width: 100%;
    }
}

/* =========================================
   Google Reviews Section
   ========================================= */
.reviews-section {
    background-color: var(--white);
    padding: 5rem 0;
    overflow: hidden;
}

.reviews-header {
    text-align: center;
    margin-bottom: 4rem;
}

.google-rating-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.rating-score {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stars-container {
    color: #fbbc04; /* Google Star Yellow */
    font-size: 1.5rem;
}

.rating-text {
    font-size: 0.9rem;
    color: var(--text-light);
}

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

.review-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--secondary-color);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.reviewer-info h4 {
    margin: 0;
    font-size: 1rem;
}

.google-icon {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: #4285f4;
    font-size: 1.2rem;
}

.review-content {
    font-style: italic;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

.review-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
    display: flex;
    justify-content: space-between;
}

.verified-badge {
    font-size: 0.75rem;
    color: #34a853; /* Google Green */
    font-weight: 600;
}
