body{
  margin:0;
  font-family:'Segoe UI',sans-serif;
  background:#f3f4f7;
}

/* ========================= */
/* FONDO */
/* ========================= */

.background{
  position:fixed;
  inset:0;
  background:url("https://algorithmics.es/api/images/fondo.jpg") repeat;
  opacity:.15;
  z-index:-1;
}

/* ========================= */
/* CONTENEDOR PRINCIPAL */
/* ========================= */

.form-wrapper{
  max-width:1200px;
  margin:70px auto;
  background:#ffffff;
  border-radius:6px;
  border:1px solid #1c1c1c;
  box-shadow:
    0 6px 18px rgba(0,0,0,0.08),
    0 25px 60px rgba(0,0,0,0.06);
  padding:60px 70px;
  position:relative;
}

/* ========================= */
/* HEADER */
/* ========================= */

.form-header img{
  width:100%;
  border-radius:12px;
  margin-bottom:40px;
  display:block;
}

/* ========================= */
/* PASOS */
/* ========================= */

.steps{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:60px;
  margin-bottom:40px;
}

.step{
  display:flex;
  flex-direction:column;
  align-items:center;
}

.step .circle{
  width:45px;
  height:45px;
  border-radius:50%;
  background:#e5e5e5;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:bold;
  color:#555;
  margin-bottom:8px;
  transition:.3s;
}

.step.active .circle{
  background:#602B7A;
  color:#fff;
}

.step span{
  font-size:14px;
  font-weight:500;
  white-space:nowrap;
}

/* ========================= */
/* INTRO */
/* ========================= */

.intro{
  text-align:center;
  margin-bottom:40px;
  color:#555;
  max-width:800px;
  margin-left:auto;
  margin-right:auto;
}

/* ========================= */
/* TARJETAS */
/* ========================= */

.cards-container{
  display:flex;
  gap:30px;
  justify-content:space-between;
  align-items:stretch;
}

.card{
  flex:1;
  background:#fafafa;
  border-radius:18px;
  overflow:hidden;
  transition:.25s ease;
  border:2px solid transparent;
  display:flex;
  flex-direction:column;
}
/* Borde por tipo de tarjeta */
.card[data-card="curso"]{
  border-color:#6a1b9a33;
}

.card[data-card="verano"]{
  border-color:#ef6c0033;
}

.card[data-card="talleres"]{
  border-color:#00897b33;
}


.card:hover{
  transform:translateY(-6px);
}

.card.selected{
  background:#fff;
  box-shadow:0 15px 35px rgba(0,0,0,.12);
}

/* Colores activos por tarjeta */
.card[data-card="curso"].selected{
  border-color:#6a1b9a;
}

.card[data-card="verano"].selected{
  border-color:#ef6c00;
}

.card[data-card="talleres"].selected{
  border-color:#00897b;
}


@supports(selector(:has(*))){
  .card:has(input[type="radio"]:checked){
    border-color:#6a1b9a;
    box-shadow:0 15px 35px rgba(106,27,154,.20);
    background:#fff;
  }
}

.card-top{ height:8px; }
.card-top.purple{ background:linear-gradient(90deg,#6a1b9a,#ab47bc); }
.card-top.orange{ background:linear-gradient(90deg,#ef6c00,#ffa726); }
.card-top.green{  background:linear-gradient(90deg,#00897b,#26a69a); }

.card-body{
  padding:30px;
  flex:1;
}

.card-body h3{
  margin:0 0 25px;
  font-size:21px;
  font-weight:700;
  letter-spacing:0.4px;
  position:relative;
  padding-bottom:8px;
  text-align:center;
}


.card[data-card="curso"] h3{ color:#6a1b9a; }
.card[data-card="verano"] h3{ color:#ef6c00; }
.card[data-card="talleres"] h3{ color:#00897b; }

.card-body h3::after{
  content:"";
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  bottom:0;
  width:45px;
  height:3px;
  border-radius:4px;
  background:currentColor;
}


/* ========================= */
/* RADIO */
/* ========================= */

.radio-option{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
  transition:.2s ease;
}

.radio-option:hover{
  background:rgba(106,27,154,.06);
}

.radio-option input{
  position:absolute;
  opacity:0;
}

.custom-radio{
  width:18px;
  height:18px;
  border:2px solid #bdbdbd;
  border-radius:50%;
  position:relative;
  flex:0 0 18px;
  background:#fff;
  transition:.2s ease;
}

.radio-text{
  color:#333;
  font-size:15px;
  font-weight:600;
}


.radio-option input:checked + .custom-radio{
  border-color:#6a1b9a;
}

.radio-option input:checked + .custom-radio::after{
  content:"";
  position:absolute;
  width:10px;
  height:10px;
  border-radius:50%;
  background:#6a1b9a;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
}

/* ========================= */
/* BOTÓN */
/* ========================= */

.button-container{
  text-align:center;
  margin-top:45px;
}

.btn-next{
  padding:14px 50px;
  border-radius:30px;
  border:none;
  font-size:16px;
  font-weight:600;
  background:linear-gradient(135deg,#6a1b9a,#8e24aa);
  color:#fff;
  cursor:pointer;
  transition:.25s;
}

.btn-next:hover{
  transform:translateY(-3px);
  box-shadow:0 8px 20px rgba(106,27,154,.30);
}

/* ===================================================== */
/* ================= VERSION MÓVIL PRO ================= */
/* ===================================================== */

@media (max-width: 768px){

  .form-wrapper{
    margin:30px 15px;
    padding:30px 20px;
  }

  /* TARJETAS EN COLUMNA */
  .cards-container{
    flex-direction:column;
    gap:20px;
  }

  .card:hover{
    transform:none;
  }

  /* PASOS SIEMPRE HORIZONTALES Y COMPACTOS */
  .steps{
    gap:15px;
    margin-bottom:25px;
  }

  .step{
    flex-direction:column;
  }

  .step .circle{
    width:28px;
    height:28px;
    font-size:12px;
    margin-bottom:4px;
  }

  /* Ocultamos texto de pasos no activos */
  .step:not(.active) span{
    display:none;
  }

  .step.active span{
    font-size:12px;
    margin-top:3px;
  }

  /* RADIO MÁS COMPACTO */
  .custom-radio{
    width:14px;
    height:14px;
  }

  .radio-option input:checked + .custom-radio::after{
    width:8px;
    height:8px;
  }

  .radio-text{
    font-size:14px;
  }

  /* BOTÓN FULL WIDTH */
  .btn-next{
    width:100%;
    padding:15px;
  }

}
.link-delegacion{
  color:#602B7A;
  font-weight:600;
  text-decoration:none;
  border-bottom:2px solid rgba(96,43,122,0.3);
  transition:all .25s ease;
}

.link-delegacion:hover{
  color:#8e24aa;
  border-bottom:2px solid #8e24aa;
}

