/* Custom styles for Pico y Placa Solidario standalone template */

@font-face {
  font-family: 'Gotham';
  src: url('../assets/fonts/GothamBook.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Gotham';
  src: url('../assets/fonts/GothamBold.ttf') format('truetype'),
       url('../assets/fonts/Gotham-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Gotham';
  src: url('../assets/fonts/Gotham-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Raleway', 'Roboto', 'Gotham', sans-serif;
  color: #333333;
  background-color: #ffffff;
  overflow-x: hidden;
}

/* Fix for background image sections */
.bg-llamado-accion {
  background-image: url('../assets/images/Foto-fondo_seccion-llamado-a-la-accion.jpg');
  background-size: cover;
  background-position: center;
}

.mobile-button {
  background-color: #00271c !important;
  color: #ffffff !important;
  border: 1px solid #00271c !important;
  cursor: pointer !important;
  font-weight: bold !important;
  padding: 8px 20px !important;
  transition: all 0.2s ease-in-out !important;
}

.mobile-button:hover {
  background-color: #004532 !important;
  border-color: #88f456 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 39, 28, 0.2);
}

.mobile-button:active {
  transform: translateY(1px);
}

a:hover {
  opacity: 0.9;
}

.paso-paso-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.paso-paso-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Mobile navbar styling */
@media (max-width: 1024px) {
  .navbar-mobil.active-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

.pyps-status {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: left;
  background: #f2f7f4;
  color: #214a35;
  border: 1px solid #dce9e1;
  width: 100%;
}

.pyps-status.is-success {
  background: #e8f8ec;
  color: #17633b;
  border-color: #b9e7ca;
}

.pyps-status.is-error {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.pyps-status.is-info {
  background: #eef6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

/* Custom Interactive reCAPTCHA Widget */
.mock-recaptcha-container {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 302px;
  height: 76px;
  background-color: #f9f9f9;
  border: 1px solid #d3d3d3;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  padding: 0 12px;
  box-sizing: border-box;
  user-select: none;
  font-family: Roboto, helvetica, arial, sans-serif;
}

.mock-recaptcha-left {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.mock-recaptcha-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid #c1c1c1;
  border-radius: 2px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.mock-recaptcha-checkbox:hover {
  border-color: #a6a6a6;
}

.mock-recaptcha-checkbox.is-checked {
  background-color: #ffffff;
  border-color: #4CAF50;
}

.mock-recaptcha-checkbox.is-loading {
  border-color: #4285f4;
  border-top-color: transparent;
  border-radius: 50%;
  animation: recaptcha-spin 0.7s linear infinite;
}

@keyframes recaptcha-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.mock-recaptcha-label {
  font-size: 14px;
  font-weight: 500;
  color: #222222;
  cursor: pointer;
}

.mock-recaptcha-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.mock-recaptcha-logo {
  width: 32px;
  height: 32px;
}

.mock-recaptcha-brand {
  font-size: 10px;
  color: #555555;
  font-weight: 500;
  margin-top: -2px;
}

.mock-recaptcha-terms {
  font-size: 8px;
  color: #888888;
  margin-top: 1px;
}

.mock-recaptcha-terms a {
  color: #555555;
  text-decoration: none;
}

.mock-recaptcha-terms a:hover {
  text-decoration: underline;
}

/* Official Solicitud Modal Styles & Multi-Step Flow */
.solicitud-modal-backdrop {
  display: none !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: rgba(0, 0, 0, 0.65) !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 9999999 !important;
  padding: 16px !important;
  box-sizing: border-box !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.25s ease, visibility 0.25s ease !important;
}

.solicitud-modal-backdrop.is-open {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.solicitud-modal-surface {
  position: relative !important;
  background: #ffffff !important;
  border-radius: 12px !important;
  width: 100% !important;
  max-width: 960px !important;
  max-height: 90vh !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.08) !important;
  overflow: hidden !important;
  transform: scale(0.96) !important;
  transition: transform 0.25s ease !important;
  box-sizing: border-box !important;
}

.solicitud-modal-backdrop.is-open .solicitud-modal-surface {
  transform: scale(1) !important;
}

.modal-top-bar {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  width: 100% !important;
  margin-bottom: 2px !important;
}

.solicitud-modal-close-btn {
  background: transparent !important;
  border: none !important;
  color: #5f6368 !important;
  cursor: pointer !important;
  font-size: 1.4rem !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  transition: background-color 0.2s, color 0.2s !important;
}

.solicitud-modal-close-btn:hover {
  background-color: #f3f4f6 !important;
  color: #111827 !important;
}

.solicitud-modal-body {
  padding: 16px 28px 28px 28px !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  box-sizing: border-box !important;
}

@media (max-width: 768px) {
  .solicitud-modal-surface {
    max-width: 95vw !important;
    max-height: 94vh !important;
    border-radius: 10px !important;
  }
  .solicitud-modal-body {
    padding: 14px 16px 20px 16px !important;
  }
}

/* Stepper Component */
.modal-stepper {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: 4px !important;
  margin-bottom: 18px !important;
  position: relative !important;
  padding: 0 4px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.modal-stepper-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  position: relative !important;
  z-index: 2 !important;
  cursor: pointer !important;
}

.modal-stepper-circle {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background-color: #757575 !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  margin-bottom: 4px !important;
  transition: all 0.25s ease !important;
}

.modal-stepper-item.is-active .modal-stepper-circle {
  background-color: #00271c !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(0, 39, 28, 0.25) !important;
}

.modal-stepper-item.is-completed .modal-stepper-circle {
  background-color: #00271c !important;
  color: #88f456 !important;
}

.modal-stepper-label {
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  color: #4b5563 !important;
  text-transform: capitalize !important;
  text-align: center !important;
}

.modal-stepper-item.is-active .modal-stepper-label,
.modal-stepper-item.is-completed .modal-stepper-label {
  color: #00271c !important;
  font-weight: bold !important;
}

@media (max-width: 600px) {
  .modal-stepper-circle {
    width: 24px !important;
    height: 24px !important;
    font-size: 0.75rem !important;
  }
  .modal-stepper-label {
    font-size: 0.68rem !important;
    max-width: 52px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

.modal-stepper-line {
  flex-grow: 1 !important;
  height: 2px !important;
  background-color: #e5e7eb !important;
  margin: 0 4px 16px 4px !important;
  position: relative !important;
  z-index: 1 !important;
}

/* Step Panels */
.modal-step-panel {
  display: none !important;
  animation: fadeInStep 0.25s ease !important;
}

.modal-step-panel.is-active {
  display: block !important;
}

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

.modal-section-title {
  font-size: 1.45rem !important;
  font-weight: 700 !important;
  color: #00271c !important;
  margin-top: 4px !important;
  margin-bottom: 14px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid #e5e7eb !important;
  line-height: 1.25 !important;
}

@media (max-width: 600px) {
  .modal-section-title {
    font-size: 1.3rem !important;
  }
}

.modal-form-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 16px 20px !important;
}

.modal-form-group {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.modal-form-group.col-span-2 {
  grid-column: span 2 !important;
}

.modal-form-group.col-span-3 {
  grid-column: span 3 !important;
}

@media (max-width: 768px) {
  .modal-form-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }
  .modal-form-group,
  .modal-form-group.col-span-2,
  .modal-form-group.col-span-3 {
    grid-column: auto !important;
    width: 100% !important;
  }
}

.modal-form-group label {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #00271c !important;
  margin-bottom: 5px !important;
  display: block !important;
}

.modal-form-group label span.required {
  color: #dc2626 !important;
  margin-left: 2px !important;
  font-weight: bold !important;
}

.modal-form-input,
.modal-form-select {
  width: 100% !important;
  height: 42px !important;
  padding: 8px 12px !important;
  border: 1px solid #6b7280 !important;
  border-radius: 4px !important;
  font-size: 0.95rem !important;
  color: #111827 !important;
  background-color: #ffffff !important;
  outline: none !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}

.modal-form-input:focus,
.modal-form-select:focus {
  border-color: #00271c !important;
  box-shadow: 0 0 0 2px rgba(0, 39, 28, 0.18) !important;
}

.modal-form-input:disabled {
  background-color: #f3f4f6 !important;
  color: #6b7280 !important;
}

/* Placas Table & Inputs */
.pyps-table-wrapper {
  overflow-x: auto;
  margin-top: 15px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.pyps-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.pyps-table th {
  background-color: #00271c;
  color: #ffffff;
  padding: 10px 14px;
  font-weight: 600;
}

.pyps-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #e5e7eb;
  color: #374151;
}

.pyps-table tr:hover {
  background-color: #f9fafb;
}

.pyps-btn-remove {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.pyps-btn-remove:hover {
  background: #fee2e2;
}

/* Payment Selection Tab - Modern & Clean */
.payment-methods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 22px;
}

@media (max-width: 600px) {
  .payment-methods-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

.payment-method-card {
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px 18px;
  cursor: pointer;
  background: #ffffff;
  transition: all 0.25s ease;
  position: relative;
  text-align: left;
}

.payment-method-card:hover {
  border-color: #00271c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 39, 28, 0.06);
}

.payment-method-card.is-selected {
  border-color: #00271c;
  background-color: #f8fbf9;
  box-shadow: 0 4px 14px rgba(0, 39, 28, 0.08);
}

.payment-method-card .method-title {
  font-weight: 700;
  color: #00271c;
  font-size: 1rem;
  margin-bottom: 4px;
}

.payment-method-card .method-subtitle {
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.3;
}

/* Modern Segmented Radio Pill for Card Type */
.payment-type-segmented {
  display: flex;
  background: #e5e7eb;
  padding: 4px;
  border-radius: 8px;
  gap: 4px;
  margin-bottom: 20px;
}

.payment-type-option {
  flex: 1;
  text-align: center;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.payment-type-option input[type="radio"] {
  display: none;
}

.payment-type-option.is-active {
  background: #ffffff;
  color: #00271c;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

/* Modern Input with Icon - Espaciado amplio garantizado para evitar superposición */
.modern-input-wrapper {
  position: relative !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

.modern-input-wrapper .modal-form-input {
  width: 100% !important;
  height: 44px !important;
  padding: 10px 14px 10px 44px !important;
  padding-left: 44px !important;
  padding-right: 14px !important;
  border: 1px solid #d1d5db !important;
  border-radius: 8px !important;
  font-size: 0.95rem !important;
  line-height: 1.4 !important;
  color: #111827 !important;
  background-color: #ffffff !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  box-sizing: border-box !important;
}

.modern-input-wrapper input#tarjetaNumero.modal-form-input {
  padding-left: 44px !important;
  padding-right: 58px !important;
}

.modern-input-wrapper .modal-form-input:focus {
  border-color: #00271c !important;
  box-shadow: 0 0 0 3px rgba(0, 39, 28, 0.12) !important;
}

.modern-input-wrapper .modal-form-input::placeholder {
  color: #9ca3af !important;
  opacity: 0.8 !important;
}

.modern-input-icon {
  position: absolute !important;
  left: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  color: #6b7280 !important;
  pointer-events: none !important;
  z-index: 10 !important;
}

.card-brand-badge {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  display: none;
}

.card-brand-badge.visa {
  display: block;
  background: #1a1f71;
  color: #ffffff;
}

.card-brand-badge.mastercard {
  display: block;
  background: #eb001b;
  color: #ffffff;
}

.card-brand-badge.amex {
  display: block;
  background: #007bc1;
  color: #ffffff;
}

/* Total Summary Badge */
.payment-summary-strip {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.payment-summary-strip .summary-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #166534;
}

.payment-summary-strip .summary-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: #00271c;
}

/* Nequi Modern Box */
.nequi-card-box {
  background: #faf5ff;
  border: 1px solid #e9d5ff;
  border-radius: 10px;
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.nequi-badge-pill {
  background: #200020;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.15rem;
  padding: 6px 20px;
  border-radius: 6px;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: inline-block;
}

.modal-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 14px !important;
  margin-top: 25px !important;
  padding-top: 18px !important;
  border-top: 1px solid #e5e7eb !important;
}

@media (max-width: 600px) {
  .modal-actions {
    justify-content: space-between !important;
    gap: 10px !important;
  }
  .modal-btn-cancel,
  .modal-btn-submit {
    flex: 1 !important;
    text-align: center !important;
    padding: 10px 16px !important;
  }
}

.modal-btn-cancel {
  padding: 9px 24px;
  border-radius: 9999px;
  border: 1px solid #9ca3af;
  background: transparent;
  color: #4b5563;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-btn-cancel:hover {
  background-color: #f3f4f6;
  color: #111827;
}

.modal-btn-submit {
  padding: 9px 32px;
  border-radius: 9999px;
  background-color: #00271c;
  color: #ffffff;
  border: 1px solid #00271c;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-btn-submit:hover {
  background-color: #004532;
  border-color: #88f456;
  box-shadow: 0 4px 10px rgba(0, 39, 28, 0.2);
}

/* Toast Alert Popup */
.pyps-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #00271c;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.25);
  z-index: 9999999;
  border-left: 5px solid #88f456;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  animation: slideToast 0.3s ease;
}

@keyframes slideToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Footer layout fixes & clean appearance */
app-footer footer.footer-float {
  position: relative !important;
  margin-top: 4rem !important;
  height: auto !important;
  min-height: 38rem !important;
}

app-footer footer .footer {
  position: relative !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04) !important;
  max-width: 95% !important;
  margin: 2rem auto !important;
  padding: 2.5rem !important;
  box-sizing: border-box !important;
}

app-footer .footer h2,
app-footer .footer h2.text-mobile {
  font-size: 1.35rem !important;
  line-height: 1.35 !important;
  color: #00271c !important;
  font-weight: 800 !important;
  margin-bottom: 0.25rem !important;
}

app-footer .footer p,
app-footer .footer p.text-mobile {
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
  color: #1f2937 !important;
}

app-footer .contacto {
  margin-top: 1.25rem !important;
}

app-footer .contacto h4,
app-footer .contacto h4.text-mobile {
  font-size: 1.05rem !important;
  line-height: 1.45 !important;
  font-weight: 700 !important;
  color: #00271c !important;
  margin-top: 1.1rem !important;
  margin-bottom: 0.25rem !important;
  display: block !important;
  clear: both !important;
}

app-footer .contacto p,
app-footer .contacto p.text-mobile {
  font-size: 0.95rem !important;
  line-height: 1.55 !important;
  color: #00271c !important;
  font-weight: 700 !important;
  margin-top: 0.25rem !important;
  margin-bottom: 0.4rem !important;
  display: block !important;
}

app-footer .contacto p span,
app-footer .contacto a span,
app-footer .contacto span {
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
  color: #374151 !important;
  border-bottom: none !important;
  margin-left: 4px !important;
}

app-footer .contacto > span.text-mobile {
  display: block !important;
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
  color: #047857 !important;
  font-weight: 600 !important;
  margin-top: 0.15rem !important;
  margin-bottom: 0.75rem !important;
  border-bottom: none !important;
}

/* Clear extraneous underlines on footer text/links while keeping links readable */
app-footer .footer span,
app-footer .footer h2,
app-footer .footer h4,
app-footer .footer p {
  border-bottom: none !important;
}

app-footer .contacto p span,
app-footer .contacto a span,
app-footer .contacto > span,
app-footer .enlaces span.text-mobile,
app-footer .enlaces span.info {
  border-bottom: none !important;
}

app-footer .enlaces {
  margin-top: 1.8rem !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 1.25rem !important;
  align-items: center !important;
}

app-footer .enlaces a,
app-footer .enlaces span {
  font-size: 0.88rem !important;
  line-height: 1.45 !important;
}

app-footer .enlaces a,
app-footer .contacto a {
  text-decoration: none !important;
  color: #374151 !important;
  transition: color 0.2s ease !important;
}

app-footer .enlaces a:hover,
app-footer .contacto a:hover {
  color: #00271c !important;
  text-decoration: underline !important;
}

/* ==========================================================================
   REAL MOBILE RESPONSIVE OVERRIDES
   El sitio original (Angular) usa un viewport virtual de ~980px sin meta tag
   y confía en que el navegador escale la página completa para que quepa en
   pantalla. Nuestro proyecto SÍ usa <meta name="viewport"> (necesario para
   que el modal de Solicitud funcione en 1 columna), lo cual activa TODOS los
   breakpoints heredados (max-width:1000px, 769px, 625px, 576px) al mismo
   tiempo en un celular real, produciendo tamaños de letra enormes, botones
   desbordados y espacios en blanco gigantes. Estas reglas neutralizan ese
   comportamiento heredado y aplican tamaños pensados para un móvil real.
   ========================================================================== */
@media only screen and (max-width: 768px) {
  /* Elimina el hueco enorme entre el navbar y el banner principal */
  .section-1 {
    margin-top: 0 !important;
    top: 0 !important;
  }

  /* Ícono de menú hamburguesa: el original lo escala x4 asumiendo el
     viewport virtual de 980px; en un móvil real eso lo hace desbordar. */
  .icon-hamgurgesa {
    scale: 1.4 !important;
    position: relative !important;
    right: 10px !important;
    margin: 0 !important;
  }

  .navbar-mobil {
    margin-right: 4px !important;
  }

  /* Barra de navegación: el selector de idioma "Esp" + el botón "Soporte
     técnico" ocupan ~305px de ancho fijo y no caben junto al título y el
     ícono de menú en una pantalla real de 390-430px, empujando el botón
     hamburguesa fuera de la pantalla. Se oculta el selector de idioma
     (accesorio, no crítico) y se compacta el botón de soporte técnico. */
  .list-menu-mobile {
    right: auto !important;
    position: static !important;
    padding: 0 !important;
    gap: 6px !important;
  }

  .list-menu-mobile > div.relative {
    display: none !important;
  }

  .soport-tec-mobile {
    width: auto !important;
    height: auto !important;
    margin-left: 0 !important;
    padding: 6px 14px !important;
    font-size: 0.75rem !important;
    white-space: nowrap !important;
  }

  /* Elimina el hueco enorme entre el banner y la sección "¿Qué es...?" */
  .section-2 {
    margin-top: 1.5rem !important;
  }

  /* Título "Iniciar Solicitud" */
  .inicio-registro-header {
    gap: 10px !important;
  }

  .inicio-registro-text {
    font-size: 1.9rem !important;
    line-height: 1.15 !important;
    margin-left: 0 !important;
    white-space: normal !important;
  }

  .mobile-parrafo {
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
  }

  /* Formulario de consulta (Tipo/Número de documento) antes de abrir el modal */
  .mobile-label {
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
    margin: 0.6rem 0 0.3rem 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .mobile-input {
    font-size: 1rem !important;
    height: 44px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .mobile-button {
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    font-size: 1rem !important;
    padding: 10px 24px !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
  }

  .containerPersona {
    width: 92% !important;
  }

  /* Fix para que los bloques de texto y botones del hero no se desborden */
  app-root [class*="w-[27rem]"],
  app-root [class*="w-[60%]"],
  app-root .parrafoUno {
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  app-root .parrafoUno {
    display: inline-block !important;
    padding-right: 1rem !important;
    padding-left: 1rem !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  app-root .text-dark-green.text-5xl {
    font-size: 1.6rem !important;
    line-height: 1.2 !important;
    text-align: center !important;
    margin-bottom: 0.9rem !important;
  }

  app-root .section-2-info p,
  app-root .section-3 p,
  app-root .text-trimmer-container p {
    text-align: left !important;
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
  }

  /* Footer: la columna izquierda tenía margin-right:5rem fijo (.mr-20),
     lo que la hace más ancha que su contenedor y desborda en pantallas
     angostas (~360px). La ponemos a ancho completo en columna. */
  app-footer .footer > div.flex {
    flex-direction: column !important;
  }

  app-footer .footer .mr-20 {
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  app-footer .footer img.w-\[25rem\] {
    width: 10rem !important;
    margin-top: 1.25rem !important;
  }
}

@media only screen and (max-width: 480px) {
  .inicio-registro-text {
    font-size: 1.6rem !important;
  }
}

/* ==========================================================================
   FLUID SCROLL PERFORMANCE & ULTRA-CLEAR TYPOGRAPHY
   Neutralizes laggy viewport-height (vh) layout shifts during mobile scroll
   and removes text blurriness / truncation.
   ========================================================================== */
html {
  scroll-behavior: smooth !important;
  -webkit-overflow-scrolling: touch !important;
}

body {
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

/* Section 1 Hero banner typography fix */
.section-1-top span {
  display: block !important;
  width: auto !important;
  font-size: clamp(1rem, 2.8vw, 2.4rem) !important;
  line-height: 1.25 !important;
  box-sizing: border-box !important;
}

@media (max-width: 768px) {
  .section-1-top {
    width: 85% !important;
    left: 8% !important;
    padding: 0.5rem !important;
    margin-left: 0 !important;
  }

  .section-1-top span {
    font-size: 1.15rem !important;
    padding: 4px 10px !important;
    margin: 4px 0 !important;
  }
}

/* Fix for text trimmers and paragraph readability across all devices */
.text-trimmer-container {
  margin-left: 0 !important;
  width: 100% !important;
}

.text-trimmer-container p,
app-text-trimmer p,
.section-2-info p,
.section-3 p {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  font-size: 1rem !important;
  line-height: 1.65 !important;
  color: #00271c !important;
  text-align: justify !important;
  white-space: normal !important;
  word-break: normal !important;
  letter-spacing: normal !important;
  margin-top: 0.5rem !important;
  margin-bottom: 0.5rem !important;
}

app-text-trimmer button,
.text-trimmer-container button {
  font-size: 0.95rem !important;
  line-height: 1.4 !important;
  padding: 6px 22px !important;
  cursor: pointer !important;
}

/* Section 2 & 3 responsive flex and clean sizing */
.section-2, .section-3 {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 1200px !important;
  padding: 2.5rem 1.5rem !important;
  box-sizing: border-box !important;
}

.section-2-titulo h1,
.section-3-titulo p,
.section-3-titulo span {
  font-size: 2.2rem !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
}

@media (max-width: 768px) {
  .section-2, .section-3 {
    flex-direction: column !important;
    margin: 1.5rem auto !important;
    padding: 1.25rem 1rem !important;
    text-align: center !important;
  }
  
  .section-2-svg, .section-3-svg {
    width: 100% !important;
    margin: 0 0 1rem 0 !important;
    justify-content: center !important;
  }

  .section-2-svg svg, .section-3-svg svg {
    margin: 0 auto 0.75rem auto !important;
    max-width: 110px !important;
    height: auto !important;
  }

  .section-2-titulo h1,
  .section-3-titulo p,
  .section-3-titulo span {
    font-size: 1.65rem !important;
    line-height: 1.25 !important;
    text-align: center !important;
  }

  .section-2-line-green {
    display: none !important;
  }

  .section-2-info {
    width: 100% !important;
    font-size: 0.95rem !important;
    margin-top: 0.75rem !important;
  }

  .section-2-ml {
    padding: 0.5rem 0 !important;
  }
}

/* Paso a paso cards - fix layout and remove lag-inducing vh heights */
.paso-paso-section {
  height: auto !important;
  min-height: auto !important;
  width: 100% !important;
}

.paso-paso-card {
  height: auto !important;
  min-height: 22rem !important;
  width: 16rem !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding-bottom: 1.5rem !important;
}

.paso-paso-card-text h2 {
  font-size: 1.35rem !important;
  margin: 0.75rem 0 !important;
  color: #00271c !important;
}

.paso-paso-card-text p {
  font-size: 0.95rem !important;
  line-height: 1.4 !important;
  margin-bottom: 1rem !important;
  color: #374151 !important;
}

.icono-paso-paso {
  width: 5rem !important;
  height: auto !important;
}

.button-tarjeta {
  margin-top: 0.75rem !important;
  margin-bottom: 0 !important;
}

.button-tarjeta a {
  font-size: 0.9rem !important;
  line-height: 1.3 !important;
  padding: 8px 24px !important;
  display: inline-block !important;
}

@media (max-width: 768px) {
  .paso-paso-section {
    flex-direction: column !important;
    gap: 1.5rem !important;
    height: auto !important;
  }

  .paso-paso-card {
    width: 100% !important;
    max-width: 20rem !important;
    height: auto !important;
    margin: 0 auto !important;
  }
}


