.card {
  width: 100%;
  padding: 10px;
  margin-bottom:5px;
  margin-top:5px;
  background: #f5f0f0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  font-family: sans-serif;
}


.tabs {
  width: 100%;
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
  margin-bottom: 0px;
}

/* Ocultar radios */
.tabs input {
  display: none;
}

/* Contenedor de pestañas */
.tab-labels {
  display: flex;
  width: 100%;
}

/* Estilo de pestañas */
.tab-labels label {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  background: #eee;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  transition: background 0.3s;
}

.tab-labels label:hover {
  background: #ddd;
}

/* Contenido */
.contents .content {
  display: none;
  padding: 5px;
  background: #fff;
  border-radius: 0 8px 8px 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Mostrar contenido principal */
#main1:checked ~ .contents #mainContent1,
#main2:checked ~ .contents #mainContent2,
#main3:checked ~ .contents #mainContent3 {
  display: block;
}

/* Activar pestaña principal */
#main1:checked ~ .tab-labels label[for="main1"],
#main2:checked ~ .tab-labels label[for="main2"],
#main3:checked ~ .tab-labels label[for="main3"] {
  background: #fff;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
}

/* Subpestañas (grupo interno) */
.tabs.inner .tab-labels label {
  border-radius: 6px 6px 0 0;
}

.tabs.inner .contents .content {
  border-radius: 0 6px 6px 6px;
}

/* Mostrar contenido interno */
#sub1:checked ~ .contents #subContent1,
#sub2:checked ~ .contents #subContent2,
#sub3:checked ~ .contents #subContent3 {
  display: block;
}

/* Activar pestaña interna */
#sub1:checked ~ .tab-labels label[for="sub1"],
#sub2:checked ~ .tab-labels label[for="sub2"],
#sub3:checked ~ .tab-labels label[for="sub3"] {
  background: #fff;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
}

.tab-labels label i {
  margin-right: 8px;
  font-size: 16px;
}


<!----------------------- retos ------------------------->

.opcion-tarjeta {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px; /* separación limpia */
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px 12px;
    margin: 6px 0;
    cursor: pointer;
    background: #fafafa;
    transition: all 0.2s ease;
}


.opcion-contenido {
    display: flex;
    flex-direction: column;
	align-items: flex-start; /* fuerza alineación a la izquierda */
}

.opcion-radio {
    margin-top: 3px;
}

.opcion-texto {
    font-size: 1.2em;
    font-weight: 500;
}

.opcion-puntos {
    margin-top: 4px;
    font-size: 0.85em;
    color: #999;
}

.opcion-tarjeta:has(input[type="radio"]:checked) {
    border-color: #007bff;
    background: #e8f1ff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

