@import url("https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Archivo:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap");


:root {
  --bg: #faf9f6;
  /* Warm off-white background */
  --surface: #ffffff;
  /* Card/input background */
  --surface-2: #f3f1ea;
  /* Warm grey for hovers and alternate bg */
  --ink: #15120d;
  /* Very dark brown/charcoal for main text */
  --ink-soft: #524c42;
  /* Soft charcoal for body text and labels */
  --ink-faint: #8a8377;
  /* Faint text */
  --line: #e3ded3;
  /* Warm borders */
  --line-soft: #ece8df;
  /* Lighter borders */
  --accent: #1f4e7a;
  /* Deep blue primary accent color */
  --accent-ink: #ffffff;
  /* Text color on top of accent */
  --accent-2: #265f94;
  /* Slightly lighter accent for hover states */
  --font-display: "Spectral", Georgia, serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 4px;
  --shadow: 0 4px 12px rgba(21, 18, 13, 0.05);
}


body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  background-color: var(--bg);
  text-align: justify;
  margin: 0;
  padding: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #15120d;

}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 64px;
}


.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 16px;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.brand-text small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-top: 2px;
  white-space: nowrap;
}

/* Navigation Menu */
.navbar {
  padding: 0 0 20px 0;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 20px;
}

.navbar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink) !important;
}

.navbar-nav .nav-link {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft) !important;
  transition: color 0.15s, background-color 0.15s;
}

.navbar-nav .nav-link:hover {
  color: var(--ink) !important;
  background-color: var(--surface-2);
  border-radius: var(--radius);
}

.container.cuerpo {
  margin-top: 40px;
  margin-bottom: 80px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  max-width: 1140px;
}

/* Titles & Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin-top: 0;
}

h1 {
  font-size: 2.2em;
  line-height: 1.1;
  margin-bottom: 15px;
}

h2 {
  font-size: 1.4em;
  font-weight: 500;
  line-height: 1.4;
  color: var(--accent);
  margin-bottom: 20px;
}

h3 {
  font-size: 1.3em;
  font-weight: 600;
  border-bottom: 2px solid var(--line);
  padding-bottom: 8px;
  margin-top: 35px;
  margin-bottom: 20px;
  text-transform: none;
}

p {
  font-weight: 400;
  margin-bottom: 1.5rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

a:hover {
  color: var(--accent-2);
  text-decoration: underline;
  background-color: transparent;
}

/* Header & Jumbotron Styling */
.jumbotron {
  background-color: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
  margin-bottom: 0;
  border-radius: 0;
}

.jumbotron h1 {
  font-family: var(--font-display);
  font-size: 2.6em;
  color: var(--ink);
  font-weight: 700;
  padding-left: 0;
  margin-bottom: 10px;
}

.jumbotron h2 {
  font-family: var(--font-display);
  font-size: 1.25em;
  color: var(--ink-soft);
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  padding-left: 0;
  margin-bottom: 0;
}

/* Navigation Menu */
.navbar {
  padding: 0 0 20px 0;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 20px;
}

.navbar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink) !important;
}

.navbar-nav .nav-link {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft) !important;
  transition: color 0.15s, background-color 0.15s;
}

.navbar-nav .nav-link:hover {
  color: var(--ink) !important;
  background-color: var(--surface-2);
  border-radius: var(--radius);
}

/* Forms controls */
.form-horizontal .form-group {
  margin-bottom: 20px;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
}

.form-control {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  height: auto;
  box-shadow: none;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 78, 122, 0.15);
  background-color: var(--surface);
  color: var(--ink);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23524c42' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--accent);
  margin-right: 8px;
}

/* Alerts and Notices */
h1.aviso {
  border: 1px solid var(--line);
  background-color: var(--surface-2);
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 1.2rem;
  padding: 24px;
  border-radius: var(--radius);
  width: 100%;
  text-align: center;
  text-transform: none;
  font-weight: 500;
  box-shadow: var(--shadow);
}

/* Modals */
.modal-content {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(21, 18, 13, 0.1);
}

.modal-header {
  border-bottom: 1px solid var(--line-soft);
  background-color: var(--surface-2);
}

.modal-header .modal-title {
  font-family: var(--font-display);
  font-weight: 600;
}

.modal-footer {
  border-top: 1px solid var(--line-soft);
}

/* Buttons */
.btn {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.15s, background-color 0.15s, border-color 0.15s;
}

.btn-primary {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  max-width: 100%;
  box-shadow: 0 2px 4px rgba(31, 78, 122, 0.1);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--accent-2) !important;
  border-color: var(--accent-2) !important;
  color: var(--accent-ink) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(31, 78, 122, 0.2);
}

.btn-primary[disabled],
.btn-primary.disabled {
  background-color: var(--line) !important;
  border-color: var(--line) !important;
  color: var(--ink-faint) !important;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-success {
  background-color: #2b7045;
  border-color: #2b7045;
  color: #ffffff;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active {
  background-color: #205433 !important;
  border-color: #205433 !important;
  transform: translateY(-1px);
}

.btn-default {
  background-color: var(--surface-2);
  border-color: var(--line);
  color: var(--ink-soft);
}

.btn-default:hover {
  background-color: var(--line);
  color: var(--ink);
}

/* Validation Errors */
.error {
  font-family: var(--font-mono);
  color: #c93b3b;
  font-size: 12px;
  margin-top: 5px;
  display: block;
}

.form-horizontal .control-group.error input,
.form-horizontal .control-group.error select {
  border-color: #c93b3b;
}

/* Miscellaneous */
.footer {
  margin-top: 60px;
  border-top: 1px solid var(--line-soft);
  padding-top: 20px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  text-align: center;
}

.logos img {
  padding: 10px;
  border: 1px solid var(--line-soft);
  background-color: var(--surface);
  border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.logos a:hover img {
  border-color: var(--line);
  box-shadow: var(--shadow);
}