/* Material Design 3 inspired styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Poppins', sans-serif;
  background: #ffffff;
  color: #212121;
  -webkit-font-smoothing: antialiased;
}
a {
  text-decoration: none;
}

/* HEADER */
.logo {
  display: flex;
  align-items: center;
  gap: 6px;
}
.logo-icon svg {
  width: 24px;
  height: 24px;
}
.truck-svg .cls-1 {
  stroke: #ffffff;
  stroke-width: 1.6px;
  fill: none;
}
.app-bar {
  width: 100%;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: #003A70;
}
.services-section {
  padding: 48px 16px;
  text-align: center;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.service-card {
  background: #ffffff;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.service-card {
  position: relative;
  overflow: hidden;
  min-height: 140px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1;
}
.service-card h3 {
  position: relative;
  z-index: 2;
  font-size: 18px;
  padding: 8px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}


.rating-stars {
  font-size: 0; /* reset */
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-bottom: 6px;
  overflow: hidden; /* carousel overflow */
}
.rating-stars .star {
  color: #FFD600;
  font-size: 64px; /* 4x larger */
}
.star-icon {
  font-size: 64px;
  color: #FFD600;
  display: inline-block;
  line-height: 1;
}
.star-icon.half { position: relative; color: #d8d8d8; }
.star-icon.small{font-size:28px;}
.star-icon.half::before {
  content: '★';
  position: absolute;
  left: 0;
  width: 50%;
  overflow: hidden;
  color: #FFD600;
}
.star.filled { font-variation-settings: 'FILL' 1; }
.star.half { font-variation-settings: 'FILL' 0.5; }

.icon-inline { vertical-align: middle; font-size: 18px; }
.icon-whatsapp { width: 24px; height: 24px; vertical-align: middle; margin-right:4px; }
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo .logo-text {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
  color: #ffffff;
}
.icon,
.menu-icon {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-size: 24px;
  color: #ffffff;
  cursor: pointer;
}

.actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.btn-outline {
  border: 1px solid #FFD400;
  padding: -4px 9px;
  padding-left: 11px;
  padding-right: 11px;
  padding-top: 7px;
  padding-bottom: 7px;
  min-width: 72px;
  border-radius: 4px;
  font-size: 14px;
  color: #FFD400;
}

/* HERO SECTION */
.hero {
  position: relative;
  padding: 19px 16px 50px;
  text-align: left;
}
.hero h1 {
  width: 100%;
  font-size: clamp(20px, 6.2vw, 36px);
  font-weight: 700;
  margin-bottom: 8px;
  overflow: hidden;
}
.hero p {
  font-size: 16px;
  width: 100%;
  margin-bottom: 12px;
}
.advantages {
  list-style: none;
  margin-left: 12px;
  padding-left: 0;
  color: #212121;
  font-size: 16px;
}
.advantages li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 6px;
  padding-top: 6px;
}
.adv-em { font-weight: 600; }
.advantages strong { font-weight: 600; }
.advantages li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #4caf50; /* green tick */
  font-weight: 700;
  font-size: 25px;
}
.decorative-photo {
  position: absolute;
  top: 16px;
  right: 16px;
  transform: rotate(6deg);
  background: #f5c46e; /* gold-like */
  padding: 8px;
  border-radius: 8px;
}
/* Imagen hero full width */
.hero-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 12px;
}
.decorative-photo img {
  width: 120px;
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
}

/* Floating labels */
.field-label{
  position:absolute;
  top:20px;
  left:4px;
  font-size:12px;
  color:#555;
  background:#ffffff;
  padding:0 4px;
  transform:translateY(-50%);
}

