/* ============================================
   Gestión y Gestión - Custom Enhancements
   ============================================ */

/* --- Trust / Stats Section --- */
.stats-section {
  background-color: #212529;
  padding: 60px 0;
  color: #fff;
}
.stat-item {
  text-align: center;
  padding: 20px 10px;
}
.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: #fed136;
  font-family: 'Montserrat', sans-serif;
  line-height: 1;
}
.stat-label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 10px;
  color: rgba(255,255,255,0.8);
  font-family: 'Montserrat', sans-serif;
}
.stat-item i {
  font-size: 2rem;
  color: #fed136;
  margin-bottom: 15px;
  opacity: 0.8;
}

/* --- Why Choose Us --- */
.why-us-section {
  padding: 80px 0;
  background: #f7f7f7;
}
.why-us-item {
  padding: 30px 20px;
  text-align: center;
  transition: transform 0.3s ease;
}
.why-us-item:hover {
  transform: translateY(-5px);
}
.why-us-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fed136;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: #212529;
}
.why-us-item h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.why-us-item p {
  color: #777;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Service "More info" Button --- */
.btn-service-more {
  background: #fed136;
  color: #212529;
  border: none;
  padding: 6px 18px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 3px;
  margin-top: 15px;
  margin-bottom: 10px;
  display: inline-block;
  text-decoration: none;
  transition: all 0.3s;
}
.btn-service-more:hover {
  background: #e6b800;
  color: #212529;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* --- Urgent CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, #fed136 0%, #e6b800 100%);
  padding: 30px 0;
  text-align: center;
}
.cta-banner h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #212529;
  font-size: 1.4rem;
  margin-bottom: 15px;
}
.cta-banner .btn-dark {
  background: #212529;
  color: #fed136;
  border: none;
  padding: 12px 30px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  border-radius: 3px;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
  margin: 5px 6px;
}
.cta-banner .btn-dark:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.cta-banner .btn-dark i {
  margin-right: 8px;
}

/* --- FAQ Section --- */
.faq-section {
  padding: 80px 0;
  background: #fff;
}
.faq-section .accordion-item {
  border: 1px solid #e9ecef;
  margin-bottom: 10px;
  border-radius: 4px;
  overflow: hidden;
}
.faq-section .accordion-button {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #212529;
  padding: 18px 24px;
  background: #fff;
}
.faq-section .accordion-button:not(.collapsed) {
  background: #f8f9fa;
  color: #212529;
  box-shadow: none;
}
.faq-section .accordion-button:focus {
  box-shadow: none;
  border-color: #fed136;
}
.faq-section .accordion-button::after {
  filter: none;
}
.faq-section .accordion-body {
  padding: 20px 24px;
  color: #555;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* --- Floating Calculator Button --- */
.calc-float {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 56px;
  height: 56px;
  background: #fed136;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(254, 209, 54, 0.4);
  z-index: 9998;
  transition: all 0.3s ease;
  text-decoration: none;
}
.calc-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(254, 209, 54, 0.5);
}
.calc-float.pulse-attention {
  animation: calcPulse 1.5s ease-in-out 3;
}
@keyframes calcPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 12px rgba(254,209,54,0.4); }
  50% { transform: scale(1.2); box-shadow: 0 8px 30px rgba(254,209,54,0.7); }
}
.calc-float i {
  color: #212529;
  font-size: 24px;
}
.calc-float .tooltip-text {
  position: absolute;
  left: 68px;
  background: #212529;
  color: #fff;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  font-family: 'Montserrat', sans-serif;
}
.calc-float:hover .tooltip-text {
  opacity: 1;
}

