:root {
  --primary: #10235B;
  --secondary: #EA6060;
  --success: #34BCAC;
  --light: #ffffff;
  --gray: #93959b;
  --gray-light: #cccfd9;
  --gray-super-light: #f8f8fa;
  --font-family: "Albert Sans", sans-serif;
  --font-size: 18px;
}

*,
*:before,
*:after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family);
}

body {
  font-family: var(--font-family);
  color: var(--primary);
  margin: 0;
  font-size: var(--font-size);
}

.title {
  font-size: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header nav ul {
  list-style: none;
  padding: 20px;
}

header nav ul li {
  margin: 0 20px;
}

header nav ul li img {
  max-width: 175px;
  width: 100%;
}

header {
  background: var(--primary);
  color: var(--light);
}

main {
  color: var(--light);
  background: var(--primary);
  padding-bottom: 60px;
}

/* INTRO  */
.intro-content {
  padding: 50px 0;
}

.intro-content h1 {
  text-align: center;
  font-size: 55px;
  margin: 0 auto;
  line-height: 1.2em;
}

.intro-content h2 {
  text-align: center;
  font-size: 24px;
  margin-top: 20px;
  line-height: 1.2em;
  font-weight: 300;
}

/* CONTAINER FORM   */
.container-form {
  background: var(--light);
  padding: 60px;
  margin-bottom: 60px;
  min-height: 70vh;
}

.container-form article {
  display: none;
}

.container-form article.active {
  display: block;
}

.selector-panels {
  margin-bottom: 30px;
}

.selector-panels button {
  width: 50%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  padding-left: 55px;
  border: 0;
  background: transparent;
  position: relative;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
}

#panel1 {
  cursor: pointer;
}

#panel1.active {
  cursor: initial;
}

.selector-panels button hr {
  width: 60%;
  opacity: 0.4;
  margin-left: 20px;
}

.selector-panels button span {
  font-weight: 400;
  color: var(--gray);
  margin-top: 5px;
  font-size: 16px;
  width: 100%;
  text-align: left;
}

.selector-panels button::before {
  content: '1';
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  position: absolute;
  left: 0px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  font-weight: 400;
  border-radius: 50%;
  top: -10px;
}

.selector-panels button:nth-child(2)::before {
  content: '2';
}

.selector-panels button.active::before {
  content: '\2714';
  color: var(--light);
  background: var(--success);
  border-color: var(--success);
}


.container-form p {
  color: var(--primary);
}

/* FORM  */
label {
  color: var(--primary);
  font-weight: 600;
}

.radio-group {
  margin: 30px 0;
}

.radio-group label {
  cursor: pointer;
  margin-right: 50px;
  position: relative;
  padding-left: 25px;
}

.radio-group label input {
  display: none;
}

.radio-group label .checkmark {
  position: absolute;
  left: 0;
  top: 3px;
  width: 15px;
  height: 15px;
  border: 1px solid var(--primary);
  border-radius: 50%;
  display: inline-block;
}

.radio-container input[type="radio"]:checked+.checkmark {
  border-color: var(--secondary);
  border-width: 4px;
  background: var(--light);
}

input,
select {
  width: 100%;
  height: fit-content;
  padding: 15px 20px;
  font-size: 16px;
  border-radius: 5px;
  margin: 10px 0;
  outline: none;
  border: 1px solid var(--gray-light);
  color: var(--primary);
}

.btn {
  padding: 15px 30px;
  font-size: 18px;
  border-radius: 5px;
  background: var(--secondary);
  color: var(--light);
  font-weight: 600;
  border: 0;
  margin-top: 30px;
  cursor: pointer;
}

select {
  appearance: none;
  background-image: url('../img/arrow.svg');
  background-size: 35px;
  background-position: 98%;
  background-repeat: no-repeat;
}

select option[disabled] {
  color: var(--gray-light);
}

input::placeholder {
  color: var(--gray-light);
}

input:focus,
input:active {
  border-color: var(--primary);
}

.container-input {
  position: relative;
}

.container-input small {
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  display: block;
  margin-top: 4px;
  margin-bottom: 8px;
}

/* CORRECCIÓN: Estilos específicos para elementos small de error */
.container-input small[id$="Error"] {
  color: #dc3545;
  background: white;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #eee;
  position: relative;
  z-index: 1;
  margin-top: 4px;
  margin-bottom: 8px;
}

.container-input-file {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  background-color: var(--gray-super-light);
  font-size: 16px;
  border-radius: 5px;
  margin: 10px 0;
  border: 1px solid var(--gray-light);
  padding: 10px 20px;
  background-image: url('../img/upload.svg');
  background-size: 35px;
  background-position: 2%;
  background-repeat: no-repeat;
  padding-left: 70px;
  width: fit-content;
}

.container-input-file small {
  margin-top: 4px;
  margin-bottom: 8px;
}

.file-label {
  background-color: var(--primary);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  display: inline-block;
}

.file-input {
  display: none;
}

.file-name {
  margin-top: 10px;
  margin-right: 10vw;
  color: var(--gray-light);
}

.file-name.active {
  color: var(--primary);
}

.tags-courses .check-label {
  border-radius: 5px;
  margin: 10px 10px 10px 0;
  outline: none;
  border: 1px solid var(--gray-light);
  color: var(--primary);
  padding: 10px 35px;
  position: relative;
  font-size: 16px;
}

.tags-courses .check-label input {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  opacity: 0;
  cursor: pointer;
  height: 100%;
  width: 100%;
}

.check-label:has(input:checked) {
  background-color: var(--primary);
  color: var(--light);
  position: relative;
}

.check-label:has(input:checked)::before {
  content: '\2714';
  color: var(--light);
  position: absolute;
  right: 0;
  position: absolute;
  right: 10px;
  font-weight: 200;
  top: 7px;
}

.check-input {
  font-weight: 400;
  margin-bottom: 7px;
  display: inline-block;
  position: relative;
  padding-left: 25px;
  font-size: 16px;

}

.ps-25 {
  padding-left: 25px;

}

.check-input input {
  display: none;
}

.check-input::before {
  content: '';
  width: 15px;
  height: 15px;
  border: 1px solid var(--primary);
  position: absolute;
  left: 0;
  top: 3px;
}

.check-input:has(input:checked)::before {
  content: '\2714';
  color: var(--primary);
  font-size: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}


.check-input a {
  color: var(--primary);
}

/* FOOTER ITEMS GRIDS */
.items-grid {
  background: var(--gray-super-light);
  color: var(--primary);
  padding: 60px 0;
}

.items-grid h3 {
  font-size: 42px;
  margin-bottom: 20px;
}

.grid-img {
  background: white;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.grid-img img {
  width: auto;
  height: 70px;
  margin-bottom: 20px;
  object-fit: contain;
}

.grid-img p {
  font-size: 20px;
}

footer img {
  margin: 40px 0;
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* CORRECCIÓN: Contenedor de logos para que no exceda el ancho del formulario */
.container-logos {
  max-width: 100%;
  overflow: hidden;
  padding: 0 20px;
  box-sizing: border-box;
}

.container-logos img {
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* POPUP  */
.popup {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  background: #10235bcf;
  display: none;
}

.popup.active {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.popup .container {
  max-width: 900px;
  background: var(--light);
  padding: 60px;
  color: #10235bcf;
  text-align: center;
  position: relative;
}

.popup .container .title {
  font-weight: 700;
  font-size: 40px;
  margin-bottom: 15px;
}

.popup .container .close {
  background: transparent;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  top: 20px;
  right: 20px;
  position: absolute;
}