/* Date step styles */
.date-input{
  width:100%;
  padding:12px 14px;
  font-size:16px;
  border:1px solid #d9d9d9;
  border-radius:4px;
  background:#ffffff;
}
.flexible-dates{display:flex;gap:12px;flex-wrap:wrap;padding-top: 5px;}
.flexible-dates span{display:flex;flex-direction:column;align-items:flex-start;gap:4px;font-size:14px;flex:1;}
.large-textarea{width:100%;padding:12px 14px;font-size:15px;border:1px solid #d9d9d9;border-radius:4px;}
.form-group-dates.selected{border-color:#da8840;}
.error-msg{color:#d32f2f;font-size:14px;margin-top:8px;}
.legal-text{font-size:11px;line-height:1.3;margin-top:8px;}
.contact-headline{font-size:20px;font-weight:600;color:#da8840;margin-bottom:8px;}
.date-human{font-size:13px;font-style:italic;color:#555;margin-top:4px;}
/* Transitions */
.fade-transition{transition:opacity .4s ease;opacity:1;}
/* FORM CARD */
.form-card {
  background: #ffffff;
  color: #2e2e2e;
  width: 90%;
  margin: 0px auto 32px; /* pull up */
  padding: 24px 16px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.section-label {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5e5e5;
  font-size: 16px;
}
.section-label:first-of-type {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}
.form-group {
  position: relative;
  margin-top: 12px;
  position: relative;
}

.form-group-dates {
  position: relative;
  position: relative;
  margin-top: 12px;
  position: relative;
  border: 2px solid #e5c8ae;
  border-radius: 5px;
  padding: 10px;
  transition:border-color .2s ease;
}

input[type='text'],
input[type='email'],
input[type='tel'],
select {
  width:100%;
  margin-top:20px; /* space for label */
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 14px;
  background: #ffffff;
  color: #333333;
}
.rooms-wrapper {
  display: none;
}
.other-wrapper {
  display: none;
}

/* BUTTONS */
.btn-primary {
  margin-top: 24px;
  width: 100%;
  background: #f58634;
  color: #ffffff;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  height: 48px;
  cursor: pointer;
  font-size: 16px;
}
.btn-secondary {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #0d47a1; /* dark navy */
  color: #ffffff;
  font-weight: 600;
  border-radius: 4px;
  height: 48px;
  font-size: 16px;
}
.helper-text {
  text-align: center;
  font-size: 13px;
  color: #555555;
  margin-top: 15px;
}

/* ROUTE INDICATOR */
.route-indicator {
  position: relative;
  width: 84%;
  margin: 0 auto 0px;
  display: flex;
  justify-content: space-between;
  color: #ffffff;
  align-items: center;
  pointer-events: none;
  z-index: 1;
}
.route-indicator .city-left,
.route-indicator .city-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-weight: 600;
}
#truck-icon {
  position: absolute;
  top: 12px;
  left: 80px; /* ajustado para alinearse mejor con MAD */
  width: 75px;
  height: auto;
  z-index: -1;
  animation: moveTruck 7s linear infinite;
  pointer-events: none;
}
@keyframes moveTruck {
  0% { transform: translateX(-48px); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateX(calc(var(--route-distance) - 110px)); opacity: 0; }
}


/* TESTIMONIALS */
.testimonials-section {
  background: #f7f9fc;
  padding: 48px 16px;
  text-align: center;
}
.testimonials-title {
  font-size: 22px;
  font-weight: 600;
  color: #1e6bb8;
  margin-bottom: 8px;
}
.testimonials-sub {
  font-size: 18px;
  color: #555555;
  margin-bottom: 24px;
}
.testimonials-carousel {
  overflow-y: visible;
  padding: 24px 0;

  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.testimonial-card {
  width: 80%;
  flex: 0 0 80%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  scroll-snap-align: center;
  border: 1px solid #ececec;
}


.testimonial-route {
  font-weight: 600;
  margin-bottom: 8px;
  color: #f58634;
  font-size: 15px;
}
.testimonial-name,
.testimonial-meta { color: #1e6bb8; }
.testimonial-meta { font-size: 14px; margin-bottom:8px; }
.testimonial-text {
  font-size: 14px;
  color: #333333;
}

.cta-footer { 
  text-align:center; 
  padding:64px 0; 
  background:#f7f9fc;
  border-top: 1px solid #e5e5e5;
}
.cta-footer .btn-primary{
  font-size:20px; 
  padding:18px 40px;
  background: #FF6B00;
  color: #ffffff;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  height: 48px;
  cursor: pointer;
}
.footer-contact a { 
  color:#ffffff; 
  text-decoration: underline; 
  font-weight: 600;
}

/* Mobile menu */
.mobile-menu { 
  z-index:1000; 
  background:#ffffff; 
  display:none; 
  flex-direction:column; 
  gap:12px; 
  position:absolute; 
  top:56px; 
  right:16px; 
  padding:16px; 
  border-radius:8px; 
  box-shadow:0 4px 8px rgba(0,0,0,0.15);
}
.mobile-menu a{
  color:#fff; 
  text-decoration:none; 
  font-weight:500;
}
.mobile-menu.open{
  display:flex;
  background: #1e6bb8;
  color: #ffffff;
}

/* Header CTA override */
#cta-llamanos-header {
  color: #ffffff !important;
  border-color: #ffffff !important;
}

/* FAQ SECTION */
.faq-section {
  padding: 48px 16px;
  background: #f7f9fc;
}
.faq-section h2 {
  text-align: center;
  font-size: 22px;
  color: #003A70;
  margin-bottom: 24px;
}
.faq-item {
  max-width: 800px;
  margin: 0 auto 24px;
}
.faq-item h3 {
  font-size: 18px;
  color: #003A70;
  margin-bottom: 6px;
}
.faq-item p {
  font-size: 16px;
  color: #5A646E;
}

/* FOOTER */
.site-footer {
  background: #003A70;
  color: #ffffff;
  text-align: center;
  padding: 30px 16px 130px 16px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
}
.footer-links a:hover { text-decoration: underline; }


.footer-contact p { margin: 4px 0; }

/* HIDE "Powered by Google" */
.pac-container .pac-logo,
.pac-container .pac-item .pac-icon {
  display: none !important;
}

/* CTA FIXED BAR */
.subtitle {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 600;
}
.live-tracking {
  font-size: 14px;
  margin-top: 8px;
  color: #1e6bb8;
  font-style: italic;
}
.cta-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  color: #1e6bb8;
  padding: 8px 12px 12px;
  border-top: 1px solid #e5e5e5;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}
.cta-headline {
  text-align: center;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 16px;
}
.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.btn-fixed {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 16px;
  color: #ffffff;
}
.call-btn {
  background: #FF6B00;
  color: #ffffff;
}
.whatsapp-btn {
  background: #FFD400;
  color: #003A70;
}

/* RESPONSIVE */
/* MODAL STYLES */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.modal-overlay[hidden] {
  display: none;
}
.modal-dialog {
  background: #ffffff;
  width: 90%;
  max-width: 320px;
  border-radius: 12px;
  padding: 24px 20px 32px;
  position: relative;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.modal-dialog h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  color: #003A70;
}
.modal-dialog p {
  margin-bottom: 20px;
  color: #5A646E;
}
.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
/* Modal overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-dialog {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  width: 90%;
  max-width: 420px;
  position: relative;
  text-align: center;
}

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #5A646E;
  cursor: pointer;
}

@media (min-width: 600px) {
  .hero {
    padding: 96px 32px 160px;
  }
  .hero h1 {
    font-size: 48px;
  }
  .form-card {
    width: 480px;
  }
}

/* Desktop layout adjustments */
@media (min-width: 900px) {
  /* constrain width */
  .hero,
  .services-section,
  .testimonials-section,
  .faq-section,
  .cta-footer {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }

  /* hero two-column */
  .hero {
    display: flex;
    align-items: center;
    gap: 40px;
  }
  .hero-text {
    flex: 1 1 50%;
    text-align: left;
  }
  .hero-image {
    flex: 1 1 50%;
    max-width: 520px;
    height: auto;
  }
}
