:root {
  --brand-red: #ba0000;
  --brand-blue: #002d6f;
  --brand-blue-dark: #001b43;
  --brand-gold: #d6ad61;
  --brand-white: #ffffff;
  --ink: #14213a;
  --green: var(--brand-blue);
  --green-2: var(--brand-blue);
  --cream: #f5f7fb;
  --gold: var(--brand-gold);
  --border: #dce2ec;
}

body { color: var(--ink); background-color: #f3f4f4; }
.notice-bar { background: var(--brand-red); color: var(--brand-white); }
.navbar { border-bottom: 4px solid var(--brand-blue); }
.navbar-brand,
.nav-link { color: var(--brand-blue-dark) !important; }
.nav-link:hover,
.nav-link:focus,
.nav-link.active { color: var(--brand-red) !important; }
.navbar-toggler { border-color: rgba(0,45,111,.25); }

.btn-primary {
  --bs-btn-bg: var(--brand-red);
  --bs-btn-border-color: var(--brand-red);
  --bs-btn-hover-bg: #920000;
  --bs-btn-hover-border-color: #920000;
  --bs-btn-active-bg: #780000;
  --bs-btn-active-border-color: #780000;
}

.hero {
  background-image: linear-gradient(90deg,rgba(0,27,67,.98),rgba(0,45,111,.88) 45%,rgba(0,45,111,.24)),url('../../img/hero-barberos-provisional.png');
}
.hero h1 em,
.eyebrow { color: var(--brand-gold); }
.quick-card { box-shadow: 16px 16px 0 var(--brand-red); }
.quick-card > a span,
.text-link,
.info-card a,
.contact-grid small { color: var(--brand-blue); }
.quick-card > a:hover { color: var(--brand-red); }

.trust-strip,
.dark-section,
.activity-feature,
.site-footer { background: var(--brand-blue-dark); }

.activity-copy > p { text-align: right; }
.activity-copy > .btn { align-self: flex-end; }
.activity-copy .btn { background-color: #ba0000; border-color: #ba0000; color: #fff; border-radius: .55rem; }

.activity-copy .btn:hover,
.activity-copy .btn:focus-visible {
  background-color: #8f0000;
  border-color: #8f0000;
  color: #fff;
}
.trust-strip { border-top: 5px solid var(--brand-red); }
.trust-strip i,
.steps li > span,
.statement > span { color: var(--brand-gold); }
.steps li > span { border-color: var(--brand-gold); }

.section-tint,
.faq-section { background: #f4f7fc; }

.faq-section {
  color: #fff;
  background: #001b43;
}

.faq-section .eyebrow {
  color: #d6ad61 !important;
}

.faq-section h2,
.faq-section > .container > .row > div > p {
  color: #fff !important;
}

.faq-section .accordion-item {
  border-color: rgba(255, 255, 255, .18);
}

.faq-section .accordion-button {
  color: #fff !important;
}

.faq-section .accordion-button::after {
  filter: brightness(0) invert(1);
}

.faq-section .accordion-button:not(.collapsed) {
  color: #d6ad61 !important;
}

.faq-section .accordion-body {
  color: rgba(255, 255, 255, .76);
}
.service-tile { border-top-color: var(--brand-red); }
.service-tile > span { background: var(--brand-blue); color: var(--brand-white); }
.benefit-card { border-top: 4px solid var(--brand-blue); }
.benefit-card i { color: var(--brand-red); }
.membership-panel { border-left-color: var(--brand-red); }
#junta .membership-panel { flex-direction: column; align-items: stretch; }
#junta .board-actions .btn { flex: 1 1 160px; font-size: .8rem; }
#junta .board-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; }
#junta .board-actions .btn { display: flex; align-items: center; justify-content: center; }
.institutional-document { line-height: 1.5; overflow-wrap: anywhere; }
.institutional-document h2 { font-size: 1.4rem; text-align: center; }
.institutional-document h3 { font-size: 1.2rem; color: var(--brand-gold); margin: 1.5rem 0 1rem; }
.institutional-document h4 { font-size: 1.05rem; margin: 1.25rem 0 .75rem; }
.institutional-document li { margin-bottom: .75rem; }
.board-modal .regulation-map { width: 100%; max-width: 1052px; height: auto; border-radius: 0; }
.regulation-region { display: flex; align-items: center; justify-content: center; gap: .75rem; margin: 1rem auto; color: #fff; font: 700 .9rem/1.4 Inter, system-ui, sans-serif; }
.region-swatch { display: block; width: 70px; height: 28px; border: 1px solid rgba(255,255,255,.5); background: var(--region-color); }
.region-1 { --region-color: #debd35; }
.region-2 { --region-color: #ff6bad; }
.region-3 { --region-color: #00b1f1; }
.region-4 { --region-color: #ffc2dd; }
.region-5 { --region-color: #ff952a; }
.region-6 { --region-color: #00c338; }
.region-7 { --region-color: #ffea43; }
.region-8 { --region-color: #ff6043; }
.institutional-document .ethics-professional-title { text-align: center; font-size: 1.5rem; font-weight: 700; color: #fff; }
.institutional-document .ethics-professional-subtitle { color: var(--brand-gold); }
@media (max-width: 575px) {
  #junta .board-actions { grid-template-columns: 1fr; }
  #junta .board-actions .btn:nth-child(4) { grid-row: 2; }
  #junta .board-actions .btn:nth-child(5) { grid-row: 4; }
}
.newsletter .contact-action { font-size: .8rem; }
.board-modal { background: var(--brand-blue-dark); color: #fff; }
.registration-modal { background: #f3f4f4; color: #001b43; }
#gestoriaModal .modal-content { background: #acb1b1; }
#gestoriaModal .modal-header { position: relative; padding-inline: 3.5rem; }
#gestoriaTitle { width: 100%; text-align: center; }
#gestoriaModal .modal-header .btn-close { position: absolute; right: 1rem; margin: 0; }
#gestoria-numero { max-width: 160px; font-size: 1.5rem; }
.gestoria-progress-scroll { overflow-x: auto; margin-bottom: 2rem; padding: .5rem 0; }
#gestoriaModal .modal-body:has(#gestoria-foto):has(.gestoria-step:not([hidden]) #gestoria-foto) .gestoria-progress-scroll { margin-bottom: 1rem; }
.gestoria-progress { display: flex; list-style: none; padding: 0; margin: 0; min-width: 560px; }
.gestoria-progress li { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: .5rem; color: #46515c; font-size: .85rem; font-weight: 700; }
.gestoria-progress li:not(:last-child)::after { content: ''; position: absolute; top: 17px; left: calc(50% + 21px); width: calc(100% - 42px); height: 3px; background: #e9edf1; }
.gestoria-step-circle { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 2px solid #e9edf1; border-radius: 50%; background: #acb1b1; font-size: 1.4rem; }
.gestoria-step-circle i { visibility: hidden; }
.gestoria-progress .is-current, .gestoria-progress .is-complete { color: var(--brand-blue-dark); }
.gestoria-progress .is-current .gestoria-step-circle, .gestoria-progress .is-complete .gestoria-step-circle { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }
.gestoria-progress .is-current .gestoria-step-circle i, .gestoria-progress .is-complete .gestoria-step-circle i { visibility: visible; }
.gestoria-progress li.is-complete::after { background: var(--brand-blue); }
#gestoriaModal .gestoria-step:has(#gestoria-foto:focus-visible) .registration-photo-box { outline: 2px solid var(--brand-blue); outline-offset: 3px; }
#gestoriaModal .gestoria-step h3 { font-size: 1.6rem; text-align: center; font-weight: 700; color: #9d0004; }
#gestoriaModal .gestoria-step h3:focus { outline: none; }
#gestoriaModal label[for="gestoria-numero"] { display: block; text-align: center; }
#gestoria-back,
#registration-back {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--brand-blue-dark);
  --bs-btn-border-color: var(--brand-blue-dark);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #000f26;
  --bs-btn-hover-border-color: #000f26;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #000a1a;
  --bs-btn-active-border-color: #000a1a;
}
.registration-modal .modal-header { background: var(--brand-blue-dark); color: #fff; }
.registration-section { margin-bottom: 1.5rem; border: 1px solid #d5dce5; border-radius: 12px; overflow: hidden; background: #adb5bd; }
.registration-section legend { float: none; width: 100%; padding: 1rem; margin-bottom: 0; background: var(--brand-blue); color: #fff; font-size: 1rem; font-weight: 700; }
.registration-modal .form-label { font-size: .85rem; font-weight: 600; }
.registration-address { background: #adb5bd; border-radius: 10px; }
.beneficiary-table { min-width: 540px; table-layout: fixed; }
.beneficiary-table th { background: #adb5bd; color: #001b43; font-size: .8rem; }
.beneficiary-table th:nth-child(1), .beneficiary-table th:nth-child(2) { width: 40%; }
.beneficiary-table th:nth-child(3) { width: 20%; }
.beneficiary-table td { padding: .5rem; }
.beneficiary-table .form-control { background-color: #ccc; }
.registration-address-heading { min-height: 48px; }
@font-face { font-family: 'Allura'; src: url('../fonts/allura/Allura-Regular.ttf') format('truetype'); font-style: normal; font-weight: 400; font-display: swap; }
.registration-modal .signature-input { font-family: 'Allura', 'Segoe Script', cursive; font-size: 2.2rem; font-weight: 400; line-height: 1.2; border: 0; border-bottom: 2px solid #001b43; border-radius: 0; }
.registration-signature .form-control { height: 58px; }
.registration-photo-upload { width: 230px; max-width: 100%; }
.registration-photo-box { display: flex; align-items: center; justify-content: center; width: 140px; max-width: 100%; aspect-ratio: 1; margin-inline: auto; border: 2px dashed #3e566b; background: #fff; text-align: center; cursor: pointer; overflow: hidden; }
#registration-photo-help { white-space: nowrap; }
.registration-file-control { position: relative; display: flex; align-items: stretch; min-width: 0; margin-top: .25rem; background: #fff; border: 1px solid #ced4da; border-radius: .375rem; overflow: hidden; font-size: .8rem; text-align: left; }
.registration-file-button { flex-shrink: 0; padding: .65rem .5rem; background: #e9ecef; border-right: 1px solid #ced4da; }
.registration-file-name { min-width: 0; padding: .65rem .5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.registration-file-control input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0 !important; opacity: 0; cursor: pointer; }
.registration-file-control:focus-within { outline: 2px solid var(--brand-gold); outline-offset: 2px; }
.registration-photo-box img { width: 100%; height: 100%; object-fit: contain; }
.registration-check { display: flex; align-items: center; padding: .85rem; height: 100%; background: #edf1f6; border-radius: 8px; }
.registration-modal .form-check-input { border: 2px solid #3e566b; }
.registration-modal .form-check-input:checked { background-color: var(--brand-blue); border-color: var(--brand-blue); }
.board-modal img { border-radius: 30px; }
.board-modal .modal-header { border-bottom-color: rgba(255,255,255,.2); gap: 1rem; }
.board-modal .btn-close { flex-shrink: 0; }
.board-modal .modal-header { position: relative; padding-inline: 3.5rem; }
.board-modal .modal-title { width: 100%; text-align: center; }
.board-modal .modal-header .btn-close { position: absolute; right: 1rem; margin: 0; }
.board-member { padding: 1rem; border: 1px solid rgba(255,255,255,.15); border-radius: .5rem; }
.board-member img { max-width: 100%; height: auto; }
.president-message { line-height: 1.5; }
.board-member h3 { font: 700 .95rem/1.4 Inter, system-ui, sans-serif; margin: 1rem 0 .4rem; }
.board-member p { color: var(--brand-gold); font-size: .8rem; margin: 0; }
.board-group-title { text-align: center; font-size: 1.5rem; margin: 2rem 0 1.5rem; }
.board-group-photo { display: block; width: 100%; height: auto; }
.badge-soft { background: #f8e8e8; color: var(--brand-red); }

.newsletter { background: var(--brand-blue); border-top: 6px solid var(--brand-red); }
.newsletter .contact-grid > * { color: #fff; }
.newsletter .contact-grid { background: var(--brand-blue-dark); text-align: center; }
.newsletter .contact-grid small { color: var(--brand-gold); }
.newsletter .contact-grid,
.newsletter .contact-grid > * { border-color: rgba(255, 255, 255, .3); }
.newsletter-signup {
  border-top: 0;
  margin-top: 40px !important;
  padding-top: 40px !important;
}
.college-directions-container { margin-top: 60px; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; color: #fff; font-size: 2rem; text-decoration: none; border-radius: 8px; }
.social-links a:hover { color: var(--brand-gold); }
.social-links a:focus-visible { color: var(--brand-gold); outline: 2px solid var(--brand-gold); outline-offset: 4px; }
.college-directions { background: var(--brand-blue-dark); border: 1px solid rgba(255,255,255,.2); border-radius: 16px; }
.college-directions small { color: inherit; }
.btn-gold { background: var(--brand-gold); border-color: var(--brand-gold); color: var(--brand-blue-dark); }
.btn-gold:hover { background: #e6c982; border-color: #e6c982; }
.form-control:focus { border-color: var(--brand-gold); box-shadow: 0 0 0 .25rem rgba(214,173,97,.25); }

::selection { background: var(--brand-red); color: var(--brand-white); }

/* Secondary text on light backgrounds; dark sections retain their original colors. */
.text-secondary,
.text-muted,
.membership-panel p,
.document-copy small {
  color: rgb(62 86 107) !important;
}

@media (max-width: 767px) {
  .quick-card { box-shadow: 8px 8px 0 var(--brand-red); }
}
