@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;600;700;800&display=swap');

/* ===== BASE ===== */
body, html {
  font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  color: #1a1a1a !important;
  background: #f5f5f5 !important;
}

/* ===== NAVBAR ===== */
.navbar, nav.navbar {
  background: #611232 !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.15) !important;
}

/* ===== HERO SECTION ===== */
.jumbotron, .hero, .banner, [class*="hero"], [class*="banner"],
.main-header, .header-content, .top-section,
app-root > div > div:first-child,
.container > .row:first-child {
  color: #000 !important;
}

h1, .jumbotron h1, .hero h1, [class*="hero"] h1,
.main-title, .page-title {
  color: #000 !important;
  font-weight: 800 !important;
  font-size: 36px !important;
  text-shadow: none !important;
}

.jumbotron p, .hero p, [class*="hero"] p,
.subtitle, .description, .lead {
  color: #1a1a1a !important;
  font-weight: 500 !important;
}

/* ===== CARDS ===== */
.card-pasaporte, .info-card, .datos-card,
.well, .panel, .card-body, .card,
.form-container, .form-card {
  background: #fff !important;
  border: 2px solid #611232 !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 20px rgba(97, 18, 50, .12) !important;
  padding: 24px !important;
}

/* ===== TABLES ===== */
table.table, .table, .datos-tabla, .info-table {
  border: 2px solid #611232 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
}
table.table th, .table th {
  background: #611232 !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  text-transform: uppercase !important;
  letter-spacing: .5px !important;
  padding: 12px 16px !important;
}
table.table td, .table td {
  background: #fff !important;
  color: #000 !important;
  font-weight: 600 !important;
  padding: 12px 16px !important;
  border-bottom: 1px solid #f0e0e5 !important;
}

/* CURP display */
.curp-display, .curp-text, [class*="curp"] {
  color: #000 !important;
  font-weight: 700 !important;
}

/* ===== BUTTONS ===== */
.btn-primary, button.btn-primary, .btn-siguiente, .btn-gold,
button[type="submit"]:not(.back):not(.Bk):not(.cp-btn) {
  background: linear-gradient(135deg, #611232, #8a2444) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 14px 40px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: .5px !important;
  box-shadow: 0 4px 16px rgba(97, 18, 50, .3) !important;
  transition: all .2s !important;
  text-transform: uppercase !important;
}
.btn-primary:hover, button.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(97, 18, 50, .4) !important;
  transform: translateY(-1px) !important;
}
.btn-regresar, .btn-secondary, .btn-outline-primary {
  background: #000 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 14px 32px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.2) !important;
  text-transform: uppercase !important;
}
.btn-regresar:hover, .btn-secondary:hover {
  background: #333 !important;
}

/* ===== INPUTS ===== */
input[type="text"], input[type="email"], input[type="tel"],
input[type="number"], input[type="password"], textarea {
  border: 2px solid #d0c0c5 !important;
  border-radius: 10px !important;
  padding: 14px 18px !important;
  font-size: 15px !important;
  font-family: inherit !important;
  color: #000 !important;
  background: #fff !important;
  transition: all .2s !important;
  font-weight: 500 !important;
}
input:focus, textarea:focus {
  border-color: #611232 !important;
  background: #fff !important;
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(97, 18, 50, .08) !important;
}

/* ===================================================================
   MEGA FIX: DROPDOWNS / SELECTS — nuclear specificity
   =================================================================== */