/* Promo bubble that appears after delay */
.calc-promo-bubble {
  position: fixed;
  bottom: 90px;
  left: 25px;
  background: #212529;
  color: #fff;
  padding: 14px 18px;
  border-radius: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  max-width: 260px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 9999;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  cursor: pointer;
}
.calc-promo-bubble.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.calc-promo-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 20px;
  width: 0; height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #212529;
}
.calc-promo-bubble .promo-close {
  position: absolute;
  top: 4px; right: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  cursor: pointer;
  background: none; border: none; padding: 2px 4px;
}
.calc-promo-bubble .promo-close:hover { color: #fff; }
.calc-promo-bubble .promo-cta {
  display: inline-block;
  margin-top: 8px;
  background: #fed136;
  color: #212529;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.5px;
}
.calc-promo-bubble .promo-cta:hover { background: #e6b800; }

@media (max-width: 768px) {
  .calc-promo-bubble {
    bottom: 135px;
    left: 15px;
    right: 15px;
    max-width: none;
  }
  .calc-float {
    bottom: 70px;
  }
}

/* --- Hero Calculator CTA --- */
/* Hero buttons wrapper */
.hero-buttons {
  display: inline-flex;
  align-items: stretch;
  gap: 14px;
  margin-top: 0;
}
.hero-buttons .btn-primary.btn-xl {
  margin: 0;
}
.btn-calc-hero {
  background: transparent;
  color: #fed136;
  border: 2px solid #fed136;
  padding: 20px 40px;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s;
  font-family: 'Montserrat', sans-serif;
  box-sizing: border-box;
}
.btn-calc-hero:hover {
  background: #fed136;
  color: #212529;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(254, 209, 54, 0.4);
}
@media (max-width: 576px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .hero-buttons .btn-primary.btn-xl,
  .btn-calc-hero {
    width: 100%;
    text-align: center;
    justify-content: center;
    font-size: 14px;
    padding: 14px 28px;
  }
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 9998;
  transition: all 0.3s ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}
.whatsapp-float i {
  color: #fff;
  font-size: 28px;
}
.whatsapp-float .tooltip-text {
  position: absolute;
  right: 68px;
  background: #212529;
  color: #fff;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  font-family: 'Montserrat', sans-serif;
}
.whatsapp-float:hover .tooltip-text {
  opacity: 1;
}

/* --- Mobile Call Bar --- */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #212529;
  padding: 10px 0;
  z-index: 9997;
  text-align: center;
}
.mobile-call-bar a {
  color: #fed136;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
}
.mobile-call-bar a i {
  margin-right: 8px;
  animation: pulse-phone 2s infinite;
}
@keyframes pulse-phone {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@media (max-width: 768px) {
  .mobile-call-bar {
    display: block;
  }
  .whatsapp-float {
    bottom: 70px;
  }
}

/* --- Related Services Section --- */
.related-services {
  padding: 60px 0;
  background: #f7f7f7;
}
.related-services h2 {
  text-align: center;
  margin-bottom: 40px;
}
.related-service-card {
  background: #fff;
  border-radius: 8px;
  padding: 30px 24px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  height: 100%;
  text-decoration: none;
  display: block;
  color: inherit;
}
.related-service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border-color: #fed136;
  color: inherit;
  text-decoration: none;
}
.related-service-card .fa-stack {
  margin-bottom: 15px;
}
.related-service-card h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 10px;
}
.related-service-card p {
  color: #777;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 0;
}

/* --- Permit Wizard --- */
#permitWizard { transition: opacity 0.15s ease; }

