label {display: block; font-size: 0.9rem; margin-bottom: 6px}
textarea {min-height: 90px}
.btn {background: #792140; color: #fff; border: none; padding: 10px 18px; border-radius: 6px; cursor: pointer}
.small {font-size: 0.9rem; color: #555}	

body {
    border-top: 10px solid #792140;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    background: #ffffff;
}

a, a:visited, a:focus {
    color: #792140;
    text-decoration: none;
}

/* Containers & mAx widths */
.container {
  margin: auto;
}

@media only screen and (min-width: 768px) and (max-width: 959px) {
    .container {
        width: 768px;
    }
}

.container-xs {
  max-width: 360px;
}

.container-sm {
  max-width: 476px;
}

.container-md {
  max-width: 640px;
}

.container--lg {
  max-width: 840px;
}

.container--xl {
  max-width: 1080px;
}

.container--2xl {
  max-width: 1480px;
}

.max-xs {
  max-width: 440px;
}

.max-sm {
  max-width: 514px;
}

.max-md {
  max-width: 620px;
}


.fs-0 {
  font-size: 28px;
}

.fs-1 {
  font-size: 24px;
}

.fs-2 {
  font-size: 20px;
}

.fs-3 {
  font-size: 20px;
}

.fs-4 {
  font-size: 18px;
}

.fs-5 {
  font-size: 16px;
}

.fs-6 {
  font-size: 15px;
}

.fs-7 {
  font-size: 13px;
}

.fs-8,
.fs-8 a {
  font-size: 13px;
  line-height: 21px;
  color: #004b84;
}

.fs-sec-title {
  font-size: 25px;
  line-height: 28px;
}

.fs-sec-subtitle {
  font-size: 16px;
  line-height: 18px;
}

.fs-title {
  font-size: 20px;
}

.fs-title-course {
  font-size: 22px;
  line-height: 28px;
}

.fs-normal {
  font-size: 15px;
}

.fs-small {
  font-size: 14px;
}

.fs-xsmall {
  font-size: 12px;
}

.fs-quote {
  font-size: 18px;
}

.fs-contact-phone {
  font-size: 25px;
}

.mr-mobile {
  margin-right: 0;
}

@media only screen and (max-width: 767px) {
  .mr-mobile {
    margin-left: 18px;
  }
}

/* Tamaños de fuente para pantallas grandes */
@media screen and (min-width: 40em) {
  .fs-0 {
    font-size: 30px;
  }

  .fs-1 {
    font-size: 32px;
  }

  .fs-2 {
    font-size: 28px;
  }

  .fs-3 {
    font-size: 22px;
  }

  .fs-4 {
    font-size: 20px;
  }

  .fs-5 {
    font-size: 18px;
  }

  .fs-6 {
    font-size: 16px;
  }

  .fs-7 {
    font-size: 15px;
  }

  .fs-sec-title {
    font-size: 40px;
    line-height: 42px;
  }

  .fs-sec-subtitle {
    font-size: 20px;
    line-height: 30px;
  }

  .fs-title {
    font-size: 34px;
  }

  .fs-title-course {
    font-size: 30px;
    line-height: 46px;
  }

  .fs-normal {
    font-size: 16px;
  }

  .fs-contact-phone {
    font-size: 25px;
  }
}

.fw-light {
  font-weight: 300;
}

.fw-regular {
  font-weight: 400;
}

.fw-semibold {
  font-weight: 600;
}

.fw-bold {
  font-weight: 700;
}


.color-main {
  color:#792140;
}

#header {
    background-color: #FFFFFF;
    min-height: 106px;
    position: relative;
    z-index: 99;
    box-shadow: rgba(0, 0, 0, 0.16) 0 1px 3px;
}

.relative {
  position: relative;
}

.logo {
    display: inline-block;
}

.logo img {
    max-width: 100%;
    height: auto;
}

.mx-1 {
  margin-right: 8px;
  margin-left: 8px;
}

.my-2 {
  margin-top: 16px;
  margin-bottom: 16px;
}

.my-4 {
  margin-top: 32px;
  margin-bottom: 32px;
}

#footer {
    font-size: 12px;
    background-color: #792140;
    color: #fff;
}

#footer a {
    color: #fff;
}

:not(#footer) [lang="ca"] {
    font-weight: 600;
}

#footer .container {
    padding: 16px 0;
}

.multi-lang {
    color: inherit;
}

@media only screen and (min-width: 947px) {
    .footer__links {
        float: right;
        margin-bottom: 0;
    }
}


.footer__links {
    margin-bottom: 6px;
}

fieldset {
    border: 0px;
    padding: 30px;
    margin: 30px 0;
    border-radius: 6px;
}

legend{
    font-weight: 300;
    font-size: 28px;
    margin-bottom: 5px;
    color:#792140;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between
}

.full {
  grid-column: 1 / -1;
}