select,
select.form-control,
select.input2,
select.custom-select,
.form-control[readonly],
.custom-select,
select option,
select optgroup {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  opacity: 1 !important;
  background-color: #fff !important;
  -webkit-appearance: menulist !important;
  -moz-appearance: menulist !important;
  appearance: menulist !important;
  border: 2px solid #d0c0c5 !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  line-height: 1.4 !important;
  height: auto !important;
  min-height: 48px !important;
  max-height: none !important;
}
/* Force height auto on form-control selects (global.min.css sets fixed height) */
select.form-control,
.form-group select.form-control,
select.form-control.date-picker {
  height: auto !important;
  min-height: 48px !important;
  padding: 10px 14px !important;
}
select:focus {
  border-color: #611232 !important;
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(97, 18, 50, .08) !important;
}
/* Ensure the selected text is visible */
select option:checked,
select option:hover,
select option {
  color: #000 !important;
  background: #fff !important;
  -webkit-text-fill-color: #000 !important;
}
/* Angular Material selects */
mat-select, .mat-select,
.mat-select-value, .mat-select-value-text, .mat-select-trigger,
.mat-form-field-infix, .mat-form-field-infix span,
.mat-option, .mat-option-text,
.cdk-overlay-pane, .cdk-overlay-pane *,
.cdk-overlay-container, .cdk-overlay-container * {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  opacity: 1 !important;
}
/* ng-select */
.ng-value, .ng-value span,
.ng-select .ng-value-container .ng-value,
.ng-select .ng-value-container .ng-value span,
.ng-select-container .ng-value-container .ng-value span,
.ng-dropdown-panel .ng-option,
.ng-select .ng-clear-wrapper,
.ng-select .ng-arrow-wrapper {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  opacity: 1 !important;
}
/* Select2 */
.select2-selection__rendered,
.select2-selection, .select2-selection--single,
.select2-results__option {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
}
/* General dropdown */
.dropdown-toggle, .dropdown-toggle span,
.dropdown-menu li a {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
}

/* ===== RADIO BOXES ===== */
.radio-box, .radio-container, .custom-radio-card, label.radio-label {
  border: 2px solid #d0c0c5 !important;
  border-radius: 14px !important;
  padding: 20px !important;
  margin: 8px 0 !important;
  background: #fff !important;
  transition: all .2s !important;
  cursor: pointer !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.04) !important;
  color: #000 !important;
}
.radio-box:hover, .radio-container:hover {
  border-color: #611232 !important;
  box-shadow: 0 4px 16px rgba(97, 18, 50, .1) !important;
  background: #fdf8f9 !important;
}
.radio-box.selected, .radio-box:has(input:checked),
.radio-container.selected {
  border-color: #611232 !important;
  background: #fdf5f7 !important;
  box-shadow: 0 4px 16px rgba(97, 18, 50, .15) !important;
}

/* ===== STEP INDICATOR ===== */
.step.active, .step-indicator .active,
.stepper .active, .progress-step.active {
  background: #611232 !important;
  color: #fff !important;
  border-radius: 50% !important;
  font-weight: 700 !important;
}

/* ===== CALENDAR ===== */
.cal-month-view .cal-header {
  background: #611232 !important;
  color: #fff !important;
  border-radius: 10px 10px 0 0 !important;
}
.cal-month-view .cal-day-cell.cal-today {
  background: #fdf5f7 !important;
}
.cal-month-view .cal-day-cell:hover {
  background: #f5e6ea !important;
}
.cal-month-view .cal-open-day-events {
  background: #611232 !important;
  color: #fff !important;
}

/* ===== HEADINGS ===== */
h1, h2, h3, h4, h5, h6 {
  color: #000 !important;
  font-weight: 700 !important;
}

/* ===== LABELS ===== */
label, .form-label, .control-label {
  color: #000 !important;
  font-weight: 600 !important;
}