/* Step navigation dots */
.wizard-steps-nav {
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 32px; gap: 0;
}
.wizard-step-dot {
  text-align: center; flex-shrink: 0;
}
.wizard-step-dot .dot-circle {
  width: 48px; height: 48px; border-radius: 50%;
  background: #e9ecef; color: #999;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: all 0.3s;
}
.wizard-step-dot span {
  display: block; font-size: 0.7rem; color: #999; margin-top: 4px;
  font-family: 'Montserrat', sans-serif; font-weight: 600;
}
.wizard-step-dot.active .dot-circle { background: #fed136; color: #212529; box-shadow: 0 0 0 4px rgba(254,209,54,0.25); }
.wizard-step-dot.done .dot-circle { background: #28a745; color: #fff; }
.wizard-step-dot.active span, .wizard-step-dot.done span { color: #212529; }
.wizard-step-line {
  flex: 1; height: 3px; background: #e9ecef; margin: 0 8px; margin-bottom: 20px;
  border-radius: 2px; transition: background 0.3s;
}
.wizard-step-line.done { background: #28a745; }

/* Error message */
.wizard-error {
  background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb;
  border-radius: 8px; padding: 12px 16px; margin-bottom: 16px;
  font-size: 0.9rem; text-align: center; animation: fadeIn 0.3s;
}

/* Input cards (step 1) */
.wizard-input-card {
  background: #f8f9fa; border: 2px solid #e9ecef; border-radius: 12px;
  padding: 16px 12px 12px; text-align: center; transition: border-color 0.3s;
}
.wizard-input-card:focus-within { border-color: #fed136; }
.wizard-input-card > i { color: #fed136; font-size: 1.2rem; margin-bottom: 6px; display: block; }
.wizard-input-card > label {
  display: block; font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px;
  color: #666; margin-bottom: 8px;
}
.wizard-input-card .form-control { border-radius: 8px; }
.wizard-input-card .input-group-text { border-radius: 0 8px 8px 0; background: #fed136; border-color: #fed136; color: #212529; font-family: 'Montserrat', sans-serif; }

/* Route preview */
.wizard-route-preview {
  background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px;
  padding: 16px; margin-top: 12px;
}
.wizard-route-label {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  color: #166534; margin-bottom: 8px; font-family: 'Montserrat', sans-serif;
}
.wizard-route-chain {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
}
.wizard-route-chain i { color: #999; font-size: 0.7rem; }
.wizard-route-country {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 20px;
  padding: 6px 14px; font-size: 0.85rem; font-weight: 600;
  font-family: 'Montserrat', sans-serif; white-space: nowrap;
}
.wizard-route-result { text-align: center; }
.wizard-route-result .wizard-route-chain { justify-content: center; }
.wizard-route-result .wizard-route-country {
  background: #212529; color: #fff; border-color: #212529;
}

/* Transit pill checkboxes */
.wizard-transit-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.wizard-transit-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 20px;
  padding: 6px 14px; font-size: 0.8rem; cursor: pointer;
  transition: all 0.2s; font-family: 'Montserrat', sans-serif;
}
.wizard-transit-pill:hover { border-color: #fed136; background: #fff; }
.wizard-transit-pill input { margin: 0; }
.wizard-transit-pill input:checked + span { font-weight: 700; }

/* Transport summary bar (results) */
.wizard-transport-summary {
  background: #212529; color: #fff; border-radius: 12px; padding: 20px 10px;
}
.wizard-stat { padding: 8px 4px; }
.wizard-stat i { display: block; color: #fed136; font-size: 0.9rem; margin-bottom: 2px; }
.wizard-stat strong { display: block; font-family: 'Montserrat', sans-serif; font-size: 1.1rem; }
.wizard-stat small { display: block; font-size: 0.6rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.5px; }

/* Country result cards */
.wizard-country-card {
  background: #fff; border: 1px solid #e9ecef; border-radius: 12px;
  padding: 24px 18px 18px; text-align: center; height: 100%;
  transition: all 0.3s; box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.wizard-country-card:hover {
  border-color: #fed136; box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}
.wizard-country-flag { font-size: 2.5rem; margin-bottom: 4px; }
.wizard-country-card h4 {
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: 0.95rem; margin-bottom: 10px; color: #212529;
}
.wizard-permit-badge {
  display: inline-block; padding: 5px 14px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 700; color: #fff;
  font-family: 'Montserrat', sans-serif; margin-bottom: 14px;
}
.wizard-detail {
  display: flex; align-items: center; font-size: 0.82rem;
  padding: 7px 0; border-bottom: 1px solid #f5f5f5; color: #555;
}
.wizard-detail:last-child { border-bottom: none; }
.wizard-detail i { width: 22px; text-align: center; color: #aaa; margin-right: 8px; flex-shrink: 0; }
.wizard-detail .detail-label { flex: 1; text-align: left; }
.wizard-detail .detail-value { font-weight: 700; text-align: right; color: #212529; }
.wizard-detail.highlight .detail-value { color: #dc3545; }
.wizard-detail.highlight i { color: #dc3545; }

/* Summary box */
.wizard-summary {
  background: linear-gradient(135deg, #212529 0%, #1a1a2e 50%, #0f3460 100%);
  color: #fff; border-radius: 16px; padding: 32px; text-align: center;
}
.wizard-summary h3 {
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  margin-bottom: 24px; font-size: 1.1rem;
}
.wizard-summary-item {
  background: rgba(255,255,255,0.06); border-radius: 12px;
  padding: 20px 10px; border: 1px solid rgba(255,255,255,0.1);
}
.wizard-summary-item i { display: block; color: #fed136; font-size: 1.3rem; margin-bottom: 8px; }
.wizard-summary-item strong {
  display: block; font-family: 'Montserrat', sans-serif; font-size: 1.3rem; color: #fed136;
}
.wizard-summary-item span { font-size: 0.75rem; color: rgba(255,255,255,0.5); }
.wizard-disclaimer {
  font-size: 0.78rem; color: rgba(255,255,255,0.45); margin-top: 20px; margin-bottom: 0;
}

/* CTA group */
.wizard-cta-group {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}
.wizard-cta-group .btn { font-family: 'Montserrat', sans-serif; font-weight: 700; letter-spacing: 0.5px; }

/* Inline quote form */
.wizard-quote-form {
  background: linear-gradient(135deg, #212529 0%, #2c3034 100%);
  border-radius: 12px;
  padding: 32px 28px;
  color: #fff;
}
.wizard-quote-header {
  text-align: center;
  margin-bottom: 20px;
}
.wizard-quote-header h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: #fed136;
  margin-bottom: 8px;
}
.wizard-quote-header p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin: 0;
}
.wizard-quote-fields .form-control {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1rem;
}
.wizard-quote-fields .form-control::placeholder {
  color: rgba(255,255,255,0.5);
}
.wizard-quote-fields .form-control:focus {
  background: rgba(255,255,255,0.15);
  border-color: #fed136;
  color: #fff;
  box-shadow: 0 0 0 0.2rem rgba(254,209,54,0.25);
}
.wizard-quote-fields .btn-primary {
  background: #fed136;
  color: #212529;
  border: none;
  font-size: 1.1rem;
}
.wizard-quote-fields .btn-primary:hover {
  background: #e6b800;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(254,209,54,0.4);
}
/* Cost gate: blur costs until email provided */
.wizard-cost-row {
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
  transition: filter 0.4s ease;
}
.wizard-cost-row.unlocked {
  filter: none;
  user-select: auto;
  pointer-events: auto;
}
.wizard-gated-wrapper {
  position: relative;
}
.wizard-gated-content {
  filter: blur(8px);
  user-select: none;
  pointer-events: none;
  transition: filter 0.4s ease;
}
.wizard-gated-content.unlocked {
  filter: none;
  user-select: auto;
  pointer-events: auto;
}
.wizard-gate-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.wizard-gate-box {
  background: #fff;
  border-radius: 12px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  max-width: 520px;
  width: 90%;
}
.wizard-gate-box h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #212529;
  margin-bottom: 8px;
}
.wizard-gate-box p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.wizard-gate-box .form-control {
  font-size: 0.95rem;
}
.wizard-gate-box .btn-primary {
  background: #fed136;
  color: #212529;
  border: none;
  padding: 10px 24px;
}
.wizard-gate-box .btn-primary:hover {
  background: #e6b800;
}

.wizard-quote-alt {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.wizard-quote-alt .text-muted {
  color: rgba(255,255,255,0.6) !important;
}
.wizard-quote-alt .btn-outline-dark {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.wizard-quote-alt .btn-outline-dark:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fed136;
  color: #fed136;
}

/* Notes inside country cards */
.wizard-note {
  font-size: 0.75rem; color: #888; margin-top: 8px; padding-top: 8px;
  border-top: 1px dashed #e9ecef; text-align: left;
}
.wizard-note i { color: #6c757d; margin-right: 4px; }

/* Spain regional breakdown */
.wizard-spain-regions {
  margin-top: 16px; padding-top: 16px; border-top: 2px solid #fed136;
  text-align: left;
}
.wizard-spain-note {
  font-size: 0.78rem; color: #856404; background: #fff3cd;
  border-radius: 6px; padding: 10px 14px; margin-bottom: 14px;
}
.wizard-region-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.wizard-region-item {
  background: #f8f9fa; border-radius: 8px; padding: 12px;
  border: 1px solid #e9ecef; font-size: 0.82rem;
}
.wizard-region-item strong {
  font-family: 'Montserrat', sans-serif; font-size: 0.78rem; display: block; margin-bottom: 4px;
}
.wizard-region-details {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; font-size: 0.75rem; color: #555;
}
.wizard-region-details i { color: #fed136; margin-right: 2px; }
@media (max-width: 576px) {
  .wizard-region-grid { grid-template-columns: 1fr; }
}

@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }
.shake { animation: shake 0.3s ease; }

@media (max-width: 768px) {
  .wizard-step-dot .dot-circle { width: 40px; height: 40px; font-size: 0.85rem; }
  .wizard-step-dot span { font-size: 0.6rem; }
  .wizard-input-card > label { font-size: 0.65rem; }
  .wizard-stat strong { font-size: 0.95rem; }
  .wizard-stat small { font-size: 0.5rem; }
  .wizard-summary-item strong { font-size: 1.1rem; }
  .wizard-cta-group { flex-direction: column; }
  .wizard-cta-group .btn { width: 100%; }
  .wizard-quote-form { padding: 24px 16px; }
  .wizard-quote-alt .d-flex { flex-direction: column; }
  .wizard-quote-alt .btn { width: 100%; }
  .wizard-route-chain { justify-content: center; }
}

/* --- Portfolio Enhancement --- */
.portfolio-caption p {
  font-size: 0.85rem;
}

/* --- Hero Modernization --- */
header.masthead {
  position: relative;
}
header.masthead::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(33,37,41,0.85) 0%, rgba(33,37,41,0.6) 50%, rgba(246,134,0,0.3) 100%);
  z-index: 1;
}
header.masthead .container {
  position: relative;
  z-index: 2;
}

/* --- Testimonials Section --- */
.testimonials-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  overflow: hidden;
}
.testimonials-section .section-heading {
  color: #fff;
}
.testimonials-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 10px 0 30px;
  scrollbar-width: thin;
  scrollbar-color: #fed136 rgba(255,255,255,0.1);
}
.testimonials-track::-webkit-scrollbar {
  height: 6px;
}
.testimonials-track::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
}
.testimonials-track::-webkit-scrollbar-thumb {
  background: #fed136;
  border-radius: 3px;
}
.testimonial-item {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 28px 24px 24px;
  min-width: 320px;
  max-width: 340px;
  flex-shrink: 0;
  scroll-snap-align: start;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.4s;
  display: flex;
  flex-direction: column;
}
.testimonial-item:hover {
  border-color: #fed136;
  box-shadow: 0 12px 40px rgba(254,209,54,0.12);
  transform: translateY(-3px);
}
.testimonial-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  border: 2px solid rgba(255,255,255,0.2);
}
.testimonial-avatar.bg-orange { background: linear-gradient(135deg, #f68600, #fed136); }
.testimonial-avatar.bg-blue { background: linear-gradient(135deg, #0f3460, #5390d9); }
.testimonial-avatar.bg-green { background: linear-gradient(135deg, #1b998b, #2ec4b6); }
.testimonial-avatar.bg-red { background: linear-gradient(135deg, #c1121f, #e5383b); }
.testimonial-avatar.bg-purple { background: linear-gradient(135deg, #7209b7, #b5179e); }
.testimonial-avatar.bg-teal { background: linear-gradient(135deg, #14746f, #3a9e95); }
.testimonial-avatar.bg-navy { background: linear-gradient(135deg, #023e8a, #0077b6); }
.testimonial-avatar.bg-amber { background: linear-gradient(135deg, #e85d04, #faa307); }
.testimonial-meta {
  flex-grow: 1;
}
.testimonial-author {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  line-height: 1.3;
}
.testimonial-role {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.3;
}
.testimonial-stars {
  color: #fed136;
  font-size: 0.75rem;
  margin-bottom: 14px;
  letter-spacing: 2px;
}
.testimonial-text {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  line-height: 1.7;
  font-style: italic;
  flex-grow: 1;
}
.testimonial-scroll-hint {
  text-align: center;
  margin-top: 15px;
  color: rgba(255,255,255,0.35);
  font-size: 0.8rem;
  font-family: 'Montserrat', sans-serif;
}
.testimonial-scroll-hint i {
  margin-left: 5px;
  animation: scroll-hint 1.5s ease-in-out infinite;
}
@keyframes scroll-hint {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}
@media (max-width: 768px) {
  .testimonial-item {
    min-width: 280px;
    max-width: 300px;
    padding: 22px 20px 20px;
  }
  .testimonials-section {
    padding: 60px 0;
  }
}

/* --- Coverage Map Section --- */
.coverage-section {
  padding: 80px 0;
  background-color: #212529;
  background-image: url(../img/map-image.png);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  position: relative;
  color: #fff;
}
.coverage-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(33,37,41,0.7);
}
.coverage-section .container {
  position: relative;
  z-index: 2;
}
.coverage-section h2 {
  color: #fff;
}
.coverage-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}
.coverage-pill {
  background: rgba(254,209,54,0.12);
  border: 1px solid rgba(254,209,54,0.3);
  border-radius: 50px;
  padding: 10px 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: #fff;
  transition: all 0.3s;
  white-space: nowrap;
}
.coverage-pill:hover {
  background: rgba(254,209,54,0.25);
  border-color: #fed136;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(254,209,54,0.2);
}
.coverage-pill .flag {
  font-size: 1.3rem;
}
.coverage-more {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: #fed136;
  margin-top: 25px;
  text-align: center;
}

/* ============================================
   Mobile & Responsive Fixes
   ============================================ */

/* --- Header: prevent long titles from overflowing --- */
@media (max-width: 576px) {
  header.masthead .intro-text .intro-heading {
    font-size: 28px;
    line-height: 34px;
    margin-bottom: 20px;
  }
  header.masthead .intro-text .intro-lead-in {
    font-size: 16px;
    line-height: 22px;
  }
  header.masthead .intro-text {
    padding-top: 120px;
    padding-bottom: 80px;
  }
  .btn-xl {
    font-size: 14px;
    padding: 14px 28px;
  }
}

/* --- CTA Banner: stack buttons vertically on mobile --- */
@media (max-width: 768px) {
  .cta-banner {
    padding: 25px 15px;
  }
  .cta-banner h3 {
    font-size: 1.05rem;
    margin-bottom: 15px;
    line-height: 1.4;
  }
  .cta-banner .btn-dark {
    display: block;
    margin: 8px auto;
    max-width: 260px;
    width: 100%;
    padding: 12px 20px;
    font-size: 0.85rem;
    text-align: center;
  }
}
@media (max-width: 400px) {
  .cta-banner h3 {
    font-size: 0.95rem;
  }
  .cta-banner .btn-dark {
    padding: 10px 15px;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
  }
}

/* --- Service Cards: equal height with flexbox --- */
#services .row.text-center {
  display: flex;
  flex-wrap: wrap;
}
#services .row.text-center > .col-md-4 {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}
#services .row.text-center > .col-md-4 p {
  flex-grow: 1;
}
#services .row.text-center > .col-md-4 .btn-service-more {
  margin-top: auto;
}

/* --- Stats: tighten on small screens --- */
@media (max-width: 576px) {
  .stats-section {
    padding: 40px 0;
  }
  .stat-number {
    font-size: 2.2rem;
  }
  .stat-label {
    font-size: 0.8rem;
  }
  .stat-item i {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }
}

/* --- Why Choose Us: tighten on mobile --- */
@media (max-width: 768px) {
  .why-us-section {
    padding: 50px 0;
  }
  .why-us-item {
    padding: 20px 15px;
  }
  .why-us-icon {
    width: 60px;
    height: 60px;
    font-size: 1.4rem;
  }
}

/* --- FAQ: reduce padding on mobile --- */
@media (max-width: 768px) {
  .faq-section {
    padding: 50px 0;
  }
  .faq-section .accordion-button {
    font-size: 0.85rem;
    padding: 14px 18px;
  }
  .faq-section .accordion-body {
    padding: 16px 18px;
    font-size: 0.85rem;
  }
}

/* --- Section padding: reduce on mobile --- */
@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  section h2.section-heading {
    font-size: 28px;
  }
  section h3.section-subheading {
    margin-bottom: 40px;
    font-size: 14px;
  }
}

/* --- Language switcher: compact on very small screens --- */
@media (max-width: 400px) {
  .language-buttons a {
    font-size: 0.65rem;
    padding: 3px 7px;
  }
}

/* --- Navbar brand logo --- */
#mainNav .navbar-brand {
  display: flex;
  align-items: center;
  font-size: 0 !important;
}
#mainNav .navbar-brand img {
  height: 48px;
  width: auto;
  transition: height 0.3s;
  display: block;
}
@media (min-width: 992px) {
  #mainNav.navbar-shrink .navbar-brand img {
    height: 24px;
  }
}

/* --- Navbar: prevent overflow on mid-size screens --- */
@media (min-width: 992px) and (max-width: 1399px) {
  #mainNav .navbar-nav .nav-item .nav-link {
    font-size: 80% !important;
    padding: 1.1em 0.5em !important;
  }
  .language-buttons a {
    font-size: 0.65rem;
    padding: 3px 6px;
  }
  .language-buttons {
    gap: 4px;
    margin-right: 0;
  }
}
@media (min-width: 992px) {
  #mainNav .navbar-collapse {
    flex-wrap: nowrap;
  }
  #mainNav .navbar-nav {
    flex-wrap: nowrap;
  }
}

/* --- Navbar: fix toggler alignment --- */
@media (max-width: 991px) {
  #mainNav .navbar-nav {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  #mainNav .nav-link {
    padding: 8px 0;
  }
}

/* --- Footer: add bottom padding for mobile call bar --- */
@media (max-width: 768px) {
  footer {
    padding-bottom: 60px;
  }
}

/* --- Contact form: better spacing on mobile --- */
@media (max-width: 576px) {
  #contact .form-group input,
  #contact .form-group textarea {
    font-size: 14px;
  }
}

/* --- Timeline: single-column left-aligned below 1200px --- */
@media (max-width: 1199px) {
  .timeline:before {
    left: 30px !important;
  }
  .timeline>li {
    margin-bottom: 30px !important;
    min-height: auto !important;
  }
  .timeline>li .timeline-image {
    left: 0 !important;
    width: 60px !important;
    height: 60px !important;
    margin-left: 0 !important;
    border-width: 4px;
    overflow: hidden;
  }
  .timeline>li .timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
  }
  .timeline>li .timeline-image h4 {
    font-size: 9px;
    line-height: 12px;
    margin-top: 10px;
  }
  .timeline>li .timeline-panel {
    float: none !important;
    width: 100% !important;
    padding: 5px 10px 10px 85px !important;
    text-align: left !important;
  }
  .timeline>li.timeline-inverted>.timeline-panel {
    float: none !important;
    width: 100% !important;
    padding: 5px 10px 10px 85px !important;
    text-align: left !important;
  }
  .timeline>li .timeline-panel:before,
  .timeline>li .timeline-panel:after,
  .timeline>li.timeline-inverted>.timeline-panel:before,
  .timeline>li.timeline-inverted>.timeline-panel:after {
    display: none !important;
  }
  .timeline>li .timeline-heading h4 {
    font-size: 16px;
  }
  .timeline>li .timeline-heading h4.subheading {
    font-size: 14px;
  }
  .timeline>li .timeline-body p {
    font-size: 13px;
    line-height: 1.6;
  }
}

/* --- Timeline CTA: make "Haz historia" clickable --- */
a.timeline-cta {
  cursor: pointer;
  text-decoration: none;
  transition: all 0.4s ease;
  background: #fed136 !important;
  border-color: #fed136 !important;
}
a.timeline-cta h4 {
  color: #212529;
  margin: 0;
}
a.timeline-cta:hover {
  background: #e6b800 !important;
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(254, 209, 54, 0.5);
}

/* --- Portfolio modals: fix mobile overflow --- */
@media (max-width: 576px) {
  .portfolio-modal .modal-body {
    padding: 15px;
  }
  .portfolio-modal h2 {
    font-size: 1.5rem;
  }
}

/* --- Section Divider --- */
.section-divider {
  width: 60px;
  height: 3px;
  background: #fed136;
  margin: 0 auto 30px;
}

/* --- Form feedback animation --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Language Switcher Enhancement --- */
.language-buttons {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-right: 10px;
}
.language-buttons a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.75rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 3px;
  transition: all 0.3s;
}
.language-buttons a:hover {
  color: #fed136;
  border-color: #fed136;
}
/* On mobile: language buttons inside collapsed menu */
@media (max-width: 991px) {
  .language-buttons {
    justify-content: center;
    margin: 15px 0 5px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.15);
  }
}