.grid {
  display: grid;
  gap: 22px;
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

/* On medium+ screens, switch to 2 or 3 columns */
@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Floating label inputs */
.form-field {
  position: relative;
}

/* Uniform sizing & visual style for campos del formulario */
.form-input {
  width: 100%;
  padding: 20px 12px 14px 12px;
  font-size: 16px;
  background: #f4f6f9;
  border: none;
  border-bottom: 1px solid #000;
  border-radius: 0;
  box-sizing: border-box;
}

.checkbox-row {display: flex; flex-direction: column; gap: 10px}
.checkbox-row label {display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: #333}
.checkbox-row input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid #9aa4b2;
  border-radius: 2px;
  background: #fff;
  position: relative;
}
.checkbox-row input[type="checkbox"]:hover {border-color: #717d8a}
.checkbox-row input[type="checkbox"]:focus {outline: 2px solid rgba(18,48,100,0.35); outline-offset: 2px}
.checkbox-row input[type="checkbox"]:checked {background-color: #123064; border-color: #123064}
.checkbox-row input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Custom radio group for academic level */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  margin-top: 10px;
  margin-bottom: 10px;
}
.radio-group label {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  font-size: 18px;
  font-weight: 400;
  color: #333;
  cursor: pointer;
  padding: 6px 0 2px 0;
  min-height: 24px;
  margin-bottom: 0;
}
.radio-group input[type="radio"] {
  width: 24px;
  height: 24px;
  accent-color: #792140;
  margin-right: 10px;
  border-radius: 50%;
  border: 2px solid #792140;
  background: #f4f6f9;
  align-self: flex-start;
}
.radio-group input[type="radio"]:focus {
  outline: 2px solid #123064;
  outline-offset: 2px;
}

/* Mejora alineación vertical de radio-group */
.radio-group label.form-input {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: 400;
  color: #333;
  cursor: pointer;
  padding: 6px 0;
  height: 48px;
}

.radio-group input[type="radio"]:focus {
  outline: 2px solid #123064;
  outline-offset: 2px;
}

/* Plain input font utility: matches text inputs without extra styling */
.input-plain {
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  color: inherit;
}

.title-label{
  font-weight: 300;
  font-size: 19px;
  margin-top: 20px;
  margin-bottom: 20px;
  color: #792140;
}

.form-file-label{
  font-size: 16px;
  margin-bottom: 6px;
}


input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea {
  width: 100%;
  box-sizing: border-box;
  transition: border-color 160ms ease;
}

.form-input:focus {
  border-bottom: 1px solid #123064;
  outline: none;
}

.form-label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  transition: 160ms ease;
  pointer-events: none;
  background: transparent;
}

.label-mensaje-area{
  top: 16%
}

/*aqui el label se mueve hacia arriba*/
.form-input:not(:placeholder-shown) + .form-label,
.form-input:focus + .form-label,
.form-field:focus-within .form-label,
.form-field.has-value .form-label {
  top: 6px;
  transform: translateY(0);
  font-size: 12px;
  color: #123064;
  background: #f4f6f9; /* mantiene la pastilla sobre gris */
  padding: 0 4px;
}

/* Ensure select labels stay large until focus or value exists */
.form-field:not(.has-value) select.form-input + .form-label {
  top: 50%;
  transform: translateY(-50%);
  font-size: inherit;
  color: #666;
  background: transparent;
  padding: 0;
}

/* When the select is focused/open, force the small label */
.form-field:focus-within select.form-input + .form-label {
  top: 6px;
  transform: translateY(0);
  font-size: 12px;
  color: #123064;
  background: #f4f6f9;
  padding: 0 4px;
}

/* Tweaks for selects and date inputs inside floating fields */
select.form-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23999999' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  padding-right: 32px;
  color: inherit;
}

.form-field:not(.has-value) select .form-input {
  color: transparent;
}

/* Hide selected text for required selects until a valid option is chosen */
select .form-input:required:invalid {
  color: transparent;
}

/* When the select is focused/open, keep text hidden so only the small label is visible */
select .form-input:focus {
  color: transparent;
}


.form-field:focus-within select.form-input,
.form-field.has-value select.form-input {
  color: inherit;
}

input[type="date"].form-input {
  padding-top: 18px;
}

/* Error box styling */
.box--danger {
  border: 1px solid #dc3545;
  background: #fdecee;
  color: #8a1c25;
  border-radius: 6px;
  padding: 12px 14px;
}

.box--success {
  border: 1px solid #198754;
  background: #eaf7ef;
  color: #0f5132;
  border-radius: 6px;
  padding: 12px 14px;
}

.alert {
  margin: 0;
}

.alert-error {
  /* keeps compatibility if used alone */
  color: #8a1c25;
}

.alert-success {
  /* keeps compatibility if used alone */
  color: #0f5132;
}

.alert-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.alert-item {
  padding: 6px 0;
}

.alert-item:first-child {
  border-top: 0;
}

.actions {
  text-align: center;
}

.g-recaptcha{
  justify-content: center;
  display: flex;
}

.lang-switch {
  justify-content: flex-end;
  display: flex;
  margin-top: 8px;
  padding-bottom: 8px;
}

/* Enlace de consentimiento informado */
.consent-link {
  color: #792140;
  background: none;
  border: none;
  padding: 0;
  text-decoration: none;
  transition: color 0.2s;
  display: inline-block;
  margin-top: 14px;
}
.consent-link:hover, .consent-link:focus {
  color: #a03a5a;
  text-decoration: underline;
}

/* Estilo para el textarea de mensaje */
.mensaje-area {
  width: 100%;
  min-height: 90px;
  padding: 0.75em 1em;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 16px;
  background: #fff;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.2s;
  max-width: 100%;
  padding-top: 1.5em;
}
.mensaje-area:focus {
  border-color: #a03a5a;
  outline: none;
}

.mensaje-area::placeholder {
  font-size: 0.9rem;
  color: #a0a0a0;
}

.form-help-contact { 
  margin-top:1rem; 
  padding:0.75rem 1rem; 
  border-left:4px solid #a03a5a;
  background:#f8f9fa; 
  border-radius:4px; }

.show-for-sr, .show-on-focus {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}