/* ===== LINKS ===== */
a { color: #611232; }
a:hover { color: #bc955c; }

/* ===== GENERAL ===== */
strong, b { color: #000 !important; }
.container, .main-content, .content-wrapper { background: transparent !important; }

/* ===================================================================
   MOBILE RESPONSIVE — Calendar + General
   =================================================================== */

/* Calendar mobile fix */
@media only screen and (max-width: 768px) {
  /* Calendar cells smaller on mobile */
  .cal-month-view .cal-day-cell {
    min-height: 40px !important;
  }
  .cal-month-view .cal-cell-top {
    min-height: 30px !important;
    padding: 2px !important;
  }
  .cal-month-view .cal-day-number {
    font-size: 0.85em !important;
    margin-top: 2px !important;
    margin-right: 2px !important;
  }
  .cal-month-view .cal-day-badge {
    margin-top: 8px !important;
    margin-left: 4px !important;
    padding: 2px 4px !important;
    font-size: 9px !important;
  }
  .cal-month-view .cal-header .cal-cell {
    font-size: 10px !important;
    padding: 4px 0 !important;
  }
  .cal-month-view .cal-open-day-events {
    padding: 8px !important;
    font-size: 13px !important;
  }

  /* General mobile */
  h1, .jumbotron h1, .hero h1 {
    font-size: 24px !important;
  }
  .card-pasaporte, .info-card, .datos-card,
  .well, .panel, .card-body, .card,
  .form-container, .form-card {
    padding: 14px !important;
    border-radius: 10px !important;
  }
  .btn-primary, button.btn-primary, .btn-siguiente, .btn-gold {
    padding: 12px 20px !important;
    font-size: 14px !important;
  }
  .btn-regresar, .btn-secondary {
    padding: 12px 20px !important;
  }
  select, select.form-control, select.input2, .custom-select {
    padding: 12px 14px !important;
    font-size: 14px !important;
    min-height: 44px !important;
  }
  input[type="text"], input[type="email"], input[type="tel"],
  input[type="number"], input[type="password"], textarea {
    padding: 12px 14px !important;
    font-size: 14px !important;
  }
  .radio-box, .radio-container, .custom-radio-card {
    padding: 14px !important;
  }
  table.table th, .table th,
  table.table td, .table td {
    padding: 8px 10px !important;
    font-size: 12px !important;
  }

  /* Vigencia overlay mobile */
  #sre-vig-box {
    padding: 18px 16px !important;
    max-width: 100% !important;
    width: 95% !important;
    max-height: 92vh !important;
  }
  #sre-vig-box h3 {
    font-size: 17px !important;
  }
  .vig-card {
    padding: 10px 12px !important;
  }
  .vig-card .vig-name {
    font-size: 13px !important;
  }
  .vig-card .vig-price {
    font-size: 13px !important;
  }
  .vig-card .vig-rec {
    font-size: 8px !important;
    padding: 1px 5px !important;
  }
  .vig-total-box {
    padding: 14px !important;
  }
  .vig-total-box .tot-amount {
    font-size: 26px !important;
  }
  #sre-vig-continuar {
    padding: 14px !important;
    font-size: 15px !important;
  }

  /* CURP overlay mobile */
  .sre-bx {
    padding: 18px 16px !important;
    max-width: 95% !important;
  }
  .sre-bx h3 {
    font-size: 16px !important;
  }
  .sre-bx input[type=text] {
    font-size: 14px !important;
    padding: 8px 10px !important;
  }
  .sre-bx .go {
    padding: 12px !important;
    font-size: 15px !important;
  }
}

@media only screen and (max-width: 400px) {
  .cal-month-view .cal-day-cell {
    min-height: 32px !important;
  }
  .cal-month-view .cal-cell-top {
    min-height: 24px !important;
    padding: 1px !important;
  }
  .cal-month-view .cal-day-number {
    font-size: 0.75em !important;
  }
  .cal-month-view .cal-header .cal-cell {
    font-size: 9px !important;
  }
  .vig-card {
    padding: 8px 10px !important;
    border-radius: 8px !important;
  }
  .vig-card .vig-name {
    font-size: 12px !important;
  }
  .vig-card .vig-price {
    font-size: 12px !important;
  }
  #sre-personas-sel {
    padding: 10px 12px !important;
    font-size: 14px !important;
  }
}


/* ============ MEGA OVERRIDE — beats global.min.css .form-control height ============ */
html body .form-group select.form-control,
html body select.form-control,
html body select.form-control.date-picker,
html body .container select.form-control,
html body select {
  height: auto !important;
  min-height: 48px !important;
  max-height: none !important;
  padding: 10px 14px !important;
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  opacity: 1 !important;
  background-color: #fff !important;
  line-height: 1.5 !important;
  overflow: visible !important;
  text-overflow: clip !important;
}
