:root {
  --primary: #095CA7;
  --primary-dark: #54203f;
  --accent: #c78ba9;
  --light: #f8f3f6;
  --text: #303039;
  --muted: #686875;
  --border: #e9e2e7;
  --white: #fff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: #fff;
}

.Error{
	background-repeat:no-repeat;
	background-position:left;
	color:#FF0000;
	padding-left:5px;
	height:19px;
	padding-top:3px;
	padding-right:5px;
	}

.Success{
	background-repeat:no-repeat;
	background-position:left; 
	color:#669933;
	padding-left:5px;
	height:19px;
	padding-top:3px;
	padding-right:5px;
	}

.container {
  width: min(1100px, 92%);
  margin: auto;
}

.hero {
  background: linear-gradient(120deg, #54203f, #873e69);
  color: white;
  padding: 65px 0;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin: 0 0 15px;
}

.hero p {
  max-width: 760px;
  font-size: 1.1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .8rem;
  font-weight: bold;
  opacity: .85;
}

section { padding: 15px 0; }

h2 {
  font-size: 1.8rem;
  margin-top: 0;
}

h3 { margin-top: 0; }

.intro {
  max-width: 850px;
  font-size: 1.05rem;
}

.notice {
  background: #fff6e8;
  border-left: 5px solid #d89a39;
  padding: 20px;
  border-radius: 6px;
  margin: 25px 0;
}

.phases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 30px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 27px;
  background: white;
  box-shadow: 0 5px 20px rgba(0,0,0,.04);
}

/* El tercer artículo ocupa las dos columnas */
.card-full {
  grid-column: 1 / -1;
}

.card-number {
  display: inline-flex;
  width: 38px;
  height: 38px;
  background: #f5f5f5;
  color: var(--primary);
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: bold;
  margin-bottom: 12px;
}

.btn {
  display: inline-block;
  border: 0;
  border-radius: 7px;
  background: var(--primary);
  color: white;
  padding: 12px 20px;
  font-size: .95rem;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: .2s;
}

.btn:hover {
  /* background: var(--primary-dark); */
}

.btn-outline {
  background: white;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  color: white;
}

.phase-section {
  background: #f5f5f5;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.steps li {
  counter-increment: step;
  padding: 12px 12px 12px 52px;
  position: relative;
  margin-bottom: 10px;
  background: white;
  border-radius: 8px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 13px;
  top: 12px;
  background: var(--primary);
  color: white;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  text-align: center;
  line-height: 27px;
  font-weight: bold;
}

.doc-list {
  list-style: none;
  padding: 0;
}

.doc-list li {
  padding: 12px 10px 12px 38px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.subdoc-list li {
  padding: 6px 10px 0px 10px;
  border-bottom: 0px solid var(--border);
  position: relative;
}

.doc-list li::before {
  content: "✓";
  position: absolute;
  left: 8px;
  color: var(--primary);
  font-weight: bold;
}

.subdoc-list li::before {
  content: none;
  position: absolute;
  left: 8px;
  color: var(--primary);
  font-weight: bold;
}

.optional {
  background: #f5f5f5;
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
}

.filename {
  background: #292631;
  color: #fff;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: .9rem;
}

.filename code {
  display: block;
  padding: 3px 0;
}

.checklist label {
  display: block;
  padding: 10px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.checklist input {
  accent-color: var(--primary);
  margin-right: 10px;
}

.progress {
  background: #eee;
  height: 9px;
  border-radius: 10px;
  overflow: hidden;
  margin: 15px 0;
}

.progress-bar {
  background: var(--primary);
  width: 0;
  height: 100%;
  transition: width .3s;
}

.cta {
  background: var(--primary-dark);
  color: white;
  text-align: center;
  padding: 50px 20px;
}

.cta h2 { color: white; }

.cta .btn {
  background: white;
  color: var(--primary-dark);
}

footer {
  padding: 25px;
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
}

/* MODALES */

.gl-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 15, 20, .7);
  padding: 20px;
  overflow-y: auto;
  align-items: center;
  justify-content: center;
}

.gl-modal.active { display: flex; }

.gl-modal-content {
  background: white;
  width: min(680px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 14px;
  padding: 30px;
  position: relative;
}

/* Modal de documentación más ancho */
#modal-documentacion .gl-modal-content {
  width: min(950px, 100%);
}

#modal-recomendaciones .gl-modal-content {
  width: min(950px, 100%);
}

.gl-modal-close {
  position: absolute;
  right: 18px;
  top: 12px;
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
  color: var(--muted);
}

.gl-modal-content h2 {
  color: var(--primary);
  padding-right: 30px;
}

.gl-modal-content h3 {
  margin-top: 25px;
  color: var(--primary-dark);
}

/* FORMULARIO DE INSCRIPCIÓN */

#formulario_alumnos label {
  display: block;
  font-weight: bold;
  margin: 16px 0 6px;
}

#formulario_alumnos select,
#formulario_alumnos input[type="text"],
#formulario_alumnos input[type="password"] {
  width: 100%;
  height: auto;
  max-width: 360px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: .95rem;
}

#formulario_alumnos #capa_enviar { margin-top: 20px; }

#formulario_alumnos .help-block {
  display: block;
  margin-top: 15px;
  font-size: .9rem;
  color: var(--muted);
}

@media(max-width:700px) {
  .phases { grid-template-columns: 1fr; }
  .card-full { grid-column: auto; }
  .hero { padding: 45px 0; }
  .gl-modal-content { padding: 24px 19px; }
}

.help-text {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: .85rem;
}

.help-text a {
  color: var(--primary);
  font-weight: bold;
}

/* Centrar botones respecto a su capa */
.card > .btn,
.gl-modal-content > .btn {
  display: block;
  width: fit-content;
  margin: 20px auto 0;
}